bkui-vue 1.0.3-beta.65 → 1.0.3-beta.66
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.js +29 -29
- package/dist/index.esm.js +4104 -4073
- package/dist/index.umd.js +34 -34
- package/lib/search-select/index.d.ts +54 -10
- package/lib/search-select/index.js +119 -63
- package/lib/search-select/input.d.ts +8 -4
- package/lib/search-select/search-select.d.ts +22 -5
- package/lib/search-select/selected.d.ts +11 -3
- package/lib/search-select/utils.d.ts +7 -6
- package/package.json +1 -1
@@ -42,6 +42,7 @@ declare const BkSearchSelect: {
|
|
42
42
|
};
|
43
43
|
}>> & {
|
44
44
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
45
|
+
onSelectKey?: (...args: any[]) => any;
|
45
46
|
onSearch?: (...args: any[]) => any;
|
46
47
|
}, {
|
47
48
|
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
@@ -69,6 +70,7 @@ declare const BkSearchSelect: {
|
|
69
70
|
onFocus?: (...args: any[]) => any;
|
70
71
|
onDelete?: (...args: any[]) => any;
|
71
72
|
onAdd?: (...args: any[]) => any;
|
73
|
+
onSelectKey?: (...args: any[]) => any;
|
72
74
|
}, {
|
73
75
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
74
76
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -114,6 +116,7 @@ declare const BkSearchSelect: {
|
|
114
116
|
inputEnterForWrapper: () => Promise<void>;
|
115
117
|
inputClearForWrapper: () => void;
|
116
118
|
deleteInputTextNode: () => void;
|
119
|
+
customPanelSubmit: (value: string) => void;
|
117
120
|
t: import("vue").ComputedRef<{
|
118
121
|
pleaseSelect: string;
|
119
122
|
loading: string;
|
@@ -124,7 +127,7 @@ declare const BkSearchSelect: {
|
|
124
127
|
and: string;
|
125
128
|
logical: string;
|
126
129
|
}>;
|
127
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
130
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
128
131
|
data: {
|
129
132
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
130
133
|
required: true;
|
@@ -149,12 +152,15 @@ declare const BkSearchSelect: {
|
|
149
152
|
onFocus?: (...args: any[]) => any;
|
150
153
|
onDelete?: (...args: any[]) => any;
|
151
154
|
onAdd?: (...args: any[]) => any;
|
155
|
+
onSelectKey?: (...args: any[]) => any;
|
152
156
|
}, {
|
153
157
|
mode: import("./utils").SearchInputMode;
|
154
158
|
conditions: import("./utils").ICommonItem[];
|
155
159
|
showInputBefore: boolean;
|
156
160
|
showCondition: boolean;
|
157
|
-
}, true, {}, {
|
161
|
+
}, true, {}, import("vue").SlotsType<{
|
162
|
+
menu: import("./utils").MenuSlotParams;
|
163
|
+
}>, {
|
158
164
|
P: {};
|
159
165
|
B: {};
|
160
166
|
D: {};
|
@@ -186,6 +192,7 @@ declare const BkSearchSelect: {
|
|
186
192
|
onFocus?: (...args: any[]) => any;
|
187
193
|
onDelete?: (...args: any[]) => any;
|
188
194
|
onAdd?: (...args: any[]) => any;
|
195
|
+
onSelectKey?: (...args: any[]) => any;
|
189
196
|
}, {
|
190
197
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
191
198
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -231,6 +238,7 @@ declare const BkSearchSelect: {
|
|
231
238
|
inputEnterForWrapper: () => Promise<void>;
|
232
239
|
inputClearForWrapper: () => void;
|
233
240
|
deleteInputTextNode: () => void;
|
241
|
+
customPanelSubmit: (value: string) => void;
|
234
242
|
t: import("vue").ComputedRef<{
|
235
243
|
pleaseSelect: string;
|
236
244
|
loading: string;
|
@@ -313,6 +321,7 @@ declare const BkSearchSelect: {
|
|
313
321
|
onlyRecommendChildren?: boolean;
|
314
322
|
logical?: import("./utils").SearchLogical;
|
315
323
|
showLogicalPanel?: boolean;
|
324
|
+
isCustomMenu?: boolean;
|
316
325
|
};
|
317
326
|
type: import("./utils").SearchItemType;
|
318
327
|
readonly multiple: boolean;
|
@@ -338,6 +347,7 @@ declare const BkSearchSelect: {
|
|
338
347
|
readonly keyInnerHtml: string;
|
339
348
|
readonly keyInnerText: string;
|
340
349
|
readonly showLogical: boolean;
|
350
|
+
readonly isCustomMenu: boolean;
|
341
351
|
isSpecialType: () => boolean;
|
342
352
|
addValue: (item: import("./utils").ICommonItem) => void;
|
343
353
|
str2Values: (str: string) => import("./utils").ICommonItem[];
|
@@ -361,6 +371,7 @@ declare const BkSearchSelect: {
|
|
361
371
|
handleClickSearch: (e: MouseEvent) => void;
|
362
372
|
localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
|
363
373
|
resolveClassName: (cls: string) => string;
|
374
|
+
handleSelectedKey: (a: any) => void;
|
364
375
|
t: import("vue").ComputedRef<{
|
365
376
|
pleaseSelect: string;
|
366
377
|
loading: string;
|
@@ -371,7 +382,7 @@ declare const BkSearchSelect: {
|
|
371
382
|
and: string;
|
372
383
|
logical: string;
|
373
384
|
}>;
|
374
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
385
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
375
386
|
data: {
|
376
387
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
377
388
|
default: () => any[];
|
@@ -414,6 +425,7 @@ declare const BkSearchSelect: {
|
|
414
425
|
};
|
415
426
|
}>> & {
|
416
427
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
428
|
+
onSelectKey?: (...args: any[]) => any;
|
417
429
|
onSearch?: (...args: any[]) => any;
|
418
430
|
}, {
|
419
431
|
data: import("./utils").ISearchItem[];
|
@@ -425,7 +437,12 @@ declare const BkSearchSelect: {
|
|
425
437
|
valueBehavior: "all" | "need-key";
|
426
438
|
shrink: boolean;
|
427
439
|
uniqueSelect: boolean;
|
428
|
-
}, true, {}, {
|
440
|
+
}, true, {}, import("vue").SlotsType<{
|
441
|
+
menu: import("./utils").MenuSlotParams;
|
442
|
+
prepend: void;
|
443
|
+
append: void;
|
444
|
+
validate: void;
|
445
|
+
}>, {
|
429
446
|
P: {};
|
430
447
|
B: {};
|
431
448
|
D: {};
|
@@ -475,6 +492,7 @@ declare const BkSearchSelect: {
|
|
475
492
|
};
|
476
493
|
}>> & {
|
477
494
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
495
|
+
onSelectKey?: (...args: any[]) => any;
|
478
496
|
onSearch?: (...args: any[]) => any;
|
479
497
|
}, {
|
480
498
|
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
@@ -502,6 +520,7 @@ declare const BkSearchSelect: {
|
|
502
520
|
onFocus?: (...args: any[]) => any;
|
503
521
|
onDelete?: (...args: any[]) => any;
|
504
522
|
onAdd?: (...args: any[]) => any;
|
523
|
+
onSelectKey?: (...args: any[]) => any;
|
505
524
|
}, {
|
506
525
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
507
526
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -547,6 +566,7 @@ declare const BkSearchSelect: {
|
|
547
566
|
inputEnterForWrapper: () => Promise<void>;
|
548
567
|
inputClearForWrapper: () => void;
|
549
568
|
deleteInputTextNode: () => void;
|
569
|
+
customPanelSubmit: (value: string) => void;
|
550
570
|
t: import("vue").ComputedRef<{
|
551
571
|
pleaseSelect: string;
|
552
572
|
loading: string;
|
@@ -557,7 +577,7 @@ declare const BkSearchSelect: {
|
|
557
577
|
and: string;
|
558
578
|
logical: string;
|
559
579
|
}>;
|
560
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
580
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
561
581
|
data: {
|
562
582
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
563
583
|
required: true;
|
@@ -582,12 +602,15 @@ declare const BkSearchSelect: {
|
|
582
602
|
onFocus?: (...args: any[]) => any;
|
583
603
|
onDelete?: (...args: any[]) => any;
|
584
604
|
onAdd?: (...args: any[]) => any;
|
605
|
+
onSelectKey?: (...args: any[]) => any;
|
585
606
|
}, {
|
586
607
|
mode: import("./utils").SearchInputMode;
|
587
608
|
conditions: import("./utils").ICommonItem[];
|
588
609
|
showInputBefore: boolean;
|
589
610
|
showCondition: boolean;
|
590
|
-
}, true, {}, {
|
611
|
+
}, true, {}, import("vue").SlotsType<{
|
612
|
+
menu: import("./utils").MenuSlotParams;
|
613
|
+
}>, {
|
591
614
|
P: {};
|
592
615
|
B: {};
|
593
616
|
D: {};
|
@@ -619,6 +642,7 @@ declare const BkSearchSelect: {
|
|
619
642
|
onFocus?: (...args: any[]) => any;
|
620
643
|
onDelete?: (...args: any[]) => any;
|
621
644
|
onAdd?: (...args: any[]) => any;
|
645
|
+
onSelectKey?: (...args: any[]) => any;
|
622
646
|
}, {
|
623
647
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
624
648
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -664,6 +688,7 @@ declare const BkSearchSelect: {
|
|
664
688
|
inputEnterForWrapper: () => Promise<void>;
|
665
689
|
inputClearForWrapper: () => void;
|
666
690
|
deleteInputTextNode: () => void;
|
691
|
+
customPanelSubmit: (value: string) => void;
|
667
692
|
t: import("vue").ComputedRef<{
|
668
693
|
pleaseSelect: string;
|
669
694
|
loading: string;
|
@@ -746,6 +771,7 @@ declare const BkSearchSelect: {
|
|
746
771
|
onlyRecommendChildren?: boolean;
|
747
772
|
logical?: import("./utils").SearchLogical;
|
748
773
|
showLogicalPanel?: boolean;
|
774
|
+
isCustomMenu?: boolean;
|
749
775
|
};
|
750
776
|
type: import("./utils").SearchItemType;
|
751
777
|
readonly multiple: boolean;
|
@@ -771,6 +797,7 @@ declare const BkSearchSelect: {
|
|
771
797
|
readonly keyInnerHtml: string;
|
772
798
|
readonly keyInnerText: string;
|
773
799
|
readonly showLogical: boolean;
|
800
|
+
readonly isCustomMenu: boolean;
|
774
801
|
isSpecialType: () => boolean;
|
775
802
|
addValue: (item: import("./utils").ICommonItem) => void;
|
776
803
|
str2Values: (str: string) => import("./utils").ICommonItem[];
|
@@ -794,6 +821,7 @@ declare const BkSearchSelect: {
|
|
794
821
|
handleClickSearch: (e: MouseEvent) => void;
|
795
822
|
localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
|
796
823
|
resolveClassName: (cls: string) => string;
|
824
|
+
handleSelectedKey: (a: any) => void;
|
797
825
|
t: import("vue").ComputedRef<{
|
798
826
|
pleaseSelect: string;
|
799
827
|
loading: string;
|
@@ -861,6 +889,7 @@ declare const BkSearchSelect: {
|
|
861
889
|
};
|
862
890
|
}>> & {
|
863
891
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
892
|
+
onSelectKey?: (...args: any[]) => any;
|
864
893
|
onSearch?: (...args: any[]) => any;
|
865
894
|
}, {
|
866
895
|
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
@@ -888,6 +917,7 @@ declare const BkSearchSelect: {
|
|
888
917
|
onFocus?: (...args: any[]) => any;
|
889
918
|
onDelete?: (...args: any[]) => any;
|
890
919
|
onAdd?: (...args: any[]) => any;
|
920
|
+
onSelectKey?: (...args: any[]) => any;
|
891
921
|
}, {
|
892
922
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
893
923
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -933,6 +963,7 @@ declare const BkSearchSelect: {
|
|
933
963
|
inputEnterForWrapper: () => Promise<void>;
|
934
964
|
inputClearForWrapper: () => void;
|
935
965
|
deleteInputTextNode: () => void;
|
966
|
+
customPanelSubmit: (value: string) => void;
|
936
967
|
t: import("vue").ComputedRef<{
|
937
968
|
pleaseSelect: string;
|
938
969
|
loading: string;
|
@@ -943,7 +974,7 @@ declare const BkSearchSelect: {
|
|
943
974
|
and: string;
|
944
975
|
logical: string;
|
945
976
|
}>;
|
946
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
977
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
947
978
|
data: {
|
948
979
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
949
980
|
required: true;
|
@@ -968,12 +999,15 @@ declare const BkSearchSelect: {
|
|
968
999
|
onFocus?: (...args: any[]) => any;
|
969
1000
|
onDelete?: (...args: any[]) => any;
|
970
1001
|
onAdd?: (...args: any[]) => any;
|
1002
|
+
onSelectKey?: (...args: any[]) => any;
|
971
1003
|
}, {
|
972
1004
|
mode: import("./utils").SearchInputMode;
|
973
1005
|
conditions: import("./utils").ICommonItem[];
|
974
1006
|
showInputBefore: boolean;
|
975
1007
|
showCondition: boolean;
|
976
|
-
}, true, {}, {
|
1008
|
+
}, true, {}, import("vue").SlotsType<{
|
1009
|
+
menu: import("./utils").MenuSlotParams;
|
1010
|
+
}>, {
|
977
1011
|
P: {};
|
978
1012
|
B: {};
|
979
1013
|
D: {};
|
@@ -1005,6 +1039,7 @@ declare const BkSearchSelect: {
|
|
1005
1039
|
onFocus?: (...args: any[]) => any;
|
1006
1040
|
onDelete?: (...args: any[]) => any;
|
1007
1041
|
onAdd?: (...args: any[]) => any;
|
1042
|
+
onSelectKey?: (...args: any[]) => any;
|
1008
1043
|
}, {
|
1009
1044
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
1010
1045
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -1050,6 +1085,7 @@ declare const BkSearchSelect: {
|
|
1050
1085
|
inputEnterForWrapper: () => Promise<void>;
|
1051
1086
|
inputClearForWrapper: () => void;
|
1052
1087
|
deleteInputTextNode: () => void;
|
1088
|
+
customPanelSubmit: (value: string) => void;
|
1053
1089
|
t: import("vue").ComputedRef<{
|
1054
1090
|
pleaseSelect: string;
|
1055
1091
|
loading: string;
|
@@ -1132,6 +1168,7 @@ declare const BkSearchSelect: {
|
|
1132
1168
|
onlyRecommendChildren?: boolean;
|
1133
1169
|
logical?: import("./utils").SearchLogical;
|
1134
1170
|
showLogicalPanel?: boolean;
|
1171
|
+
isCustomMenu?: boolean;
|
1135
1172
|
};
|
1136
1173
|
type: import("./utils").SearchItemType;
|
1137
1174
|
readonly multiple: boolean;
|
@@ -1157,6 +1194,7 @@ declare const BkSearchSelect: {
|
|
1157
1194
|
readonly keyInnerHtml: string;
|
1158
1195
|
readonly keyInnerText: string;
|
1159
1196
|
readonly showLogical: boolean;
|
1197
|
+
readonly isCustomMenu: boolean;
|
1160
1198
|
isSpecialType: () => boolean;
|
1161
1199
|
addValue: (item: import("./utils").ICommonItem) => void;
|
1162
1200
|
str2Values: (str: string) => import("./utils").ICommonItem[];
|
@@ -1180,6 +1218,7 @@ declare const BkSearchSelect: {
|
|
1180
1218
|
handleClickSearch: (e: MouseEvent) => void;
|
1181
1219
|
localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
|
1182
1220
|
resolveClassName: (cls: string) => string;
|
1221
|
+
handleSelectedKey: (a: any) => void;
|
1183
1222
|
t: import("vue").ComputedRef<{
|
1184
1223
|
pleaseSelect: string;
|
1185
1224
|
loading: string;
|
@@ -1190,7 +1229,7 @@ declare const BkSearchSelect: {
|
|
1190
1229
|
and: string;
|
1191
1230
|
logical: string;
|
1192
1231
|
}>;
|
1193
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue")[], "search" | "update:modelValue", {
|
1232
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "selectKey")[], "search" | "update:modelValue" | "selectKey", {
|
1194
1233
|
data: import("./utils").ISearchItem[];
|
1195
1234
|
maxHeight: number;
|
1196
1235
|
clearable: boolean;
|
@@ -1200,6 +1239,11 @@ declare const BkSearchSelect: {
|
|
1200
1239
|
valueBehavior: "all" | "need-key";
|
1201
1240
|
shrink: boolean;
|
1202
1241
|
uniqueSelect: boolean;
|
1203
|
-
}, {}, string,
|
1242
|
+
}, {}, string, import("vue").SlotsType<{
|
1243
|
+
menu: import("./utils").MenuSlotParams;
|
1244
|
+
prepend: void;
|
1245
|
+
append: void;
|
1246
|
+
validate: void;
|
1247
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
1204
1248
|
export default BkSearchSelect;
|
1205
1249
|
export { BkSearchSelect };
|