@blueking/ediatable 0.0.1-beta.8 → 0.0.1-beta.9

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.
@@ -1,5 +1,5 @@
1
1
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "@blueking/bkui-library";
2
- import { ref, provide, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, unref, computed, watch, getCurrentInstance, defineComponent, useSlots, inject, resolveDirective, openBlock, createElementBlock, normalizeClass, normalizeStyle, withDirectives, createElementVNode, renderSlot, createCommentVNode, createBlock, Fragment, renderList, withCtx, createTextVNode, toDisplayString, reactive, toRefs, h as h$1, mergeModels, useModel, useAttrs, createVNode, mergeProps, createSlots, nextTick, createApp } from "@blueking/bkui-library";
2
+ import { ref, provide, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, unref, computed, watch, getCurrentInstance, defineComponent, useSlots, inject, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, withDirectives, renderSlot, createCommentVNode, createBlock, Fragment, renderList, withCtx, createTextVNode, toDisplayString, reactive, toRefs, h as h$1, mergeModels, useModel, useAttrs, createVNode, mergeProps, createSlots, nextTick, createApp } from "@blueking/bkui-library";
3
3
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
4
4
  function getDefaultExportFromCjs(x3) {
5
5
  return x3 && x3.__esModule && Object.prototype.hasOwnProperty.call(x3, "default") ? x3["default"] : x3;
@@ -5527,10 +5527,8 @@ function useColumnResize(tableRef, tableColumnResizeRef, mouseupCallback) {
5527
5527
  if (!dragable) {
5528
5528
  return;
5529
5529
  }
5530
- const {
5531
- columnKey,
5532
- minWidth = 100
5533
- } = payload;
5530
+ const { columnKey, minWidth = 100 } = payload;
5531
+ const target = event.target.closest("th");
5534
5532
  const tableEl = tableRef.value;
5535
5533
  const columnEl = tableEl.querySelector(`th.column-${columnKey}`);
5536
5534
  const tableLeft = tableEl.getBoundingClientRect().left;
@@ -5560,6 +5558,7 @@ function useColumnResize(tableRef, tableColumnResizeRef, mouseupCallback) {
5560
5558
  resizeProxy.style.display = "block";
5561
5559
  resizeProxyLeft = Math.max(minLeft, proxyLeft);
5562
5560
  resizeProxy.style.left = `${resizeProxyLeft}px`;
5561
+ target.classList.add("poiner-right");
5563
5562
  };
5564
5563
  const handleMouseUp = () => {
5565
5564
  if (dragging.value) {
@@ -5584,15 +5583,22 @@ function useColumnResize(tableRef, tableColumnResizeRef, mouseupCallback) {
5584
5583
  document.addEventListener("mouseup", handleMouseUp);
5585
5584
  };
5586
5585
  const handleMouseMove = (event) => {
5586
+ var _a;
5587
+ if (dragging.value) {
5588
+ return;
5589
+ }
5587
5590
  const target = event.target.closest("th");
5588
5591
  const rect = target.getBoundingClientRect();
5589
5592
  const bodyStyle = document.body.style;
5590
5593
  if (rect.width > 12 && rect.right - event.pageX < 8) {
5591
5594
  bodyStyle.cursor = "col-resize";
5592
5595
  dragable = true;
5596
+ target.classList.add("poiner-right");
5593
5597
  } else if (!dragging.value) {
5594
5598
  bodyStyle.cursor = "";
5595
5599
  dragable = false;
5600
+ target.classList.remove("poiner-right");
5601
+ (_a = target.previousElementSibling) == null ? void 0 : _a.classList.remove("poiner-right");
5596
5602
  }
5597
5603
  };
5598
5604
  const handleOuterMousemove = _$1.throttle((event) => {
@@ -5622,375 +5628,6 @@ function useColumnResize(tableRef, tableColumnResizeRef, mouseupCallback) {
5622
5628
  handleMouseMove
5623
5629
  };
5624
5630
  }
5625
- const random$1 = () => `${_$1.random(0, 999999)}_${Date.now()}_${_$1.random(0, 999999)}`;
5626
- const encodeMult = (text) => {
5627
- const temp = document.createElement("textarea");
5628
- temp.value = text;
5629
- return temp.value;
5630
- };
5631
- function tryOnScopeDispose(fn2) {
5632
- if (getCurrentScope()) {
5633
- onScopeDispose(fn2);
5634
- return true;
5635
- }
5636
- return false;
5637
- }
5638
- function toValue(r2) {
5639
- return typeof r2 === "function" ? r2() : unref(r2);
5640
- }
5641
- const isClient = typeof window !== "undefined" && typeof document !== "undefined";
5642
- typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
5643
- function unrefElement(elRef) {
5644
- var _a;
5645
- const plain = toValue(elRef);
5646
- return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
5647
- }
5648
- const defaultWindow = isClient ? window : void 0;
5649
- function useMounted() {
5650
- const isMounted = ref(false);
5651
- const instance2 = getCurrentInstance();
5652
- if (instance2) {
5653
- onMounted(() => {
5654
- isMounted.value = true;
5655
- }, instance2);
5656
- }
5657
- return isMounted;
5658
- }
5659
- function useSupported(callback) {
5660
- const isMounted = useMounted();
5661
- return computed(() => {
5662
- isMounted.value;
5663
- return Boolean(callback());
5664
- });
5665
- }
5666
- function useResizeObserver(target, callback, options = {}) {
5667
- const { window: window2 = defaultWindow, ...observerOptions } = options;
5668
- let observer;
5669
- const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
5670
- const cleanup = () => {
5671
- if (observer) {
5672
- observer.disconnect();
5673
- observer = void 0;
5674
- }
5675
- };
5676
- const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);
5677
- const stopWatch = watch(
5678
- targets,
5679
- (els) => {
5680
- cleanup();
5681
- if (isSupported.value && window2) {
5682
- observer = new ResizeObserver(callback);
5683
- for (const _el of els)
5684
- _el && observer.observe(_el, observerOptions);
5685
- }
5686
- },
5687
- { immediate: true, flush: "post" }
5688
- );
5689
- const stop = () => {
5690
- cleanup();
5691
- stopWatch();
5692
- };
5693
- tryOnScopeDispose(stop);
5694
- return {
5695
- isSupported,
5696
- stop
5697
- };
5698
- }
5699
- const _hoisted_1$6 = ["data-fixed", "data-maxWidth", "data-minWidth", "data-width"];
5700
- const _hoisted_2$2 = { class: "th-cell" };
5701
- const _hoisted_3$1 = { style: { "display": "inline-block", "line-height": "40px", "vertical-align": "top" } };
5702
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
5703
- __name: "head-column",
5704
- props: {
5705
- fixed: { default: void 0 },
5706
- maxWidth: { default: void 0 },
5707
- minWidth: { default: void 0 },
5708
- required: { type: Boolean, default: true },
5709
- width: { default: void 0 },
5710
- renderAppend: { type: Function, default: void 0 },
5711
- memo: { default: void 0 }
5712
- },
5713
- setup(__props) {
5714
- const props2 = __props;
5715
- const slots = useSlots();
5716
- const { rowWidth, isOverflow: isMinimize } = inject(renderTablekey);
5717
- const parentTable = inject(tableColumnResizekey);
5718
- const columnRef = ref();
5719
- const currentWidth = ref(0);
5720
- const columnKey = random$1();
5721
- let initWidthRate = 0;
5722
- let isDragedSelf = false;
5723
- const finalMinWidth = computed(() => props2.minWidth ? props2.minWidth : props2.width ?? 100);
5724
- const isFixedRight = computed(() => props2.fixed === "right");
5725
- const isFixedLeft = computed(() => props2.fixed === "left");
5726
- const styles = computed(() => {
5727
- if (props2.width && (rowWidth == null ? void 0 : rowWidth.value) && finalMinWidth.value) {
5728
- const newWidth = rowWidth.value * initWidthRate;
5729
- if (newWidth !== props2.width) {
5730
- let width = 0;
5731
- if (isMinimize == null ? void 0 : isMinimize.value) {
5732
- if (currentWidth.value !== 0 && (currentWidth.value !== finalMinWidth.value || currentWidth.value !== props2.width)) {
5733
- width = currentWidth.value;
5734
- } else {
5735
- width = finalMinWidth.value;
5736
- }
5737
- } else if (newWidth > finalMinWidth.value) {
5738
- width = newWidth;
5739
- } else {
5740
- width = finalMinWidth.value;
5741
- }
5742
- return {
5743
- minWidth: `${width}px`
5744
- };
5745
- }
5746
- }
5747
- return {
5748
- minWidth: props2.width ? `${props2.width}px` : "120px"
5749
- };
5750
- });
5751
- const RenderAppendElement = computed(() => props2.renderAppend && props2.renderAppend());
5752
- watch(
5753
- () => [props2.width, rowWidth == null ? void 0 : rowWidth.value, currentWidth.value],
5754
- ([width, rowWidth2, currentWidth2]) => {
5755
- if (!isDragedSelf) {
5756
- return;
5757
- }
5758
- if (width && rowWidth2 && currentWidth2 && finalMinWidth.value) {
5759
- isDragedSelf = false;
5760
- if (currentWidth2 !== 0 && (currentWidth2 !== finalMinWidth.value || currentWidth2 !== width)) {
5761
- initWidthRate = currentWidth2 / rowWidth2;
5762
- } else {
5763
- initWidthRate = (isMinimize == null ? void 0 : isMinimize.value) ? finalMinWidth.value / rowWidth2 : width / rowWidth2;
5764
- }
5765
- }
5766
- },
5767
- {
5768
- immediate: true
5769
- }
5770
- );
5771
- useResizeObserver(columnRef, () => {
5772
- if (!isDragedSelf) {
5773
- return;
5774
- }
5775
- const width = parseFloat(columnRef.value.style.width);
5776
- currentWidth.value = width;
5777
- });
5778
- const handleMouseDown = (event) => {
5779
- isDragedSelf = true;
5780
- parentTable == null ? void 0 : parentTable.columnMousedown(event, {
5781
- columnKey,
5782
- minWidth: finalMinWidth.value
5783
- });
5784
- };
5785
- const handleMouseMove = (event) => {
5786
- parentTable == null ? void 0 : parentTable.columnMouseMove(event);
5787
- };
5788
- return (_ctx, _cache) => {
5789
- const _directive_overflow_tips = resolveDirective("overflow-tips");
5790
- const _directive_bk_tooltips = resolveDirective("bk-tooltips");
5791
- return openBlock(), createElementBlock("th", {
5792
- ref_key: "columnRef",
5793
- ref: columnRef,
5794
- class: normalizeClass(["bk-ediatable-head-column", {
5795
- "is-required": _ctx.required,
5796
- [`column-${unref(columnKey)}`]: true,
5797
- "is-right-fixed": unref(isMinimize) && isFixedRight.value,
5798
- "is-left-fixed": unref(isMinimize) && isFixedLeft.value
5799
- }]),
5800
- "data-fixed": _ctx.fixed,
5801
- "data-maxWidth": _ctx.maxWidth,
5802
- "data-minWidth": finalMinWidth.value,
5803
- "data-width": _ctx.width,
5804
- style: normalizeStyle(styles.value),
5805
- onMousedown: handleMouseDown,
5806
- onMousemove: handleMouseMove
5807
- }, [
5808
- withDirectives((openBlock(), createElementBlock("div", _hoisted_2$2, [
5809
- createElementVNode(
5810
- "span",
5811
- {
5812
- class: normalizeClass({ "title-memo": _ctx.memo })
5813
- },
5814
- [
5815
- renderSlot(_ctx.$slots, "default")
5816
- ],
5817
- 2
5818
- /* CLASS */
5819
- )
5820
- ])), [
5821
- [_directive_overflow_tips],
5822
- [_directive_bk_tooltips, {
5823
- content: _ctx.memo,
5824
- disabled: !_ctx.memo
5825
- }]
5826
- ]),
5827
- createElementVNode("div", _hoisted_3$1, [
5828
- slots.append && !_ctx.renderAppend ? renderSlot(_ctx.$slots, "append", { key: 0 }) : createCommentVNode("v-if", true),
5829
- _ctx.renderAppend ? (openBlock(), createBlock(unref(RenderAppendElement), { key: 1 })) : createCommentVNode("v-if", true)
5830
- ])
5831
- ], 46, _hoisted_1$6);
5832
- };
5833
- }
5834
- });
5835
- const renderTablekey = Symbol("renderTable");
5836
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
5837
- __name: "ediatable",
5838
- props: {
5839
- theadList: { default: () => [] }
5840
- },
5841
- setup(__props) {
5842
- const slots = useSlots();
5843
- const checkTableScroll = () => {
5844
- rowWidth.value = tableRef.value.clientWidth;
5845
- isOverflow.value = tableOuterRef.value.clientWidth < tableRef.value.clientWidth;
5846
- initColumnWidth();
5847
- };
5848
- const tableOuterRef = ref();
5849
- const tableRef = ref();
5850
- const tableColumnResizeRef = ref();
5851
- const isOverflow = ref(false);
5852
- const rowWidth = ref(0);
5853
- const { initColumnWidth } = useColumnResize(tableOuterRef, tableColumnResizeRef, _$1.debounce(checkTableScroll));
5854
- provide(renderTablekey, {
5855
- isOverflow,
5856
- rowWidth
5857
- });
5858
- onMounted(() => {
5859
- window.addEventListener("resize", checkTableScroll);
5860
- checkTableScroll();
5861
- setTimeout(() => checkTableScroll());
5862
- });
5863
- onBeforeUnmount(() => window.removeEventListener("resize", checkTableScroll));
5864
- return (_ctx, _cache) => {
5865
- return openBlock(), createElementBlock(
5866
- "div",
5867
- {
5868
- id: "ediatableRenderTableKey",
5869
- ref_key: "tableOuterRef",
5870
- ref: tableOuterRef,
5871
- class: "bk-ediatable"
5872
- },
5873
- [
5874
- createElementVNode(
5875
- "table",
5876
- {
5877
- ref_key: "tableRef",
5878
- ref: tableRef
5879
- },
5880
- [
5881
- createElementVNode("thead", null, [
5882
- createElementVNode("tr", null, [
5883
- slots.default && _ctx.theadList.length === 0 ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(true), createElementBlock(
5884
- Fragment,
5885
- { key: 1 },
5886
- renderList(_ctx.theadList, (head, index2) => {
5887
- return openBlock(), createBlock(_sfc_main$8, {
5888
- key: index2,
5889
- width: head.width,
5890
- "min-width": head.minWidth,
5891
- "max-width": head.maxWidth,
5892
- fixed: head.fixed,
5893
- required: head.required,
5894
- "render-append": head.renderAppend,
5895
- memo: head.memo
5896
- }, {
5897
- default: withCtx(() => [
5898
- createTextVNode(
5899
- toDisplayString(head.title),
5900
- 1
5901
- /* TEXT */
5902
- )
5903
- ]),
5904
- _: 2
5905
- /* DYNAMIC */
5906
- }, 1032, ["width", "min-width", "max-width", "fixed", "required", "render-append", "memo"]);
5907
- }),
5908
- 128
5909
- /* KEYED_FRAGMENT */
5910
- ))
5911
- ])
5912
- ]),
5913
- createElementVNode("tbody", null, [
5914
- renderSlot(_ctx.$slots, "data")
5915
- ])
5916
- ],
5917
- 512
5918
- /* NEED_PATCH */
5919
- ),
5920
- createElementVNode(
5921
- "div",
5922
- {
5923
- ref_key: "tableColumnResizeRef",
5924
- ref: tableColumnResizeRef,
5925
- class: "table-column-resize"
5926
- },
5927
- null,
5928
- 512
5929
- /* NEED_PATCH */
5930
- )
5931
- ],
5932
- 512
5933
- /* NEED_PATCH */
5934
- );
5935
- };
5936
- }
5937
- });
5938
- const getRuleMessage = (rule) => {
5939
- if (typeof rule.message === "function") {
5940
- return rule.message();
5941
- }
5942
- return rule.message;
5943
- };
5944
- function useValidtor(rules) {
5945
- const state = reactive({
5946
- loading: false,
5947
- error: false,
5948
- message: ""
5949
- });
5950
- const validator11 = (targetValue) => {
5951
- state.error = false, state.message = "";
5952
- if (!rules) {
5953
- return Promise.resolve(true);
5954
- }
5955
- const run = /* @__PURE__ */ (() => {
5956
- let stepIndex = -1;
5957
- return async () => {
5958
- stepIndex = stepIndex + 1;
5959
- if (stepIndex >= rules.length) {
5960
- return Promise.resolve(true);
5961
- }
5962
- const rule = rules[stepIndex];
5963
- return Promise.resolve().then(() => {
5964
- const result = rule.validator(targetValue);
5965
- if (typeof result !== "boolean" && typeof result.then === "function") {
5966
- return result.then((data2) => {
5967
- if (data2 === false) {
5968
- return Promise.reject(getRuleMessage(rule));
5969
- }
5970
- }).then(() => run(), () => {
5971
- state.error = true;
5972
- const message = getRuleMessage(rule);
5973
- state.message = message;
5974
- return Promise.reject(message);
5975
- });
5976
- }
5977
- if (!result) {
5978
- state.error = true;
5979
- const message = getRuleMessage(rule);
5980
- state.message = message;
5981
- return Promise.reject(message);
5982
- }
5983
- return run();
5984
- });
5985
- };
5986
- })();
5987
- return run();
5988
- };
5989
- return {
5990
- ...toRefs(state),
5991
- validator: validator11
5992
- };
5993
- }
5994
5631
  var top = "top";
