hookehuyr

树形结构组件命名调整

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