@lowcodeui/element-select
v0.0.3
Published
![avatar](public/logo.png)
Downloads
3
Readme
说明
API
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ----- | ---------------- | ------- | ------ | ------ | | group | 是否显示分组数据 | boolean | — | false |
不分组数据格式:
[ { value: "选项 1", label: "黄金糕" }, { value: "选项 2", label: "双皮奶" }, { value: "选项 3", label: "蚵仔煎" }, { value: "选项 4", label: "龙须面" }, { value: "选项 5", label: "北京烤鸭" } ]
分组数据格式
[{ label: '热门城市', options: [{ value: 'Shanghai', label: '上海' }, { value: 'Beijing', label: '北京' }] }, { label: '城市名', options: [{ value: 'Chengdu', label: '成都' }, { value: 'Shenzhen', label: '深圳' }, { value: 'Guangzhou', label: '广州' }, { value: 'Dalian', label: '大连' }] }]
Events:
| 事件名称 | 说明 | 回调参数 | | -------- | -------------------- | ------------ | | change | 选中值发生变化时触发 | 目前的选中值 |