Skip to content

下拉选项

upupzealot edited this page Aug 18, 2021 · 6 revisions

组件选项

可参考 组件选项

可多选

select-可多选

设置为可多选后,组件绑定的表单数据会变成一个数组。
schema:

{
  "type": "select",
  "multiple": true, // 默认值为空,不开启多选
}

可清空

select-可清空

在下拉选项中展示清空 × 按钮。
点击按钮可清除已选择的内容。
schema:

{
  "type": "select",
  "clearable": true, // 默认值为空,可清空时为 true
}

占位符

select-占位符

在下拉选项所选内容为空时所展示的提示信息。
schema:

{
  "type": "select",
  "placeholder": "请选择 xxx",
}
Clone this wiki locally