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

19 lines
351 B
Plaintext

@Component
@Entry
struct MyComponent1 {
private value1: string = "hello world 1"
private value2: string = "hello world 2"
private value3: string = "hello world 3"
constructor() {
console.info('into constructor');
}
build() {
new Column() {
new Text(this.value1)
Text(this.value2)
Text(this.value3)
}
}
}