提交 25860d90 编写于 作者: S sunjiakun

FIX:添加select组件 api 接口使用示例

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 2989b19d
......@@ -88,6 +88,7 @@ struct SelectExample {
.optionFont({ size: 16, weight: 400 })
.space(this.space)
.arrowPosition(this.arrowPosition)
.menuAlign(MenuAlignType.START, {dx:0, dy:0})
.onSelect((index:number, text: string)=>{
console.info('Select:' + index)
this.index = index;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册