lew-ui 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/menu-tree/src/LewMenuTreeItem.vue.d.ts +8 -44
- package/dist/components/menu-tree/src/props.d.ts +3 -24
- package/dist/components/table/src/LewTable.vue.d.ts +1 -1
- package/dist/components/tree/src/LewTree.vue.d.ts +38 -38
- package/dist/components/tree/src/LewTreeItem.vue.d.ts +111 -0
- package/dist/components/tree/src/props.d.ts +50 -12
- package/dist/components/tree/src/transformTree.d.ts +38 -0
- package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +8 -10
- package/dist/components/tree-select/src/props.d.ts +1 -1
- package/dist/components/upload/src/props.d.ts +4 -2
- package/dist/index.mjs +1039 -955
- package/dist/index.umd.js +6 -6
- package/dist/style.css +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/package.json +1 -1
- package/dist/components/tree/src/tree2list.d.ts +0 -25
|
@@ -4,23 +4,15 @@ declare function __VLS_template(): {
|
|
|
4
4
|
readonly label: string;
|
|
5
5
|
readonly disabled: boolean;
|
|
6
6
|
readonly renderIcon: Function;
|
|
7
|
-
readonly
|
|
8
|
-
readonly tagType: string;
|
|
9
|
-
readonly tagColor: string;
|
|
7
|
+
readonly renderLabel: Function;
|
|
10
8
|
readonly level: number;
|
|
11
9
|
readonly isLeaf: boolean;
|
|
12
|
-
readonly renderLabel: Function;
|
|
13
10
|
readonly value?: string | number | undefined;
|
|
14
11
|
};
|
|
15
12
|
}): any;
|
|
16
13
|
default?(_: {}): any;
|
|
17
14
|
};
|
|
18
15
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
19
|
-
renderLabel: {
|
|
20
|
-
type: FunctionConstructor;
|
|
21
|
-
default: () => void;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
16
|
label: {
|
|
25
17
|
type: StringConstructor;
|
|
26
18
|
default: string;
|
|
@@ -37,19 +29,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
37
29
|
default: () => void;
|
|
38
30
|
description: string;
|
|
39
31
|
};
|
|
40
|
-
|
|
41
|
-
type:
|
|
42
|
-
default:
|
|
43
|
-
description: string;
|
|
44
|
-
};
|
|
45
|
-
tagType: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
default: string;
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
|
-
tagColor: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
32
|
+
renderLabel: {
|
|
33
|
+
type: FunctionConstructor;
|
|
34
|
+
default: () => void;
|
|
53
35
|
description: string;
|
|
54
36
|
};
|
|
55
37
|
disabled: {
|
|
@@ -70,11 +52,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
70
52
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
71
53
|
change: (...args: any[]) => void;
|
|
72
54
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
73
|
-
renderLabel: {
|
|
74
|
-
type: FunctionConstructor;
|
|
75
|
-
default: () => void;
|
|
76
|
-
description: string;
|
|
77
|
-
};
|
|
78
55
|
label: {
|
|
79
56
|
type: StringConstructor;
|
|
80
57
|
default: string;
|
|
@@ -91,19 +68,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
91
68
|
default: () => void;
|
|
92
69
|
description: string;
|
|
93
70
|
};
|
|
94
|
-
|
|
95
|
-
type:
|
|
96
|
-
default:
|
|
97
|
-
description: string;
|
|
98
|
-
};
|
|
99
|
-
tagType: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
description: string;
|
|
103
|
-
};
|
|
104
|
-
tagColor: {
|
|
105
|
-
type: StringConstructor;
|
|
106
|
-
default: string;
|
|
71
|
+
renderLabel: {
|
|
72
|
+
type: FunctionConstructor;
|
|
73
|
+
default: () => void;
|
|
107
74
|
description: string;
|
|
108
75
|
};
|
|
109
76
|
disabled: {
|
|
@@ -127,12 +94,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
127
94
|
label: string;
|
|
128
95
|
disabled: boolean;
|
|
129
96
|
renderIcon: Function;
|
|
130
|
-
|
|
131
|
-
tagType: string;
|
|
132
|
-
tagColor: string;
|
|
97
|
+
renderLabel: Function;
|
|
133
98
|
level: number;
|
|
134
99
|
isLeaf: boolean;
|
|
135
|
-
renderLabel: Function;
|
|
136
100
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
137
101
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
138
102
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
import { TagType, LewColor } from '../../..';
|
|
3
2
|
|
|
4
3
|
export type MenuTreeItem = {
|
|
5
4
|
label: string;
|
|
@@ -7,9 +6,6 @@ export type MenuTreeItem = {
|
|
|
7
6
|
active?: boolean;
|
|
8
7
|
disabled?: boolean;
|
|
9
8
|
children?: MenuTreeItem[];
|
|
10
|
-
tagText?: string;
|
|
11
|
-
tagType?: TagType;
|
|
12
|
-
tagColor?: LewColor;
|
|
13
9
|
renderIcon?: () => any;
|
|
14
10
|
renderLabel?: () => any;
|
|
15
11
|
};
|
|
@@ -31,13 +27,6 @@ export declare const menuTreeModel: {
|
|
|
31
27
|
description: string;
|
|
32
28
|
};
|
|
33
29
|
};
|
|
34
|
-
export declare const menuTreeItemModel: {
|
|
35
|
-
modelValue: {
|
|
36
|
-
type: BooleanConstructor;
|
|
37
|
-
default: boolean;
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
30
|
export declare const menuTreeProps: {
|
|
42
31
|
options: {
|
|
43
32
|
type: PropType<MenuTreeItem[]>;
|
|
@@ -68,19 +57,9 @@ export declare const menuTreeItemProps: {
|
|
|
68
57
|
default: () => void;
|
|
69
58
|
description: string;
|
|
70
59
|
};
|
|
71
|
-
|
|
72
|
-
type:
|
|
73
|
-
default:
|
|
74
|
-
description: string;
|
|
75
|
-
};
|
|
76
|
-
tagType: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
description: string;
|
|
80
|
-
};
|
|
81
|
-
tagColor: {
|
|
82
|
-
type: StringConstructor;
|
|
83
|
-
default: string;
|
|
60
|
+
renderLabel: {
|
|
61
|
+
type: FunctionConstructor;
|
|
62
|
+
default: () => void;
|
|
84
63
|
description: string;
|
|
85
64
|
};
|
|
86
65
|
disabled: {
|
|
@@ -113,8 +113,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
113
113
|
maxHeight: string | number;
|
|
114
114
|
multiple: boolean;
|
|
115
115
|
dataSource: Record<string, any>[];
|
|
116
|
-
rowKey: string;
|
|
117
116
|
checkable: boolean;
|
|
117
|
+
rowKey: string;
|
|
118
118
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
119
119
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
120
120
|
export default _default;
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
import { TreeDataSource } from './props';
|
|
2
2
|
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
-
item?(_: {
|
|
5
|
-
props: any;
|
|
6
|
-
}): any;
|
|
7
4
|
empty?(_: {}): any;
|
|
8
5
|
};
|
|
9
6
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
10
7
|
modelValue: import('vue').PropType<any>;
|
|
11
|
-
|
|
8
|
+
expandKeys: import('vue').PropType<any>;
|
|
12
9
|
dataSource: {
|
|
13
10
|
type: PropType<TreeDataSource[]>;
|
|
14
11
|
default: () => never[];
|
|
15
12
|
description: string;
|
|
16
13
|
validator: (value: TreeDataSource[]) => boolean;
|
|
17
14
|
};
|
|
15
|
+
height: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
18
20
|
multiple: {
|
|
19
21
|
type: BooleanConstructor;
|
|
20
22
|
default: boolean;
|
|
21
23
|
description: string;
|
|
22
24
|
};
|
|
23
|
-
|
|
25
|
+
checkable: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
searchable: {
|
|
24
31
|
type: BooleanConstructor;
|
|
25
32
|
default: boolean;
|
|
26
33
|
description: string;
|
|
@@ -40,17 +47,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
40
47
|
default: boolean;
|
|
41
48
|
description: string;
|
|
42
49
|
};
|
|
43
|
-
trigger: {
|
|
44
|
-
type: PropType<import('../../..').TreeTriggerType>;
|
|
45
|
-
default: string;
|
|
46
|
-
description: string;
|
|
47
|
-
validator: (value: import('../../..').TreeTriggerType) => boolean;
|
|
48
|
-
};
|
|
49
|
-
placeholder: {
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
default: string;
|
|
52
|
-
description: string;
|
|
53
|
-
};
|
|
54
50
|
keyField: {
|
|
55
51
|
type: StringConstructor;
|
|
56
52
|
default: string;
|
|
@@ -79,30 +75,43 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
79
75
|
isSelect: {
|
|
80
76
|
type: BooleanConstructor;
|
|
81
77
|
default: boolean;
|
|
78
|
+
hidden: boolean;
|
|
82
79
|
description: string;
|
|
83
80
|
};
|
|
84
81
|
}>, {
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
search: (keyword: string) => void;
|
|
83
|
+
reset: () => void;
|
|
84
|
+
getTree: () => any;
|
|
87
85
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
88
86
|
change: (...args: any[]) => void;
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
expand: (...args: any[]) => void;
|
|
88
|
+
loadStart: (...args: any[]) => void;
|
|
89
|
+
loadEnd: (...args: any[]) => void;
|
|
91
90
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
92
91
|
modelValue: import('vue').PropType<any>;
|
|
93
|
-
|
|
92
|
+
expandKeys: import('vue').PropType<any>;
|
|
94
93
|
dataSource: {
|
|
95
94
|
type: PropType<TreeDataSource[]>;
|
|
96
95
|
default: () => never[];
|
|
97
96
|
description: string;
|
|
98
97
|
validator: (value: TreeDataSource[]) => boolean;
|
|
99
98
|
};
|
|
99
|
+
height: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
description: string;
|
|
103
|
+
};
|
|
100
104
|
multiple: {
|
|
101
105
|
type: BooleanConstructor;
|
|
102
106
|
default: boolean;
|
|
103
107
|
description: string;
|
|
104
108
|
};
|
|
105
|
-
|
|
109
|
+
checkable: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
description: string;
|
|
113
|
+
};
|
|
114
|
+
searchable: {
|
|
106
115
|
type: BooleanConstructor;
|
|
107
116
|
default: boolean;
|
|
108
117
|
description: string;
|
|
@@ -122,17 +131,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
122
131
|
default: boolean;
|
|
123
132
|
description: string;
|
|
124
133
|
};
|
|
125
|
-
trigger: {
|
|
126
|
-
type: PropType<import('../../..').TreeTriggerType>;
|
|
127
|
-
default: string;
|
|
128
|
-
description: string;
|
|
129
|
-
validator: (value: import('../../..').TreeTriggerType) => boolean;
|
|
130
|
-
};
|
|
131
|
-
placeholder: {
|
|
132
|
-
type: StringConstructor;
|
|
133
|
-
default: string;
|
|
134
|
-
description: string;
|
|
135
|
-
};
|
|
136
134
|
keyField: {
|
|
137
135
|
type: StringConstructor;
|
|
138
136
|
default: string;
|
|
@@ -161,15 +159,17 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
161
159
|
isSelect: {
|
|
162
160
|
type: BooleanConstructor;
|
|
163
161
|
default: boolean;
|
|
162
|
+
hidden: boolean;
|
|
164
163
|
description: string;
|
|
165
164
|
};
|
|
166
165
|
}>> & Readonly<{
|
|
167
166
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
onExpand?: ((...args: any[]) => any) | undefined;
|
|
168
|
+
onLoadStart?: ((...args: any[]) => any) | undefined;
|
|
169
|
+
onLoadEnd?: ((...args: any[]) => any) | undefined;
|
|
170
170
|
}>, {
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
height: string;
|
|
172
|
+
searchable: boolean;
|
|
173
173
|
multiple: boolean;
|
|
174
174
|
free: boolean;
|
|
175
175
|
loadMethod: (item: TreeDataSource) => void;
|
|
@@ -177,7 +177,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
177
177
|
keyField: string;
|
|
178
178
|
labelField: string;
|
|
179
179
|
initTree: () => void;
|
|
180
|
-
|
|
180
|
+
checkable: boolean;
|
|
181
181
|
expandAll: boolean;
|
|
182
182
|
showLine: boolean;
|
|
183
183
|
disabledField: string;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
item?(_: {
|
|
3
|
+
props: {
|
|
4
|
+
checked: any;
|
|
5
|
+
certain: boolean;
|
|
6
|
+
label: string;
|
|
7
|
+
render: Function;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
level: number;
|
|
10
|
+
isLeaf: boolean;
|
|
11
|
+
extend: Record<string, any>;
|
|
12
|
+
__key?: string | number | undefined;
|
|
13
|
+
};
|
|
14
|
+
}): any;
|
|
15
|
+
default?(_: {}): any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
18
|
+
label: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
__key: {
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
25
|
+
required: boolean;
|
|
26
|
+
description: string;
|
|
27
|
+
validator(value: string | number): boolean;
|
|
28
|
+
};
|
|
29
|
+
render: {
|
|
30
|
+
type: FunctionConstructor;
|
|
31
|
+
default: () => void;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
level: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
isLeaf: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
extend: {
|
|
50
|
+
type: ObjectConstructor;
|
|
51
|
+
default: () => void;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
|
+
change: (...args: any[]) => void;
|
|
56
|
+
expand: (...args: any[]) => void;
|
|
57
|
+
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
58
|
+
label: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
__key: {
|
|
64
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
65
|
+
required: boolean;
|
|
66
|
+
description: string;
|
|
67
|
+
validator(value: string | number): boolean;
|
|
68
|
+
};
|
|
69
|
+
render: {
|
|
70
|
+
type: FunctionConstructor;
|
|
71
|
+
default: () => void;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
disabled: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
level: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
isLeaf: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
extend: {
|
|
90
|
+
type: ObjectConstructor;
|
|
91
|
+
default: () => void;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
}>> & Readonly<{
|
|
95
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
onExpand?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
label: string;
|
|
99
|
+
render: Function;
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
level: number;
|
|
102
|
+
isLeaf: boolean;
|
|
103
|
+
extend: Record<string, any>;
|
|
104
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
105
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
106
|
+
export default _default;
|
|
107
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
108
|
+
new (): {
|
|
109
|
+
$slots: S;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
@@ -37,12 +37,22 @@ export declare const treeProps: {
|
|
|
37
37
|
description: string;
|
|
38
38
|
validator: (value: TreeDataSource[]) => boolean;
|
|
39
39
|
};
|
|
40
|
+
height: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
description: string;
|
|
44
|
+
};
|
|
40
45
|
multiple: {
|
|
41
46
|
type: BooleanConstructor;
|
|
42
47
|
default: boolean;
|
|
43
48
|
description: string;
|
|
44
49
|
};
|
|
45
|
-
|
|
50
|
+
checkable: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
searchable: {
|
|
46
56
|
type: BooleanConstructor;
|
|
47
57
|
default: boolean;
|
|
48
58
|
description: string;
|
|
@@ -62,17 +72,6 @@ export declare const treeProps: {
|
|
|
62
72
|
default: boolean;
|
|
63
73
|
description: string;
|
|
64
74
|
};
|
|
65
|
-
trigger: {
|
|
66
|
-
type: PropType<TreeTriggerType>;
|
|
67
|
-
default: string;
|
|
68
|
-
description: string;
|
|
69
|
-
validator: (value: TreeTriggerType) => boolean;
|
|
70
|
-
};
|
|
71
|
-
placeholder: {
|
|
72
|
-
type: StringConstructor;
|
|
73
|
-
default: string;
|
|
74
|
-
description: string;
|
|
75
|
-
};
|
|
76
75
|
keyField: {
|
|
77
76
|
type: StringConstructor;
|
|
78
77
|
default: string;
|
|
@@ -101,6 +100,45 @@ export declare const treeProps: {
|
|
|
101
100
|
isSelect: {
|
|
102
101
|
type: BooleanConstructor;
|
|
103
102
|
default: boolean;
|
|
103
|
+
hidden: boolean;
|
|
104
|
+
description: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export declare const treeItemProps: {
|
|
108
|
+
label: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
default: string;
|
|
111
|
+
description: string;
|
|
112
|
+
};
|
|
113
|
+
__key: {
|
|
114
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
115
|
+
required: boolean;
|
|
116
|
+
description: string;
|
|
117
|
+
validator(value: string | number): boolean;
|
|
118
|
+
};
|
|
119
|
+
render: {
|
|
120
|
+
type: FunctionConstructor;
|
|
121
|
+
default: () => void;
|
|
122
|
+
description: string;
|
|
123
|
+
};
|
|
124
|
+
disabled: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
description: string;
|
|
128
|
+
};
|
|
129
|
+
level: {
|
|
130
|
+
type: NumberConstructor;
|
|
131
|
+
default: number;
|
|
132
|
+
description: string;
|
|
133
|
+
};
|
|
134
|
+
isLeaf: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
description: string;
|
|
138
|
+
};
|
|
139
|
+
extend: {
|
|
140
|
+
type: ObjectConstructor;
|
|
141
|
+
default: () => void;
|
|
104
142
|
description: string;
|
|
105
143
|
};
|
|
106
144
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TreeDataSource } from './props';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 格式化树结构,添加路径信息
|
|
5
|
+
* @param options 格式化选项
|
|
6
|
+
* @returns 格式化后的树结构
|
|
7
|
+
*/
|
|
8
|
+
export declare const formatTree: ({ dataSource, parent, parentKeyPaths, parentLabelPaths, keyField, labelField, free }: {
|
|
9
|
+
dataSource: TreeDataSource[];
|
|
10
|
+
parent?: any;
|
|
11
|
+
parentKeyPaths?: String[];
|
|
12
|
+
parentLabelPaths?: String[];
|
|
13
|
+
keyField?: string;
|
|
14
|
+
labelField?: string;
|
|
15
|
+
free?: boolean;
|
|
16
|
+
}) => TreeDataSource[];
|
|
17
|
+
/**
|
|
18
|
+
* 转换树结构,支持初始化、过滤等功能
|
|
19
|
+
* @param options 转换选项
|
|
20
|
+
* @returns 处理结果,包含状态和数据
|
|
21
|
+
*/
|
|
22
|
+
declare const transformTree: ({ initTree, dataSource, keyField, labelField, free, keyword }: {
|
|
23
|
+
initTree?: any;
|
|
24
|
+
dataSource?: TreeDataSource[];
|
|
25
|
+
keyField?: string;
|
|
26
|
+
labelField?: string;
|
|
27
|
+
free?: boolean;
|
|
28
|
+
keyword?: string;
|
|
29
|
+
}) => Promise<{
|
|
30
|
+
status: string;
|
|
31
|
+
result: never[];
|
|
32
|
+
error: Error;
|
|
33
|
+
} | {
|
|
34
|
+
status: string;
|
|
35
|
+
result: TreeDataSource[];
|
|
36
|
+
error?: undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export default transformTree;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { TreeDataSource } from '../../tree';
|
|
2
|
-
|
|
3
1
|
declare function __VLS_template(): {
|
|
4
2
|
header?(_: {}): any;
|
|
5
3
|
empty?(_: {}): any;
|
|
@@ -11,10 +9,10 @@ declare function __VLS_template(): {
|
|
|
11
9
|
declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
12
10
|
modelValue: import('vue').PropType<any>;
|
|
13
11
|
dataSource: {
|
|
14
|
-
type: PropType<TreeDataSource[]>;
|
|
12
|
+
type: PropType<import('../../..').TreeDataSource[]>;
|
|
15
13
|
default: () => never[];
|
|
16
14
|
description: string;
|
|
17
|
-
validator: (value: TreeDataSource[]) => boolean;
|
|
15
|
+
validator: (value: import('../../..').TreeDataSource[]) => boolean;
|
|
18
16
|
};
|
|
19
17
|
defaultValue: {
|
|
20
18
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -42,7 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
42
40
|
default: boolean;
|
|
43
41
|
description: string;
|
|
44
42
|
};
|
|
45
|
-
|
|
43
|
+
checkable: {
|
|
46
44
|
type: BooleanConstructor;
|
|
47
45
|
default: boolean;
|
|
48
46
|
description: string;
|
|
@@ -135,10 +133,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
135
133
|
}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
136
134
|
modelValue: import('vue').PropType<any>;
|
|
137
135
|
dataSource: {
|
|
138
|
-
type: PropType<TreeDataSource[]>;
|
|
136
|
+
type: PropType<import('../../..').TreeDataSource[]>;
|
|
139
137
|
default: () => never[];
|
|
140
138
|
description: string;
|
|
141
|
-
validator: (value: TreeDataSource[]) => boolean;
|
|
139
|
+
validator: (value: import('../../..').TreeDataSource[]) => boolean;
|
|
142
140
|
};
|
|
143
141
|
defaultValue: {
|
|
144
142
|
type: (StringConstructor | NumberConstructor)[];
|
|
@@ -166,7 +164,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
166
164
|
default: boolean;
|
|
167
165
|
description: string;
|
|
168
166
|
};
|
|
169
|
-
|
|
167
|
+
checkable: {
|
|
170
168
|
type: BooleanConstructor;
|
|
171
169
|
default: boolean;
|
|
172
170
|
description: string;
|
|
@@ -268,11 +266,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
268
266
|
showAllLevels: boolean;
|
|
269
267
|
free: boolean;
|
|
270
268
|
loadMethod: () => void;
|
|
271
|
-
dataSource: TreeDataSource[];
|
|
269
|
+
dataSource: import('../../..').TreeDataSource[];
|
|
272
270
|
keyField: string;
|
|
273
271
|
labelField: string;
|
|
274
272
|
initTree: () => void;
|
|
275
|
-
|
|
273
|
+
checkable: boolean;
|
|
276
274
|
expandAll: boolean;
|
|
277
275
|
showLine: boolean;
|
|
278
276
|
disabledField: string;
|
|
@@ -99,6 +99,8 @@ export declare const uploadByCardProps: {
|
|
|
99
99
|
validator: (value: LewSize) => boolean;
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
export declare const
|
|
103
|
-
|
|
102
|
+
export declare const statusConfig: Record<UploadStatus, {
|
|
103
|
+
text: string;
|
|
104
|
+
color: string;
|
|
105
|
+
}>;
|
|
104
106
|
export type UploadProps = ExtractPropTypes<typeof uploadProps>;
|