diff --git a/zh-cn/application-dev/quick-start/arkts-prop.md b/zh-cn/application-dev/quick-start/arkts-prop.md index 341ab9509d03acfce605e8f6dfa29906bfb46e6c..3e665cac0480b9bca0c0659179d4635e04448a13 100644 --- a/zh-cn/application-dev/quick-start/arkts-prop.md +++ b/zh-cn/application-dev/quick-start/arkts-prop.md @@ -528,11 +528,11 @@ struct MyComponent { } Row() { - Button('Click to change locally !').width(480).height(60).margin({ top: 10 }) + Button('Click to change locally !').width(180).height(60).margin({ top: 10 }) .onClick(() => { this.customCounter2++ }) - }.height(100).width(480) + }.height(100).width(180) Row() { Text(`Custom Local: ${this.customCounter2}`).width(90).height(40).fontColor('#FF0010') @@ -563,7 +563,7 @@ struct MainProgram { MyComponent({ customCounter: this.mainCounter }) // customCounter2也可以从父组件初始化,父组件初始化的值会覆盖子组件customCounter2的本地初始化的值 MyComponent({ customCounter: this.mainCounter, customCounter2: this.mainCounter }) - }.width('40%') + } } } }