lew-ui 2.7.57 → 2.7.59
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/LICENSE +21 -21
- package/dist/_components/CommonInput.vue.d.ts +499 -0
- package/dist/components/data/table/src/LewTable.vue.d.ts +1 -1
- package/dist/components/data/tree/src/LewTree.vue.d.ts +12 -1
- package/dist/components/data/tree/src/props.d.ts +5 -0
- package/dist/components/feedback/drawer/src/LewDrawer.vue.d.ts +22 -0
- package/dist/components/feedback/drawer/src/props.d.ts +10 -0
- package/dist/components/form/cascader/src/LewCascader.vue.d.ts +46 -31
- package/dist/components/form/cascader/src/cascader.d.ts +15 -0
- package/dist/components/form/cascader/src/emits.d.ts +8 -1
- package/dist/components/form/cascader/src/props.d.ts +15 -10
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/form/input/src/LewInput.vue.d.ts +2 -2
- package/dist/components/form/input-number/src/LewInputNumber.vue.d.ts +2 -2
- package/dist/components/form/input-tag/src/LewInputTag.vue.d.ts +4 -4
- package/dist/components/form/select/src/LewSelect.vue.d.ts +1480 -411
- package/dist/components/form/select/src/emits.d.ts +5 -1
- package/dist/components/form/select/src/props.d.ts +7 -2
- package/dist/components/form/textarea/src/LewTextarea.vue.d.ts +4 -2
- package/dist/components/form/tree-select/src/LewTreeSelect.vue.d.ts +40 -23
- package/dist/components/form/tree-select/src/props.d.ts +0 -5
- package/dist/components/form/tree-select-multiple/index.d.ts +3 -0
- package/dist/components/form/{select-multiple/src/LewSelectMultiple.vue.d.ts → tree-select-multiple/src/LewTreeSelectMultiple.vue.d.ts} +492 -930
- package/dist/components/form/tree-select-multiple/src/emits.d.ts +4 -0
- package/dist/components/form/{select-multiple → tree-select-multiple}/src/props.d.ts +63 -55
- package/dist/components/navigation/steps/src/LewSteps.vue.d.ts +21 -1
- package/dist/components/navigation/steps/src/props.d.ts +8 -0
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/useDOMCreate.d.ts +1 -0
- package/dist/hooks/useEventListener.d.ts +1 -0
- package/dist/hooks/useTreeSelection.d.ts +35 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1615 -1720
- package/dist/index.umd.cjs +7 -7
- package/dist/types/components.d.ts +2 -1
- package/package.json +1 -1
- package/dist/components/form/select-multiple/index.d.ts +0 -3
- package/dist/components/form/select-multiple/src/emits.d.ts +0 -11
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export declare const selectEmits: {
|
|
2
|
-
readonly change: (value?: string) => string | boolean;
|
|
2
|
+
readonly change: (value?: string | number | (string | number)[]) => string | number | boolean | (string | number)[];
|
|
3
3
|
readonly blur: () => boolean;
|
|
4
4
|
readonly clear: () => boolean;
|
|
5
5
|
readonly focus: () => boolean;
|
|
6
|
+
readonly delete: (value: (string | number)[], item: string | number) => {
|
|
7
|
+
value: (string | number)[];
|
|
8
|
+
item: string | number;
|
|
9
|
+
};
|
|
6
10
|
};
|
|
@@ -3,13 +3,13 @@ import { LewSelectOption, LewSelectSearchMethodParams, LewSize, LewTrigger } fro
|
|
|
3
3
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
|
4
4
|
export declare const selectModel: {
|
|
5
5
|
modelValue: {
|
|
6
|
-
type: PropType<string | number | undefined>;
|
|
6
|
+
type: PropType<string | number | (string | number)[] | undefined>;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare const selectProps: {
|
|
11
11
|
defaultValue: {
|
|
12
|
-
type:
|
|
12
|
+
type: PropType<string | (string | number)[]>;
|
|
13
13
|
default: string;
|
|
14
14
|
validator: (value: any) => boolean;
|
|
15
15
|
};
|
|
@@ -50,6 +50,11 @@ export declare const selectProps: {
|
|
|
50
50
|
typeValues: LewSize[];
|
|
51
51
|
validator: (value: any) => boolean;
|
|
52
52
|
};
|
|
53
|
+
multiple: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
validator: (value: any) => boolean;
|
|
57
|
+
};
|
|
53
58
|
itemHeight: {
|
|
54
59
|
type: NumberConstructor;
|
|
55
60
|
default: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
declare function
|
|
1
|
+
declare function focus(): void;
|
|
2
|
+
declare function blur(): void;
|
|
2
3
|
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
3
4
|
placeholder: {
|
|
4
5
|
type: StringConstructor;
|
|
@@ -85,7 +86,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
85
86
|
type: globalThis.PropType<any>;
|
|
86
87
|
};
|
|
87
88
|
}>, {
|
|
88
|
-
|
|
89
|
+
focus: typeof focus;
|
|
90
|
+
blur: typeof blur;
|
|
89
91
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
90
92
|
input: (value?: string | undefined) => void;
|
|
91
93
|
change: (value?: string | undefined) => void;
|
|
@@ -252,8 +252,8 @@ declare function __VLS_template(): {
|
|
|
252
252
|
$props: Partial<{
|
|
253
253
|
checkable: boolean;
|
|
254
254
|
height: string;
|
|
255
|
-
searchable: boolean;
|
|
256
255
|
multiple: boolean;
|
|
256
|
+
searchable: boolean;
|
|
257
257
|
expandAll: boolean;
|
|
258
258
|
free: boolean;
|
|
259
259
|
showLine: boolean;
|
|
@@ -261,11 +261,12 @@ declare function __VLS_template(): {
|
|
|
261
261
|
labelField: string;
|
|
262
262
|
disabledField: string;
|
|
263
263
|
isSelect: boolean;
|
|
264
|
+
onlyLeafSelectable: boolean;
|
|
264
265
|
}> & Omit<{
|
|
265
266
|
readonly checkable: boolean;
|
|
266
267
|
readonly height: string;
|
|
267
|
-
readonly searchable: boolean;
|
|
268
268
|
readonly multiple: boolean;
|
|
269
|
+
readonly searchable: boolean;
|
|
269
270
|
readonly expandAll: boolean;
|
|
270
271
|
readonly free: boolean;
|
|
271
272
|
readonly showLine: boolean;
|
|
@@ -273,6 +274,7 @@ declare function __VLS_template(): {
|
|
|
273
274
|
readonly labelField: string;
|
|
274
275
|
readonly disabledField: string;
|
|
275
276
|
readonly isSelect: boolean;
|
|
277
|
+
readonly onlyLeafSelectable: boolean;
|
|
276
278
|
readonly expandKeys?: never[] | undefined;
|
|
277
279
|
readonly modelValue?: any;
|
|
278
280
|
readonly dataSource?: import('../../../..').LewTreeDataSource[] | undefined;
|
|
@@ -284,7 +286,7 @@ declare function __VLS_template(): {
|
|
|
284
286
|
readonly onLoadStart?: (() => any) | undefined;
|
|
285
287
|
readonly onLoadEnd?: ((text: string) => any) | undefined;
|
|
286
288
|
readonly "onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
|
|
287
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "
|
|
289
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable">;
|
|
288
290
|
$attrs: {
|
|
289
291
|
[x: string]: unknown;
|
|
290
292
|
};
|
|
@@ -369,6 +371,11 @@ declare function __VLS_template(): {
|
|
|
369
371
|
hidden: boolean;
|
|
370
372
|
validator: (value: any) => boolean;
|
|
371
373
|
};
|
|
374
|
+
onlyLeafSelectable: {
|
|
375
|
+
type: BooleanConstructor;
|
|
376
|
+
default: boolean;
|
|
377
|
+
validator: (value: any) => boolean;
|
|
378
|
+
};
|
|
372
379
|
modelValue: {
|
|
373
380
|
type: globalThis.PropType<any>;
|
|
374
381
|
};
|
|
@@ -396,8 +403,8 @@ declare function __VLS_template(): {
|
|
|
396
403
|
}, string, {
|
|
397
404
|
checkable: boolean;
|
|
398
405
|
height: string;
|
|
399
|
-
searchable: boolean;
|
|
400
406
|
multiple: boolean;
|
|
407
|
+
searchable: boolean;
|
|
401
408
|
expandAll: boolean;
|
|
402
409
|
free: boolean;
|
|
403
410
|
showLine: boolean;
|
|
@@ -405,6 +412,7 @@ declare function __VLS_template(): {
|
|
|
405
412
|
labelField: string;
|
|
406
413
|
disabledField: string;
|
|
407
414
|
isSelect: boolean;
|
|
415
|
+
onlyLeafSelectable: boolean;
|
|
408
416
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
409
417
|
beforeCreate?: (() => void) | (() => void)[];
|
|
410
418
|
created?: (() => void) | (() => void)[];
|
|
@@ -428,8 +436,8 @@ declare function __VLS_template(): {
|
|
|
428
436
|
} & Readonly<{
|
|
429
437
|
checkable: boolean;
|
|
430
438
|
height: string;
|
|
431
|
-
searchable: boolean;
|
|
432
439
|
multiple: boolean;
|
|
440
|
+
searchable: boolean;
|
|
433
441
|
expandAll: boolean;
|
|
434
442
|
free: boolean;
|
|
435
443
|
showLine: boolean;
|
|
@@ -437,6 +445,7 @@ declare function __VLS_template(): {
|
|
|
437
445
|
labelField: string;
|
|
438
446
|
disabledField: string;
|
|
439
447
|
isSelect: boolean;
|
|
448
|
+
onlyLeafSelectable: boolean;
|
|
440
449
|
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
441
450
|
dataSource: {
|
|
442
451
|
type: PropType<import('../../../..').LewTreeDataSource[]>;
|
|
@@ -507,6 +516,11 @@ declare function __VLS_template(): {
|
|
|
507
516
|
hidden: boolean;
|
|
508
517
|
validator: (value: any) => boolean;
|
|
509
518
|
};
|
|
519
|
+
onlyLeafSelectable: {
|
|
520
|
+
type: BooleanConstructor;
|
|
521
|
+
default: boolean;
|
|
522
|
+
validator: (value: any) => boolean;
|
|
523
|
+
};
|
|
510
524
|
modelValue: {
|
|
511
525
|
type: globalThis.PropType<any>;
|
|
512
526
|
};
|
|
@@ -520,7 +534,7 @@ declare function __VLS_template(): {
|
|
|
520
534
|
onLoadStart?: (() => any) | undefined;
|
|
521
535
|
onLoadEnd?: ((text: string) => any) | undefined;
|
|
522
536
|
"onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
|
|
523
|
-
}>, "search" | "reset" | "getTree" | ("checkable" | "height" | "
|
|
537
|
+
}>, "search" | "reset" | "getTree" | ("checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable")> & import('vue').ShallowUnwrapRef<{
|
|
524
538
|
search: (keyword: string) => void;
|
|
525
539
|
reset: () => void;
|
|
526
540
|
getTree: () => any;
|
|
@@ -579,11 +593,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
579
593
|
default: boolean;
|
|
580
594
|
validator: (value: any) => boolean;
|
|
581
595
|
};
|
|
582
|
-
showCheckIcon: {
|
|
583
|
-
type: BooleanConstructor;
|
|
584
|
-
default: boolean;
|
|
585
|
-
validator: (value: any) => boolean;
|
|
586
|
-
};
|
|
587
596
|
showLine: {
|
|
588
597
|
type: BooleanConstructor;
|
|
589
598
|
default: boolean;
|
|
@@ -705,11 +714,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
705
714
|
default: boolean;
|
|
706
715
|
validator: (value: any) => boolean;
|
|
707
716
|
};
|
|
708
|
-
showCheckIcon: {
|
|
709
|
-
type: BooleanConstructor;
|
|
710
|
-
default: boolean;
|
|
711
|
-
validator: (value: any) => boolean;
|
|
712
|
-
};
|
|
713
717
|
showLine: {
|
|
714
718
|
type: BooleanConstructor;
|
|
715
719
|
default: boolean;
|
|
@@ -793,7 +797,6 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
793
797
|
searchable: boolean;
|
|
794
798
|
initMethod: () => void;
|
|
795
799
|
searchDelay: number;
|
|
796
|
-
showCheckIcon: boolean;
|
|
797
800
|
expandAll: boolean;
|
|
798
801
|
free: boolean;
|
|
799
802
|
showLine: boolean;
|
|
@@ -1044,8 +1047,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1044
1047
|
$props: Partial<{
|
|
1045
1048
|
checkable: boolean;
|
|
1046
1049
|
height: string;
|
|
1047
|
-
searchable: boolean;
|
|
1048
1050
|
multiple: boolean;
|
|
1051
|
+
searchable: boolean;
|
|
1049
1052
|
expandAll: boolean;
|
|
1050
1053
|
free: boolean;
|
|
1051
1054
|
showLine: boolean;
|
|
@@ -1053,11 +1056,12 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1053
1056
|
labelField: string;
|
|
1054
1057
|
disabledField: string;
|
|
1055
1058
|
isSelect: boolean;
|
|
1059
|
+
onlyLeafSelectable: boolean;
|
|
1056
1060
|
}> & Omit<{
|
|
1057
1061
|
readonly checkable: boolean;
|
|
1058
1062
|
readonly height: string;
|
|
1059
|
-
readonly searchable: boolean;
|
|
1060
1063
|
readonly multiple: boolean;
|
|
1064
|
+
readonly searchable: boolean;
|
|
1061
1065
|
readonly expandAll: boolean;
|
|
1062
1066
|
readonly free: boolean;
|
|
1063
1067
|
readonly showLine: boolean;
|
|
@@ -1065,6 +1069,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1065
1069
|
readonly labelField: string;
|
|
1066
1070
|
readonly disabledField: string;
|
|
1067
1071
|
readonly isSelect: boolean;
|
|
1072
|
+
readonly onlyLeafSelectable: boolean;
|
|
1068
1073
|
readonly expandKeys?: never[] | undefined;
|
|
1069
1074
|
readonly modelValue?: any;
|
|
1070
1075
|
readonly dataSource?: import('../../../..').LewTreeDataSource[] | undefined;
|
|
@@ -1076,7 +1081,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1076
1081
|
readonly onLoadStart?: (() => any) | undefined;
|
|
1077
1082
|
readonly onLoadEnd?: ((text: string) => any) | undefined;
|
|
1078
1083
|
readonly "onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
|
|
1079
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "
|
|
1084
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable">;
|
|
1080
1085
|
$attrs: {
|
|
1081
1086
|
[x: string]: unknown;
|
|
1082
1087
|
};
|
|
@@ -1161,6 +1166,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1161
1166
|
hidden: boolean;
|
|
1162
1167
|
validator: (value: any) => boolean;
|
|
1163
1168
|
};
|
|
1169
|
+
onlyLeafSelectable: {
|
|
1170
|
+
type: BooleanConstructor;
|
|
1171
|
+
default: boolean;
|
|
1172
|
+
validator: (value: any) => boolean;
|
|
1173
|
+
};
|
|
1164
1174
|
modelValue: {
|
|
1165
1175
|
type: globalThis.PropType<any>;
|
|
1166
1176
|
};
|
|
@@ -1188,8 +1198,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1188
1198
|
}, string, {
|
|
1189
1199
|
checkable: boolean;
|
|
1190
1200
|
height: string;
|
|
1191
|
-
searchable: boolean;
|
|
1192
1201
|
multiple: boolean;
|
|
1202
|
+
searchable: boolean;
|
|
1193
1203
|
expandAll: boolean;
|
|
1194
1204
|
free: boolean;
|
|
1195
1205
|
showLine: boolean;
|
|
@@ -1197,6 +1207,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1197
1207
|
labelField: string;
|
|
1198
1208
|
disabledField: string;
|
|
1199
1209
|
isSelect: boolean;
|
|
1210
|
+
onlyLeafSelectable: boolean;
|
|
1200
1211
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1201
1212
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1202
1213
|
created?: (() => void) | (() => void)[];
|
|
@@ -1220,8 +1231,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1220
1231
|
} & Readonly<{
|
|
1221
1232
|
checkable: boolean;
|
|
1222
1233
|
height: string;
|
|
1223
|
-
searchable: boolean;
|
|
1224
1234
|
multiple: boolean;
|
|
1235
|
+
searchable: boolean;
|
|
1225
1236
|
expandAll: boolean;
|
|
1226
1237
|
free: boolean;
|
|
1227
1238
|
showLine: boolean;
|
|
@@ -1229,6 +1240,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1229
1240
|
labelField: string;
|
|
1230
1241
|
disabledField: string;
|
|
1231
1242
|
isSelect: boolean;
|
|
1243
|
+
onlyLeafSelectable: boolean;
|
|
1232
1244
|
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
1233
1245
|
dataSource: {
|
|
1234
1246
|
type: PropType<import('../../../..').LewTreeDataSource[]>;
|
|
@@ -1299,6 +1311,11 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1299
1311
|
hidden: boolean;
|
|
1300
1312
|
validator: (value: any) => boolean;
|
|
1301
1313
|
};
|
|
1314
|
+
onlyLeafSelectable: {
|
|
1315
|
+
type: BooleanConstructor;
|
|
1316
|
+
default: boolean;
|
|
1317
|
+
validator: (value: any) => boolean;
|
|
1318
|
+
};
|
|
1302
1319
|
modelValue: {
|
|
1303
1320
|
type: globalThis.PropType<any>;
|
|
1304
1321
|
};
|
|
@@ -1312,7 +1329,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
|
|
|
1312
1329
|
onLoadStart?: (() => any) | undefined;
|
|
1313
1330
|
onLoadEnd?: ((text: string) => any) | undefined;
|
|
1314
1331
|
"onUpdate:expandKeys"?: ((value: never[]) => any) | undefined;
|
|
1315
|
-
}>, "search" | "reset" | "getTree" | ("checkable" | "height" | "
|
|
1332
|
+
}>, "search" | "reset" | "getTree" | ("checkable" | "height" | "multiple" | "searchable" | "expandAll" | "free" | "showLine" | "keyField" | "labelField" | "disabledField" | "isSelect" | "onlyLeafSelectable")> & import('vue').ShallowUnwrapRef<{
|
|
1316
1333
|
search: (keyword: string) => void;
|
|
1317
1334
|
reset: () => void;
|
|
1318
1335
|
getTree: () => any;
|
|
@@ -53,11 +53,6 @@ export declare const treeSelectProps: {
|
|
|
53
53
|
default: boolean;
|
|
54
54
|
validator: (value: any) => boolean;
|
|
55
55
|
};
|
|
56
|
-
showCheckIcon: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
validator: (value: any) => boolean;
|
|
60
|
-
};
|
|
61
56
|
showLine: {
|
|
62
57
|
type: BooleanConstructor;
|
|
63
58
|
default: boolean;
|