5995
5632
  var bottom = "bottom";
5996
5633
  var right = "right";
@@ -6006,7 +5643,7 @@ var reference$2 = "reference";
6006
5643
  var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
6007
5644
  return acc.concat([placement + "-" + start, placement + "-" + end]);
6008
5645
  }, []);
6009
- var placements$2 = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
5646
+ var placements$3 = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
6010
5647
  return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
6011
5648
  }, []);
6012
5649
  var beforeRead = "beforeRead";
@@ -6754,7 +6391,7 @@ function computeAutoPlacement(state, options) {
6754
6391
  if (options === void 0) {
6755
6392
  options = {};
6756
6393
  }
6757
- var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements$2 : _options$allowedAutoP;
6394
+ var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements$3 : _options$allowedAutoP;
6758
6395
  var variation = getVariation(placement);
6759
6396
  var placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
6760
6397
  return getVariation(placement2) === variation;
@@ -6952,7 +6589,7 @@ function distanceAndSkiddingToXY(placement, rects, offset2) {
6952
6589
  function offset$2(_ref2) {
6953
6590
  var state = _ref2.state, options = _ref2.options, name = _ref2.name;
6954
6591
  var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
6955
- var data2 = placements$2.reduce(function(acc, placement) {
6592
+ var data2 = placements$3.reduce(function(acc, placement) {
6956
6593
  acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
6957
6594
  return acc;
6958
6595
  }, {});
@@ -7976,7 +7613,7 @@ __webpack_require__$u.d(__webpack_exports__$u, {
7976
7613
  ),
7977
7614
  checkOverflow: () => (
7978
7615
  /* reexport */
7979
- checkOverflow
7616
+ checkOverflow$1
7980
7617
  ),
7981
7618
  classes: () => (
7982
7619
  /* binding */
@@ -8128,7 +7765,7 @@ __webpack_require__$u.d(__webpack_exports__$u, {
8128
7765
  ),
8129
7766
  random: () => (
8130
7767
  /* reexport */
8131
- random
7768
+ random$1
8132
7769
  ),
8133
7770
  renderDirectiveType: () => (
8134
7771
  /* reexport */
@@ -8895,7 +8532,7 @@ var throttle_x$1 = (y4) => {
8895
8532
  };
8896
8533
  const throttle_namespaceObject$1 = throttle_x$1({ ["default"]: () => throttle$1 });
8897
8534
  var lowerStr = "abcdefghijklmnopqrstuvwxyz0123456789";
8898
- var random = function random2(n2) {
8535
+ var random$1 = function random(n2) {
8899
8536
  var str = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lowerStr;
8900
8537
  var result = "";
8901
8538
  for (var i3 = 0; i3 < n2; i3++) {
@@ -8932,7 +8569,7 @@ var observerResize = function observerResize2(root2, callbackFn) {
8932
8569
  var capitalize = function capitalize2(str) {
8933
8570
  return str[0].toUpperCase() + str.slice(1);
8934
8571
  };
8935
- function checkOverflow(el) {
8572
+ function checkOverflow$1(el) {
8936
8573
  if (!el) return false;
8937
8574
  var createDom = function createDom2(el2, css2) {
8938
8575
  var dom2 = document.createElement("div");
@@ -14650,7 +14287,7 @@ var isElement_x$1 = (y4) => {
14650
14287
  const isElement_namespaceObject$1 = isElement_x$1({ ["default"]: () => isElement$4 });
14651
14288
  const sides$1 = ["top", "right", "bottom", "left"];
14652
14289
  const alignments$1 = ["start", "end"];
14653
- const placements$1 = /* @__PURE__ */ sides$1.reduce((acc, side) => acc.concat(side, side + "-" + alignments$1[0], side + "-" + alignments$1[1]), []);
14290
+ const placements$2 = /* @__PURE__ */ sides$1.reduce((acc, side) => acc.concat(side, side + "-" + alignments$1[0], side + "-" + alignments$1[1]), []);
14654
14291
  const floating_ui_utils_min$1 = Math.min;
14655
14292
  const floating_ui_utils_max$1 = Math.max;
14656
14293
  const round$1 = Math.round;
@@ -15053,14 +14690,14 @@ const autoPlacement$1 = function(options) {
15053
14690
  const {
15054
14691
  crossAxis = false,
15055
14692
  alignment,
15056
- allowedPlacements = placements$1,
14693
+ allowedPlacements = placements$2,
15057
14694
  autoAlignment = true,
15058
14695
  ...detectOverflowOptions
15059
14696
  } = floating_ui_utils_evaluate$1(options, state);
15060
- const placements$1$1 = alignment !== void 0 || allowedPlacements === placements$1 ? getPlacementList$1(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
14697
+ const placements$12 = alignment !== void 0 || allowedPlacements === placements$2 ? getPlacementList$1(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
15061
14698
  const overflow = await detectOverflow$1(state, detectOverflowOptions);
15062
14699
  const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
15063
- const currentPlacement = placements$1$1[currentIndex];
14700
+ const currentPlacement = placements$12[currentIndex];
15064
14701
  if (currentPlacement == null) {
15065
14702
  return {};
15066
14703
  }
@@ -15068,7 +14705,7 @@ const autoPlacement$1 = function(options) {
15068
14705
  if (placement !== currentPlacement) {
15069
14706
  return {
15070
14707
  reset: {
15071
- placement: placements$1$1[0]
14708
+ placement: placements$12[0]
15072
14709
  }
15073
14710
  };
15074
14711
  }
@@ -15077,7 +14714,7 @@ const autoPlacement$1 = function(options) {
15077
14714
  placement: currentPlacement,
15078
14715
  overflows: currentOverflows
15079
14716
  }];
15080
- const nextPlacement = placements$1$1[currentIndex + 1];
14717
+ const nextPlacement = placements$12[currentIndex + 1];
15081
14718
  if (nextPlacement) {
15082
14719
  return {
15083
14720
  data: {
@@ -17904,7 +17541,7 @@ var isElement_x = (y4) => {
17904
17541
  const isElement_namespaceObject = isElement_x({ ["default"]: () => isElement$4 });
17905
17542
  const sides = ["top", "right", "bottom", "left"];
17906
17543
  const alignments = ["start", "end"];
17907
- const placements = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
17544
+ const placements$1 = /* @__PURE__ */ sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
17908
17545
  const floating_ui_utils_min = Math.min;
17909
17546
  const floating_ui_utils_max = Math.max;
17910
17547
  const round = Math.round;
@@ -18307,14 +17944,14 @@ const autoPlacement = function(options) {
18307
17944
  const {
18308
17945
  crossAxis = false,
18309
17946
  alignment,
18310
- allowedPlacements = placements,
17947
+ allowedPlacements = placements$1,
18311
17948
  autoAlignment = true,
18312
17949
  ...detectOverflowOptions
18313
17950
  } = floating_ui_utils_evaluate(options, state);
18314
- const placements$12 = alignment !== void 0 || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
17951
+ const placements$1$1 = alignment !== void 0 || allowedPlacements === placements$1 ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
18315
17952
  const overflow = await detectOverflow(state, detectOverflowOptions);
18316
17953
  const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
18317
- const currentPlacement = placements$12[currentIndex];
17954
+ const currentPlacement = placements$1$1[currentIndex];
18318
17955
  if (currentPlacement == null) {
18319
17956
  return {};
18320
17957
  }
@@ -18322,7 +17959,7 @@ const autoPlacement = function(options) {
18322
17959
  if (placement !== currentPlacement) {
18323
17960
  return {
18324
17961
  reset: {
18325
- placement: placements$12[0]
17962
+ placement: placements$1$1[0]
18326
17963
  }
18327
17964
  };
18328
17965
  }
@@ -18331,7 +17968,7 @@ const autoPlacement = function(options) {
18331
17968
  placement: currentPlacement,
18332
17969
  overflows: currentOverflows
18333
17970
  }];
18334
- const nextPlacement = placements$12[currentIndex + 1];
17971
+ const nextPlacement = placements$1$1[currentIndex + 1];
18335
17972
  if (nextPlacement) {
18336
17973
  return {
18337
17974
  data: {
@@ -33318,7 +32955,7 @@ var __webpack_exports__$1 = {};
33318
32955
  setup: function setup26(props2) {
33319
32956
  var tagRef = (0, external_vue_namespaceObject2.ref)();
33320
32957
  var isOverflow = (0, external_vue_namespaceObject2.ref)(false);
33321
- var overflowTips = (0, external_vue_namespaceObject2.computed)(function() {
32958
+ var overflowTips2 = (0, external_vue_namespaceObject2.computed)(function() {
33322
32959
  return tag_render_objectSpread({
33323
32960
  boundary: "window",
33324
32961
  theme: "light",
@@ -33331,7 +32968,7 @@ var __webpack_exports__$1 = {};
33331
32968
  isOverflow.value = (0, shared_namespaceObject2.checkOverflow)(tagRef.value);
33332
32969
  });
33333
32970
  return {
33334
- overflowTips,
32971
+ overflowTips: overflowTips2,
33335
32972
  tagRef
33336
32973
  };
33337
32974
  },
@@ -40697,511 +40334,6 @@ var BkDatePicker = (0, shared_namespaceObject.withInstall)(date_picker);
40697
40334
  const src = BkDatePicker;
40698
40335
  __webpack_exports__.TimePicker;
40699
40336
  var __webpack_exports__default = __webpack_exports__["default"];
40700
- const DbIcon = defineComponent({
40701
- name: "DbIcon",
40702
- props: {
40703
- type: {
40704
- type: String,
40705
- required: true
40706
- },
40707
- svg: {
40708
- type: Boolean,
40709
- default: false
40710
- }
40711
- },
40712
- render() {
40713
- if (this.svg) {
40714
- return h$1(
40715
- "svg",
40716
- {
40717
- class: {
40718
- "db-svg-icon": true
40719
- }
40720
- },
40721
- [
40722
- h$1("use", {
40723
- "xlink:href": `#db-icon-${this.type}`
40724
- })
40725
- ]
40726
- );
40727
- }
40728
- const classes2 = {
40729
- "ediatable-icon": true,
40730
- [`icon-${this.type}`]: true
40731
- };
40732
- return h$1("i", {
40733
- class: classes2
40734
- });
40735
- }
40736
- });
40737
- const _hoisted_1$5 = {
40738
- key: 0,
40739
- class: "input-error"
40740
- };
40741
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
40742
- __name: "date-time-picker-column",
40743
- props: /* @__PURE__ */ mergeModels({
40744
- placeholder: { default: "" },
40745
- rules: { default: void 0 },
40746
- type: { default: void 0 },
40747
- disabled: { type: Boolean, default: false }
40748
- }, {
40749
- "modelValue": {},
40750
- "modelModifiers": {}
40751
- }),
40752
- emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
40753
- setup(__props, { expose: __expose, emit: __emit }) {
40754
- const props2 = __props;
40755
- const emits = __emit;
40756
- const modelValue = useModel(__props, "modelValue");
40757
- const attrs = useAttrs();
40758
- const slots = useSlots();
40759
- const { message: errorMessage, validator: validator11 } = useValidtor(props2.rules);
40760
- const handleChange = (value) => {
40761
- modelValue.value = value;
40762
- validator11(modelValue.value).then(() => {
40763
- emits("change", modelValue.value);
40764
- });
40765
- };
40766
- const handleOpenChange = (open) => {
40767
- if (!open) {
40768
- validator11(modelValue.value);
40769
- }
40770
- };
40771
- __expose({
40772
- getValue() {
40773
- return validator11(modelValue.value).then(() => modelValue.value);
40774
- }
40775
- });
40776
- return (_ctx, _cache) => {
40777
- const _directive_bk_tooltips = resolveDirective("bk-tooltips");
40778
- return openBlock(), createElementBlock(
40779
- "div",
40780
- {
40781
- class: normalizeClass(["bk-ediatable-time-picker", {
40782
- "is-error": Boolean(unref(errorMessage)),
40783
- "is-disabled": _ctx.disabled
40784
- }])
40785
- },
40786
- [
40787
- createVNode(unref(__webpack_exports__default), mergeProps({
40788
- "append-to-body": "",
40789
- clearable: false,
40790
- "model-value": modelValue.value,
40791
- placeholder: _ctx.placeholder,
40792
- style: { "width": "100%" },
40793
- type: _ctx.type
40794
- }, unref(attrs), {
40795
- onChange: handleChange,
40796
- onOpenChange: handleOpenChange
40797
- }), createSlots({
40798
- _: 2
40799
- /* DYNAMIC */
40800
- }, [
40801
- unref(slots).footer ? {
40802
- name: "footer",
40803
- fn: withCtx(() => [
40804
- renderSlot(_ctx.$slots, "footer")
40805
- ]),
40806
- key: "0"
40807
- } : void 0
40808
- ]), 1040, ["model-value", "placeholder", "type"]),
40809
- unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
40810
- withDirectives(createVNode(
40811
- unref(DbIcon),
40812
- { type: "exclamation-fill" },
40813
- null,
40814
- 512
40815
- /* NEED_PATCH */
40816
- ), [
40817
- [_directive_bk_tooltips, unref(errorMessage)]
40818
- ])
40819
- ])) : createCommentVNode("v-if", true)
40820
- ],
40821
- 2
40822
- /* CLASS */
40823
- );
40824
- };
40825
- }
40826
- });
40827
- const _hoisted_1$4 = {
40828
- key: 1,
40829
- class: "blur-dispaly-main"
40830
- };
40831
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
40832
- __name: "input-column",
40833
- props: /* @__PURE__ */ mergeModels({
40834
- placeholder: { default: "请输入" },
40835
- rules: { default: void 0 },
40836
- disabled: { type: Boolean, default: false },
40837
- type: { default: "text" },
40838
- min: { default: Number.MIN_SAFE_INTEGER },
40839
- max: { default: Number.MAX_SAFE_INTEGER },
40840
- isShowBlur: { type: Boolean, default: false },
40841
- precision: { default: 0 }
40842
- }, {
40843
- "modelValue": {
40844
- default: ""
40845
- },
40846
- "modelModifiers": {}
40847
- }),
40848
- emits: /* @__PURE__ */ mergeModels(["submit"], ["update:modelValue"]),
40849
- setup(__props, { expose: __expose, emit: __emit }) {
40850
- const props2 = __props;
40851
- const emits = __emit;
40852
- const modelValue = useModel(__props, "modelValue");
40853
- const rootRef = ref();
40854
- const isBlur = ref(true);
40855
- const isPassword = computed(() => props2.type === "password");
40856
- let oldInputText = "";
40857
- const {
40858
- message: errorMessage,
40859
- validator: validator11
40860
- } = useValidtor(props2.rules);
40861
- const handleInput = (value) => {
40862
- isBlur.value = false;
40863
- modelValue.value = value;
40864
- };
40865
- const handleBlur = (event) => {
40866
- isBlur.value = true;
40867
- if (props2.disabled) {
40868
- event.preventDefault();
40869
- return;
40870
- }
40871
- if (modelValue.value) {
40872
- if (oldInputText === modelValue.value) {
40873
- return;
40874
- }
40875
- oldInputText = modelValue.value;
40876
- validator11(modelValue.value).then(() => {
40877
- emits("submit", modelValue.value);
40878
- });
40879
- return;
40880
- }
40881
- emits("submit", modelValue.value);
40882
- };
40883
- const handleKeydown = (_value, event) => {
40884
- if (props2.disabled) {
40885
- event.preventDefault();
40886
- return;
40887
- }
40888
- if (event.isComposing) {
40889
- return;
40890
- }
40891
- if (event.which === 13 || event.key === "Enter") {
40892
- if (oldInputText === modelValue.value) {
40893
- return;
40894
- }
40895
- oldInputText = modelValue.value;
40896
- event.preventDefault();
40897
- validator11(modelValue.value).then((result) => {
40898
- if (result) {
40899
- emits("submit", modelValue.value);
40900
- }
40901
- });
40902
- }
40903
- };
40904
- const handlePaste = (_value, event) => {
40905
- event.preventDefault();
40906
- let paste = (event.clipboardData || window.clipboardData).getData("text");
40907
- paste = encodeMult(paste);
40908
- modelValue.value += paste.replace(/^\s+|\s+$/g, "");
40909
- };
40910
- __expose({
40911
- getValue() {
40912
- return validator11(modelValue.value).then(() => modelValue.value);
40913
- },
40914
- focus() {
40915
- var _a;
40916
- (_a = rootRef.value.querySelector("input")) == null ? void 0 : _a.focus();
40917
- }
40918
- });
40919
- return (_ctx, _cache) => {
40920
- const _directive_bk_tooltips = resolveDirective("bk-tooltips");
40921
- return openBlock(), createElementBlock(
40922
- "div",
40923
- {
40924
- ref_key: "rootRef",
40925
- ref: rootRef,
40926
- class: normalizeClass(["bk-ediatable-input", {
40927
- "is-error": Boolean(unref(errorMessage)),
40928
- "is-disabled": _ctx.disabled,
40929
- "is-password": isPassword.value
40930
- }])
40931
- },
40932
- [
40933
- createVNode(unref(__webpack_exports__default$6), mergeProps({
40934
- class: "input-box",
40935
- disabled: _ctx.disabled,
40936
- max: _ctx.max,
40937
- min: _ctx.min,
40938
- "model-value": modelValue.value,
40939
- placeholder: _ctx.placeholder,
40940
- type: _ctx.type
40941
- }, _ctx.$attrs, {
40942
- precision: _ctx.precision,
40943
- onBlur: handleBlur,
40944
- onChange: handleInput,
40945
- onFocus: _cache[0] || (_cache[0] = () => isBlur.value = false),
40946
- onInput: handleInput,
40947
- onKeydown: handleKeydown,
40948
- onPaste: handlePaste
40949
- }), {
40950
- suffix: withCtx(() => []),
40951
- _: 1
40952
- /* STABLE */
40953
- }, 16, ["disabled", "max", "min", "model-value", "placeholder", "type", "precision"]),
40954
- unref(errorMessage) ? withDirectives((openBlock(), createBlock(
40955
- unref(DbIcon),
40956
- {
40957
- key: 0,
40958
- class: "error-icon",
40959
- type: "exclamation-fill"
40960
- },
40961
- null,
40962
- 512
40963
- /* NEED_PATCH */
40964
- )), [
40965
- [_directive_bk_tooltips, unref(errorMessage)]
40966
- ]) : createCommentVNode("v-if", true),
40967
- _ctx.isShowBlur && isBlur.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
40968
- renderSlot(_ctx.$slots, "blur")
40969
- ])) : createCommentVNode("v-if", true)
40970
- ],
40971
- 2
40972
- /* CLASS */
40973
- );
40974
- };
40975
- }
40976
- });
40977
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
40978
- __name: "fixed-column",
40979
- props: {
40980
- fixed: { default: "right" }
40981
- },
40982
- setup(__props) {
40983
- const props2 = __props;
40984
- const { isOverflow: isFixed } = inject(renderTablekey);
40985
- const isFixedRight = computed(() => (isFixed == null ? void 0 : isFixed.value) && props2.fixed === "right");
40986
- const isFixedLeft = computed(() => (isFixed == null ? void 0 : isFixed.value) && props2.fixed === "left");
40987
- return (_ctx, _cache) => {
40988
- return openBlock(), createElementBlock(
40989
- "td",
40990
- {
40991
- class: normalizeClass({
40992
- "bk-ediatable-right-fixed-column": isFixedRight.value,
40993
- "bk-ediatable-left-fixed-column": isFixedLeft.value
40994
- })
40995
- },
40996
- [
40997
- renderSlot(_ctx.$slots, "default")
40998
- ],
40999
- 2
41000
- /* CLASS */
41001
- );
41002
- };
41003
- }
41004
- });
41005
- const _hoisted_1$3 = { class: "bk-ediatable-operation" };
41006
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
41007
- __name: "operation-column",
41008
- props: {
41009
- removeable: { type: Boolean, default: true },
41010
- showCopy: { type: Boolean, default: false },
41011
- showAdd: { type: Boolean, default: true },
41012
- showRemove: { type: Boolean, default: true }
41013
- },
41014
- emits: ["add", "copy", "remove"],
41015
- setup(__props, { emit: __emit }) {
41016
- const props2 = __props;
41017
- const emits = __emit;
41018
- const handleCopy = () => {
41019
- emits("copy");
41020
- };
41021
- const handleAppend = () => {
41022
- emits("add");
41023
- };
41024
- const handleRemove = () => {
41025
- if (props2.removeable) {
41026
- return;
41027
- }
41028
- emits("remove");
41029
- };
41030
- return (_ctx, _cache) => {
41031
- return openBlock(), createBlock(_sfc_main$4, null, {
41032
- default: withCtx(() => [
41033
- createElementVNode("div", _hoisted_1$3, [
41034
- _ctx.showCopy ? (openBlock(), createElementBlock("div", {
41035
- key: 0,
41036
- class: "action-btn",
41037
- onClick: handleCopy
41038
- }, [
41039
- createVNode(unref(DbIcon), { type: "copy" })
41040
- ])) : createCommentVNode("v-if", true),
41041
- _ctx.showAdd ? (openBlock(), createElementBlock("div", {
41042
- key: 1,
41043
- class: "action-btn",
41044
- onClick: handleAppend
41045
- }, [
41046
- createVNode(unref(DbIcon), { type: "plus-fill" })
41047
- ])) : createCommentVNode("v-if", true),
41048
- _ctx.showRemove ? (openBlock(), createElementBlock(
41049
- "div",
41050
- {
41051
- key: 2,
41052
- class: normalizeClass(["action-btn", {
41053
- disabled: _ctx.removeable
41054
- }]),
41055
- onClick: handleRemove
41056
- },
41057
- [
41058
- createVNode(unref(DbIcon), { type: "minus-fill" })
41059
- ],
41060
- 2
41061
- /* CLASS */
41062
- )) : createCommentVNode("v-if", true)
41063
- ])
41064
- ]),
41065
- _: 1
41066
- /* STABLE */
41067
- });
41068
- };
41069
- }
41070
- });
41071
- const _hoisted_1$2 = {
41072
- key: 0,
41073
- class: "select-error"
41074
- };
41075
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
41076
- __name: "select-column",
41077
- props: /* @__PURE__ */ mergeModels({
41078
- list: {},
41079
- placeholder: { default: "请选择" },
41080
- rules: { default: () => [] },
41081
- disabled: { type: Boolean, default: false },
41082
- multiple: { type: Boolean, default: false },
41083
- showSelectAll: { type: Boolean, default: false }
41084
- }, {
41085
- "modelValue": {},
41086
- "modelModifiers": {}
41087
- }),
41088
- emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
41089
- setup(__props, { expose: __expose, emit: __emit }) {
41090
- const { Option } = __webpack_exports__default$2;
41091
- const props2 = __props;
41092
- const emits = __emit;
41093
- const modelValue = useModel(__props, "modelValue");
41094
- const rootRef = ref();
41095
- const localValue = ref("");
41096
- const rootHeight = ref(42);
41097
- const { message: errorMessage, validator: validator11 } = useValidtor(props2.rules);
41098
- watch(
41099
- modelValue,
41100
- (value) => {
41101
- if (value === void 0) {
41102
- return;
41103
- }
41104
- localValue.value = value;
41105
- if (typeof value !== "object" && value) {
41106
- validator11(value);
41107
- return;
41108
- }
41109
- if (Array.isArray(value) && value.length > 0) {
41110
- validator11(value);
41111
- return;
41112
- }
41113
- },
41114
- {
41115
- immediate: true
41116
- }
41117
- );
41118
- const handleSelect = (value) => {
41119
- localValue.value = value;
41120
- validator11(localValue.value).then(() => {
41121
- modelValue.value = value;
41122
- emits("change", localValue.value);
41123
- });
41124
- };
41125
- const handleRemove = () => {
41126
- localValue.value = "";
41127
- validator11(localValue.value).then(() => {
41128
- modelValue.value = localValue.value;
41129
- emits("change", localValue.value);
41130
- });
41131
- };
41132
- const checkRootHeight = () => {
41133
- rootHeight.value = rootRef.value.parentNode.clientHeight;
41134
- };
41135
- useResizeObserver(rootRef, _$1.throttle(checkRootHeight, 500));
41136
- __expose({
41137
- getValue() {
41138
- return validator11(localValue.value).then(() => localValue.value);
41139
- }
41140
- });
41141
- return (_ctx, _cache) => {
41142
- const _directive_bk_tooltips = resolveDirective("bk-tooltips");
41143
- return openBlock(), createElementBlock(
41144
- "div",
41145
- {
41146
- ref_key: "rootRef",
41147
- ref: rootRef,
41148
- class: normalizeClass(["bk-ediatable-select", {
41149
- "is-error": Boolean(unref(errorMessage)),
41150
- "is-disable": _ctx.disabled
41151
- }]),
41152
- style: normalizeStyle({ height: rootHeight.value + "px" })
41153
- },
41154
- [
41155
- createVNode(unref(__webpack_exports__default$2), mergeProps(_ctx.$attrs, {
41156
- "model-value": localValue.value,
41157
- "auto-focus": "",
41158
- class: "select-box",
41159
- clearable: false,
41160
- disabled: _ctx.disabled,
41161
- filterable: "",
41162
- "input-search": false,
41163
- multiple: _ctx.multiple,
41164
- placeholder: _ctx.placeholder,
41165
- "show-select-all": _ctx.showSelectAll,
41166
- onChange: handleSelect,
41167
- onClear: handleRemove
41168
- }), {
41169
- default: withCtx(() => [
41170
- (openBlock(true), createElementBlock(
41171
- Fragment,
41172
- null,
41173
- renderList(_ctx.list, (item, index2) => {
41174
- return openBlock(), createBlock(unref(Option), {
41175
- key: index2,
41176
- label: item.label,
41177
- value: item.value
41178
- }, null, 8, ["label", "value"]);
41179
- }),
41180
- 128
41181
- /* KEYED_FRAGMENT */
41182
- ))
41183
- ]),
41184
- _: 1
41185
- /* STABLE */
41186
- }, 16, ["model-value", "disabled", "multiple", "placeholder", "show-select-all"]),
41187
- unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
41188
- withDirectives(createVNode(
41189
- unref(DbIcon),
41190
- { type: "exclamation-fill" },
41191
- null,
41192
- 512
41193
- /* NEED_PATCH */
41194
- ), [
41195
- [_directive_bk_tooltips, unref(errorMessage)]
41196
- ])
41197
- ])) : createCommentVNode("v-if", true)
41198
- ],
41199
- 6
41200
- /* CLASS, STYLE */
41201
- );
41202
- };
41203
- }
41204
- });
41205
40337
  var BOX_CLASS = "tippy-box";
41206
40338
  var CONTENT_CLASS = "tippy-content";
41207
40339
  var BACKDROP_CLASS = "tippy-backdrop";
@@ -41412,7 +40544,7 @@ var renderProps = {
41412
40544
  theme: "",
41413
40545
  zIndex: 9999
41414
40546
  };
41415
- var defaultProps = Object.assign({
40547
+ var defaultProps$1 = Object.assign({
41416
40548
  appendTo: TIPPY_DEFAULT_APPEND_TO,
41417
40549
  aria: {
41418
40550
  content: "auto",
@@ -41461,11 +40593,11 @@ var defaultProps = Object.assign({
41461
40593
  trigger: "mouseenter focus",
41462
40594
  triggerTarget: null
41463
40595
  }, pluginProps, renderProps);
41464
- var defaultKeys = Object.keys(defaultProps);
40596
+ var defaultKeys = Object.keys(defaultProps$1);
41465
40597
  var setDefaultProps = function setDefaultProps2(partialProps) {
41466
40598
  var keys2 = Object.keys(partialProps);
41467
40599
  keys2.forEach(function(key) {
41468
- defaultProps[key] = partialProps[key];
40600
+ defaultProps$1[key] = partialProps[key];
41469
40601
  });
41470
40602
  };
41471
40603
  function getExtendedPassedProps(passedProps) {
@@ -41474,14 +40606,14 @@ function getExtendedPassedProps(passedProps) {
41474
40606
  var name = plugin.name, defaultValue = plugin.defaultValue;
41475
40607
  if (name) {
41476
40608
  var _name;
41477
- acc[name] = passedProps[name] !== void 0 ? passedProps[name] : (_name = defaultProps[name]) != null ? _name : defaultValue;
40609
+ acc[name] = passedProps[name] !== void 0 ? passedProps[name] : (_name = defaultProps$1[name]) != null ? _name : defaultValue;
41478
40610
  }
41479
40611
  return acc;
41480
40612
  }, {});
41481
40613
  return Object.assign({}, passedProps, pluginProps2);
41482
40614
  }
41483
40615
  function getDataAttributeProps(reference2, plugins) {
41484
- var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, defaultProps, {
40616
+ var propKeys = plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, defaultProps$1, {
41485
40617
  plugins
41486
40618
  }))) : defaultKeys;
41487
40619
  var props2 = propKeys.reduce(function(acc, key) {
@@ -41506,7 +40638,7 @@ function evaluateProps(reference2, props2) {
41506
40638
  var out = Object.assign({}, props2, {
41507
40639
  content: invokeWithArgsOrReturn(props2.content, [reference2])
41508
40640
  }, props2.ignoreAttributes ? {} : getDataAttributeProps(reference2, props2.plugins));
41509
- out.aria = Object.assign({}, defaultProps.aria, out.aria);
40641
+ out.aria = Object.assign({}, defaultProps$1.aria, out.aria);
41510
40642
  out.aria = {
41511
40643
  expanded: out.aria.expanded === "auto" ? props2.interactive : out.aria.expanded,
41512
40644
  content: out.aria.content === "auto" ? props2.interactive ? null : "describedby" : out.aria.content
@@ -41621,7 +40753,7 @@ var idCounter = 1;
41621
40753
  var mouseMoveListeners = [];
41622
40754
  var mountedInstances = [];
41623
40755
  function createTippy(reference2, passedProps) {
41624
- var props2 = evaluateProps(reference2, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps))));
40756
+ var props2 = evaluateProps(reference2, Object.assign({}, defaultProps$1, getExtendedPassedProps(removeUndefinedProps(passedProps))));
41625
40757
  var showTimeout;
41626
40758
  var hideTimeout;
41627
40759
  var scheduleHideAnimationFrame;
@@ -41727,7 +40859,7 @@ function createTippy(reference2, passedProps) {
41727
40859
  if (instance2.state.isMounted && !instance2.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === "focus") {
41728
40860
  return 0;
41729
40861
  }
41730
- return getValueAtIndexOrReturn(instance2.props.delay, isShow ? 0 : 1, defaultProps.delay);
40862
+ return getValueAtIndexOrReturn(instance2.props.delay, isShow ? 0 : 1, defaultProps$1.delay);
41731
40863
  }
41732
40864
  function handleStyles(fromHide) {
41733
40865
  if (fromHide === void 0) {
@@ -42191,7 +41323,7 @@ function createTippy(reference2, passedProps) {
42191
41323
  var isDestroyed = instance2.state.isDestroyed;
42192
41324
  var isDisabled = !instance2.state.isEnabled;
42193
41325
  var isTouchAndTouchDisabled = currentInput.isTouch && !instance2.props.touch;
42194
- var duration = getValueAtIndexOrReturn(instance2.props.duration, 0, defaultProps.duration);
41326
+ var duration = getValueAtIndexOrReturn(instance2.props.duration, 0, defaultProps$1.duration);
42195
41327
  if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
42196
41328
  return;
42197
41329
  }
@@ -42246,7 +41378,7 @@ function createTippy(reference2, passedProps) {
42246
41378
  var isAlreadyHidden = !instance2.state.isVisible;
42247
41379
  var isDestroyed = instance2.state.isDestroyed;
42248
41380
  var isDisabled = !instance2.state.isEnabled;
42249
- var duration = getValueAtIndexOrReturn(instance2.props.duration, 1, defaultProps.duration);
41381
+ var duration = getValueAtIndexOrReturn(instance2.props.duration, 1, defaultProps$1.duration);
42250
41382
  if (isAlreadyHidden || isDestroyed || isDisabled) {
42251
41383
  return;
42252
41384
  }
@@ -42322,7 +41454,7 @@ function tippy(targets, optionalProps) {
42322
41454
  if (optionalProps === void 0) {
42323
41455
  optionalProps = {};
42324
41456
  }
42325
- var plugins = defaultProps.plugins.concat(optionalProps.plugins || []);
41457
+ var plugins = defaultProps$1.plugins.concat(optionalProps.plugins || []);
42326
41458
  bindGlobalEventListeners();
42327
41459
  var passedProps = Object.assign({}, optionalProps, {
42328
41460
  plugins
@@ -42337,7 +41469,7 @@ function tippy(targets, optionalProps) {
42337
41469
  }, []);
42338
41470
  return isElement5(targets) ? instances[0] : instances;
42339
41471
  }
42340
- tippy.defaultProps = defaultProps;
41472
+ tippy.defaultProps = defaultProps$1;
42341
41473
  tippy.setDefaultProps = setDefaultProps;
42342
41474
  tippy.currentInput = currentInput;
42343
41475
  Object.assign({}, applyStyles$1, {
@@ -42365,6 +41497,1042 @@ Object.assign({}, applyStyles$1, {
42365
41497
  tippy.setDefaultProps({
42366
41498
  render: render27
42367
41499
  });
41500
+ const dbTheme = "db-tippy";
41501
+ const dbDefaultProps = { theme: dbTheme };
41502
+ function dbTippy(targets, optionalProps) {
41503
+ const props2 = optionalProps ? { ...optionalProps } : optionalProps;
41504
+ if (props2) {
41505
+ const { theme } = props2;
41506
+ props2.theme = theme ? `${dbTheme} ${props2.theme}` : dbTheme;
41507
+ }
41508
+ if (targets instanceof Element) {
41509
+ const target = targets;
41510
+ return tippy(target, props2 || dbDefaultProps);
41511
+ }
41512
+ return tippy(targets, props2 || dbDefaultProps);
41513
+ }
41514
+ const placements = [
41515
+ "top",
41516
+ "bottom",
41517
+ "right",
41518
+ "left",
41519
+ "auto",
41520
+ "auto-start",
41521
+ "auto-end",
41522
+ "top-start",
41523
+ "top-end",
41524
+ "bottom-start",
41525
+ "bottom-end",
41526
+ "right-start",
41527
+ "right-end",
41528
+ "left-start",
41529
+ "left-end"
41530
+ ];
41531
+ function checkOverflow(el) {
41532
+ if (!el) return false;
41533
+ const createDom = (el2, css) => {
41534
+ const dom = document.createElement("div");
41535
+ const width = parseFloat(css.width) ? `${Math.ceil(parseFloat(css.width))}px` : css.width;
41536
+ dom.style.cssText = `
41537
+ width: ${width};
41538
+ line-height: ${css.lineHeight};
41539
+ font-size: ${css.fontSize};
41540
+ word-break: ${css.wordBreak};
41541
+ padding: ${css.padding};
41542
+ `;
41543
+ dom.textContent = el2.textContent;
41544
+ return dom;
41545
+ };
41546
+ let isOverflow = false;
41547
+ try {
41548
+ const css = window.getComputedStyle(el, null);
41549
+ const lineClamp = css.webkitLineClamp;
41550
+ if (lineClamp !== "none") {
41551
+ const targetHeight = parseFloat(css.height);
41552
+ const dom = createDom(el, css);
41553
+ document.body.appendChild(dom);
41554
+ const domHeight = window.getComputedStyle(dom, null).height;
41555
+ document.body.removeChild(dom);
41556
+ isOverflow = targetHeight < parseFloat(domHeight);
41557
+ } else {
41558
+ isOverflow = el.clientWidth < el.scrollWidth || el.clientHeight < el.scrollHeight;
41559
+ }
41560
+ } catch (e2) {
41561
+ console.warn("There is an error when check element overflow state: ", e2);
41562
+ }
41563
+ return isOverflow;
41564
+ }
41565
+ function beforeShow(instance2) {
41566
+ const { reference: reference2 } = instance2;
41567
+ const { props: props2 } = reference2._bk_overflow_tips_;
41568
+ const isOverflow = checkOverflow(reference2);
41569
+ if (isOverflow) {
41570
+ let { content: content2 } = props2;
41571
+ if (!content2) {
41572
+ content2 = props2.allowHTML ? reference2.innerHTML : reference2.textContent;
41573
+ }
41574
+ instance2.setContent(content2);
41575
+ return true;
41576
+ }
41577
+ return false;
41578
+ }
41579
+ function setupOnShow(props2, customProps) {
41580
+ props2.onShow = (instance2) => {
41581
+ if (typeof customProps.onShow === "function") {
41582
+ const result = customProps.onShow(instance2);
41583
+ if (!result) return false;
41584
+ }
41585
+ const isShow = beforeShow(instance2);
41586
+ if (!isShow) return false;
41587
+ };
41588
+ }
41589
+ function setupTheme(props2, customProps) {
41590
+ const theme = ["db-tippy bk-overflow-tips"];
41591
+ if (customProps.theme) {
41592
+ theme.push(customProps.theme);
41593
+ }
41594
+ props2.theme = theme.join(" ");
41595
+ }
41596
+ function formatModifiers(modifiers) {
41597
+ const keys2 = Object.entries(modifiers).map((item) => item[0]);
41598
+ if (keys2.length === 0) return {};
41599
+ const props2 = {};
41600
+ for (const key of keys2) {
41601
+ if (placements.includes(key)) {
41602
+ props2.placement = key;
41603
+ }
41604
+ }
41605
+ return props2;
41606
+ }
41607
+ const defaultProps = {
41608
+ arrow: true,
41609
+ interactive: true,
41610
+ delay: 150,
41611
+ allowHTML: false,
41612
+ maxWidth: 600,
41613
+ // boundary: 'window',
41614
+ placement: "top",
41615
+ appendTo: () => document.body
41616
+ };
41617
+ const overflowTips = {
41618
+ mounted(el, binding) {
41619
+ const customProps = typeof binding.value === "object" ? binding.value : formatModifiers(binding.modifiers);
41620
+ const props2 = Object.assign({ ...defaultProps }, customProps);
41621
+ setupOnShow(props2, customProps);
41622
+ setupTheme(props2, customProps);
41623
+ el._bk_overflow_tips_ = {
41624
+ props: props2,
41625
+ // 指令配置的props单独存储方便后续做判断
41626
+ instance: dbTippy(el, props2)
41627
+ };
41628
+ },
41629
+ updated(el, binding) {
41630
+ const { props: props2, instance: instance2 } = el._bk_overflow_tips_;
41631
+ const customProps = typeof binding.value === "object" ? binding.value : formatModifiers(binding.modifiers);
41632
+ Object.assign(props2, customProps);
41633
+ setupOnShow(props2, customProps);
41634
+ setupTheme(props2, customProps);
41635
+ instance2.setProps(props2);
41636
+ },
41637
+ beforeUnmount(el) {
41638
+ el._tippy && el._tippy.destroy();
41639
+ delete el._bk_overflow_tips_;
41640
+ }
41641
+ };
41642
+ const random2 = () => `${_$1.random(0, 999999)}_${Date.now()}_${_$1.random(0, 999999)}`;
41643
+ const encodeMult = (text) => {
41644
+ const temp = document.createElement("textarea");
41645
+ temp.value = text;
41646
+ return temp.value;
41647
+ };
41648
+ function tryOnScopeDispose(fn2) {
41649
+ if (getCurrentScope()) {
41650
+ onScopeDispose(fn2);
41651
+ return true;
41652
+ }
41653
+ return false;
41654
+ }
41655
+ function toValue(r2) {
41656
+ return typeof r2 === "function" ? r2() : unref(r2);
41657
+ }
41658
+ const isClient = typeof window !== "undefined" && typeof document !== "undefined";
41659
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
41660
+ function unrefElement(elRef) {
41661
+ var _a;
41662
+ const plain = toValue(elRef);
41663
+ return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;
41664
+ }
41665
+ const defaultWindow = isClient ? window : void 0;
41666
+ function useMounted() {
41667
+ const isMounted = ref(false);
41668
+ const instance2 = getCurrentInstance();
41669
+ if (instance2) {
41670
+ onMounted(() => {
41671
+ isMounted.value = true;
41672
+ }, instance2);
41673
+ }
41674
+ return isMounted;
41675
+ }
41676
+ function useSupported(callback) {
41677
+ const isMounted = useMounted();
41678
+ return computed(() => {
41679
+ isMounted.value;
41680
+ return Boolean(callback());
41681
+ });
41682
+ }
41683
+ function useResizeObserver(target, callback, options = {}) {
41684
+ const { window: window2 = defaultWindow, ...observerOptions } = options;
41685
+ let observer;
41686
+ const isSupported = useSupported(() => window2 && "ResizeObserver" in window2);
41687
+ const cleanup = () => {
41688
+ if (observer) {
41689
+ observer.disconnect();
41690
+ observer = void 0;
41691
+ }
41692
+ };
41693
+ const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);
41694
+ const stopWatch = watch(
41695
+ targets,
41696
+ (els) => {
41697
+ cleanup();
41698
+ if (isSupported.value && window2) {
41699
+ observer = new ResizeObserver(callback);
41700
+ for (const _el of els)
41701
+ _el && observer.observe(_el, observerOptions);
41702
+ }
41703
+ },
41704
+ { immediate: true, flush: "post" }
41705
+ );
41706
+ const stop = () => {
41707
+ cleanup();
41708
+ stopWatch();
41709
+ };
41710
+ tryOnScopeDispose(stop);
41711
+ return {
41712
+ isSupported,
41713
+ stop
41714
+ };
41715
+ }
41716
+ const _hoisted_1$6 = ["data-fixed", "data-maxWidth", "data-minWidth", "data-width"];
41717
+ const _hoisted_2$2 = { class: "th-cell" };
41718
+ const _hoisted_3$1 = { style: { "display": "inline-block", "line-height": "40px", "vertical-align": "top" } };
41719
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
41720
+ __name: "head-column",
41721
+ props: {
41722
+ fixed: { default: void 0 },
41723
+ maxWidth: { default: void 0 },
41724
+ minWidth: { default: void 0 },
41725
+ required: { type: Boolean, default: true },
41726
+ width: { default: void 0 },
41727
+ renderAppend: { type: Function, default: void 0 },
41728
+ memo: { default: void 0 }
41729
+ },
41730
+ setup(__props) {
41731
+ const props2 = __props;
41732
+ const slots = useSlots();
41733
+ const { rowWidth, isOverflow: isMinimize, isScrollToLeft, isScrollToRight } = inject(renderTablekey);
41734
+ const parentTable = inject(tableColumnResizekey);
41735
+ const columnRef = ref();
41736
+ const currentWidth = ref(0);
41737
+ const vBkTooltips = __webpack_exports__bkTooltips;
41738
+ const vOverflowTips = overflowTips;
41739
+ const columnKey = random2();
41740
+ let initWidthRate = 0;
41741
+ let isDragedSelf = false;
41742
+ const finalMinWidth = computed(() => props2.minWidth ? props2.minWidth : props2.width ?? 100);
41743
+ const isFixedRight = computed(() => props2.fixed === "right");
41744
+ const isFixedLeft = computed(() => props2.fixed === "left");
41745
+ const styles = computed(() => {
41746
+ if (props2.width && (rowWidth == null ? void 0 : rowWidth.value) && finalMinWidth.value) {
41747
+ const newWidth = rowWidth.value * initWidthRate;
41748
+ if (newWidth !== props2.width) {
41749
+ let width = 0;
41750
+ if (isMinimize == null ? void 0 : isMinimize.value) {
41751
+ if (currentWidth.value !== 0 && (currentWidth.value !== finalMinWidth.value || currentWidth.value !== props2.width)) {
41752
+ width = currentWidth.value;
41753
+ } else {
41754
+ width = finalMinWidth.value;
41755
+ }
41756
+ } else if (newWidth > finalMinWidth.value) {
41757
+ width = newWidth;
41758
+ } else {
41759
+ width = finalMinWidth.value;
41760
+ }
41761
+ return {
41762
+ minWidth: `${width}px`
41763
+ };
41764
+ }
41765
+ }
41766
+ return {
41767
+ minWidth: props2.width ? `${props2.width}px` : "120px"
41768
+ };
41769
+ });
41770
+ const RenderAppendElement = computed(() => props2.renderAppend && props2.renderAppend());
41771
+ watch(
41772
+ () => [props2.width, rowWidth == null ? void 0 : rowWidth.value, currentWidth.value],
41773
+ ([width, rowWidth2, currentWidth2]) => {
41774
+ if (!isDragedSelf) {
41775
+ return;
41776
+ }
41777
+ if (width && rowWidth2 && currentWidth2 && finalMinWidth.value) {
41778
+ isDragedSelf = false;
41779
+ if (currentWidth2 !== 0 && (currentWidth2 !== finalMinWidth.value || currentWidth2 !== width)) {
41780
+ initWidthRate = currentWidth2 / rowWidth2;
41781
+ } else {
41782
+ initWidthRate = (isMinimize == null ? void 0 : isMinimize.value) ? finalMinWidth.value / rowWidth2 : width / rowWidth2;
41783
+ }
41784
+ }
41785
+ },
41786
+ {
41787
+ immediate: true
41788
+ }
41789
+ );
41790
+ useResizeObserver(columnRef, () => {
41791
+ if (!isDragedSelf) {
41792
+ return;
41793
+ }
41794
+ const width = parseFloat(columnRef.value.style.width);
41795
+ currentWidth.value = width;
41796
+ });
41797
+ const handleMouseDown = (event) => {
41798
+ isDragedSelf = true;
41799
+ parentTable == null ? void 0 : parentTable.columnMousedown(event, {
41800
+ columnKey,
41801
+ minWidth: finalMinWidth.value
41802
+ });
41803
+ };
41804
+ const handleMouseMove = (event) => {
41805
+ parentTable == null ? void 0 : parentTable.columnMouseMove(event);
41806
+ };
41807
+ return (_ctx, _cache) => {
41808
+ return openBlock(), createElementBlock("th", {
41809
+ ref_key: "columnRef",
41810
+ ref: columnRef,
41811
+ class: normalizeClass(["bk-ediatable-head-column", {
41812
+ [`column-${unref(columnKey)}`]: true,
41813
+ "is-right-fixed": unref(isMinimize) && isFixedRight.value && !unref(isScrollToRight),
41814
+ "is-left-fixed": unref(isMinimize) && isFixedLeft.value && !unref(isScrollToLeft)
41815
+ }]),
41816
+ "data-fixed": _ctx.fixed,
41817
+ "data-maxWidth": _ctx.maxWidth,
41818
+ "data-minWidth": finalMinWidth.value,
41819
+ "data-width": _ctx.width,
41820
+ style: normalizeStyle(styles.value),
41821
+ onMousedown: handleMouseDown,
41822
+ onMousemove: handleMouseMove
41823
+ }, [
41824
+ createElementVNode(
41825
+ "div",
41826
+ {
41827
+ class: normalizeClass({ "is-required": _ctx.required })
41828
+ },
41829
+ [
41830
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_2$2, [
41831
+ withDirectives((openBlock(), createElementBlock(
41832
+ "span",
41833
+ {
41834
+ class: normalizeClass({ "title-memo": _ctx.memo })
41835
+ },
41836
+ [
41837
+ renderSlot(_ctx.$slots, "default")
41838
+ ],
41839
+ 2
41840
+ /* CLASS */
41841
+ )), [
41842
+ [unref(vBkTooltips), {
41843
+ content: _ctx.memo,
41844
+ disabled: !_ctx.memo
41845
+ }]
41846
+ ])
41847
+ ])), [
41848
+ [unref(vOverflowTips)]
41849
+ ]),
41850
+ createElementVNode("div", _hoisted_3$1, [
41851
+ slots.append && !_ctx.renderAppend ? renderSlot(_ctx.$slots, "append", { key: 0 }) : createCommentVNode("v-if", true),
41852
+ _ctx.renderAppend ? (openBlock(), createBlock(unref(RenderAppendElement), { key: 1 })) : createCommentVNode("v-if", true)
41853
+ ])
41854
+ ],
41855
+ 2
41856
+ /* CLASS */
41857
+ )
41858
+ ], 46, _hoisted_1$6);
41859
+ };
41860
+ }
41861
+ });
41862
+ const renderTablekey = Symbol("renderTable");
41863
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
41864
+ __name: "ediatable",
41865
+ props: {
41866
+ theadList: { default: () => [] }
41867
+ },
41868
+ setup(__props) {
41869
+ const slots = useSlots();
41870
+ const checkTableScroll = () => {
41871
+ rowWidth.value = tableRef.value.clientWidth;
41872
+ isOverflow.value = tableOuterRef.value.clientWidth < tableRef.value.clientWidth;
41873
+ initColumnWidth();
41874
+ };
41875
+ const tableOuterRef = ref();
41876
+ const tableRef = ref();
41877
+ const tableColumnResizeRef = ref();
41878
+ const isOverflow = ref(false);
41879
+ const rowWidth = ref(0);
41880
+ const isScrollToLeft = ref(true);
41881
+ const isScrollToRight = ref(false);
41882
+ const { initColumnWidth } = useColumnResize(tableOuterRef, tableColumnResizeRef, _$1.debounce(checkTableScroll));
41883
+ provide(renderTablekey, {
41884
+ isOverflow,
41885
+ rowWidth,
41886
+ isScrollToLeft,
41887
+ isScrollToRight
41888
+ });
41889
+ const handleScroll = _$1.throttle(() => {
41890
+ isScrollToLeft.value = tableOuterRef.value.scrollLeft === 0;
41891
+ isScrollToRight.value = tableOuterRef.value.scrollWidth - tableOuterRef.value.scrollLeft < tableOuterRef.value.clientWidth + 1;
41892
+ }, 200);
41893
+ onMounted(() => {
41894
+ window.addEventListener("resize", checkTableScroll);
41895
+ checkTableScroll();
41896
+ setTimeout(() => checkTableScroll());
41897
+ tableOuterRef.value.addEventListener("scroll", handleScroll);
41898
+ });
41899
+ onBeforeUnmount(() => {
41900
+ window.removeEventListener("resize", checkTableScroll);
41901
+ tableOuterRef.value.removeEventListener("scroll", handleScroll);
41902
+ });
41903
+ return (_ctx, _cache) => {
41904
+ return openBlock(), createElementBlock(
41905
+ "div",
41906
+ {
41907
+ id: "ediatableRenderTableKey",
41908
+ ref_key: "tableOuterRef",
41909
+ ref: tableOuterRef,
41910
+ class: normalizeClass(["bk-ediatable", { "scrollbar-exists": isOverflow.value }])
41911
+ },
41912
+ [
41913
+ createElementVNode(
41914
+ "table",
41915
+ {
41916
+ ref_key: "tableRef",
41917
+ ref: tableRef
41918
+ },
41919
+ [
41920
+ createElementVNode("thead", null, [
41921
+ createElementVNode("tr", null, [
41922
+ slots.default && _ctx.theadList.length === 0 ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(true), createElementBlock(
41923
+ Fragment,
41924
+ { key: 1 },
41925
+ renderList(_ctx.theadList, (head, index2) => {
41926
+ return openBlock(), createBlock(_sfc_main$8, {
41927
+ key: index2,
41928
+ width: head.width,
41929
+ "min-width": head.minWidth,
41930
+ "max-width": head.maxWidth,
41931
+ fixed: head.fixed,
41932
+ required: head.required,
41933
+ "render-append": head.renderAppend,
41934
+ memo: head.memo
41935
+ }, {
41936
+ default: withCtx(() => [
41937
+ createTextVNode(
41938
+ toDisplayString(head.title),
41939
+ 1
41940
+ /* TEXT */
41941
+ )
41942
+ ]),
41943
+ _: 2
41944
+ /* DYNAMIC */
41945
+ }, 1032, ["width", "min-width", "max-width", "fixed", "required", "render-append", "memo"]);
41946
+ }),
41947
+ 128
41948
+ /* KEYED_FRAGMENT */
41949
+ ))
41950
+ ])
41951
+ ]),
41952
+ renderSlot(_ctx.$slots, "data")
41953
+ ],
41954
+ 512
41955
+ /* NEED_PATCH */
41956
+ ),
41957
+ createElementVNode(
41958
+ "div",
41959
+ {
41960
+ ref_key: "tableColumnResizeRef",
41961
+ ref: tableColumnResizeRef,
41962
+ class: "table-column-resize"
41963
+ },
41964
+ null,
41965
+ 512
41966
+ /* NEED_PATCH */
41967
+ )
41968
+ ],
41969
+ 2
41970
+ /* CLASS */
41971
+ );
41972
+ };
41973
+ }
41974
+ });
41975
+ const getRuleMessage = (rule) => {
41976
+ if (typeof rule.message === "function") {
41977
+ return rule.message();
41978
+ }
41979
+ return rule.message;
41980
+ };
41981
+ function useValidtor(rules) {
41982
+ const state = reactive({
41983
+ loading: false,
41984
+ error: false,
41985
+ message: ""
41986
+ });
41987
+ const validator11 = (targetValue) => {
41988
+ state.error = false, state.message = "";
41989
+ if (!rules) {
41990
+ return Promise.resolve(true);
41991
+ }
41992
+ const run = /* @__PURE__ */ (() => {
41993
+ let stepIndex = -1;
41994
+ return async () => {
41995
+ stepIndex = stepIndex + 1;
41996
+ if (stepIndex >= rules.length) {
41997
+ return Promise.resolve(true);
41998
+ }
41999
+ const rule = rules[stepIndex];
42000
+ return Promise.resolve().then(() => {
42001
+ const result = rule.validator(targetValue);
42002
+ if (typeof result !== "boolean" && typeof result.then === "function") {
42003
+ return result.then((data2) => {
42004
+ if (data2 === false) {
42005
+ return Promise.reject(getRuleMessage(rule));
42006
+ }
42007
+ }).then(() => run(), () => {
42008
+ state.error = true;
42009
+ const message = getRuleMessage(rule);
42010
+ state.message = message;
42011
+ return Promise.reject(message);
42012
+ });
42013
+ }
42014
+ if (!result) {
42015
+ state.error = true;
42016
+ const message = getRuleMessage(rule);
42017
+ state.message = message;
42018
+ return Promise.reject(message);
42019
+ }
42020
+ return run();
42021
+ });
42022
+ };
42023
+ })();
42024
+ return run();
42025
+ };
42026
+ return {
42027
+ ...toRefs(state),
42028
+ validator: validator11
42029
+ };
42030
+ }
42031
+ const DbIcon = defineComponent({
42032
+ name: "DbIcon",
42033
+ props: {
42034
+ type: {
42035
+ type: String,
42036
+ required: true
42037
+ },
42038
+ svg: {
42039
+ type: Boolean,
42040
+ default: false
42041
+ }
42042
+ },
42043
+ render() {
42044
+ if (this.svg) {
42045
+ return h$1(
42046
+ "svg",
42047
+ {
42048
+ class: {
42049
+ "db-svg-icon": true
42050
+ }
42051
+ },
42052
+ [
42053
+ h$1("use", {
42054
+ "xlink:href": `#db-icon-${this.type}`
42055
+ })
42056
+ ]
42057
+ );
42058
+ }
42059
+ const classes2 = {
42060
+ "ediatable-icon": true,
42061
+ [`icon-${this.type}`]: true
42062
+ };
42063
+ return h$1("i", {
42064
+ class: classes2
42065
+ });
42066
+ }
42067
+ });
42068
+ const _hoisted_1$5 = {
42069
+ key: 0,
42070
+ class: "input-error"
42071
+ };
42072
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
42073
+ __name: "date-time-picker-column",
42074
+ props: /* @__PURE__ */ mergeModels({
42075
+ placeholder: { default: "" },
42076
+ rules: { default: void 0 },
42077
+ type: { default: void 0 },
42078
+ disabled: { type: Boolean, default: false }
42079
+ }, {
42080
+ "modelValue": {},
42081
+ "modelModifiers": {}
42082
+ }),
42083
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
42084
+ setup(__props, { expose: __expose, emit: __emit }) {
42085
+ const props2 = __props;
42086
+ const emits = __emit;
42087
+ const modelValue = useModel(__props, "modelValue");
42088
+ const attrs = useAttrs();
42089
+ const slots = useSlots();
42090
+ const { message: errorMessage, validator: validator11 } = useValidtor(props2.rules);
42091
+ const vBkTooltips = __webpack_exports__bkTooltips;
42092
+ const handleChange = (value) => {
42093
+ modelValue.value = value;
42094
+ validator11(modelValue.value).then(() => {
42095
+ emits("change", modelValue.value);
42096
+ });
42097
+ };
42098
+ const handleOpenChange = (open) => {
42099
+ if (!open) {
42100
+ validator11(modelValue.value);
42101
+ }
42102
+ };
42103
+ __expose({
42104
+ getValue() {
42105
+ return validator11(modelValue.value).then(() => modelValue.value);
42106
+ }
42107
+ });
42108
+ return (_ctx, _cache) => {
42109
+ return openBlock(), createElementBlock(
42110
+ "div",
42111
+ {
42112
+ class: normalizeClass(["bk-ediatable-time-picker", {
42113
+ "is-error": Boolean(unref(errorMessage)),
42114
+ "is-disabled": _ctx.disabled
42115
+ }])
42116
+ },
42117
+ [
42118
+ createVNode(unref(__webpack_exports__default), mergeProps({
42119
+ "append-to-body": "",
42120
+ clearable: false,
42121
+ "model-value": modelValue.value,
42122
+ placeholder: _ctx.placeholder,
42123
+ style: { "width": "100%" },
42124
+ type: _ctx.type
42125
+ }, unref(attrs), {
42126
+ onChange: handleChange,
42127
+ onOpenChange: handleOpenChange
42128
+ }), createSlots({
42129
+ _: 2
42130
+ /* DYNAMIC */
42131
+ }, [
42132
+ unref(slots).footer ? {
42133
+ name: "footer",
42134
+ fn: withCtx(() => [
42135
+ renderSlot(_ctx.$slots, "footer")
42136
+ ]),
42137
+ key: "0"
42138
+ } : void 0
42139
+ ]), 1040, ["model-value", "placeholder", "type"]),
42140
+ unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
42141
+ withDirectives(createVNode(
42142
+ unref(DbIcon),
42143
+ { type: "exclamation-fill" },
42144
+ null,
42145
+ 512
42146
+ /* NEED_PATCH */
42147
+ ), [
42148
+ [unref(vBkTooltips), unref(errorMessage)]
42149
+ ])
42150
+ ])) : createCommentVNode("v-if", true)
42151
+ ],
42152
+ 2
42153
+ /* CLASS */
42154
+ );
42155
+ };
42156
+ }
42157
+ });
42158
+ const _hoisted_1$4 = {
42159
+ key: 1,
42160
+ class: "blur-dispaly-main"
42161
+ };
42162
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42163
+ __name: "input-column",
42164
+ props: /* @__PURE__ */ mergeModels({
42165
+ placeholder: { default: "请输入" },
42166
+ rules: { default: void 0 },
42167
+ disabled: { type: Boolean, default: false },
42168
+ type: { default: "text" },
42169
+ min: { default: Number.MIN_SAFE_INTEGER },
42170
+ max: { default: Number.MAX_SAFE_INTEGER },
42171
+ isShowBlur: { type: Boolean, default: false },
42172
+ precision: { default: 0 }
42173
+ }, {
42174
+ "modelValue": {
42175
+ default: ""
42176
+ },
42177
+ "modelModifiers": {}
42178
+ }),
42179
+ emits: /* @__PURE__ */ mergeModels(["submit"], ["update:modelValue"]),
42180
+ setup(__props, { expose: __expose, emit: __emit }) {
42181
+ const props2 = __props;
42182
+ const emits = __emit;
42183
+ const modelValue = useModel(__props, "modelValue");
42184
+ const rootRef = ref();
42185
+ const isBlur = ref(true);
42186
+ const isPassword = computed(() => props2.type === "password");
42187
+ let oldInputText = "";
42188
+ const vBkTooltips = __webpack_exports__bkTooltips;
42189
+ const {
42190
+ message: errorMessage,
42191
+ validator: validator11
42192
+ } = useValidtor(props2.rules);
42193
+ const handleInput = (value) => {
42194
+ isBlur.value = false;
42195
+ modelValue.value = value;
42196
+ };
42197
+ const handleBlur = (event) => {
42198
+ isBlur.value = true;
42199
+ if (props2.disabled) {
42200
+ event.preventDefault();
42201
+ return;
42202
+ }
42203
+ if (modelValue.value) {
42204
+ if (oldInputText === modelValue.value) {
42205
+ return;
42206
+ }
42207
+ oldInputText = modelValue.value;
42208
+ validator11(modelValue.value).then(() => {
42209
+ emits("submit", modelValue.value);
42210
+ });
42211
+ return;
42212
+ }
42213
+ emits("submit", modelValue.value);
42214
+ };
42215
+ const handleKeydown = (_value, event) => {
42216
+ if (props2.disabled) {
42217
+ event.preventDefault();
42218
+ return;
42219
+ }
42220
+ if (event.isComposing) {
42221
+ return;
42222
+ }
42223
+ if (event.which === 13 || event.key === "Enter") {
42224
+ if (oldInputText === modelValue.value) {
42225
+ return;
42226
+ }
42227
+ oldInputText = modelValue.value;
42228
+ event.preventDefault();
42229
+ validator11(modelValue.value).then((result) => {
42230
+ if (result) {
42231
+ emits("submit", modelValue.value);
42232
+ }
42233
+ });
42234
+ }
42235
+ };
42236
+ const handlePaste = (_value, event) => {
42237
+ event.preventDefault();
42238
+ let paste = (event.clipboardData || window.clipboardData).getData("text");
42239
+ paste = encodeMult(paste);
42240
+ modelValue.value += paste.replace(/^\s+|\s+$/g, "");
42241
+ };
42242
+ __expose({
42243
+ getValue() {
42244
+ return validator11(modelValue.value).then(() => modelValue.value);
42245
+ },
42246
+ focus() {
42247
+ var _a;
42248
+ (_a = rootRef.value.querySelector("input")) == null ? void 0 : _a.focus();
42249
+ }
42250
+ });
42251
+ return (_ctx, _cache) => {
42252
+ return openBlock(), createElementBlock(
42253
+ "div",
42254
+ {
42255
+ ref_key: "rootRef",
42256
+ ref: rootRef,
42257
+ class: normalizeClass(["bk-ediatable-input", {
42258
+ "is-error": Boolean(unref(errorMessage)),
42259
+ "is-disabled": _ctx.disabled,
42260
+ "is-password": isPassword.value
42261
+ }])
42262
+ },
42263
+ [
42264
+ createVNode(unref(__webpack_exports__default$6), mergeProps({
42265
+ class: "input-box",
42266
+ disabled: _ctx.disabled,
42267
+ max: _ctx.max,
42268
+ min: _ctx.min,
42269
+ "model-value": modelValue.value,
42270
+ placeholder: _ctx.placeholder,
42271
+ type: _ctx.type
42272
+ }, _ctx.$attrs, {
42273
+ precision: _ctx.precision,
42274
+ onBlur: handleBlur,
42275
+ onChange: handleInput,
42276
+ onFocus: _cache[0] || (_cache[0] = () => isBlur.value = false),
42277
+ onInput: handleInput,
42278
+ onKeydown: handleKeydown,
42279
+ onPaste: handlePaste
42280
+ }), {
42281
+ suffix: withCtx(() => []),
42282
+ _: 1
42283
+ /* STABLE */
42284
+ }, 16, ["disabled", "max", "min", "model-value", "placeholder", "type", "precision"]),
42285
+ unref(errorMessage) ? withDirectives((openBlock(), createBlock(
42286
+ unref(DbIcon),
42287
+ {
42288
+ key: 0,
42289
+ class: "error-icon",
42290
+ type: "exclamation-fill"
42291
+ },
42292
+ null,
42293
+ 512
42294
+ /* NEED_PATCH */
42295
+ )), [
42296
+ [unref(vBkTooltips), unref(errorMessage)]
42297
+ ]) : createCommentVNode("v-if", true),
42298
+ _ctx.isShowBlur && isBlur.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
42299
+ renderSlot(_ctx.$slots, "blur")
42300
+ ])) : createCommentVNode("v-if", true)
42301
+ ],
42302
+ 2
42303
+ /* CLASS */
42304
+ );
42305
+ };
42306
+ }
42307
+ });
42308
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
42309
+ __name: "fixed-column",
42310
+ props: {
42311
+ fixed: { default: "right" }
42312
+ },
42313
+ setup(__props) {
42314
+ const props2 = __props;
42315
+ const { isOverflow: isFixed, isScrollToLeft, isScrollToRight } = inject(renderTablekey);
42316
+ const isFixedRight = computed(() => (isFixed == null ? void 0 : isFixed.value) && props2.fixed === "right" && !isScrollToRight.value);
42317
+ const isFixedLeft = computed(() => (isFixed == null ? void 0 : isFixed.value) && props2.fixed === "left" && !isScrollToLeft.value);
42318
+ return (_ctx, _cache) => {
42319
+ return openBlock(), createElementBlock(
42320
+ "td",
42321
+ {
42322
+ class: normalizeClass({
42323
+ "bk-ediatable-right-fixed-column": isFixedRight.value,
42324
+ "bk-ediatable-left-fixed-column": isFixedLeft.value
42325
+ })
42326
+ },
42327
+ [
42328
+ renderSlot(_ctx.$slots, "default")
42329
+ ],
42330
+ 2
42331
+ /* CLASS */
42332
+ );
42333
+ };
42334
+ }
42335
+ });
42336
+ const _hoisted_1$3 = { class: "bk-ediatable-operation" };
42337
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
42338
+ __name: "operation-column",
42339
+ props: {
42340
+ removeable: { type: Boolean, default: true },
42341
+ showCopy: { type: Boolean, default: false },
42342
+ showAdd: { type: Boolean, default: true },
42343
+ showRemove: { type: Boolean, default: true }
42344
+ },
42345
+ emits: ["add", "copy", "remove"],
42346
+ setup(__props, { emit: __emit }) {
42347
+ const props2 = __props;
42348
+ const emits = __emit;
42349
+ const handleCopy = () => {
42350
+ emits("copy");
42351
+ };
42352
+ const handleAppend = () => {
42353
+ emits("add");
42354
+ };
42355
+ const handleRemove = () => {
42356
+ if (props2.removeable) {
42357
+ return;
42358
+ }
42359
+ emits("remove");
42360
+ };
42361
+ return (_ctx, _cache) => {
42362
+ return openBlock(), createBlock(_sfc_main$4, null, {
42363
+ default: withCtx(() => [
42364
+ createElementVNode("div", _hoisted_1$3, [
42365
+ _ctx.showCopy ? (openBlock(), createElementBlock("div", {
42366
+ key: 0,
42367
+ class: "action-btn",
42368
+ onClick: handleCopy
42369
+ }, [
42370
+ createVNode(unref(DbIcon), { type: "copy" })
42371
+ ])) : createCommentVNode("v-if", true),
42372
+ _ctx.showAdd ? (openBlock(), createElementBlock("div", {
42373
+ key: 1,
42374
+ class: "action-btn",
42375
+ onClick: handleAppend
42376
+ }, [
42377
+ createVNode(unref(DbIcon), { type: "plus-fill" })
42378
+ ])) : createCommentVNode("v-if", true),
42379
+ _ctx.showRemove ? (openBlock(), createElementBlock(
42380
+ "div",
42381
+ {
42382
+ key: 2,
42383
+ class: normalizeClass(["action-btn", {
42384
+ disabled: _ctx.removeable
42385
+ }]),
42386
+ onClick: handleRemove
42387
+ },
42388
+ [
42389
+ createVNode(unref(DbIcon), { type: "minus-fill" })
42390
+ ],
42391
+ 2
42392
+ /* CLASS */
42393
+ )) : createCommentVNode("v-if", true)
42394
+ ])
42395
+ ]),
42396
+ _: 1
42397
+ /* STABLE */
42398
+ });
42399
+ };
42400
+ }
42401
+ });
42402
+ const _hoisted_1$2 = {
42403
+ key: 0,
42404
+ class: "select-error"
42405
+ };
42406
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42407
+ __name: "select-column",
42408
+ props: /* @__PURE__ */ mergeModels({
42409
+ list: {},
42410
+ placeholder: { default: "请选择" },
42411
+ rules: { default: () => [] },
42412
+ disabled: { type: Boolean, default: false },
42413
+ multiple: { type: Boolean, default: false },
42414
+ showSelectAll: { type: Boolean, default: false }
42415
+ }, {
42416
+ "modelValue": {},
42417
+ "modelModifiers": {}
42418
+ }),
42419
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
42420
+ setup(__props, { expose: __expose, emit: __emit }) {
42421
+ const { Option } = __webpack_exports__default$2;
42422
+ const props2 = __props;
42423
+ const emits = __emit;
42424
+ const modelValue = useModel(__props, "modelValue");
42425
+ const rootRef = ref();
42426
+ const localValue = ref("");
42427
+ const rootHeight = ref(42);
42428
+ const { message: errorMessage, validator: validator11 } = useValidtor(props2.rules);
42429
+ const vBkTooltips = __webpack_exports__bkTooltips;
42430
+ watch(
42431
+ modelValue,
42432
+ (value) => {
42433
+ if (value === void 0) {
42434
+ return;
42435
+ }
42436
+ localValue.value = value;
42437
+ if (typeof value !== "object" && value) {
42438
+ validator11(value);
42439
+ return;
42440
+ }
42441
+ if (Array.isArray(value) && value.length > 0) {
42442
+ validator11(value);
42443
+ return;
42444
+ }
42445
+ },
42446
+ {
42447
+ immediate: true
42448
+ }
42449
+ );
42450
+ const handleSelect = (value) => {
42451
+ localValue.value = value;
42452
+ validator11(localValue.value).then(() => {
42453
+ modelValue.value = value;
42454
+ emits("change", localValue.value);
42455
+ });
42456
+ };
42457
+ const handleRemove = () => {
42458
+ localValue.value = "";
42459
+ validator11(localValue.value).then(() => {
42460
+ modelValue.value = localValue.value;
42461
+ emits("change", localValue.value);
42462
+ });
42463
+ };
42464
+ const checkRootHeight = () => {
42465
+ rootHeight.value = rootRef.value.parentNode.clientHeight;
42466
+ };
42467
+ useResizeObserver(rootRef, _$1.throttle(checkRootHeight, 500));
42468
+ __expose({
42469
+ getValue() {
42470
+ return validator11(localValue.value).then(() => localValue.value);
42471
+ }
42472
+ });
42473
+ return (_ctx, _cache) => {
42474
+ return openBlock(), createElementBlock(
42475
+ "div",
42476
+ {
42477
+ ref_key: "rootRef",
42478
+ ref: rootRef,
42479
+ class: normalizeClass(["bk-ediatable-select", {
42480
+ "is-error": Boolean(unref(errorMessage)),
42481
+ "is-disable": _ctx.disabled
42482
+ }]),
42483
+ style: normalizeStyle({ height: rootHeight.value + "px" })
42484
+ },
42485
+ [
42486
+ createVNode(unref(__webpack_exports__default$2), mergeProps(_ctx.$attrs, {
42487
+ "model-value": localValue.value,
42488
+ "auto-focus": "",
42489
+ class: "select-box",
42490
+ clearable: false,
42491
+ disabled: _ctx.disabled,
42492
+ filterable: "",
42493
+ "input-search": false,
42494
+ multiple: _ctx.multiple,
42495
+ placeholder: _ctx.placeholder,
42496
+ "show-select-all": _ctx.showSelectAll,
42497
+ onChange: handleSelect,
42498
+ onClear: handleRemove
42499
+ }), {
42500
+ default: withCtx(() => [
42501
+ (openBlock(true), createElementBlock(
42502
+ Fragment,
42503
+ null,
42504
+ renderList(_ctx.list, (item, index2) => {
42505
+ return openBlock(), createBlock(unref(Option), {
42506
+ key: index2,
42507
+ label: item.label,
42508
+ value: item.value
42509
+ }, null, 8, ["label", "value"]);
42510
+ }),
42511
+ 128
42512
+ /* KEYED_FRAGMENT */
42513
+ ))
42514
+ ]),
42515
+ _: 1
42516
+ /* STABLE */
42517
+ }, 16, ["model-value", "disabled", "multiple", "placeholder", "show-select-all"]),
42518
+ unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
42519
+ withDirectives(createVNode(
42520
+ unref(DbIcon),
42521
+ { type: "exclamation-fill" },
42522
+ null,
42523
+ 512
42524
+ /* NEED_PATCH */
42525
+ ), [
42526
+ [unref(vBkTooltips), unref(errorMessage)]
42527
+ ])
42528
+ ])) : createCommentVNode("v-if", true)
42529
+ ],
42530
+ 6
42531
+ /* CLASS, STYLE */
42532
+ );
42533
+ };
42534
+ }
42535
+ });
42368
42536
  const _hoisted_1$1 = {
42369
42537
  key: 0,
42370
42538
  class: "input-error"
@@ -42393,6 +42561,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42393
42561
  const popRef = ref();
42394
42562
  const isFocus = ref(false);
42395
42563
  let tippyIns;
42564
+ const vBkTooltips = __webpack_exports__bkTooltips;
42396
42565
  const { message: errorMessage, validator: validator11 } = useValidtor(props2.rules);
42397
42566
  const tagInputPasteFn = (value) => value.split("\n").map((item) => ({ id: item }));
42398
42567
  const handleChange = (value) => {
@@ -42444,7 +42613,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42444
42613
  }
42445
42614
  });
