Appearance
DictSelect 字典数据选择器
基于内部自定义组件Select
使用gauss里的useDictionaryStore
js
import HamSuperFormCore from '@hamlet/super-form-core'
import { useDictionaryStore } from '@gauss/core'
HamSuperFormCore.loader({
useDictionaryStore: useDictionaryStore
})示例
API
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| dictCode | 必填,字典标识 | string | |
| isDisabledOption | 禁用选项 | function (option, formData) | |
| placeholder | 占位符 | string | |
| filterable | 组件是否可筛选 | boolean | true |
| multipleLimit | multiple 属性设置为 true 时,代表多选场景下用户最多可以选择的项目数, 为 0 则不限制 | number | 0 |
| clearable | 是否可以清空选项 | boolean | false |
| multiple | 是否多选 | boolean | false |