bkui-vue 0.0.1-beta.406 → 0.0.1-beta.407

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
@@ -12811,6 +12811,7 @@ var useFloating = (props2, ctx, {
12811
12811
  });
12812
12812
  };
12813
12813
  let popHideTimerId = void 0;
12814
+ let popShowTimerId = void 0;
12814
12815
  let isMouseenter = false;
12815
12816
  const resolvePopoverDelay = () => {
12816
12817
  if (Array.isArray(props2.popoverDelay)) {
@@ -12820,13 +12821,15 @@ var useFloating = (props2, ctx, {
12820
12821
  };
12821
12822
  const showPopover = () => {
12822
12823
  const delay = resolvePopoverDelay()[0];
12823
- setTimeout(() => {
12824
+ popShowTimerId = setTimeout(() => {
12825
+ popHideTimerId && clearTimeout(popHideTimerId);
12824
12826
  !props2.disabled && (localIsShow.value = true);
12825
12827
  }, delay);
12826
12828
  };
12827
12829
  const hidePopover = () => {
12828
12830
  const delay = resolvePopoverDelay()[1];
12829
12831
  popHideTimerId = setTimeout(() => {
12832
+ popShowTimerId && clearTimeout(popShowTimerId);
12830
12833
  localIsShow.value = false;
12831
12834
  }, delay);
12832
12835
  };