42446
42615
  return (_ctx, _cache) => {
42447
- const _directive_bk_tooltips = resolveDirective("bk-tooltips");
42448
42616
  return openBlock(), createElementBlock(
42449
42617
  "div",
42450
42618
  {
@@ -42481,7 +42649,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
42481
42649
  512
42482
42650
  /* NEED_PATCH */
42483
42651
  ), [
42484
- [_directive_bk_tooltips, unref(errorMessage)]
42652
+ [unref(vBkTooltips), unref(errorMessage)]
42485
42653
  ])
42486
42654
  ])) : createCommentVNode("v-if", true)
42487
42655
  ],
@@ -42552,6 +42720,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42552
42720
  const props2 = __props;
42553
42721
  const textRef = ref();
42554
42722
  const renderData = computed(() => props2.data);
42723
+ const vBkTooltips = __webpack_exports__bkTooltips;
42555
42724
  const { isOverflow } = useIsWidthOverflow(textRef, renderData);
42556
42725
  const { message: errorMessage, validator: validator11 } = useValidtor(props2.rules);
42557
42726
  __expose({
@@ -42560,7 +42729,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42560
42729
  }
42561
42730
  });
42562
42731
  return (_ctx, _cache) => {
42563
- const _directive_bk_tooltips = resolveDirective("bk-tooltips");
42564
42732
  return openBlock(), createBlock(unref(__webpack_exports__default$a), { loading: _ctx.isLoading }, {
42565
42733
  default: withCtx(() => [
42566
42734
  withDirectives((openBlock(), createElementBlock(
@@ -42595,7 +42763,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42595
42763
  512
42596
42764
  /* NEED_PATCH */
42597
42765
  ), [
42598
- [_directive_bk_tooltips, unref(errorMessage)]
42766
+ [unref(vBkTooltips), unref(errorMessage)]
42599
42767
  ])
42600
42768
  ])) : createCommentVNode("v-if", true),
42601
42769
  renderSlot(_ctx.$slots, "default")
@@ -42603,7 +42771,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42603
42771
  2
42604
42772
  /* CLASS */
42605
42773
  )), [
42606
- [_directive_bk_tooltips, {
42774
+ [unref(vBkTooltips), {
42607
42775
  content: _ctx.data || _ctx.placeholder,
42608
42776
  disabled: !unref(isOverflow)
42609
42777
  }]