未验证 提交 6d571427 编写于 作者: 汪元白 提交者: Gitee

update zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md.修改代码缩进

修改代码缩进
Signed-off-by: Nwangyuanbai <603970629@qq.com>
上级 9b647701
...@@ -53,16 +53,16 @@ Select(options: Array\<SelectOption\>) ...@@ -53,16 +53,16 @@ Select(options: Array\<SelectOption\>)
struct SelectExample { struct SelectExample {
build() { build() {
Column() { Column() {
Select([{value:'aaa',icon: "/common/1.png"}, Select([{ value: 'aaa', icon: "/common/1.png" },
{value:'bbb',icon: "/common/2.png"}, { value: 'bbb', icon: "/common/2.png" },
{value:'ccc',icon: "/common/3.png"}, { value: 'ccc', icon: "/common/3.png" },
{value:'ddd',icon: "/common/4.png"}]) { value: 'ddd', icon: "/common/4.png" }])
.selected(2) .selected(2)
.value('TTT') .value('TTT')
.font({size: 30, weight:400, family: 'serif', style: FontStyle.Normal }) .font({ size: 30, weight: 400, family: 'serif', style: FontStyle.Normal })
.selectedOptionFont({size: 40, weight: 500, family: 'serif', style: FontStyle.Normal }) .selectedOptionFont({ size: 40, weight: 500, family: 'serif', style: FontStyle.Normal })
.optionFont({size: 30, weight: 400, family: 'serif', style: FontStyle.Normal }) .optionFont({ size: 30, weight: 400, family: 'serif', style: FontStyle.Normal })
.onSelect((index:number)=>{ .onSelect((index: number) => {
console.info("Select:" + index) console.info("Select:" + index)
}) })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册