JTreeDict分类字典树形组件 ✔
分类字典树形下拉组件,可异步加载数据
组件参数
参数 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
value(v-model) | string | '' | ||
field | string | 'id' | 指定当前组件需要存储的字段 可选: id(主键)和code(编码) | |
parentCode | string | '' | 指定一个节点的编码,加载该节点下的所有字典数据,若不指定,默认加载所有数据 | |
async | bool | false | 是否异步加载,对于数据量大的字典数据,建议设置成true | |
disabled | bool | false | 是否禁用 |
更多参数见:TreeSelect 树选择
效果展示
使用示例
const schemas: FormSchema[] = [
{
field: 'JTreeDict',
component: 'JTreeDict',
label: 'JTreeDict',
},
{
field: 'JTreeDictAsync',
component: 'JTreeDict',
label: '异步JTreeDict',
componentProps: { async: true },
},
]