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

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
  };
@@ -16863,6 +16866,11 @@ const settingSizeType = j("columnSize", {
16863
16866
  });
16864
16867
  const fixedType = j("columnSize", {});
16865
16868
  const sortScopeType = j("sortScope", {}).def("current");
16869
+ var ResizerWay = /* @__PURE__ */ ((ResizerWay2) => {
16870
+ ResizerWay2["DEBOUNCE"] = "debounce";
16871
+ ResizerWay2["THROTTLE"] = "throttle";
16872
+ return ResizerWay2;
16873
+ })(ResizerWay || {});
16866
16874
  const IColumnType = {
16867
16875
  label: PropTypes.oneOfType([PropTypes.func.def(() => ""), PropTypes.string.def("")]),
16868
16876
  field: PropTypes.oneOfType([PropTypes.func.def(() => ""), PropTypes.string.def("")]),
@@ -16975,7 +16983,7 @@ const tableProps = {
16975
16983
  PropTypes.bool.def(true)
16976
16984
  ]).def(true),
16977
16985
  resizerWay: j("ResizerWay", {
16978
- default: "throttle"
16986
+ default: "debounce"
16979
16987
  }),
16980
16988
  observerResize: PropTypes.bool.def(true)
16981
16989
  };
@@ -18370,7 +18378,10 @@ var TableCell = defineComponent({
18370
18378
  mode: overflowModeType
18371
18379
  })]).def(void 0),
18372
18380
  title: PropTypes.string.def(void 0),
18373
- observerResize: PropTypes.bool.def(true)
18381
+ observerResize: PropTypes.bool.def(true),
18382
+ resizerWay: j("ResizerWay", {
18383
+ default: ResizerWay.DEBOUNCE
18384
+ })
18374
18385
  },
18375
18386
  setup(props2, {
18376
18387
  slots
@@ -18391,6 +18402,9 @@ var TableCell = defineComponent({
18391
18402
  let bkEllipsisIns = null;
18392
18403
  const resolveTooltipOption = () => {
18393
18404
  let disabled = true;
18405
+ let {
18406
+ resizerWay
18407
+ } = props2;
18394
18408
  let content = refRoot.value.innerText;
18395
18409
  let mode = "auto";
18396
18410
  if (typeof showOverflowTooltip === "boolean") {
@@ -18398,6 +18412,7 @@ var TableCell = defineComponent({
18398
18412
  }
18399
18413
  if (typeof showOverflowTooltip === "object") {
18400
18414
  disabled = showOverflowTooltip.disabled;
18415
+ resizerWay = showOverflowTooltip.resizerWay || "debounce";
18401
18416
  content = showOverflowTooltip.content || refRoot.value.innerText;
18402
18417
  if (typeof showOverflowTooltip.content === "function") {
18403
18418
  content = showOverflowTooltip.content(props2.column, props2.row);
@@ -18410,7 +18425,8 @@ var TableCell = defineComponent({
18410
18425
  return {
18411
18426
  disabled,
18412
18427
  content,
18413
- mode
18428
+ mode,
18429
+ resizerWay
18414
18430
  };
18415
18431
  };
18416
18432
  const resolveOverflowTooltip = () => {
@@ -18441,14 +18457,15 @@ var TableCell = defineComponent({
18441
18457
  onMounted(() => {
18442
18458
  var _a;
18443
18459
  const {
18444
- disabled
18460
+ disabled,
18461
+ resizerWay
18445
18462
  } = resolveTooltipOption();
18446
18463
  if (!disabled) {
18447
18464
  resolveOverflowTooltip();
18448
18465
  if (((_a = props2.column.showOverflowTooltip) == null ? void 0 : _a.watchCellResize) !== false && props2.observerResize) {
18449
18466
  let observerIns = observerResize(refRoot.value, () => {
18450
18467
  resolveOverflowTooltip();
18451
- }, 60, true);
18468
+ }, 60, true, resizerWay);
18452
18469
  observerIns.start();
18453
18470
  onBeforeUnmount(() => {
18454
18471
  observerIns.disconnect();
@@ -19284,7 +19301,8 @@ class TableRender {
19284
19301
  const showTitle = typeof cellText === "string" ? cellText : void 0;
19285
19302
  return createVNode(TableCell, {
19286
19303
  "title": showTitle,
19287
- "observerResize": this.props.observerResize
19304
+ "observerResize": this.props.observerResize,
19305
+ "resizerWay": this.props.resizerWay
19288
19306
  }, _isSlot$1(cells) ? cells : {
19289
19307
  default: () => [cells]
19290
19308
  });
@@ -39183,6 +39201,9 @@ var SearchSelectInput = defineComponent({
39183
39201
  return;
39184
39202
  }
39185
39203
  usingItem.value.addValue(item);
39204
+ if (usingItem.value.multiple) {
39205
+ keyword.value = "";
39206
+ }
39186
39207
  const res = await validateUsingItemValues(item);
39187
39208
  if (!res)
39188
39209
  return;