We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8007b8a commit bb018beCopy full SHA for bb018be
1 file changed
src/visual-component.ts
@@ -114,10 +114,10 @@ export class VisualComponent {
114
noData?: boolean;
115
116
/** 父组件 */
117
- parent?: VisualComponent;
+ parent?: VisualComponent | null;
118
119
/** 子组件 */
120
- children?: VisualComponent[];
+ children?: VisualComponent[] | null;
121
122
/** 显示 */
123
show() {
@@ -222,4 +222,9 @@ export class VisualComponent {
222
detectChanges() {
223
this.changeDetectorRef.detectChanges();
224
}
225
+
226
+ /** 标记变更检测 */
227
+ markForCheck() {
228
+ this.changeDetectorRef.markForCheck();
229
+ }
230
0 commit comments