**JTreeDict 组件文档** [TOC] 分类字典树形下拉组件,可异步加载数据 ## 组件参数 | 参数 | 类型 | 必填 | 默认值 | 说明 | | --- | --- | --- | --- | --- | | value(v-model) | string | | '' | | | field | string | | 'id' | 指定当前组件需要存储的字段 可选: id(主键)和code(编码) | | parentCode | string | | '' | 指定一个节点的编码,加载该节点下的所有字典数据,若不指定,默认加载所有数据 | | async | bool | | false | 是否异步加载,对于数据量大的字典数据,建议设置成true | | disabled | bool | | false | 是否禁用 | >[info] 更多参数见:[TreeSelect 树选择](https://2x.antdv.com/components/tree-select-cn/#API) ## 效果展示 ![](https://img.kancloud.cn/1c/18/1c18aa6bf687ca55e95541843d54aaa3_791x472.png) ## 使用示例 ``` js const schemas: FormSchema[] = [ { field: 'JTreeDict', component: 'JTreeDict', label: 'JTreeDict', }, { field: 'JTreeDictAsync', component: 'JTreeDict', label: '异步JTreeDict', componentProps: { async: true }, }, ] ```