bkui-vue 2.0.1-beta.44 → 2.0.1-beta.45

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/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.44";
7
+ export const version = "2.0.1-beta.45";
8
8
  window.__bkui_vue_version__ = version;
@@ -35,6 +35,11 @@ declare const BkResizeLayout: {
35
35
  collapsible: import("vue-types").VueTypeValidableDef<boolean> & {
36
36
  default: boolean;
37
37
  };
38
+ isCollapsed: import("vue-types").VueTypeValidableDef<boolean> & {
39
+ default: boolean;
40
+ } & {
41
+ default: boolean;
42
+ };
38
43
  autoMinimize: import("vue-types").VueTypeDef<number | boolean> & {
39
44
  default: number | boolean;
40
45
  };
@@ -105,6 +110,11 @@ declare const BkResizeLayout: {
105
110
  collapsible: import("vue-types").VueTypeValidableDef<boolean> & {
106
111
  default: boolean;
107
112
  };
113
+ isCollapsed: import("vue-types").VueTypeValidableDef<boolean> & {
114
+ default: boolean;
115
+ } & {
116
+ default: boolean;
117
+ };
108
118
  autoMinimize: import("vue-types").VueTypeDef<number | boolean> & {
109
119
  default: number | boolean;
110
120
  };
@@ -129,6 +139,7 @@ declare const BkResizeLayout: {
129
139
  triggerOffset: number;
130
140
  initialDivide: string | number;
131
141
  immediate: boolean;
142
+ isCollapsed: boolean;
132
143
  autoMinimize: number | boolean;
133
144
  }, true, {}, {}, {
134
145
  P: {};
@@ -173,6 +184,11 @@ declare const BkResizeLayout: {
173
184
  collapsible: import("vue-types").VueTypeValidableDef<boolean> & {
174
185
  default: boolean;
175
186
  };
187
+ isCollapsed: import("vue-types").VueTypeValidableDef<boolean> & {
188
+ default: boolean;
189
+ } & {
190
+ default: boolean;
191
+ };
176
192
  autoMinimize: import("vue-types").VueTypeDef<number | boolean> & {
177
193
  default: number | boolean;
178
194
  };
@@ -218,6 +234,7 @@ declare const BkResizeLayout: {
218
234
  triggerOffset: number;
219
235
  initialDivide: string | number;
220
236
  immediate: boolean;
237
+ isCollapsed: boolean;
221
238
  autoMinimize: number | boolean;
222
239
  }>;
223
240
  __isFragment?: never;
@@ -259,6 +276,11 @@ declare const BkResizeLayout: {
259
276
  collapsible: import("vue-types").VueTypeValidableDef<boolean> & {
260
277
  default: boolean;
261
278
  };
279
+ isCollapsed: import("vue-types").VueTypeValidableDef<boolean> & {
280
+ default: boolean;
281
+ } & {
282
+ default: boolean;
283
+ };
262
284
  autoMinimize: import("vue-types").VueTypeDef<number | boolean> & {
263
285
  default: number | boolean;
264
286
  };
@@ -304,6 +326,7 @@ declare const BkResizeLayout: {
304
326
  triggerOffset: number;
305
327
  initialDivide: string | number;
306
328
  immediate: boolean;
329
+ isCollapsed: boolean;
307
330
  autoMinimize: number | boolean;
308
331
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
309
332
  export default BkResizeLayout;
@@ -85,7 +85,7 @@ function _defineProperty(obj, key, value) {
85
85
  ;// CONCATENATED MODULE: external "vue"
86
86
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
87
87
  var external_vue_y = x => () => x
88
- const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives, ["withModifiers"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withModifiers });
88
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives, ["withModifiers"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withModifiers });
89
89
  ;// CONCATENATED MODULE: external "../config-provider"
90
90
  var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
91
91
  var config_provider_y = x => () => x
@@ -138,6 +138,7 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
138
138
  immediate: shared_namespaceObject.PropTypes.bool,
139
139
  disabled: shared_namespaceObject.PropTypes.bool,
140
140
  collapsible: shared_namespaceObject.PropTypes.bool,
141
+ isCollapsed: shared_namespaceObject.PropTypes.bool.def(false),
141
142
  autoMinimize: shared_namespaceObject.PropTypes.oneOfType([Boolean, Number]).def(false),
142
143
  border: shared_namespaceObject.PropTypes.bool.def(true)
143
144
  },
@@ -152,11 +153,14 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
152
153
  max = _toRefs.max,
153
154
  min = _toRefs.min,
154
155
  immediate = _toRefs.immediate,
155
- autoMinimize = _toRefs.autoMinimize;
156
- var collapsed = (0,external_vue_namespaceObject.ref)(false);
156
+ autoMinimize = _toRefs.autoMinimize,
157
+ collapsible = _toRefs.collapsible,
158
+ isCollapsed = _toRefs.isCollapsed;
159
+ var collapsed = (0,external_vue_namespaceObject.ref)(isCollapsed.value);
157
160
  var asideContentVisible = (0,external_vue_namespaceObject.ref)(true);
158
161
  var minimized = (0,external_vue_namespaceObject.ref)(false);
159
162
  var limitMax = (0,external_vue_namespaceObject.ref)(null);
163
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
160
164
  var state = (0,external_vue_namespaceObject.ref)({});
161
165
  var bkResizeLayoutRef = (0,external_vue_namespaceObject.ref)(null);
162
166
  var resizeProxyRef = (0,external_vue_namespaceObject.ref)(null);
@@ -168,12 +172,19 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
168
172
  var cssPropKey = (0,external_vue_namespaceObject.computed)(function () {
169
173
  return vertical.value ? 'width' : 'height';
170
174
  });
171
- var asideStyle = (0,external_vue_namespaceObject.computed)(function () {
175
+ // 转换类型
176
+ var parseInitialDivide = (0,external_vue_namespaceObject.computed)(function () {
172
177
  var divide = initialDivide.value;
173
178
  if (typeof divide === 'number') {
174
179
  divide = divide <= min.value ? "".concat(min.value, "px") : "".concat(divide, "px");
175
180
  }
176
- return _defineProperty({}, cssPropKey.value, divide);
181
+ return divide;
182
+ });
183
+ var asideStyle = (0,external_vue_namespaceObject.computed)(function () {
184
+ if (collapsible.value && isCollapsed.value) {
185
+ return _defineProperty({}, cssPropKey.value, '0px');
186
+ }
187
+ return _defineProperty({}, cssPropKey.value, parseInitialDivide.value);
177
188
  });
178
189
  var triggerStyle = (0,external_vue_namespaceObject.computed)(function () {
179
190
  var style = _defineProperty(_defineProperty({}, "margin-".concat(placement.value), "".concat(triggerOffset.value - triggerWidth.value, "px")), cssPropKey.value, "".concat(triggerWidth.value, "px"));
@@ -316,7 +327,7 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
316
327
  asideRef.value.style[cssPropKey.value] = props.collapsible ? '0px' : '5px';
317
328
  } else {
318
329
  asideContentVisible.value = true;
319
- asideRef.value.style[cssPropKey.value] = asideRef.value.getAttribute("data-".concat(cssPropKey.value));
330
+ asideRef.value.style[cssPropKey.value] = asideRef.value.getAttribute("data-".concat(cssPropKey.value)) || parseInitialDivide.value;
320
331
  }
321
332
  };
322
333
  var setupAsideListener = function setupAsideListener(visible) {
@@ -328,6 +339,11 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
328
339
  asideRef.value.addEventListener('transitionend', removeClass);
329
340
  asideRef.value.style.transition = "".concat(cssPropKey.value, " cubic-bezier(0.4, 0, 0.2, 1) .3s");
330
341
  };
342
+ // 监听折叠状态变化
343
+ (0,external_vue_namespaceObject.watch)(isCollapsed, function () {
344
+ collapsed.value = isCollapsed.value;
345
+ setCollapse(collapsed.value);
346
+ });
331
347
  (0,external_vue_namespaceObject.onMounted)(function () {
332
348
  observer.observe(bkResizeLayoutRef.value);
333
349
  });
@@ -34,6 +34,11 @@ declare const _default: import("vue").DefineComponent<{
34
34
  collapsible: import("vue-types").VueTypeValidableDef<boolean> & {
35
35
  default: boolean;
36
36
  };
37
+ isCollapsed: import("vue-types").VueTypeValidableDef<boolean> & {
38
+ default: boolean;
39
+ } & {
40
+ default: boolean;
41
+ };
37
42
  autoMinimize: import("vue-types").VueTypeDef<number | boolean> & {
38
43
  default: number | boolean;
39
44
  };
@@ -99,6 +104,11 @@ declare const _default: import("vue").DefineComponent<{
99
104
  collapsible: import("vue-types").VueTypeValidableDef<boolean> & {
100
105
  default: boolean;
101
106
  };
107
+ isCollapsed: import("vue-types").VueTypeValidableDef<boolean> & {
108
+ default: boolean;
109
+ } & {
110
+ default: boolean;
111
+ };
102
112
  autoMinimize: import("vue-types").VueTypeDef<number | boolean> & {
103
113
  default: number | boolean;
104
114
  };
@@ -123,6 +133,7 @@ declare const _default: import("vue").DefineComponent<{
123
133
  triggerOffset: number;
124
134
  initialDivide: string | number;
125
135
  immediate: boolean;
136
+ isCollapsed: boolean;
126
137
  autoMinimize: number | boolean;
127
138
  }, {}>;
128
139
  export default _default;
@@ -95,7 +95,7 @@ declare const BkSearchSelect: {
95
95
  };
96
96
  documentArrowEvent: (e: KeyboardEvent) => void;
97
97
  handleClickOutside: (e: MouseEvent) => void;
98
- handleInputFocus: () => void;
98
+ handleInputFocus: (event?: FocusEvent) => void;
99
99
  handleInputChange: (event: Event) => void;
100
100
  handleInputPaste: (event: ClipboardEvent) => void;
101
101
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -109,6 +109,7 @@ declare const BkSearchSelect: {
109
109
  inputClearForWrapper: () => void;
110
110
  deleteInputTextNode: () => void;
111
111
  customPanelSubmit: (value: string) => void;
112
+ refleshMenuHover: () => void;
112
113
  t: import("vue").ComputedRef<{
113
114
  pleaseSelect: string;
114
115
  loading: string;
@@ -217,7 +218,7 @@ declare const BkSearchSelect: {
217
218
  };
218
219
  documentArrowEvent: (e: KeyboardEvent) => void;
219
220
  handleClickOutside: (e: MouseEvent) => void;
220
- handleInputFocus: () => void;
221
+ handleInputFocus: (event?: FocusEvent) => void;
221
222
  handleInputChange: (event: Event) => void;
222
223
  handleInputPaste: (event: ClipboardEvent) => void;
223
224
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -231,6 +232,7 @@ declare const BkSearchSelect: {
231
232
  inputClearForWrapper: () => void;
232
233
  deleteInputTextNode: () => void;
233
234
  customPanelSubmit: (value: string) => void;
235
+ refleshMenuHover: () => void;
234
236
  t: import("vue").ComputedRef<{
235
237
  pleaseSelect: string;
236
238
  loading: string;
@@ -527,7 +529,7 @@ declare const BkSearchSelect: {
527
529
  };
528
530
  documentArrowEvent: (e: KeyboardEvent) => void;
529
531
  handleClickOutside: (e: MouseEvent) => void;
530
- handleInputFocus: () => void;
532
+ handleInputFocus: (event?: FocusEvent) => void;
531
533
  handleInputChange: (event: Event) => void;
532
534
  handleInputPaste: (event: ClipboardEvent) => void;
533
535
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -541,6 +543,7 @@ declare const BkSearchSelect: {
541
543
  inputClearForWrapper: () => void;
542
544
  deleteInputTextNode: () => void;
543
545
  customPanelSubmit: (value: string) => void;
546
+ refleshMenuHover: () => void;
544
547
  t: import("vue").ComputedRef<{
545
548
  pleaseSelect: string;
546
549
  loading: string;
@@ -649,7 +652,7 @@ declare const BkSearchSelect: {
649
652
  };
650
653
  documentArrowEvent: (e: KeyboardEvent) => void;
651
654
  handleClickOutside: (e: MouseEvent) => void;
652
- handleInputFocus: () => void;
655
+ handleInputFocus: (event?: FocusEvent) => void;
653
656
  handleInputChange: (event: Event) => void;
654
657
  handleInputPaste: (event: ClipboardEvent) => void;
655
658
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -663,6 +666,7 @@ declare const BkSearchSelect: {
663
666
  inputClearForWrapper: () => void;
664
667
  deleteInputTextNode: () => void;
665
668
  customPanelSubmit: (value: string) => void;
669
+ refleshMenuHover: () => void;
666
670
  t: import("vue").ComputedRef<{
667
671
  pleaseSelect: string;
668
672
  loading: string;
@@ -914,7 +918,7 @@ declare const BkSearchSelect: {
914
918
  };
915
919
  documentArrowEvent: (e: KeyboardEvent) => void;
916
920
  handleClickOutside: (e: MouseEvent) => void;
917
- handleInputFocus: () => void;
921
+ handleInputFocus: (event?: FocusEvent) => void;
918
922
  handleInputChange: (event: Event) => void;
919
923
  handleInputPaste: (event: ClipboardEvent) => void;
920
924
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -928,6 +932,7 @@ declare const BkSearchSelect: {
928
932
  inputClearForWrapper: () => void;
929
933
  deleteInputTextNode: () => void;
930
934
  customPanelSubmit: (value: string) => void;
935
+ refleshMenuHover: () => void;
931
936
  t: import("vue").ComputedRef<{
932
937
  pleaseSelect: string;
933
938
  loading: string;
@@ -1036,7 +1041,7 @@ declare const BkSearchSelect: {
1036
1041
  };
1037
1042
  documentArrowEvent: (e: KeyboardEvent) => void;
1038
1043
  handleClickOutside: (e: MouseEvent) => void;
1039
- handleInputFocus: () => void;
1044
+ handleInputFocus: (event?: FocusEvent) => void;
1040
1045
  handleInputChange: (event: Event) => void;
1041
1046
  handleInputPaste: (event: ClipboardEvent) => void;
1042
1047
  handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
@@ -1050,6 +1055,7 @@ declare const BkSearchSelect: {
1050
1055
  inputClearForWrapper: () => void;
1051
1056
  deleteInputTextNode: () => void;
1052
1057
  customPanelSubmit: (value: string) => void;
1058
+ refleshMenuHover: () => void;
1053
1059
  t: import("vue").ComputedRef<{
1054
1060
  pleaseSelect: string;
1055
1061
  loading: string;
@@ -1553,7 +1553,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1553
1553
  var usingItem = (0,external_vue_namespaceObject.ref)(props.defaultUsingItem);
1554
1554
  var menuHoverId = (0,external_vue_namespaceObject.ref)('');
1555
1555
  var loading = (0,external_vue_namespaceObject.ref)(false);
1556
- var debounceSetMenuList = (0,shared_namespaceObject.debounce)(300, setMenuList);
1556
+ var debounceSetMenuList = (0,shared_namespaceObject.debounce)(100, setMenuList);
1557
1557
  // const selectMenuList = ref<ICommonItem[]>([]);
1558
1558
  var isBindEvent = false;
1559
1559
  var remoteMenuList = (0,external_vue_namespaceObject.ref)([]);
@@ -1635,9 +1635,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1635
1635
  }
1636
1636
  }
1637
1637
  function documentEnterEvent(e) {
1638
+ var _menuList$value2;
1638
1639
  if (!isBindEvent) return;
1639
1640
  e.preventDefault();
1640
- var item = menuList.value.find(function (item) {
1641
+ var item = (_menuList$value2 = menuList.value) === null || _menuList$value2 === void 0 ? void 0 : _menuList$value2.find(function (item) {
1641
1642
  return item.id === menuHoverId.value;
1642
1643
  });
1643
1644
  item && handleSelectItem(item);
@@ -1669,15 +1670,22 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1669
1670
  showPopover.value = false;
1670
1671
  emit('focus', isFocus.value);
1671
1672
  }
1672
- function handleInputFocus() {
1673
+ var isOriginFocus = false;
1674
+ function handleInputFocus(event) {
1675
+ if (isOriginFocus) return;
1673
1676
  showNoSelectValueError.value = false;
1674
1677
  if (props.mode === SearchInputMode.EDIT && usingItem.value && !isFocus.value) {
1675
1678
  var nodeList = Array.from(inputRef.value.querySelectorAll("[data-type=\"".concat(usingItem.value.values.length ? 'value' : usingItem.value.type, "\"]")));
1676
1679
  if (!nodeList.length) return;
1680
+ event === null || event === void 0 || event.preventDefault();
1677
1681
  var range = document.createRange();
1678
1682
  var selection = window.getSelection();
1679
1683
  range.selectNodeContents(nodeList.at(-1));
1680
1684
  selection === null || selection === void 0 || selection.removeAllRanges();
1685
+ isOriginFocus = true;
1686
+ setTimeout(function () {
1687
+ isOriginFocus = false;
1688
+ }, 200);
1681
1689
  selection.addRange(range); // 注意这里会触发focus事件
1682
1690
  setInputFocus(true, false);
1683
1691
  return;
@@ -1722,7 +1730,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1722
1730
  case 'NumpadEnter':
1723
1731
  if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
1724
1732
  return item.id === menuHoverId.value;
1725
- })) return;
1733
+ })) {
1734
+ var _keyword$value;
1735
+ if (!usingItem.value && (_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
1736
+ event.preventDefault();
1737
+ }
1738
+ return;
1739
+ }
1726
1740
  handleKeyEnter(event).then(function (v) {
1727
1741
  return v && clearInput();
1728
1742
  });
@@ -1809,6 +1823,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1809
1823
  var _usingItem$value3;
1810
1824
  // 删除已选择项
1811
1825
  if (!usingItem.value && !keyword.value) {
1826
+ menuHoverId.value = '';
1812
1827
  emit('delete');
1813
1828
  // eslint-disable-next-line @typescript-eslint/no-misused-promises
1814
1829
  setTimeout(setMenuList, 16);
@@ -2040,7 +2055,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2040
2055
  function _setMenuList() {
2041
2056
  _setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
2042
2057
  var _props$data, _usingItem$value$sear, _usingItem$value$valu;
2043
- var list, _usingItem$value14, _keyword$value2, hoverItem;
2058
+ var list, _usingItem$value14, _keyword$value3, hoverItem;
2044
2059
  return regenerator_default().wrap(function _callee5$(_context5) {
2045
2060
  while (1) switch (_context5.prev = _context5.next) {
2046
2061
  case 0:
@@ -2061,7 +2076,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2061
2076
  break;
2062
2077
  case 9:
2063
2078
  if (!(usingItem !== null && usingItem !== void 0 && usingItem.value)) {
2064
- if (!((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length)) {
2079
+ if (!((_keyword$value3 = keyword.value) !== null && _keyword$value3 !== void 0 && _keyword$value3.length)) {
2065
2080
  list = props.data.filter(function (item) {
2066
2081
  return !item.isSelected;
2067
2082
  }).slice();
@@ -2239,7 +2254,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2239
2254
  isFocus.value = true;
2240
2255
  showPopover.value = true;
2241
2256
  showNoSelectValueError.value = false;
2242
- needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2257
+ !props.getMenuList && needCursorToEnd && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
2243
2258
  emit('focus', isFocus.value);
2244
2259
  }
2245
2260
  function setSelectedItem(item) {
@@ -2278,8 +2293,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2278
2293
  return undefined;
2279
2294
  }
2280
2295
  function deleteInputTextNode() {
2281
- var _keyword$value;
2282
- if ((_keyword$value = keyword.value) !== null && _keyword$value !== void 0 && _keyword$value.length) {
2296
+ var _keyword$value2;
2297
+ if ((_keyword$value2 = keyword.value) !== null && _keyword$value2 !== void 0 && _keyword$value2.length) {
2283
2298
  keyword.value = '';
2284
2299
  var nodes = Array.from(inputRef.value.childNodes);
2285
2300
  nodes.forEach(function (node) {
@@ -2333,13 +2348,19 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2333
2348
  return v && clearInput();
2334
2349
  });
2335
2350
  }
2351
+ function refleshMenuHover() {
2352
+ if (!usingItem.value) {
2353
+ menuHoverId.value = '';
2354
+ }
2355
+ }
2336
2356
  // expose
2337
2357
  expose({
2338
2358
  inputFocusForWrapper: inputFocusForWrapper,
2339
2359
  inputEnterForWrapper: inputEnterForWrapper,
2340
2360
  inputClearForWrapper: inputClearForWrapper,
2341
2361
  handleInputFocus: handleInputFocus,
2342
- isFocus: isFocus
2362
+ isFocus: isFocus,
2363
+ refleshMenuHover: refleshMenuHover
2343
2364
  });
2344
2365
  return {
2345
2366
  popoverRef: popoverRef,
@@ -2370,6 +2391,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
2370
2391
  inputClearForWrapper: inputClearForWrapper,
2371
2392
  deleteInputTextNode: deleteInputTextNode,
2372
2393
  customPanelSubmit: customPanelSubmit,
2394
+ refleshMenuHover: refleshMenuHover,
2373
2395
  t: t
2374
2396
  };
2375
2397
  },
@@ -2928,6 +2950,7 @@ var SearchSelectProps = {
2928
2950
  var list = selectedList.value.slice();
2929
2951
  list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
2930
2952
  onValidate('');
2953
+ inputRef.value.refleshMenuHover();
2931
2954
  emit('update:modelValue', list.map(function (item) {
2932
2955
  return item.toValue();
2933
2956
  }));
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
53
53
  };
54
54
  documentArrowEvent: (e: KeyboardEvent) => void;
55
55
  handleClickOutside: (e: MouseEvent) => void;
56
- handleInputFocus: () => void;
56
+ handleInputFocus: (event?: FocusEvent) => void;
57
57
  handleInputChange: (event: Event) => void;
58
58
  handleInputPaste: (event: ClipboardEvent) => void;
59
59
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -67,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{
67
67
  inputClearForWrapper: () => void;
68
68
  deleteInputTextNode: () => void;
69
69
  customPanelSubmit: (value: string) => void;
70
+ refleshMenuHover: () => void;
70
71
  t: import("vue").ComputedRef<{
71
72
  pleaseSelect: string;
72
73
  loading: string;
@@ -127,7 +127,7 @@ declare const _default: import("vue").DefineComponent<{
127
127
  };
128
128
  documentArrowEvent: (e: KeyboardEvent) => void;
129
129
  handleClickOutside: (e: MouseEvent) => void;
130
- handleInputFocus: () => void;
130
+ handleInputFocus: (event?: FocusEvent) => void;
131
131
  handleInputChange: (event: Event) => void;
132
132
  handleInputPaste: (event: ClipboardEvent) => void;
133
133
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -141,6 +141,7 @@ declare const _default: import("vue").DefineComponent<{
141
141
  inputClearForWrapper: () => void;
142
142
  deleteInputTextNode: () => void;
143
143
  customPanelSubmit: (value: string) => void;
144
+ refleshMenuHover: () => void;
144
145
  t: import("vue").ComputedRef<{
145
146
  pleaseSelect: string;
146
147
  loading: string;
@@ -249,7 +250,7 @@ declare const _default: import("vue").DefineComponent<{
249
250
  };
250
251
  documentArrowEvent: (e: KeyboardEvent) => void;
251
252
  handleClickOutside: (e: MouseEvent) => void;
252
- handleInputFocus: () => void;
253
+ handleInputFocus: (event?: FocusEvent) => void;
253
254
  handleInputChange: (event: Event) => void;
254
255
  handleInputPaste: (event: ClipboardEvent) => void;
255
256
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -263,6 +264,7 @@ declare const _default: import("vue").DefineComponent<{
263
264
  inputClearForWrapper: () => void;
264
265
  deleteInputTextNode: () => void;
265
266
  customPanelSubmit: (value: string) => void;
267
+ refleshMenuHover: () => void;
266
268
  t: import("vue").ComputedRef<{
267
269
  pleaseSelect: string;
268
270
  loading: string;
@@ -79,7 +79,7 @@ declare const _default: import("vue").DefineComponent<{
79
79
  };
80
80
  documentArrowEvent: (e: KeyboardEvent) => void;
81
81
  handleClickOutside: (e: MouseEvent) => void;
82
- handleInputFocus: () => void;
82
+ handleInputFocus: (event?: FocusEvent) => void;
83
83
  handleInputChange: (event: Event) => void;
84
84
  handleInputPaste: (event: ClipboardEvent) => void;
85
85
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -93,6 +93,7 @@ declare const _default: import("vue").DefineComponent<{
93
93
  inputClearForWrapper: () => void;
94
94
  deleteInputTextNode: () => void;
95
95
  customPanelSubmit: (value: string) => void;
96
+ refleshMenuHover: () => void;
96
97
  t: import("vue").ComputedRef<{
97
98
  pleaseSelect: string;
98
99
  loading: string;
@@ -201,7 +202,7 @@ declare const _default: import("vue").DefineComponent<{
201
202
  };
202
203
  documentArrowEvent: (e: KeyboardEvent) => void;
203
204
  handleClickOutside: (e: MouseEvent) => void;
204
- handleInputFocus: () => void;
205
+ handleInputFocus: (event?: FocusEvent) => void;
205
206
  handleInputChange: (event: Event) => void;
206
207
  handleInputPaste: (event: ClipboardEvent) => void;
207
208
  handleLogicalChange: (logical: SearchLogical) => void;
@@ -215,6 +216,7 @@ declare const _default: import("vue").DefineComponent<{
215
216
  inputClearForWrapper: () => void;
216
217
  deleteInputTextNode: () => void;
217
218
  customPanelSubmit: (value: string) => void;
219
+ refleshMenuHover: () => void;
218
220
  t: import("vue").ComputedRef<{
219
221
  pleaseSelect: string;
220
222
  loading: string;
@@ -3596,6 +3596,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3596
3596
  "default": function _default(_ref3) {
3597
3597
  var _this$$slots12, _this$$slots13;
3598
3598
  var data = _ref3.data;
3599
+ // 兼容以前slots
3599
3600
  var optionRender = ((_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 ? void 0 : _this$$slots12.optionRender) || ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.virtualScrollRender);
3600
3601
  return data.map(function (item) {
3601
3602
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
@@ -3612,15 +3613,16 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3612
3613
  });
3613
3614
  }
3614
3615
  }) : _this.filterList.map(function (item) {
3615
- var _this$$slots14;
3616
+ var _this$$slots14, _this$$slots15;
3617
+ // 兼容以前slots
3618
+ var optionRender = ((_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.optionRender) || ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.virtualScrollRender);
3616
3619
  return (0,external_vue_namespaceObject.createVNode)(src_option, {
3617
3620
  "id": item[_this.idKey],
3618
3621
  "key": item[_this.idKey],
3619
3622
  "name": item[_this.displayKey]
3620
- }, (_this$$slots14 = _this.$slots) !== null && _this$$slots14 !== void 0 && _this$$slots14.optionRender ? {
3623
+ }, typeof optionRender === 'function' ? {
3621
3624
  "default": function _default() {
3622
- var _this$$slots15, _this$$slots15$option;
3623
- return (_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 || (_this$$slots15$option = _this$$slots15.optionRender) === null || _this$$slots15$option === void 0 ? void 0 : _this$$slots15$option.call(_this$$slots15, {
3625
+ return optionRender({
3624
3626
  item: item
3625
3627
  });
3626
3628
  }