hookehuyr

树形结构组件命名调整

......@@ -32,6 +32,7 @@ declare module '@vue/runtime-core' {
NameField: typeof import('./src/components/NameField/index.vue')['default']
NoteField: typeof import('./src/components/NoteField/index.vue')['default']
NumberField: typeof import('./src/components/NumberField/index.vue')['default']
OrgPickerField: typeof import('./src/components/OrgPickerField/index.vue')['default']
PhoneField: typeof import('./src/components/PhoneField/index.vue')['default']
PickerField: typeof import('./src/components/PickerField/index.vue')['default']
RadioField: typeof import('./src/components/RadioField/index.vue')['default']
......
......@@ -32,7 +32,7 @@ import GenderField from '@/components/GenderField/index.vue';
import AppointmentField from '@/components/AppointmentField/index.vue';
import CustomField from '@/components/CustomField/index.vue';
import GroupField from '@/components/GroupField/index.vue';
import TreeField from '@/components/TreeField/index.vue';
import OrgPickerField from '@/components/OrgPickerField/index.vue';
/**
* 生成自定义组件类型
......@@ -64,7 +64,7 @@ import TreeField from '@/components/TreeField/index.vue';
* @type gender 性别控件 GenderField
* @type appointment 预约控件 AppointmentField
* @type group 组集合输入控件 GroupField
* @type tree 树形选择控件 TreeField
* @type org_picker 树形选择控件 OrgPickerField
*/
export function createComponentType(data) {
// 判断类型和使用组件
......@@ -197,9 +197,9 @@ export function createComponentType(data) {
item.name = item.key;
item.component = GroupField;
}
if (item.component_props.tag === 'tree') {
if (item.component_props.tag === 'org_picker') {
item.name = item.key;
item.component = TreeField;
item.component = OrgPickerField;
}
})
}
......