**JCategorySelect 分类字典组件文档** [TOC] JCategorySelect 组件分类字典下拉树组件。 ## 组件参数 | 参数 | 类型 | 必填 | 默认值 | 说明 | | --- | --- | --- | --- | --- | | value(v-model) | string / array | | '' | | | placeholder | string | | '请选择' | 占位内容 | | condition| string | | '' | 查询条件,传一个JSON字符串 | | multiple| bool /string | | false | 是否支持多选 | | disabled | bool | | false | 是否禁用 | | pid| string| | | 父级id | | pcode| string| | | 起始选择code,见配置的分类字典的类型编码 | | back| string| | | 返回key | ## 效果展示 ![](https://img.kancloud.cn/96/1f/961f93929b118409ce803f220c68cc8a_683x326.png) ## 使用示例 ``` js const schemas: FormSchema[] = [ { field: 'category', component: 'JCategorySelect', label: '分类字典树', componentProps: { pcode: 'B01' } }, { field: 'category1', component: 'JCategorySelect', label: '分类字典树(多选)', componentProps: { pcode: 'B01', multiple: true } } ] ```