提交 5d5d4a3a 编写于 作者: B bojiang

jiangbo91@huawei.com

代码格式化
Signed-off-by: Nbojiang <jiangbo91@huawei.com>
Change-Id: I9554acd1423ba77a0eb4cddbead46fad6fa0a3be
上级 8cc30786
......@@ -85,13 +85,13 @@ struct Parent {
build() {
Column() {
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
CompA({ astate: new ClassA(2), aLink: $parentState })
CompA({ aState: new ClassA(2), aLink: $parentState })
}
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
CompA({ aLink: $parentState })
}
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
CompA({ astate: new ClassA(3), aLink: $parentState })
CompA({ aState: new ClassA(3), aLink: $parentState })
}
}
}
......@@ -99,8 +99,8 @@ struct Parent {
@Component
struct CompA {
@State aState any = false
@Link aLink ClassA
@State aState: any = false
@Link aLink: ClassA
build() {
Column() {
......@@ -113,7 +113,7 @@ struct CompA {
@Component
struct CompB {
@Link bLink: ClassA
@Prop bProp: bpplean
@Prop bProp: boolean
build() {
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册