bkui-vue 1.0.3-beta.58 → 1.0.3-beta.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/dist/index.cjs.js +20 -20
- package/dist/index.esm.js +2686 -2681
- package/dist/index.umd.js +20 -20
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/search-select/index.d.ts +6 -0
- package/lib/search-select/index.js +14 -1
- package/lib/search-select/input.d.ts +1 -0
- package/lib/search-select/search-select.css +1 -0
- package/lib/search-select/search-select.d.ts +2 -0
- package/lib/search-select/search-select.less +1 -0
- package/lib/search-select/search-select.variable.css +1 -0
- package/lib/search-select/selected.d.ts +2 -0
- package/package.json +1 -1
@@ -112,6 +112,7 @@ declare const BkSearchSelect: {
|
|
112
112
|
resolveClassName: (cls: string) => string;
|
113
113
|
inputFocusForWrapper: () => void;
|
114
114
|
inputEnterForWrapper: () => void;
|
115
|
+
inputClearForWrapper: () => void;
|
115
116
|
t: import("vue").ComputedRef<{
|
116
117
|
pleaseSelect: string;
|
117
118
|
loading: string;
|
@@ -227,6 +228,7 @@ declare const BkSearchSelect: {
|
|
227
228
|
resolveClassName: (cls: string) => string;
|
228
229
|
inputFocusForWrapper: () => void;
|
229
230
|
inputEnterForWrapper: () => void;
|
231
|
+
inputClearForWrapper: () => void;
|
230
232
|
t: import("vue").ComputedRef<{
|
231
233
|
pleaseSelect: string;
|
232
234
|
loading: string;
|
@@ -541,6 +543,7 @@ declare const BkSearchSelect: {
|
|
541
543
|
resolveClassName: (cls: string) => string;
|
542
544
|
inputFocusForWrapper: () => void;
|
543
545
|
inputEnterForWrapper: () => void;
|
546
|
+
inputClearForWrapper: () => void;
|
544
547
|
t: import("vue").ComputedRef<{
|
545
548
|
pleaseSelect: string;
|
546
549
|
loading: string;
|
@@ -656,6 +659,7 @@ declare const BkSearchSelect: {
|
|
656
659
|
resolveClassName: (cls: string) => string;
|
657
660
|
inputFocusForWrapper: () => void;
|
658
661
|
inputEnterForWrapper: () => void;
|
662
|
+
inputClearForWrapper: () => void;
|
659
663
|
t: import("vue").ComputedRef<{
|
660
664
|
pleaseSelect: string;
|
661
665
|
loading: string;
|
@@ -923,6 +927,7 @@ declare const BkSearchSelect: {
|
|
923
927
|
resolveClassName: (cls: string) => string;
|
924
928
|
inputFocusForWrapper: () => void;
|
925
929
|
inputEnterForWrapper: () => void;
|
930
|
+
inputClearForWrapper: () => void;
|
926
931
|
t: import("vue").ComputedRef<{
|
927
932
|
pleaseSelect: string;
|
928
933
|
loading: string;
|
@@ -1038,6 +1043,7 @@ declare const BkSearchSelect: {
|
|
1038
1043
|
resolveClassName: (cls: string) => string;
|
1039
1044
|
inputFocusForWrapper: () => void;
|
1040
1045
|
inputEnterForWrapper: () => void;
|
1046
|
+
inputClearForWrapper: () => void;
|
1041
1047
|
t: import("vue").ComputedRef<{
|
1042
1048
|
pleaseSelect: string;
|
1043
1049
|
loading: string;
|
@@ -1622,7 +1622,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1622
1622
|
var _popoverRef$value, _props$clickOutside;
|
1623
1623
|
if (!((_popoverRef$value = popoverRef.value) !== null && _popoverRef$value !== void 0 && _popoverRef$value.contains(e.target)) && (_props$clickOutside = props.clickOutside) !== null && _props$clickOutside !== void 0 && _props$clickOutside.call(props, e.target, popoverRef.value)) {
|
1624
1624
|
if (props.mode === SearchInputMode.EDIT || usingItem.value) {
|
1625
|
-
usingItem.value && handleKeyEnter()
|
1625
|
+
usingItem.value && handleKeyEnter().then(function (v) {
|
1626
|
+
return v && clearInput();
|
1627
|
+
});
|
1626
1628
|
if (!usingItem.value) {
|
1627
1629
|
emit('focus', false);
|
1628
1630
|
}
|
@@ -2181,6 +2183,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2181
2183
|
}
|
2182
2184
|
function clearInput() {
|
2183
2185
|
if (!inputRef.value) return;
|
2186
|
+
keyword.value = '';
|
2184
2187
|
inputRef.value.innerText = '';
|
2185
2188
|
}
|
2186
2189
|
function handleLogicalChange(logical) {
|
@@ -2213,10 +2216,18 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2213
2216
|
return v && clearInput();
|
2214
2217
|
});
|
2215
2218
|
}
|
2219
|
+
function inputClearForWrapper() {
|
2220
|
+
keyword.value = '';
|
2221
|
+
showNoSelectValueError.value = false;
|
2222
|
+
showPopover.value = false;
|
2223
|
+
usingItem.value = null;
|
2224
|
+
(0,external_vue_namespaceObject.nextTick)(clearInput);
|
2225
|
+
}
|
2216
2226
|
// expose
|
2217
2227
|
expose({
|
2218
2228
|
inputFocusForWrapper: inputFocusForWrapper,
|
2219
2229
|
inputEnterForWrapper: inputEnterForWrapper,
|
2230
|
+
inputClearForWrapper: inputClearForWrapper,
|
2220
2231
|
handleInputFocus: handleInputFocus,
|
2221
2232
|
isFocus: isFocus
|
2222
2233
|
});
|
@@ -2246,6 +2257,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2246
2257
|
resolveClassName: resolveClassName,
|
2247
2258
|
inputFocusForWrapper: inputFocusForWrapper,
|
2248
2259
|
inputEnterForWrapper: inputEnterForWrapper,
|
2260
|
+
inputClearForWrapper: inputClearForWrapper,
|
2249
2261
|
t: t
|
2250
2262
|
};
|
2251
2263
|
},
|
@@ -2769,6 +2781,7 @@ var SearchSelectProps = {
|
|
2769
2781
|
function handleClearAll() {
|
2770
2782
|
selectedList.value = [];
|
2771
2783
|
overflowIndex.value = -1;
|
2784
|
+
inputRef.value.inputClearForWrapper();
|
2772
2785
|
emit('update:modelValue', []);
|
2773
2786
|
}
|
2774
2787
|
function handleInputOutside(target) {
|
@@ -64,6 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
64
|
resolveClassName: (cls: string) => string;
|
65
65
|
inputFocusForWrapper: () => void;
|
66
66
|
inputEnterForWrapper: () => void;
|
67
|
+
inputClearForWrapper: () => void;
|
67
68
|
t: import("vue").ComputedRef<{
|
68
69
|
pleaseSelect: string;
|
69
70
|
loading: string;
|
@@ -152,6 +152,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
152
152
|
resolveClassName: (cls: string) => string;
|
153
153
|
inputFocusForWrapper: () => void;
|
154
154
|
inputEnterForWrapper: () => void;
|
155
|
+
inputClearForWrapper: () => void;
|
155
156
|
t: import("vue").ComputedRef<{
|
156
157
|
pleaseSelect: string;
|
157
158
|
loading: string;
|
@@ -267,6 +268,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
267
268
|
resolveClassName: (cls: string) => string;
|
268
269
|
inputFocusForWrapper: () => void;
|
269
270
|
inputEnterForWrapper: () => void;
|
271
|
+
inputClearForWrapper: () => void;
|
270
272
|
t: import("vue").ComputedRef<{
|
271
273
|
pleaseSelect: string;
|
272
274
|
loading: string;
|
@@ -89,6 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
89
|
resolveClassName: (cls: string) => string;
|
90
90
|
inputFocusForWrapper: () => void;
|
91
91
|
inputEnterForWrapper: () => void;
|
92
|
+
inputClearForWrapper: () => void;
|
92
93
|
t: import("vue").ComputedRef<{
|
93
94
|
pleaseSelect: string;
|
94
95
|
loading: string;
|
@@ -204,6 +205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
204
205
|
resolveClassName: (cls: string) => string;
|
205
206
|
inputFocusForWrapper: () => void;
|
206
207
|
inputEnterForWrapper: () => void;
|
208
|
+
inputClearForWrapper: () => void;
|
207
209
|
t: import("vue").ComputedRef<{
|
208
210
|
pleaseSelect: string;
|
209
211
|
loading: string;
|