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