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
@@ -46,6 +46,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
onFocus?: (...args: any[]) => any;
|
47
47
|
onDelete?: (...args: any[]) => any;
|
48
48
|
onAdd?: (...args: any[]) => any;
|
49
|
+
onSelectKey?: (...args: any[]) => any;
|
49
50
|
}, {
|
50
51
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
51
52
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -91,6 +92,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
92
|
inputEnterForWrapper: () => Promise<void>;
|
92
93
|
inputClearForWrapper: () => void;
|
93
94
|
deleteInputTextNode: () => void;
|
95
|
+
customPanelSubmit: (value: string) => void;
|
94
96
|
t: import("vue").ComputedRef<{
|
95
97
|
pleaseSelect: string;
|
96
98
|
loading: string;
|
@@ -101,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
103
|
and: string;
|
102
104
|
logical: string;
|
103
105
|
}>;
|
104
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
106
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
105
107
|
data: {
|
106
108
|
type: PropType<ISearchItem[]>;
|
107
109
|
required: true;
|
@@ -126,12 +128,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
126
128
|
onFocus?: (...args: any[]) => any;
|
127
129
|
onDelete?: (...args: any[]) => any;
|
128
130
|
onAdd?: (...args: any[]) => any;
|
131
|
+
onSelectKey?: (...args: any[]) => any;
|
129
132
|
}, {
|
130
133
|
mode: SearchInputMode;
|
131
134
|
conditions: ICommonItem[];
|
132
135
|
showInputBefore: boolean;
|
133
136
|
showCondition: boolean;
|
134
|
-
}, true, {}, {
|
137
|
+
}, true, {}, import("vue").SlotsType<{
|
138
|
+
menu: import("./utils").MenuSlotParams;
|
139
|
+
}>, {
|
135
140
|
P: {};
|
136
141
|
B: {};
|
137
142
|
D: {};
|
@@ -163,6 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
163
168
|
onFocus?: (...args: any[]) => any;
|
164
169
|
onDelete?: (...args: any[]) => any;
|
165
170
|
onAdd?: (...args: any[]) => any;
|
171
|
+
onSelectKey?: (...args: any[]) => any;
|
166
172
|
}, {
|
167
173
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
168
174
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -208,6 +214,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
208
214
|
inputEnterForWrapper: () => Promise<void>;
|
209
215
|
inputClearForWrapper: () => void;
|
210
216
|
deleteInputTextNode: () => void;
|
217
|
+
customPanelSubmit: (value: string) => void;
|
211
218
|
t: import("vue").ComputedRef<{
|
212
219
|
pleaseSelect: string;
|
213
220
|
loading: string;
|
@@ -232,7 +239,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
232
239
|
handleInputOutside: (target: Node) => boolean;
|
233
240
|
handleAddSelected: (item: SelectedItem, index: number) => void;
|
234
241
|
handleInputFocus: (isFocus: boolean) => void;
|
235
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "delete"[], "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
242
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "selectKey")[], "delete" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
236
243
|
data: {
|
237
244
|
type: PropType<ISearchItem[]>;
|
238
245
|
required: true;
|
@@ -254,6 +261,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
254
261
|
valueBehavior: PropType<ValueBehavior>;
|
255
262
|
}>> & {
|
256
263
|
onDelete?: (...args: any[]) => any;
|
264
|
+
onSelectKey?: (...args: any[]) => any;
|
257
265
|
}, {
|
258
266
|
conditions: ICommonItem[];
|
259
267
|
overflowIndex: number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ComputedRef, InjectionKey, Ref
|
1
|
+
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
2
2
|
/**
|
3
3
|
* @description: 获取menu list方法
|
4
4
|
* @param {ISearchItem} item 已选择的key字段 为空则代表当前并未选择key字段
|
@@ -16,11 +16,10 @@ export declare enum DeleteBehavior {
|
|
16
16
|
export type GetMenuListFunc = (item: ISearchItem, keyword: string) => Promise<ISearchItem[]>;
|
17
17
|
export type ValidateValuesFunc = (item: ISearchItem, values: ICommonItem[]) => Promise<string | true>;
|
18
18
|
export type MenuSlotParams = {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
getSearchNode: (str: string) => string | (string | VNode)[];
|
19
|
+
value: ICommonItem;
|
20
|
+
id: string;
|
21
|
+
name: string;
|
22
|
+
onSubmit: (value: string) => void;
|
24
23
|
};
|
25
24
|
export interface ISearchSelectProvider {
|
26
25
|
onEditClick: (item: SelectedItem, index: number) => void;
|
@@ -67,6 +66,7 @@ export interface ISearchItem {
|
|
67
66
|
onlyRecommendChildren?: boolean;
|
68
67
|
logical?: SearchLogical;
|
69
68
|
showLogicalPanel?: boolean;
|
69
|
+
isCustomMenu?: boolean;
|
70
70
|
}
|
71
71
|
export declare enum SearchLogical {
|
72
72
|
AND = "&",
|
@@ -97,6 +97,7 @@ export declare class SelectedItem {
|
|
97
97
|
get keyInnerHtml(): string;
|
98
98
|
get keyInnerText(): string;
|
99
99
|
get showLogical(): boolean;
|
100
|
+
get isCustomMenu(): boolean;
|
100
101
|
isSpecialType(): boolean;
|
101
102
|
addValue(item: ICommonItem): void;
|
102
103
|
str2Values(str: string): ICommonItem[];
|