bkui-vue 0.0.1-beta.348 → 0.0.1-beta.349

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.esm.js CHANGED
@@ -11715,7 +11715,8 @@ const PopoverProps = __spreadValues({
11715
11715
  disableOutsideClick: PropTypes.bool.def(false),
11716
11716
  disableTransform: PropTypes.bool.def(false),
11717
11717
  reference: PropTypes.any.def(null),
11718
- modifiers: PropTypes.array.def([])
11718
+ modifiers: PropTypes.array.def([]),
11719
+ popoverDelay: PropTypes.number.def(100)
11719
11720
  }, EventProps$1);
11720
11721
  var Reference = defineComponent({
11721
11722
  name: "PopReference",
@@ -13242,12 +13243,12 @@ var useFloating = (props2, ctx, {
13242
13243
  const showPopover = () => {
13243
13244
  setTimeout(() => {
13244
13245
  !props2.disabled && (localIsShow.value = true);
13245
- }, 100);
13246
+ }, props2.popoverDelay);
13246
13247
  };
13247
13248
  const hidePopover = () => {
13248
13249
  popHideTimerId = setTimeout(() => {
13249
13250
  localIsShow.value = false;
13250
- }, 100);
13251
+ }, props2.popoverDelay);
13251
13252
  };
13252
13253
  const hanldePopoverShow = () => {
13253
13254
  var _a;
@@ -15374,7 +15375,8 @@ var Component$j = defineComponent({
15374
15375
  placement: "bottom-start",
15375
15376
  isShow: isPopoverShow.value,
15376
15377
  reference: selectTagInputRef.value,
15377
- offset: 6
15378
+ offset: 6,
15379
+ popoverDelay: 0
15378
15380
  }, popoverOptions.value));
15379
15381
  const {
15380
15382
  register,
@@ -15419,8 +15421,10 @@ var Component$j = defineComponent({
15419
15421
  if (!isShow) {
15420
15422
  searchKey.value = "";
15421
15423
  } else {
15422
- focusInput();
15423
- initActiveOptionValue();
15424
+ setTimeout(() => {
15425
+ focusInput();
15426
+ initActiveOptionValue();
15427
+ }, 0);
15424
15428
  }
15425
15429
  });
15426
15430
  const initActiveOptionValue = () => {