Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-04 11:17:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4fc178cf4722d4d75abce418e1816b416a32d47a
4fc178cf
1 parent
87efd4db
树形结构组件命名调整
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
5 additions
and
4 deletions
components.d.ts
src/components/TreeField/MyComponent.vue → src/components/OrgPickerField/MyComponent.vue
src/components/TreeField/flow_dept_list.json → src/components/OrgPickerField/flow_dept_list.json
src/components/TreeField/flow_role_list.json → src/components/OrgPickerField/flow_role_list.json
src/components/TreeField/index.vue → src/components/OrgPickerField/index.vue
src/components/TreeField/user_dept_role.json → src/components/OrgPickerField/user_dept_role.json
src/hooks/useComponentType.js
components.d.ts
View file @
4fc178c
...
...
@@ -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'
]
...
...
src/components/
Tree
Field/MyComponent.vue
→
src/components/
OrgPicker
Field/MyComponent.vue
View file @
4fc178c
File moved
src/components/
Tree
Field/flow_dept_list.json
→
src/components/
OrgPicker
Field/flow_dept_list.json
View file @
4fc178c
File moved
src/components/
Tree
Field/flow_role_list.json
→
src/components/
OrgPicker
Field/flow_role_list.json
View file @
4fc178c
File moved
src/components/
Tree
Field/index.vue
→
src/components/
OrgPicker
Field/index.vue
View file @
4fc178c
File moved
src/components/
Tree
Field/user_dept_role.json
→
src/components/
OrgPicker
Field/user_dept_role.json
View file @
4fc178c
File moved
src/hooks/useComponentType.js
View file @
4fc178c
...
...
@@ -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/Tree
Field/index.vue'
;
import
OrgPickerField
from
'@/components/OrgPicker
Field/index.vue'
;
/**
* 生成自定义组件类型
...
...
@@ -64,7 +64,7 @@ import TreeField from '@/components/TreeField/index.vue';
* @type gender 性别控件 GenderField
* @type appointment 预约控件 AppointmentField
* @type group 组集合输入控件 GroupField
* @type
tree 树形选择控件 Tree
Field
* @type
org_picker 树形选择控件 OrgPicker
Field
*/
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
=
Tree
Field
;
item
.
component
=
OrgPicker
Field
;
}
})
}
...
...
Please
register
or
login
to post a comment