@xn-lib/component 0.1.6 → 0.1.7
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/index.cjs +3 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.iife.js +3 -1
- package/dist/index.mjs +3 -1
- package/dist/index.umd.js +3 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/cascader/CascaderMenu.vue.d.ts +3 -3
- package/dist/types/cascader/CascaderOption.vue.d.ts +2 -2
- package/dist/types/cascader/CascaderSelectMenu.vue.d.ts +1 -1
- package/dist/types/cascader/index.d.ts +1 -1
- package/dist/types/cascader/index.vue.d.ts +300 -60
- package/dist/types/cascader/props.d.ts +17 -1
- package/dist/types/cascader/utils.d.ts +1 -1
- package/dist/types/index.d.ts +5 -3
- package/dist/types/tag/index.d.ts +1 -1
- package/dist/types/transfer/SourcePanel.d.ts +5 -0
- package/dist/types/transfer/SourcePanel.vue.d.ts +141 -0
- package/dist/types/transfer/index.d.ts +6 -0
- package/dist/types/transfer/index.vue.d.ts +206 -0
- package/dist/types/transfer/props.d.ts +143 -0
- package/dist/types/{cascader/types.d.ts → types/cascader.d.ts} +11 -0
- package/dist/types/types/index.d.ts +4 -0
- package/dist/types/types/transfer.d.ts +84 -0
- package/dist/types/types/virtual-list.d.ts +40 -0
- package/dist/types/virtual-list/index.d.ts +5 -0
- package/dist/types/virtual-list/index.vue.d.ts +131 -0
- package/dist/types/virtual-list/props.d.ts +45 -0
- package/package.json +1 -1
- /package/dist/types/{tag/types.d.ts → types/tag.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TreeNode } from '
|
|
1
|
+
import type { TreeNode } from '../types/cascader';
|
|
2
2
|
interface Props {
|
|
3
3
|
show: boolean;
|
|
4
4
|
menuModel: TreeNode[][];
|
|
@@ -13,10 +13,10 @@ interface Props {
|
|
|
13
13
|
optionHeight?: number;
|
|
14
14
|
}
|
|
15
15
|
declare var __VLS_20: {
|
|
16
|
-
option: import("
|
|
16
|
+
option: import("../types/cascader").CascaderOption;
|
|
17
17
|
checked: any;
|
|
18
18
|
}, __VLS_36: {
|
|
19
|
-
option: import("
|
|
19
|
+
option: import("../types/cascader").CascaderOption;
|
|
20
20
|
checked: any;
|
|
21
21
|
}, __VLS_38: {}, __VLS_45: {};
|
|
22
22
|
type __VLS_Slots = {} & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { TreeNode } from '
|
|
1
|
+
import type { TreeNode } from '../types/cascader';
|
|
2
2
|
interface Props {
|
|
3
3
|
tmNode: TreeNode;
|
|
4
4
|
}
|
|
5
5
|
declare var __VLS_9: {
|
|
6
|
-
option: import("
|
|
6
|
+
option: import("../types/cascader").CascaderOption;
|
|
7
7
|
checked: any;
|
|
8
8
|
};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import type { CascaderInst } from '
|
|
2
|
+
import type { CascaderInst } from '../types/cascader';
|
|
3
3
|
import CascaderComponent from './index.vue';
|
|
4
4
|
declare const Cascader: typeof CascaderComponent & Plugin;
|
|
5
5
|
export default Cascader;
|
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
import type { CascaderOption, CascaderValue,
|
|
2
|
-
interface Props {
|
|
3
|
-
modelValue?: CascaderValue | null;
|
|
4
|
-
options?: CascaderOption[];
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
clearable?: boolean;
|
|
8
|
-
filterable?: boolean;
|
|
9
|
-
multiple?: boolean;
|
|
10
|
-
size?: 'large' | 'default' | 'small';
|
|
11
|
-
expandTrigger?: ExpandTrigger;
|
|
12
|
-
separator?: string;
|
|
13
|
-
showPath?: boolean;
|
|
14
|
-
cascade?: boolean;
|
|
15
|
-
checkStrategy?: CheckStrategy;
|
|
16
|
-
remote?: boolean;
|
|
17
|
-
onLoad?: OnLoad;
|
|
18
|
-
filter?: Filter;
|
|
19
|
-
valueField?: string;
|
|
20
|
-
labelField?: string;
|
|
21
|
-
childrenField?: string;
|
|
22
|
-
disabledField?: string;
|
|
23
|
-
maxTagCount?: number;
|
|
24
|
-
popperClass?: string;
|
|
25
|
-
getColumnStyle?: (detail: {
|
|
26
|
-
level: number;
|
|
27
|
-
}) => string | Record<string, any>;
|
|
28
|
-
clearFilterAfterSelect?: boolean;
|
|
29
|
-
virtualScroll?: boolean;
|
|
30
|
-
optionHeight?: number;
|
|
31
|
-
showCheckbox?: boolean;
|
|
32
|
-
emitPath?: boolean;
|
|
33
|
-
}
|
|
1
|
+
import type { CascaderOption, CascaderValue, CascaderInst } from '../types/cascader';
|
|
34
2
|
declare var __VLS_27: {}, __VLS_38: {
|
|
35
3
|
option: CascaderOption;
|
|
36
4
|
checked: any;
|
|
@@ -44,42 +12,314 @@ type __VLS_Slots = {} & {
|
|
|
44
12
|
} & {
|
|
45
13
|
action?: (props: typeof __VLS_44) => any;
|
|
46
14
|
};
|
|
47
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
|
+
readonly modelValue: {
|
|
17
|
+
readonly type: import("vue").PropType<CascaderValue | null>;
|
|
18
|
+
readonly default: null;
|
|
19
|
+
};
|
|
20
|
+
readonly options: {
|
|
21
|
+
readonly type: import("vue").PropType<CascaderOption[]>;
|
|
22
|
+
readonly default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
readonly placeholder: {
|
|
25
|
+
readonly type: StringConstructor;
|
|
26
|
+
readonly default: "请选择";
|
|
27
|
+
};
|
|
28
|
+
readonly disabled: {
|
|
29
|
+
readonly type: BooleanConstructor;
|
|
30
|
+
readonly default: false;
|
|
31
|
+
};
|
|
32
|
+
readonly clearable: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
readonly filterable: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly multiple: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
readonly size: {
|
|
45
|
+
readonly type: import("vue").PropType<"large" | "default" | "small">;
|
|
46
|
+
readonly default: "default";
|
|
47
|
+
};
|
|
48
|
+
readonly expandTrigger: {
|
|
49
|
+
readonly type: import("vue").PropType<import("../types/cascader").ExpandTrigger>;
|
|
50
|
+
readonly default: "click";
|
|
51
|
+
};
|
|
52
|
+
readonly separator: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly default: " / ";
|
|
55
|
+
};
|
|
56
|
+
readonly showPath: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: true;
|
|
59
|
+
};
|
|
60
|
+
readonly cascade: {
|
|
61
|
+
readonly type: BooleanConstructor;
|
|
62
|
+
readonly default: true;
|
|
63
|
+
};
|
|
64
|
+
readonly checkStrategy: {
|
|
65
|
+
readonly type: import("vue").PropType<import("../types/cascader").CheckStrategy>;
|
|
66
|
+
readonly default: "all";
|
|
67
|
+
};
|
|
68
|
+
readonly remote: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
readonly onLoad: {
|
|
73
|
+
readonly type: import("vue").PropType<import("../types/cascader").OnLoad>;
|
|
74
|
+
readonly default: undefined;
|
|
75
|
+
};
|
|
76
|
+
readonly filter: {
|
|
77
|
+
readonly type: import("vue").PropType<import("../types/cascader").Filter>;
|
|
78
|
+
readonly default: undefined;
|
|
79
|
+
};
|
|
80
|
+
readonly valueField: {
|
|
81
|
+
readonly type: StringConstructor;
|
|
82
|
+
readonly default: "value";
|
|
83
|
+
};
|
|
84
|
+
readonly labelField: {
|
|
85
|
+
readonly type: StringConstructor;
|
|
86
|
+
readonly default: "label";
|
|
87
|
+
};
|
|
88
|
+
readonly childrenField: {
|
|
89
|
+
readonly type: StringConstructor;
|
|
90
|
+
readonly default: "children";
|
|
91
|
+
};
|
|
92
|
+
readonly disabledField: {
|
|
93
|
+
readonly type: StringConstructor;
|
|
94
|
+
readonly default: "disabled";
|
|
95
|
+
};
|
|
96
|
+
readonly maxTagCount: {
|
|
97
|
+
readonly type: NumberConstructor;
|
|
98
|
+
readonly default: 1;
|
|
99
|
+
};
|
|
100
|
+
readonly popperClass: {
|
|
101
|
+
readonly type: StringConstructor;
|
|
102
|
+
readonly default: "";
|
|
103
|
+
};
|
|
104
|
+
readonly getColumnStyle: {
|
|
105
|
+
readonly type: import("vue").PropType<(detail: {
|
|
106
|
+
level: number;
|
|
107
|
+
}) => string | Record<string, any>>;
|
|
108
|
+
readonly default: undefined;
|
|
109
|
+
};
|
|
110
|
+
readonly clearFilterAfterSelect: {
|
|
111
|
+
readonly type: BooleanConstructor;
|
|
112
|
+
readonly default: true;
|
|
113
|
+
};
|
|
114
|
+
readonly virtualScroll: {
|
|
115
|
+
readonly type: BooleanConstructor;
|
|
116
|
+
readonly default: true;
|
|
117
|
+
};
|
|
118
|
+
readonly optionHeight: {
|
|
119
|
+
readonly type: NumberConstructor;
|
|
120
|
+
readonly default: 34;
|
|
121
|
+
};
|
|
122
|
+
readonly showCheckbox: {
|
|
123
|
+
readonly type: BooleanConstructor;
|
|
124
|
+
readonly default: undefined;
|
|
125
|
+
};
|
|
126
|
+
readonly emitPath: {
|
|
127
|
+
readonly type: BooleanConstructor;
|
|
128
|
+
readonly default: false;
|
|
129
|
+
};
|
|
130
|
+
readonly maxChecked: {
|
|
131
|
+
readonly type: NumberConstructor;
|
|
132
|
+
readonly default: 0;
|
|
133
|
+
};
|
|
134
|
+
readonly checkStrictly: {
|
|
135
|
+
readonly type: BooleanConstructor;
|
|
136
|
+
readonly default: false;
|
|
137
|
+
};
|
|
138
|
+
readonly showCheckedStrategy: {
|
|
139
|
+
readonly type: import("vue").PropType<"parent" | "child">;
|
|
140
|
+
readonly default: "child";
|
|
141
|
+
};
|
|
142
|
+
readonly disabledResolver: {
|
|
143
|
+
readonly type: import("vue").PropType<(option: CascaderOption) => boolean>;
|
|
144
|
+
readonly default: undefined;
|
|
145
|
+
};
|
|
146
|
+
}>, CascaderInst, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
147
|
"update:modelValue": (value: CascaderValue | null) => any;
|
|
49
148
|
change: (value: CascaderValue | null, option: CascaderOption | (CascaderOption | null)[] | null, path: CascaderOption[] | (CascaderOption[] | null)[] | null) => any;
|
|
50
149
|
blur: (e: FocusEvent) => any;
|
|
51
150
|
focus: (e: FocusEvent) => any;
|
|
52
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
151
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
152
|
+
readonly modelValue: {
|
|
153
|
+
readonly type: import("vue").PropType<CascaderValue | null>;
|
|
154
|
+
readonly default: null;
|
|
155
|
+
};
|
|
156
|
+
readonly options: {
|
|
157
|
+
readonly type: import("vue").PropType<CascaderOption[]>;
|
|
158
|
+
readonly default: () => never[];
|
|
159
|
+
};
|
|
160
|
+
readonly placeholder: {
|
|
161
|
+
readonly type: StringConstructor;
|
|
162
|
+
readonly default: "请选择";
|
|
163
|
+
};
|
|
164
|
+
readonly disabled: {
|
|
165
|
+
readonly type: BooleanConstructor;
|
|
166
|
+
readonly default: false;
|
|
167
|
+
};
|
|
168
|
+
readonly clearable: {
|
|
169
|
+
readonly type: BooleanConstructor;
|
|
170
|
+
readonly default: false;
|
|
171
|
+
};
|
|
172
|
+
readonly filterable: {
|
|
173
|
+
readonly type: BooleanConstructor;
|
|
174
|
+
readonly default: false;
|
|
175
|
+
};
|
|
176
|
+
readonly multiple: {
|
|
177
|
+
readonly type: BooleanConstructor;
|
|
178
|
+
readonly default: false;
|
|
179
|
+
};
|
|
180
|
+
readonly size: {
|
|
181
|
+
readonly type: import("vue").PropType<"large" | "default" | "small">;
|
|
182
|
+
readonly default: "default";
|
|
183
|
+
};
|
|
184
|
+
readonly expandTrigger: {
|
|
185
|
+
readonly type: import("vue").PropType<import("../types/cascader").ExpandTrigger>;
|
|
186
|
+
readonly default: "click";
|
|
187
|
+
};
|
|
188
|
+
readonly separator: {
|
|
189
|
+
readonly type: StringConstructor;
|
|
190
|
+
readonly default: " / ";
|
|
191
|
+
};
|
|
192
|
+
readonly showPath: {
|
|
193
|
+
readonly type: BooleanConstructor;
|
|
194
|
+
readonly default: true;
|
|
195
|
+
};
|
|
196
|
+
readonly cascade: {
|
|
197
|
+
readonly type: BooleanConstructor;
|
|
198
|
+
readonly default: true;
|
|
199
|
+
};
|
|
200
|
+
readonly checkStrategy: {
|
|
201
|
+
readonly type: import("vue").PropType<import("../types/cascader").CheckStrategy>;
|
|
202
|
+
readonly default: "all";
|
|
203
|
+
};
|
|
204
|
+
readonly remote: {
|
|
205
|
+
readonly type: BooleanConstructor;
|
|
206
|
+
readonly default: false;
|
|
207
|
+
};
|
|
208
|
+
readonly onLoad: {
|
|
209
|
+
readonly type: import("vue").PropType<import("../types/cascader").OnLoad>;
|
|
210
|
+
readonly default: undefined;
|
|
211
|
+
};
|
|
212
|
+
readonly filter: {
|
|
213
|
+
readonly type: import("vue").PropType<import("../types/cascader").Filter>;
|
|
214
|
+
readonly default: undefined;
|
|
215
|
+
};
|
|
216
|
+
readonly valueField: {
|
|
217
|
+
readonly type: StringConstructor;
|
|
218
|
+
readonly default: "value";
|
|
219
|
+
};
|
|
220
|
+
readonly labelField: {
|
|
221
|
+
readonly type: StringConstructor;
|
|
222
|
+
readonly default: "label";
|
|
223
|
+
};
|
|
224
|
+
readonly childrenField: {
|
|
225
|
+
readonly type: StringConstructor;
|
|
226
|
+
readonly default: "children";
|
|
227
|
+
};
|
|
228
|
+
readonly disabledField: {
|
|
229
|
+
readonly type: StringConstructor;
|
|
230
|
+
readonly default: "disabled";
|
|
231
|
+
};
|
|
232
|
+
readonly maxTagCount: {
|
|
233
|
+
readonly type: NumberConstructor;
|
|
234
|
+
readonly default: 1;
|
|
235
|
+
};
|
|
236
|
+
readonly popperClass: {
|
|
237
|
+
readonly type: StringConstructor;
|
|
238
|
+
readonly default: "";
|
|
239
|
+
};
|
|
240
|
+
readonly getColumnStyle: {
|
|
241
|
+
readonly type: import("vue").PropType<(detail: {
|
|
242
|
+
level: number;
|
|
243
|
+
}) => string | Record<string, any>>;
|
|
244
|
+
readonly default: undefined;
|
|
245
|
+
};
|
|
246
|
+
readonly clearFilterAfterSelect: {
|
|
247
|
+
readonly type: BooleanConstructor;
|
|
248
|
+
readonly default: true;
|
|
249
|
+
};
|
|
250
|
+
readonly virtualScroll: {
|
|
251
|
+
readonly type: BooleanConstructor;
|
|
252
|
+
readonly default: true;
|
|
253
|
+
};
|
|
254
|
+
readonly optionHeight: {
|
|
255
|
+
readonly type: NumberConstructor;
|
|
256
|
+
readonly default: 34;
|
|
257
|
+
};
|
|
258
|
+
readonly showCheckbox: {
|
|
259
|
+
readonly type: BooleanConstructor;
|
|
260
|
+
readonly default: undefined;
|
|
261
|
+
};
|
|
262
|
+
readonly emitPath: {
|
|
263
|
+
readonly type: BooleanConstructor;
|
|
264
|
+
readonly default: false;
|
|
265
|
+
};
|
|
266
|
+
readonly maxChecked: {
|
|
267
|
+
readonly type: NumberConstructor;
|
|
268
|
+
readonly default: 0;
|
|
269
|
+
};
|
|
270
|
+
readonly checkStrictly: {
|
|
271
|
+
readonly type: BooleanConstructor;
|
|
272
|
+
readonly default: false;
|
|
273
|
+
};
|
|
274
|
+
readonly showCheckedStrategy: {
|
|
275
|
+
readonly type: import("vue").PropType<"parent" | "child">;
|
|
276
|
+
readonly default: "child";
|
|
277
|
+
};
|
|
278
|
+
readonly disabledResolver: {
|
|
279
|
+
readonly type: import("vue").PropType<(option: CascaderOption) => boolean>;
|
|
280
|
+
readonly default: undefined;
|
|
281
|
+
};
|
|
282
|
+
}>> & Readonly<{
|
|
53
283
|
"onUpdate:modelValue"?: ((value: CascaderValue | null) => any) | undefined;
|
|
54
284
|
onChange?: ((value: CascaderValue | null, option: CascaderOption | (CascaderOption | null)[] | null, path: CascaderOption[] | (CascaderOption[] | null)[] | null) => any) | undefined;
|
|
55
285
|
onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
56
286
|
onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
57
287
|
}>, {
|
|
58
|
-
disabled: boolean;
|
|
59
|
-
|
|
60
|
-
modelValue: CascaderValue | null;
|
|
61
|
-
size: "
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
288
|
+
readonly disabled: boolean;
|
|
289
|
+
readonly filter: import("../types/cascader").Filter;
|
|
290
|
+
readonly modelValue: CascaderValue | null;
|
|
291
|
+
readonly size: "small" | "default" | "large";
|
|
292
|
+
readonly showCheckbox: boolean;
|
|
293
|
+
readonly onLoad: import("../types/cascader").OnLoad;
|
|
294
|
+
readonly placeholder: string;
|
|
295
|
+
readonly getColumnStyle: (detail: {
|
|
296
|
+
level: number;
|
|
297
|
+
}) => string | Record<string, any>;
|
|
298
|
+
readonly virtualScroll: boolean;
|
|
299
|
+
readonly optionHeight: number;
|
|
300
|
+
readonly multiple: boolean;
|
|
301
|
+
readonly labelField: string;
|
|
302
|
+
readonly separator: string;
|
|
303
|
+
readonly options: CascaderOption[];
|
|
304
|
+
readonly clearable: boolean;
|
|
305
|
+
readonly filterable: boolean;
|
|
306
|
+
readonly expandTrigger: import("../types/cascader").ExpandTrigger;
|
|
307
|
+
readonly showPath: boolean;
|
|
308
|
+
readonly cascade: boolean;
|
|
309
|
+
readonly checkStrategy: import("../types/cascader").CheckStrategy;
|
|
310
|
+
readonly remote: boolean;
|
|
311
|
+
readonly valueField: string;
|
|
312
|
+
readonly childrenField: string;
|
|
313
|
+
readonly disabledField: string;
|
|
314
|
+
readonly maxTagCount: number;
|
|
315
|
+
readonly popperClass: string;
|
|
316
|
+
readonly clearFilterAfterSelect: boolean;
|
|
317
|
+
readonly emitPath: boolean;
|
|
318
|
+
readonly maxChecked: number;
|
|
319
|
+
readonly checkStrictly: boolean;
|
|
320
|
+
readonly showCheckedStrategy: "parent" | "child";
|
|
321
|
+
readonly disabledResolver: (option: CascaderOption) => boolean;
|
|
322
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
83
323
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
84
324
|
declare const _default: typeof __VLS_export;
|
|
85
325
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import type { CascaderOption, CascaderValue, ExpandTrigger, CheckStrategy, Filter, OnLoad } from '
|
|
2
|
+
import type { CascaderOption, CascaderValue, ExpandTrigger, CheckStrategy, Filter, OnLoad } from '../types/cascader';
|
|
3
3
|
export declare const cascaderProps: {
|
|
4
4
|
readonly modelValue: {
|
|
5
5
|
readonly type: PropType<CascaderValue | null>;
|
|
@@ -115,5 +115,21 @@ export declare const cascaderProps: {
|
|
|
115
115
|
readonly type: BooleanConstructor;
|
|
116
116
|
readonly default: false;
|
|
117
117
|
};
|
|
118
|
+
readonly maxChecked: {
|
|
119
|
+
readonly type: NumberConstructor;
|
|
120
|
+
readonly default: 0;
|
|
121
|
+
};
|
|
122
|
+
readonly checkStrictly: {
|
|
123
|
+
readonly type: BooleanConstructor;
|
|
124
|
+
readonly default: false;
|
|
125
|
+
};
|
|
126
|
+
readonly showCheckedStrategy: {
|
|
127
|
+
readonly type: PropType<"parent" | "child">;
|
|
128
|
+
readonly default: "child";
|
|
129
|
+
};
|
|
130
|
+
readonly disabledResolver: {
|
|
131
|
+
readonly type: PropType<(option: CascaderOption) => boolean>;
|
|
132
|
+
readonly default: undefined;
|
|
133
|
+
};
|
|
118
134
|
};
|
|
119
135
|
export type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CascaderOption, TreeNode, Key, CheckStrategy } from '
|
|
1
|
+
import type { CascaderOption, TreeNode, Key, CheckStrategy } from '../types/cascader';
|
|
2
2
|
export declare function createTreeMate(options: CascaderOption[], config: {
|
|
3
3
|
getKey: (node: CascaderOption) => Key;
|
|
4
4
|
getChildren: (node: CascaderOption) => CascaderOption[] | undefined;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,12 +2,14 @@ import type { Plugin } from 'vue';
|
|
|
2
2
|
import type { Component } from 'vue';
|
|
3
3
|
import XnCascader from './cascader/index';
|
|
4
4
|
import XnTag from './tag/index';
|
|
5
|
-
|
|
5
|
+
import XnTransfer from './transfer/index';
|
|
6
|
+
import XnVirtualList from './virtual-list/index';
|
|
7
|
+
export { XnCascader, XnTag, XnTransfer, XnVirtualList };
|
|
6
8
|
export declare const components: Record<string, Component>;
|
|
7
9
|
export type { CascaderProps } from './cascader/props';
|
|
8
10
|
export type { TagProps } from './tag/props';
|
|
11
|
+
export type { TransferOption, TransferEmits, TransferExpose } from './types/transfer';
|
|
12
|
+
export type { VirtualListProps, VirtualListEmits, VirtualListInstance } from './types/virtual-list';
|
|
9
13
|
export * from './types';
|
|
10
|
-
export * from './cascader/types';
|
|
11
|
-
export * from './tag/types';
|
|
12
14
|
declare const plugin: Plugin;
|
|
13
15
|
export default plugin;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { CheckboxValueType } from 'element-plus';
|
|
2
|
+
import type { TransferOption, TransferSourceExpose, TransferFields, TransferValue } from '../types/transfer';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
readonly title: {
|
|
5
|
+
readonly type: StringConstructor;
|
|
6
|
+
readonly default: "源列表";
|
|
7
|
+
};
|
|
8
|
+
readonly checkedValues: {
|
|
9
|
+
readonly type: import("vue").PropType<TransferValue>;
|
|
10
|
+
readonly default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
readonly options: {
|
|
13
|
+
readonly type: import("vue").PropType<TransferOption[]>;
|
|
14
|
+
readonly default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
readonly disabled: {
|
|
17
|
+
readonly type: BooleanConstructor;
|
|
18
|
+
readonly default: false;
|
|
19
|
+
};
|
|
20
|
+
readonly filterable: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: false;
|
|
23
|
+
};
|
|
24
|
+
readonly filterPlaceholder: {
|
|
25
|
+
readonly type: StringConstructor;
|
|
26
|
+
readonly default: "";
|
|
27
|
+
};
|
|
28
|
+
readonly tree: {
|
|
29
|
+
readonly type: BooleanConstructor;
|
|
30
|
+
readonly default: false;
|
|
31
|
+
};
|
|
32
|
+
readonly itemHeight: {
|
|
33
|
+
readonly type: NumberConstructor;
|
|
34
|
+
readonly default: 32;
|
|
35
|
+
};
|
|
36
|
+
readonly loading: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly remoteSearch: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: false;
|
|
43
|
+
};
|
|
44
|
+
readonly remoteMethod: {
|
|
45
|
+
readonly type: import("vue").PropType<(query: Record<string, any>) => Promise<TransferOption[]>>;
|
|
46
|
+
readonly default: undefined;
|
|
47
|
+
};
|
|
48
|
+
readonly customFields: {
|
|
49
|
+
readonly type: import("vue").PropType<TransferFields>;
|
|
50
|
+
readonly default: () => {
|
|
51
|
+
label: string;
|
|
52
|
+
value: string;
|
|
53
|
+
children: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly maxCount: {
|
|
57
|
+
readonly type: NumberConstructor;
|
|
58
|
+
readonly default: 0;
|
|
59
|
+
};
|
|
60
|
+
}>, TransferSourceExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
61
|
+
change: (value: TransferValue, item: TransferOption | TransferOption[], checked: CheckboxValueType) => any;
|
|
62
|
+
"update:checked": (value: TransferValue) => any;
|
|
63
|
+
"scroll-bottom": (keyword: string) => any;
|
|
64
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
readonly title: {
|
|
66
|
+
readonly type: StringConstructor;
|
|
67
|
+
readonly default: "源列表";
|
|
68
|
+
};
|
|
69
|
+
readonly checkedValues: {
|
|
70
|
+
readonly type: import("vue").PropType<TransferValue>;
|
|
71
|
+
readonly default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
readonly options: {
|
|
74
|
+
readonly type: import("vue").PropType<TransferOption[]>;
|
|
75
|
+
readonly default: () => never[];
|
|
76
|
+
};
|
|
77
|
+
readonly disabled: {
|
|
78
|
+
readonly type: BooleanConstructor;
|
|
79
|
+
readonly default: false;
|
|
80
|
+
};
|
|
81
|
+
readonly filterable: {
|
|
82
|
+
readonly type: BooleanConstructor;
|
|
83
|
+
readonly default: false;
|
|
84
|
+
};
|
|
85
|
+
readonly filterPlaceholder: {
|
|
86
|
+
readonly type: StringConstructor;
|
|
87
|
+
readonly default: "";
|
|
88
|
+
};
|
|
89
|
+
readonly tree: {
|
|
90
|
+
readonly type: BooleanConstructor;
|
|
91
|
+
readonly default: false;
|
|
92
|
+
};
|
|
93
|
+
readonly itemHeight: {
|
|
94
|
+
readonly type: NumberConstructor;
|
|
95
|
+
readonly default: 32;
|
|
96
|
+
};
|
|
97
|
+
readonly loading: {
|
|
98
|
+
readonly type: BooleanConstructor;
|
|
99
|
+
readonly default: false;
|
|
100
|
+
};
|
|
101
|
+
readonly remoteSearch: {
|
|
102
|
+
readonly type: BooleanConstructor;
|
|
103
|
+
readonly default: false;
|
|
104
|
+
};
|
|
105
|
+
readonly remoteMethod: {
|
|
106
|
+
readonly type: import("vue").PropType<(query: Record<string, any>) => Promise<TransferOption[]>>;
|
|
107
|
+
readonly default: undefined;
|
|
108
|
+
};
|
|
109
|
+
readonly customFields: {
|
|
110
|
+
readonly type: import("vue").PropType<TransferFields>;
|
|
111
|
+
readonly default: () => {
|
|
112
|
+
label: string;
|
|
113
|
+
value: string;
|
|
114
|
+
children: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly maxCount: {
|
|
118
|
+
readonly type: NumberConstructor;
|
|
119
|
+
readonly default: 0;
|
|
120
|
+
};
|
|
121
|
+
}>> & Readonly<{
|
|
122
|
+
onChange?: ((value: TransferValue, item: TransferOption | TransferOption[], checked: CheckboxValueType) => any) | undefined;
|
|
123
|
+
"onUpdate:checked"?: ((value: TransferValue) => any) | undefined;
|
|
124
|
+
"onScroll-bottom"?: ((keyword: string) => any) | undefined;
|
|
125
|
+
}>, {
|
|
126
|
+
readonly disabled: boolean;
|
|
127
|
+
readonly title: string;
|
|
128
|
+
readonly options: TransferOption[];
|
|
129
|
+
readonly filterable: boolean;
|
|
130
|
+
readonly loading: boolean;
|
|
131
|
+
readonly remoteMethod: (query: Record<string, any>) => Promise<TransferOption[]>;
|
|
132
|
+
readonly filterPlaceholder: string;
|
|
133
|
+
readonly tree: boolean;
|
|
134
|
+
readonly itemHeight: number;
|
|
135
|
+
readonly remoteSearch: boolean;
|
|
136
|
+
readonly customFields: TransferFields;
|
|
137
|
+
readonly maxCount: number;
|
|
138
|
+
readonly checkedValues: TransferValue;
|
|
139
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
140
|
+
declare const _default: typeof __VLS_export;
|
|
141
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { TransferOption, TransferEmits, TransferExpose } from '../types/transfer';
|
|
2
|
+
export type { TransferProps } from './props';
|
|
3
|
+
import type { Plugin } from 'vue';
|
|
4
|
+
import TransferComponent from './index.vue';
|
|
5
|
+
declare const Transfer: typeof TransferComponent & Plugin;
|
|
6
|
+
export default Transfer;
|