bkui-vue 1.0.3-beta.8 → 2.0.1-beta.1
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 +71 -73
- package/dist/index.esm.js +20956 -18684
- package/dist/index.umd.js +71 -73
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/alert/alert.variable.css +3 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +4 -4
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +9 -1
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/components.d.ts +2 -0
- package/lib/components.js +62 -505
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +4 -0
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/date-picker/base/month-table.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +70 -32
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +4 -0
- package/lib/dialog/dialog.css +176 -150
- package/lib/dialog/dialog.d.ts +40 -109
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +179 -150
- package/lib/dialog/index.d.ts +99 -263
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +10 -35
- package/lib/directives/index.js +0 -1
- package/lib/dist.index.js +5 -62
- package/lib/divider/divider.variable.css +3 -0
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/exception/exception.variable.css +3 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +3 -1
- package/lib/hooks.js +1 -48
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +5 -2
- package/lib/index.js +7 -72
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +18 -16
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.js +7 -1
- package/lib/input/input.variable.css +3 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +41 -309
- package/lib/modal/index.js +285 -671
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +155 -76
- package/lib/modal/modal.d.ts +18 -116
- package/lib/modal/modal.less +107 -55
- package/lib/modal/modal.variable.css +158 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/index.js +46 -52
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +45 -26
- package/lib/pop-confirm/index.js +8 -5
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +45 -26
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +18 -64
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -26
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18763 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/scrollbar/scrollbar.variable.css +204 -0
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +701 -366
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +116 -6
- package/lib/search-select/utils.d.ts +19 -6
- package/lib/select/index.d.ts +124 -6
- package/lib/select/index.js +1336 -72
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +55 -12
- package/lib/select/select.d.ts +50 -2
- package/lib/select/select.less +69 -19
- package/lib/select/select.variable.css +58 -12
- package/lib/select/selectTagInput.d.ts +7 -0
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +70 -50
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +5 -0
- package/lib/sideslider/index.d.ts +55 -185
- package/lib/sideslider/index.js +81 -55
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +25 -87
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +45 -5
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +7 -17
- package/lib/table/const.d.ts +4 -4
- package/lib/table/index.d.ts +29 -64
- package/lib/table/index.js +18068 -613
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +11 -0
- package/lib/table/props.d.ts +17 -7
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +11 -0
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +6 -43
- package/lib/table/use-column.d.ts +9 -10
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +1 -1
- package/lib/table-column/index.d.ts +92 -266
- package/lib/table-column/index.js +24 -98
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +54 -65
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/constant.d.ts +3 -1
- package/lib/tree/index.d.ts +44 -0
- package/lib/tree/index.js +17548 -25
- package/lib/tree/props.d.ts +18 -0
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +28 -2
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +21 -30
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +3 -2
- package/lib/shared/mask.d.ts +0 -11
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
validateValues: PropType<ValidateValuesFunc>;
|
22
22
|
valueBehavior: PropType<ValueBehavior>;
|
23
23
|
}, {
|
24
|
-
inputRef: import("vue").Ref<import("vue").
|
24
|
+
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
25
25
|
data: {
|
26
26
|
type: PropType<ISearchItem[]>;
|
27
27
|
required: true;
|
@@ -42,6 +42,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
42
42
|
getMenuList: PropType<GetMenuListFunc>;
|
43
43
|
validateValues: PropType<ValidateValuesFunc>;
|
44
44
|
valueBehavior: PropType<ValueBehavior>;
|
45
|
+
}>> & {
|
46
|
+
onFocus?: (...args: any[]) => any;
|
47
|
+
onDelete?: (...args: any[]) => any;
|
48
|
+
onAdd?: (...args: any[]) => any;
|
49
|
+
onSelectKey?: (...args: any[]) => any;
|
45
50
|
}, {
|
46
51
|
popoverRef: import("vue").Ref<HTMLDivElement>;
|
47
52
|
inputRef: import("vue").Ref<HTMLDivElement>;
|
@@ -74,14 +79,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
74
79
|
};
|
75
80
|
documentArrowEvent: (e: KeyboardEvent) => void;
|
76
81
|
handleClickOutside: (e: MouseEvent) => void;
|
77
|
-
handleInputFocus: (
|
82
|
+
handleInputFocus: () => void;
|
78
83
|
handleInputChange: (event: Event) => void;
|
84
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
79
85
|
handleLogicalChange: (logical: SearchLogical) => void;
|
80
86
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
81
87
|
handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
82
88
|
handleSelectCondtionItem: (item: ICommonItem) => void;
|
83
89
|
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
84
90
|
resolveClassName: (cls: string) => string;
|
91
|
+
inputFocusForWrapper: () => void;
|
92
|
+
inputEnterForWrapper: () => Promise<void>;
|
93
|
+
inputClearForWrapper: () => void;
|
94
|
+
deleteInputTextNode: () => void;
|
95
|
+
customPanelSubmit: (value: string) => void;
|
85
96
|
t: import("vue").ComputedRef<{
|
86
97
|
pleaseSelect: string;
|
87
98
|
loading: string;
|
@@ -92,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
92
103
|
and: string;
|
93
104
|
logical: string;
|
94
105
|
}>;
|
95
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add"
|
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<{
|
96
107
|
data: {
|
97
108
|
type: PropType<ISearchItem[]>;
|
98
109
|
required: true;
|
@@ -117,20 +128,118 @@ declare const _default: import("vue").DefineComponent<{
|
|
117
128
|
onFocus?: (...args: any[]) => any;
|
118
129
|
onDelete?: (...args: any[]) => any;
|
119
130
|
onAdd?: (...args: any[]) => any;
|
131
|
+
onSelectKey?: (...args: any[]) => any;
|
120
132
|
}, {
|
121
133
|
mode: SearchInputMode;
|
122
134
|
conditions: ICommonItem[];
|
123
135
|
showInputBefore: boolean;
|
124
136
|
showCondition: boolean;
|
125
|
-
}, {}
|
137
|
+
}, true, {}, import("vue").SlotsType<{
|
138
|
+
menu: import("./utils").MenuSlotParams;
|
139
|
+
}>, {
|
140
|
+
P: {};
|
141
|
+
B: {};
|
142
|
+
D: {};
|
143
|
+
C: {};
|
144
|
+
M: {};
|
145
|
+
Defaults: {};
|
146
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
147
|
+
data: {
|
148
|
+
type: PropType<ISearchItem[]>;
|
149
|
+
required: true;
|
150
|
+
};
|
151
|
+
showInputBefore: BooleanConstructor;
|
152
|
+
showCondition: BooleanConstructor;
|
153
|
+
clickOutside: FunctionConstructor;
|
154
|
+
placeholder: StringConstructor;
|
155
|
+
conditions: {
|
156
|
+
type: PropType<ICommonItem[]>;
|
157
|
+
default: () => any[];
|
158
|
+
};
|
159
|
+
defautUsingItem: PropType<SelectedItem>;
|
160
|
+
mode: {
|
161
|
+
type: PropType<SearchInputMode>;
|
162
|
+
default: SearchInputMode;
|
163
|
+
};
|
164
|
+
getMenuList: PropType<GetMenuListFunc>;
|
165
|
+
validateValues: PropType<ValidateValuesFunc>;
|
166
|
+
valueBehavior: PropType<ValueBehavior>;
|
167
|
+
}>> & {
|
168
|
+
onFocus?: (...args: any[]) => any;
|
169
|
+
onDelete?: (...args: any[]) => any;
|
170
|
+
onAdd?: (...args: any[]) => any;
|
171
|
+
onSelectKey?: (...args: any[]) => any;
|
172
|
+
}, {
|
173
|
+
popoverRef: import("vue").Ref<HTMLDivElement>;
|
174
|
+
inputRef: import("vue").Ref<HTMLDivElement>;
|
175
|
+
keyword: import("vue").Ref<string>;
|
176
|
+
loading: import("vue").Ref<boolean>;
|
177
|
+
remoteMenuList: import("vue").Ref<{
|
178
|
+
id: string;
|
179
|
+
name: string;
|
180
|
+
disabled?: boolean;
|
181
|
+
realId?: string;
|
182
|
+
value?: {
|
183
|
+
name: string;
|
184
|
+
id: string;
|
185
|
+
realId?: string;
|
186
|
+
isSelected?: boolean;
|
187
|
+
logical?: SearchLogical;
|
188
|
+
};
|
189
|
+
isSelected?: boolean;
|
190
|
+
logical?: SearchLogical;
|
191
|
+
}[]>;
|
192
|
+
menuList: import("vue").Ref<ISearchItem[]>;
|
193
|
+
menuHoverId: import("vue").Ref<string>;
|
194
|
+
isFocus: import("vue").Ref<boolean>;
|
195
|
+
usingItem: import("vue").Ref<SelectedItem>;
|
196
|
+
showPopover: import("vue").Ref<boolean>;
|
197
|
+
showNoSelectValueError: import("vue").Ref<boolean>;
|
198
|
+
debounceSetMenuList: {
|
199
|
+
(this: any): any;
|
200
|
+
cancel(): void;
|
201
|
+
};
|
202
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
203
|
+
handleClickOutside: (e: MouseEvent) => void;
|
204
|
+
handleInputFocus: () => void;
|
205
|
+
handleInputChange: (event: Event) => void;
|
206
|
+
handleInputPaste: (event: ClipboardEvent) => void;
|
207
|
+
handleLogicalChange: (logical: SearchLogical) => void;
|
208
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
209
|
+
handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
210
|
+
handleSelectCondtionItem: (item: ICommonItem) => void;
|
211
|
+
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
212
|
+
resolveClassName: (cls: string) => string;
|
213
|
+
inputFocusForWrapper: () => void;
|
214
|
+
inputEnterForWrapper: () => Promise<void>;
|
215
|
+
inputClearForWrapper: () => void;
|
216
|
+
deleteInputTextNode: () => void;
|
217
|
+
customPanelSubmit: (value: string) => void;
|
218
|
+
t: import("vue").ComputedRef<{
|
219
|
+
pleaseSelect: string;
|
220
|
+
loading: string;
|
221
|
+
filterQueryMustHasValue: string;
|
222
|
+
ok: string;
|
223
|
+
cancel: string;
|
224
|
+
or: string;
|
225
|
+
and: string;
|
226
|
+
logical: string;
|
227
|
+
}>;
|
228
|
+
}, {}, {}, {}, {
|
229
|
+
mode: SearchInputMode;
|
230
|
+
conditions: ICommonItem[];
|
231
|
+
showInputBefore: boolean;
|
232
|
+
showCondition: boolean;
|
233
|
+
}>>;
|
234
|
+
selectedInputRef: import("vue").Ref<HTMLDivElement>;
|
126
235
|
editKey: import("vue").Ref<String>;
|
127
236
|
copySeletedItem: (item: SelectedItem) => SelectedItem;
|
128
237
|
handleDeleteSelected: (index: number) => void;
|
129
238
|
handleEditSeleted: (e: MouseEvent, item: SelectedItem, index: number) => void;
|
130
|
-
handleInputOutside: () => boolean;
|
239
|
+
handleInputOutside: (target: Node) => boolean;
|
131
240
|
handleAddSelected: (item: SelectedItem, index: number) => void;
|
132
241
|
handleInputFocus: (isFocus: boolean) => void;
|
133
|
-
}, 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<{
|
134
243
|
data: {
|
135
244
|
type: PropType<ISearchItem[]>;
|
136
245
|
required: true;
|
@@ -152,6 +261,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
152
261
|
valueBehavior: PropType<ValueBehavior>;
|
153
262
|
}>> & {
|
154
263
|
onDelete?: (...args: any[]) => any;
|
264
|
+
onSelectKey?: (...args: any[]) => any;
|
155
265
|
}, {
|
156
266
|
conditions: ICommonItem[];
|
157
267
|
overflowIndex: number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InjectionKey, Ref
|
1
|
+
import { ComputedRef, InjectionKey, Ref } from 'vue';
|
2
2
|
/**
|
3
3
|
* @description: 获取menu list方法
|
4
4
|
* @param {ISearchItem} item 已选择的key字段 为空则代表当前并未选择key字段
|
@@ -9,14 +9,17 @@ export declare enum ValueBehavior {
|
|
9
9
|
ALL = "all",
|
10
10
|
NEEDKEY = "need-key"
|
11
11
|
}
|
12
|
+
export declare enum DeleteBehavior {
|
13
|
+
CHAR = "delete-char",
|
14
|
+
VALUE = "delete-value"
|
15
|
+
}
|
12
16
|
export type GetMenuListFunc = (item: ISearchItem, keyword: string) => Promise<ISearchItem[]>;
|
13
17
|
export type ValidateValuesFunc = (item: ISearchItem, values: ICommonItem[]) => Promise<string | true>;
|
14
18
|
export type MenuSlotParams = {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
getSearchNode: (str: string) => string | (string | VNode)[];
|
19
|
+
value: ICommonItem;
|
20
|
+
id: string;
|
21
|
+
name: string;
|
22
|
+
onSubmit: (value: string) => void;
|
20
23
|
};
|
21
24
|
export interface ISearchSelectProvider {
|
22
25
|
onEditClick: (item: SelectedItem, index: number) => void;
|
@@ -24,6 +27,8 @@ export interface ISearchSelectProvider {
|
|
24
27
|
onEditBlur: () => void;
|
25
28
|
onValidate: (str: string) => void;
|
26
29
|
editKey: Ref<String>;
|
30
|
+
searchData: ComputedRef<ISearchItem[]>;
|
31
|
+
isClickOutside: (target: Node) => boolean;
|
27
32
|
}
|
28
33
|
export declare const SEARCH_SLECT_PROVIDER_KEY: InjectionKey<ISearchSelectProvider>;
|
29
34
|
export declare const useSearchSelectProvider: (data: ISearchSelectProvider) => void;
|
@@ -45,6 +50,8 @@ export interface ISearchValue extends Omit<ICommonItem, 'disabled' | 'value'> {
|
|
45
50
|
type?: SearchItemType;
|
46
51
|
values?: Omit<ICommonItem, 'disabled' | 'logical'>[];
|
47
52
|
}
|
53
|
+
export declare const ValueSplitRegex: RegExp;
|
54
|
+
export declare const ValueSplitTestRegex: RegExp;
|
48
55
|
export interface ISearchItem {
|
49
56
|
id: string;
|
50
57
|
name: string;
|
@@ -59,6 +66,7 @@ export interface ISearchItem {
|
|
59
66
|
onlyRecommendChildren?: boolean;
|
60
67
|
logical?: SearchLogical;
|
61
68
|
showLogicalPanel?: boolean;
|
69
|
+
isCustomMenu?: boolean;
|
62
70
|
}
|
63
71
|
export declare enum SearchLogical {
|
64
72
|
AND = "&",
|
@@ -78,6 +86,7 @@ export declare class SelectedItem {
|
|
78
86
|
values: ICommonItem[];
|
79
87
|
condition: string;
|
80
88
|
logical: SearchLogical;
|
89
|
+
nameRenderkey: string;
|
81
90
|
constructor(searchItem: ISearchItem, type?: SearchItemType);
|
82
91
|
get multiple(): boolean;
|
83
92
|
get placeholder(): string;
|
@@ -88,8 +97,12 @@ export declare class SelectedItem {
|
|
88
97
|
get keyInnerHtml(): string;
|
89
98
|
get keyInnerText(): string;
|
90
99
|
get showLogical(): boolean;
|
100
|
+
get isCustomMenu(): boolean;
|
91
101
|
isSpecialType(): boolean;
|
92
102
|
addValue(item: ICommonItem): void;
|
103
|
+
str2Values(str: string): ICommonItem[];
|
104
|
+
addValues(str: string, mergeValues?: boolean): void;
|
105
|
+
getValue(str: string): ICommonItem;
|
93
106
|
toValue(): ISearchValue;
|
94
107
|
toValueKey(): string;
|
95
108
|
isInValueList(item: ICommonItem): boolean;
|