Files
developtools_ace-ets2bundle/compiler/sample/pages/testcases/expected/constructor-01-expected.js
T
zhongjianfei 424696f97b zhongjianfei@huawei.com
Signed-off-by: zhongjianfei <zhongjianfei@huawei.com>
2021-08-28 16:48:39 +08:00

19 lines
499 B
JavaScript

class MyStateComponent extends View {
constructor(inputParams) {
super();
this.myState1 = { count: 0 };
this.myState2 = 0;
this.myState3 = false;
this.myState4 = 'Home';
this.myVar = 0;
Object.assign(this, inputParams);
this.createState("myState1");
this.createState("myState2");
this.createState("myState3");
this.createState("myState4");
}
render() {
}
}
loadDocument(new MyStateComponent());