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

!21028 翻译完成 20670:补充select组件 api 接口使用示例

Merge pull request !21028 from ester.zhou/TR-20670
...@@ -88,6 +88,7 @@ struct SelectExample { ...@@ -88,6 +88,7 @@ struct SelectExample {
.optionFont({ size: 16, weight: 400 }) .optionFont({ size: 16, weight: 400 })
.space(this.space) .space(this.space)
.arrowPosition(this.arrowPosition) .arrowPosition(this.arrowPosition)
.menuAlign(MenuAlignType.START, {dx:0, dy:0})
.onSelect((index:number, text: string)=>{ .onSelect((index:number, text: string)=>{
console.info('Select:' + index) console.info('Select:' + index)
this.index = index; this.index = index;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册