-
Notifications
You must be signed in to change notification settings - Fork 2
下拉选项
upupzealot edited this page Aug 18, 2021
·
6 revisions
可参考 组件选项
![select-可多选](https://github.com/upupzealot/schema-form-editor/wiki/images/components/select/multi-select.png)
设置为可多选后,组件绑定的表单数据会变成一个数组。
schema:
{
"type": "select",
"multiple": true, // 默认值为空,不开启多选
}
![select-可清空](https://github.com/upupzealot/schema-form-editor/wiki/images/components/select/clearable.png)
在下拉选项中展示清空 × 按钮。
点击按钮可清除已选择的内容。
schema:
{
"type": "select",
"clearable": true, // 默认值为空,可清空时为 true
}
![select-占位符](https://github.com/upupzealot/schema-form-editor/wiki/images/components/select/placeholder.png)
在下拉选项所选内容为空时所展示的提示信息。
schema:
{
"type": "select",
"placeholder": "请选择 xxx",
}