未验证 提交 e3362b84 编写于 作者: O openharmony_ci 提交者: Gitee

!7738 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】update...

!7738 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】update zh-cn/application-dev/reference/arkui-ts/ts-basic-components-stepper.md.修改代码格式
Merge pull request !7738 from 二当家/N/A
......@@ -63,47 +63,50 @@ struct StepperExample {
.fontColor(Color.Blue)
.width(200)
.lineHeight(50)
.margin({top:250})
.margin({ top: 250 })
}
.nextLabel('')
.position({x: '35%', y: 0})
.position({ x: '35%', y: 0 })
StepperItem() {
Text('Page Two')
.fontSize(35)
.fontColor(Color.Blue)
.width(200)
.lineHeight(50)
.margin({top:250})
.onClick(()=>{
.margin({ top: 250 })
.onClick(() => {
this.firstState = this.firstState === ItemState.Skip ? ItemState.Normal : ItemState.Skip
})
}
.nextLabel('Next')
.prevLabel('Previous')
.status(this.firstState)
.position({x: '35%', y: 0})
.position({ x: '35%', y: 0 })
StepperItem() {
Text('Page Three')
.fontSize(35)
.fontColor(Color.Blue)
.width(200)
.lineHeight(50)
.margin({top:250})
.onClick(()=>{
.margin({ top: 250 })
.onClick(() => {
this.secondState = this.secondState === ItemState.Waiting ? ItemState.Normal : ItemState.Waiting
})
}
.position({x: '35%', y: 0})
.position({ x: '35%', y: 0 })
.status(this.secondState)
StepperItem() {
Text('Page four')
.fontSize(35)
.fontColor(Color.Blue)
.width(200)
.lineHeight(50)
.margin({top:250})
.margin({ top: 250 })
}
.position({x: '35%', y: 0})
.position({ x: '35%', y: 0 })
.nextLabel('Finish')
}
.onFinish(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册