未验证 提交 6b6ee56c 编写于 作者: 二当家 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepper.md.修改代码格式

修改代码格式
Signed-off-by: Nzhouxinping <xpzhoua@isoftstone.com>
上级 b0252810
...@@ -63,47 +63,50 @@ struct StepperExample { ...@@ -63,47 +63,50 @@ struct StepperExample {
.fontColor(Color.Blue) .fontColor(Color.Blue)
.width(200) .width(200)
.lineHeight(50) .lineHeight(50)
.margin({top:250}) .margin({ top: 250 })
} }
.nextLabel('') .nextLabel('')
.position({x: '35%', y: 0}) .position({ x: '35%', y: 0 })
StepperItem() { StepperItem() {
Text('Page Two') Text('Page Two')
.fontSize(35) .fontSize(35)
.fontColor(Color.Blue) .fontColor(Color.Blue)
.width(200) .width(200)
.lineHeight(50) .lineHeight(50)
.margin({top:250}) .margin({ top: 250 })
.onClick(()=>{ .onClick(() => {
this.firstState = this.firstState === ItemState.Skip ? ItemState.Normal : ItemState.Skip this.firstState = this.firstState === ItemState.Skip ? ItemState.Normal : ItemState.Skip
}) })
} }
.nextLabel('Next') .nextLabel('Next')
.prevLabel('Previous') .prevLabel('Previous')
.status(this.firstState) .status(this.firstState)
.position({x: '35%', y: 0}) .position({ x: '35%', y: 0 })
StepperItem() { StepperItem() {
Text('Page Three') Text('Page Three')
.fontSize(35) .fontSize(35)
.fontColor(Color.Blue) .fontColor(Color.Blue)
.width(200) .width(200)
.lineHeight(50) .lineHeight(50)
.margin({top:250}) .margin({ top: 250 })
.onClick(()=>{ .onClick(() => {
this.secondState = this.secondState === ItemState.Waiting ? ItemState.Normal : ItemState.Waiting this.secondState = this.secondState === ItemState.Waiting ? ItemState.Normal : ItemState.Waiting
}) })
} }
.position({x: '35%', y: 0}) .position({ x: '35%', y: 0 })
.status(this.secondState) .status(this.secondState)
StepperItem() { StepperItem() {
Text('Page four') Text('Page four')
.fontSize(35) .fontSize(35)
.fontColor(Color.Blue) .fontColor(Color.Blue)
.width(200) .width(200)
.lineHeight(50) .lineHeight(50)
.margin({top:250}) .margin({ top: 250 })
} }
.position({x: '35%', y: 0}) .position({ x: '35%', y: 0 })
.nextLabel('Finish') .nextLabel('Finish')
} }
.onFinish(() => { .onFinish(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册