未验证 提交 fe24700c 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/quick-start/arkts-style.md.

Signed-off-by: NLiAn <lian15@huawei.com>
上级 bc7eddcd
......@@ -45,12 +45,12 @@
```ts
@Component
struct FancyUse {
@State heightVlaue: number = 100
@State heightValue: number = 100
@Styles fancy() {
.height(this.heightVlaue)
.height(this.heightValue)
.backgroundColor(Color.Yellow)
.onClick(() => {
this.heightVlaue = 200
this.heightValue = 200
})
}
}
......@@ -77,14 +77,14 @@
@Entry
@Component
struct FancyUse {
@State heightVlaue: number = 100
@State heightValue: number = 100
// 定义在组件内的@Styles封装的样式
@Styles fancy() {
.width(200)
.height(this.heightVlaue)
.height(this.heightValue)
.backgroundColor(Color.Yellow)
.onClick(() => {
this.heightVlaue = 200
this.heightValue = 200
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册