Skip to content

Commit ce321bb

Browse files
committed
refactor: convert cdr to public and expose utils
1 parent 9532d02 commit ce321bb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export * from './visual-component';
22
export * from './interfaces';
3+
export * from './utils';

src/visual-component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { GuiFields } from '@acrodata/gui';
2-
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2+
import { ChangeDetectorRef, EventEmitter, inject } from '@angular/core';
33
import { isEmpty, merge } from 'lodash-es';
44
import {
55
VisualActions,
@@ -51,7 +51,7 @@ export class VisualComponent {
5151
cdr && (this._cdr = cdr);
5252
}
5353

54-
private _cdr?: ChangeDetectorRef;
54+
_cdr = inject(ChangeDetectorRef);
5555

5656
/** 组件 ID */
5757
id = '';

0 commit comments

Comments
 (0)