@zhongguo168a/yxeditor-common 0.0.92 → 0.0.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +18 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1393,7 +1393,13 @@ declare class ViewModelComponent extends Component {
|
|
|
1393
1393
|
* @param node
|
|
1394
1394
|
*/
|
|
1395
1395
|
static tailNode(node: Node): ViewModel;
|
|
1396
|
+
protected onEnable(): void;
|
|
1397
|
+
protected onDisable(): void;
|
|
1398
|
+
setEnableHandler(value: () => void): this;
|
|
1399
|
+
setDisableHandler(value: () => void): this;
|
|
1396
1400
|
viewModel: ViewModel;
|
|
1401
|
+
private _onEnable;
|
|
1402
|
+
private _onDisable;
|
|
1397
1403
|
}
|
|
1398
1404
|
|
|
1399
1405
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -4221,6 +4221,24 @@ let ViewModelComponent = ViewModelComponent_1 = class ViewModelComponent extends
|
|
|
4221
4221
|
}
|
|
4222
4222
|
return null;
|
|
4223
4223
|
}
|
|
4224
|
+
onEnable() {
|
|
4225
|
+
if (this._onEnable) {
|
|
4226
|
+
this._onEnable.call(this.viewModel);
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
onDisable() {
|
|
4230
|
+
if (this._onDisable) {
|
|
4231
|
+
this._onDisable.call(this.viewModel);
|
|
4232
|
+
}
|
|
4233
|
+
}
|
|
4234
|
+
setEnableHandler(value) {
|
|
4235
|
+
this._onEnable = value;
|
|
4236
|
+
return this;
|
|
4237
|
+
}
|
|
4238
|
+
setDisableHandler(value) {
|
|
4239
|
+
this._onDisable = value;
|
|
4240
|
+
return this;
|
|
4241
|
+
}
|
|
4224
4242
|
};
|
|
4225
4243
|
ViewModelComponent = ViewModelComponent_1 = __decorate([
|
|
4226
4244
|
ccclass('ViewModelComponent')
|