bkui-vue 0.0.1-beta.417 → 0.0.1-beta.418

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.
Files changed (61) hide show
  1. package/dist/index.cjs.js +52 -52
  2. package/dist/index.esm.js +137 -93
  3. package/dist/index.umd.js +51 -51
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/cascader/cascader.d.ts +1 -1
  7. package/lib/cascader/index.d.ts +4 -4
  8. package/lib/collapse/collapse-panel.d.ts +7 -2
  9. package/lib/collapse/index.d.ts +7 -2
  10. package/lib/collapse/props.d.ts +3 -1
  11. package/lib/dialog/dialog.d.ts +11 -6
  12. package/lib/dialog/index.d.ts +24 -13
  13. package/lib/dialog/props.d.ts +5 -3
  14. package/lib/directives/index.js +1 -1
  15. package/lib/divider/divider.d.ts +3 -3
  16. package/lib/divider/index.d.ts +8 -8
  17. package/lib/divider/index.js +1 -1
  18. package/lib/divider/props.d.ts +1 -1
  19. package/lib/dropdown/dropdown.d.ts +5 -5
  20. package/lib/dropdown/index.d.ts +12 -12
  21. package/lib/loading/index.js +1 -1
  22. package/lib/loading/loading.css +2 -0
  23. package/lib/loading/loading.less +2 -0
  24. package/lib/loading/loading.variable.css +2 -0
  25. package/lib/modal/index.d.ts +19 -6
  26. package/lib/modal/modal.d.ts +7 -2
  27. package/lib/modal/props.mixin.d.ts +3 -1
  28. package/lib/pagination/index.d.ts +4 -4
  29. package/lib/pagination/pagination.d.ts +1 -1
  30. package/lib/plugin-popover/index.js +1 -1
  31. package/lib/popover/index.d.ts +47 -53
  32. package/lib/popover/index.js +1 -1
  33. package/lib/popover/popover.d.ts +20 -22
  34. package/lib/popover/props.d.ts +7 -7
  35. package/lib/popover/use-floating.d.ts +4 -1
  36. package/lib/popover/utils.d.ts +1 -0
  37. package/lib/select/index.d.ts +21 -21
  38. package/lib/select/index.js +1 -1
  39. package/lib/select/select.d.ts +7 -7
  40. package/lib/shared/index.js +1 -1
  41. package/lib/shared/vue-types.d.ts +6 -4
  42. package/lib/sideslider/index.d.ts +16 -5
  43. package/lib/sideslider/sideslider.d.ts +7 -2
  44. package/lib/tab/index.d.ts +7 -2
  45. package/lib/tab/props.d.ts +3 -1
  46. package/lib/tab/tab-panel.d.ts +7 -2
  47. package/lib/table/cache.d.ts +6 -0
  48. package/lib/table/components/table-column.d.ts +6 -1
  49. package/lib/table/const.d.ts +2 -0
  50. package/lib/table/index.d.ts +18 -3
  51. package/lib/table/index.js +1 -1
  52. package/lib/table/props.d.ts +1 -1
  53. package/lib/table-column/index.d.ts +18 -3
  54. package/lib/table-column/index.js +1 -1
  55. package/lib/tag-input/index.d.ts +32 -32
  56. package/lib/tag-input/tag-input.d.ts +15 -15
  57. package/lib/tag-input/tag-props.d.ts +7 -7
  58. package/lib/tree/index.js +1 -1
  59. package/lib/tree/props.d.ts +10 -2
  60. package/lib/tree/use-search.d.ts +1 -1
  61. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -334,7 +334,7 @@ function getWindow$1(node) {
334
334
  }
335
335
  return node;
336
336
  }
337
- function isElement$3(node) {
337
+ function isElement$4(node) {
338
338
  var OwnElement = getWindow$1(node).Element;
339
339
  return node instanceof OwnElement || node instanceof Element;
340
340
  }
@@ -488,7 +488,7 @@ function isTableElement$1(element) {
488
488
  return ["table", "td", "th"].indexOf(getNodeName$1(element)) >= 0;
489
489
  }
490
490
  function getDocumentElement$1(element) {
491
- return ((isElement$3(element) ? element.ownerDocument : element.document) || window.document).documentElement;
491
+ return ((isElement$4(element) ? element.ownerDocument : element.document) || window.document).documentElement;
492
492
  }
493
493
  function getParentNode$1(element) {
494
494
  if (getNodeName$1(element) === "html") {
@@ -896,17 +896,17 @@ function getInnerBoundingClientRect$1(element) {
896
896
  return rect;
897
897
  }
898
898
  function getClientRectFromMixedType(element, clippingParent) {
899
- return clippingParent === viewport ? rectToClientRect$1(getViewportRect$1(element)) : isElement$3(clippingParent) ? getInnerBoundingClientRect$1(clippingParent) : rectToClientRect$1(getDocumentRect$1(getDocumentElement$1(element)));
899
+ return clippingParent === viewport ? rectToClientRect$1(getViewportRect$1(element)) : isElement$4(clippingParent) ? getInnerBoundingClientRect$1(clippingParent) : rectToClientRect$1(getDocumentRect$1(getDocumentElement$1(element)));
900
900
  }
901
901
  function getClippingParents(element) {
902
902
  var clippingParents2 = listScrollParents(getParentNode$1(element));
903
903
  var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle$2(element).position) >= 0;
904
904
  var clipperElement = canEscapeClipping && isHTMLElement$1(element) ? getOffsetParent$1(element) : element;
905
- if (!isElement$3(clipperElement)) {
905
+ if (!isElement$4(clipperElement)) {
906
906
  return [];
907
907
  }
908
908
  return clippingParents2.filter(function(clippingParent) {
909
- return isElement$3(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== "body";
909
+ return isElement$4(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== "body";
910
910
  });
911
911
  }
912
912
  function getClippingRect$1(element, boundary, rootBoundary) {
@@ -988,7 +988,7 @@ function detectOverflow$1(state, options) {
988
988
  var altContext = elementContext === popper ? reference : popper;
989
989
  var popperRect = state.rects.popper;
990
990
  var element = state.elements[altBoundary ? altContext : elementContext];
991
- var clippingClientRect = getClippingRect$1(isElement$3(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary);
991
+ var clippingClientRect = getClippingRect$1(isElement$4(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary);
992
992
  var referenceClientRect = getBoundingClientRect$1(state.elements.reference);
993
993
  var popperOffsets2 = computeOffsets({
994
994
  reference: referenceClientRect,
@@ -1505,7 +1505,7 @@ function popperGenerator(generatorOptions) {
1505
1505
  cleanupModifierEffects();
1506
1506
  state.options = Object.assign({}, defaultOptions, state.options, options2);
1507
1507
  state.scrollParents = {
1508
- reference: isElement$3(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
1508
+ reference: isElement$4(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
1509
1509
  popper: listScrollParents(popper2)
1510
1510
  };
1511
1511
  var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
@@ -1664,7 +1664,7 @@ function merge$1(target, source, options) {
1664
1664
  }
1665
1665
  return target;
1666
1666
  }
1667
- function isElement$2(obj) {
1667
+ function isElement$3(obj) {
1668
1668
  try {
1669
1669
  return obj instanceof HTMLElement;
1670
1670
  } catch (e) {
@@ -1773,13 +1773,13 @@ class BKPopover {
1773
1773
  }
1774
1774
  restorePopContent() {
1775
1775
  const target = this.getAppendToTarget();
1776
- if (isElement$2(target) && target.contains(this.popperRefer) && this.container && !this.container.contains(this.popperRefer)) {
1776
+ if (isElement$3(target) && target.contains(this.popperRefer) && this.container && !this.container.contains(this.popperRefer)) {
1777
1777
  this.container.append(this.popperRefer);
1778
1778
  }
1779
1779
  }
1780
1780
  appendToTarget() {
1781
1781
  const target = this.getAppendToTarget();
1782
- if (isElement$2(target) && target.contains(this.popperRefer)) {
1782
+ if (isElement$3(target) && target.contains(this.popperRefer)) {
1783
1783
  target.append(this.popperRefer);
1784
1784
  }
1785
1785
  }
@@ -1860,7 +1860,7 @@ class BKPopover {
1860
1860
  return null;
1861
1861
  }
1862
1862
  isElement(obj) {
1863
- return isElement$2(obj);
1863
+ return isElement$3(obj);
1864
1864
  }
1865
1865
  registerEvents() {
1866
1866
  if (this.isElement(this.referenceTarget)) {
@@ -7935,9 +7935,7 @@ var SizeEnum = /* @__PURE__ */ ((SizeEnum2) => {
7935
7935
  return SizeEnum2;
7936
7936
  })(SizeEnum || {});
7937
7937
  function renderDirectiveType() {
7938
- return j("renderDirective", {
7939
- default: "show"
7940
- });
7938
+ return E().def("show");
7941
7939
  }
7942
7940
  var AlignEnum = /* @__PURE__ */ ((AlignEnum2) => {
7943
7941
  AlignEnum2["LEFT"] = "left";
@@ -7946,9 +7944,7 @@ var AlignEnum = /* @__PURE__ */ ((AlignEnum2) => {
7946
7944
  return AlignEnum2;
7947
7945
  })(AlignEnum || {});
7948
7946
  function alignType() {
7949
- return j("align", {
7950
- default: "left"
7951
- }).def("left");
7947
+ return E().def("left");
7952
7948
  }
7953
7949
  var ThemeEnum = /* @__PURE__ */ ((ThemeEnum2) => {
7954
7950
  ThemeEnum2["PRIMARY"] = "primary";
@@ -7976,10 +7972,16 @@ var PlacementEnum = /* @__PURE__ */ ((PlacementEnum2) => {
7976
7972
  return PlacementEnum2;
7977
7973
  })(PlacementEnum || {});
7978
7974
  function placementType() {
7979
- return j("placement", {}).def("bottom");
7980
- }
7975
+ return E().def("bottom");
7976
+ }
7977
+ var TriggerEnum = /* @__PURE__ */ ((TriggerEnum2) => {
7978
+ TriggerEnum2["HOVER"] = "hover";
7979
+ TriggerEnum2["CLICK"] = "click";
7980
+ TriggerEnum2["MANUAL"] = "manual";
7981
+ return TriggerEnum2;
7982
+ })(TriggerEnum || {});
7981
7983
  function triggerType() {
7982
- return j("trigger", {}).def("hover");
7984
+ return E().def("hover");
7983
7985
  }
7984
7986
  var RenderType = /* @__PURE__ */ ((RenderType2) => {
7985
7987
  RenderType2["AUTO"] = "auto";
@@ -8046,7 +8048,6 @@ class PropTypes extends propTypesNS {
8046
8048
  if (!val || placements2.includes(val)) {
8047
8049
  return true;
8048
8050
  }
8049
- console.error(`invalid placements, ${val}, the placement must be one of \u3010${placements2.join(" | ")}\u3011`);
8050
8051
  return false;
8051
8052
  },
8052
8053
  default: "top"
@@ -9458,7 +9459,7 @@ var Component$y = defineComponent({
9458
9459
  var _a, _b;
9459
9460
  return createVNode("div", {
9460
9461
  "class": loadingWrapperCls.value
9461
- }, [props2.loading && [ctx.slots.default && createVNode("div", {
9462
+ }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a), props2.loading && [ctx.slots.default && createVNode("div", {
9462
9463
  "class": "bk-loading-mask",
9463
9464
  "style": maskStyle.value
9464
9465
  }, null), createVNode("div", {
@@ -9466,7 +9467,7 @@ var Component$y = defineComponent({
9466
9467
  "style": zIndexStyle.value
9467
9468
  }, [indicator.value, hasTitle.value && createVNode("div", {
9468
9469
  "class": "bk-loading-title"
9469
- }, [props2.title])])], (_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]);
9470
+ }, [props2.title])])]]);
9470
9471
  };
9471
9472
  }
9472
9473
  });
@@ -11110,7 +11111,7 @@ var Component$r = defineComponent({
11110
11111
  }
11111
11112
  });
11112
11113
  const BkLink = withInstall(Component$r);
11113
- const isElement$1 = (e) => {
11114
+ const isElement$2 = (e) => {
11114
11115
  if (typeof Element === "undefined")
11115
11116
  return false;
11116
11117
  return e instanceof Element;
@@ -11129,7 +11130,7 @@ function createDocumentHandler(el, binding) {
11129
11130
  let excludes = [];
11130
11131
  if (Array.isArray(binding.arg)) {
11131
11132
  excludes = binding.arg;
11132
- } else if (isElement$1(binding.arg)) {
11133
+ } else if (isElement$2(binding.arg)) {
11133
11134
  excludes.push(binding.arg);
11134
11135
  }
11135
11136
  return function(mouseup, mousedown) {
@@ -11252,11 +11253,11 @@ const PopoverProps = __spreadValues({
11252
11253
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
11253
11254
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
11254
11255
  maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
11255
- content: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def(""),
11256
- allowHTML: PropTypes.bool.def(false),
11257
- placement: PropTypes.oneOfType([placementType().def(PlacementEnum.TOP), PropTypes.string]).def(PlacementEnum.TOP),
11256
+ content: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.any]).def(""),
11257
+ allowHtml: PropTypes.bool.def(false),
11258
+ placement: placementType().def(PlacementEnum.TOP),
11258
11259
  theme: PropTypes.string.def("dark"),
11259
- trigger: PropTypes.oneOfType([triggerType(), PropTypes.string]).def("hover"),
11260
+ trigger: triggerType(),
11260
11261
  renderType: renderType(),
11261
11262
  arrow: PropTypes.bool.def(true),
11262
11263
  padding: PropTypes.number.def(5),
@@ -12093,7 +12094,7 @@ function getUAString() {
12093
12094
  function isHTMLElement(value) {
12094
12095
  return value instanceof getWindow(value).HTMLElement;
12095
12096
  }
12096
- function isElement(value) {
12097
+ function isElement$1(value) {
12097
12098
  return value instanceof getWindow(value).Element;
12098
12099
  }
12099
12100
  function isNode(value) {
@@ -12143,7 +12144,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
12143
12144
  scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
12144
12145
  scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
12145
12146
  }
12146
- const win = isElement(element) ? getWindow(element) : window;
12147
+ const win = isElement$1(element) ? getWindow(element) : window;
12147
12148
  const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
12148
12149
  const x2 = (clientRect.left + (addVisualOffsets ? (_win$visualViewport$o = (_win$visualViewport = win.visualViewport) == null ? void 0 : _win$visualViewport.offsetLeft) != null ? _win$visualViewport$o : 0 : 0)) / scaleX;
12149
12150
  const y2 = (clientRect.top + (addVisualOffsets ? (_win$visualViewport$o2 = (_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) != null ? _win$visualViewport$o2 : 0 : 0)) / scaleY;
@@ -12164,7 +12165,7 @@ function getDocumentElement(node) {
12164
12165
  return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
12165
12166
  }
12166
12167
  function getNodeScroll(element) {
12167
- if (isElement(element)) {
12168
+ if (isElement$1(element)) {
12168
12169
  return {
12169
12170
  scrollLeft: element.scrollLeft,
12170
12171
  scrollTop: element.scrollTop
@@ -12396,7 +12397,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
12396
12397
  if (clippingParent === "viewport") {
12397
12398
  return rectToClientRect(getViewportRect(element, strategy));
12398
12399
  }
12399
- if (isElement(clippingParent)) {
12400
+ if (isElement$1(clippingParent)) {
12400
12401
  return getInnerBoundingClientRect(clippingParent, strategy);
12401
12402
  }
12402
12403
  return rectToClientRect(getDocumentRect(getDocumentElement(element)));
@@ -12405,10 +12406,10 @@ function getClippingAncestors(element) {
12405
12406
  const clippingAncestors = getOverflowAncestors(element);
12406
12407
  const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle$1$1(element).position);
12407
12408
  const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
12408
- if (!isElement(clipperElement)) {
12409
+ if (!isElement$1(clipperElement)) {
12409
12410
  return [];
12410
12411
  }
12411
- return clippingAncestors.filter((clippingAncestors2) => isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
12412
+ return clippingAncestors.filter((clippingAncestors2) => isElement$1(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
12412
12413
  }
12413
12414
  function getClippingRect(_ref) {
12414
12415
  let {
@@ -12438,7 +12439,7 @@ function getClippingRect(_ref) {
12438
12439
  const platform = {
12439
12440
  getClippingRect,
12440
12441
  convertOffsetParentRelativeRectToViewportRelativeRect,
12441
- isElement,
12442
+ isElement: isElement$1,
12442
12443
  getDimensions,
12443
12444
  getOffsetParent,
12444
12445
  getDocumentElement,
@@ -12471,7 +12472,7 @@ function autoUpdate(reference2, floating, update, options) {
12471
12472
  } = options;
12472
12473
  const ancestorScroll = _ancestorScroll && !animationFrame;
12473
12474
  const ancestorResize = _ancestorResize && !animationFrame;
12474
- const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference2) ? getOverflowAncestors(reference2) : [], ...getOverflowAncestors(floating)] : [];
12475
+ const ancestors = ancestorScroll || ancestorResize ? [...isElement$1(reference2) ? getOverflowAncestors(reference2) : [], ...getOverflowAncestors(floating)] : [];
12475
12476
  ancestors.forEach((ancestor) => {
12476
12477
  ancestorScroll && ancestor.addEventListener("scroll", update, {
12477
12478
  passive: true
@@ -12481,7 +12482,7 @@ function autoUpdate(reference2, floating, update, options) {
12481
12482
  let observer = null;
12482
12483
  if (elementResize) {
12483
12484
  observer = new ResizeObserver(update);
12484
- isElement(reference2) && !animationFrame && observer.observe(reference2);
12485
+ isElement$1(reference2) && !animationFrame && observer.observe(reference2);
12485
12486
  observer.observe(floating);
12486
12487
  }
12487
12488
  let frameId;
@@ -12933,6 +12934,7 @@ const getFullscreenUid = () => {
12933
12934
  }
12934
12935
  return CachedConst.fullscreenReferId;
12935
12936
  };
12937
+ const isElement = (element) => element instanceof Element || element instanceof HTMLDocument;
12936
12938
  let popContainerId = null;
12937
12939
  let parentNodeReferId = null;
12938
12940
  var usePopperId = (props2, prefix = "#") => {
@@ -13209,7 +13211,21 @@ var Component$q = defineComponent({
13209
13211
  return localIsShow.value;
13210
13212
  });
13211
13213
  const renderContent2 = () => {
13212
- if (props2.allowHTML) {
13214
+ if (props2.allowHtml) {
13215
+ if (isElement(props2.content)) {
13216
+ return h$1("div", {
13217
+ innerHTML: props2.content.innerHTML
13218
+ });
13219
+ }
13220
+ if (/^(#|\.)/.test(props2.content)) {
13221
+ const target = document.querySelector(props2.content);
13222
+ if (isElement(target)) {
13223
+ return h$1("div", {
13224
+ innerHTML: target.innerHTML
13225
+ });
13226
+ }
13227
+ return content;
13228
+ }
13213
13229
  return h$1("div", {
13214
13230
  innerHTML: props2.content
13215
13231
  });
@@ -13284,7 +13300,6 @@ function createPopoverComponent(options) {
13284
13300
  }, options), {
13285
13301
  trigger: "manual"
13286
13302
  });
13287
- const isElement2 = (element) => element instanceof Element || element instanceof HTMLDocument;
13288
13303
  const popoverComponent = {
13289
13304
  name: "$popover",
13290
13305
  setup(_2, {
@@ -13302,7 +13317,7 @@ function createPopoverComponent(options) {
13302
13317
  transform: ""
13303
13318
  });
13304
13319
  const updateStyle = (target) => {
13305
- if (isElement2(target)) {
13320
+ if (isElement(target)) {
13306
13321
  const {
13307
13322
  x: x2,
13308
13323
  y: y2,
@@ -13385,7 +13400,7 @@ function createPopoverComponent(options) {
13385
13400
  return document.body;
13386
13401
  }
13387
13402
  if (/^parent$/i.test(boundary)) {
13388
- if (isElement2(resolvedOptions.target)) {
13403
+ if (isElement(resolvedOptions.target)) {
13389
13404
  return resolvedOptions.target.parentNode;
13390
13405
  }
13391
13406
  return resolvedOptions.target.target.parentNode;
@@ -15049,7 +15064,7 @@ const createInstance = (el, binding) => {
15049
15064
  const targetOptions = resolveOptions(el, binding);
15050
15065
  targetOptions.isShow = true;
15051
15066
  targetOptions.content = targetOptions.content || el.innerHTML;
15052
- targetOptions.allowHTML = true;
15067
+ targetOptions.allowHtml = true;
15053
15068
  Object.assign(targetOptions, {
15054
15069
  onContentMouseenter: handleContentEnter,
15055
15070
  onContentMouseleave: handleContentLeave
@@ -15807,10 +15822,10 @@ var Component$j = defineComponent({
15807
15822
  const isCollapseTags = computed(() => autoHeight.value ? collapseTags.value && !isPopoverShow.value : collapseTags.value);
15808
15823
  const popoverConfig = computed(() => lodash.exports.merge({
15809
15824
  theme: "light bk-select-popover",
15810
- trigger: "manual",
15825
+ trigger: TriggerEnum.MANUAL,
15811
15826
  width: popperWidth.value,
15812
15827
  arrow: false,
15813
- placement: "bottom-start",
15828
+ placement: PlacementEnum.BOTTOM_START,
15814
15829
  isShow: isPopoverShow.value,
15815
15830
  reference: selectTagInputRef.value,
15816
15831
  offset: 6,
@@ -16821,6 +16836,8 @@ const createDefaultSizeList = (t2) => [
16821
16836
  { value: "large", label: t2.value.setting.lineHeight.large, height: SETTING_SIZE.large }
16822
16837
  ];
16823
16838
  const PROVIDE_KEY_INIT_COL = "InitColumns";
16839
+ const PROVIDE_KEY_TB_CACHE = "BKTableCahce";
16840
+ const BK_COLUMN_UPDATE_DEFINE = "Bk_COlumn_Update_Define";
16824
16841
  var SORT_OPTION = /* @__PURE__ */ ((SORT_OPTION2) => {
16825
16842
  SORT_OPTION2["ASC"] = "asc";
16826
16843
  SORT_OPTION2["DESC"] = "desc";
@@ -16853,7 +16870,7 @@ var SettingSizeEnum = /* @__PURE__ */ ((SettingSizeEnum2) => {
16853
16870
  const settingSizeType = j("columnSize", {
16854
16871
  default: "small"
16855
16872
  });
16856
- const fixedType = j("columnSize", {});
16873
+ const fixedType = E();
16857
16874
  const sortScopeType = j("sortScope", {}).def("current");
16858
16875
  var ResizerWay = /* @__PURE__ */ ((ResizerWay2) => {
16859
16876
  ResizerWay2["DEBOUNCE"] = "debounce";
@@ -16984,50 +17001,64 @@ var Column = defineComponent({
16984
17001
  setup(props2) {
16985
17002
  const initColumns = inject(PROVIDE_KEY_INIT_COL, (_column, _remove = false) => {
16986
17003
  }, false);
17004
+ const bkTableCache = inject(PROVIDE_KEY_TB_CACHE, {
17005
+ queueStack: (_2, fn2) => fn2 == null ? void 0 : fn2()
17006
+ });
16987
17007
  const column = reactive(__spreadProps(__spreadValues({}, props2), {
16988
17008
  field: props2.prop || props2.field
16989
17009
  }));
16990
- onUnmounted(() => {
16991
- initColumns(column, true);
16992
- });
16993
17010
  return {
16994
17011
  initColumns,
17012
+ bkTableCache,
16995
17013
  column
16996
17014
  };
16997
17015
  },
17016
+ unmounted() {
17017
+ this.updateColumnDefine();
17018
+ },
16998
17019
  mounted() {
16999
- const selfVnode = this._;
17000
- const colList = selfVnode.parent.vnode.children.default() || [];
17001
- const sortColumns = [];
17002
- const reduceColumns = (nodes) => {
17003
- if (!Array.isArray(nodes)) {
17004
- return;
17005
- }
17006
- this.column.render = this.$slots.default ? (args) => {
17007
- var _a, _b;
17008
- return (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, args);
17009
- } : void 0;
17010
- nodes.forEach((node) => {
17011
- var _a, _b;
17012
- let skipValidateKey0 = true;
17013
- if (((_a = node.type) == null ? void 0 : _a.name) === "TableColumn") {
17014
- skipValidateKey0 = Object.hasOwnProperty.call(node.props || {}, "key");
17015
- const resolveProp = __spreadProps(__spreadValues({}, node.props), {
17016
- field: node.props.prop || node.props.field
17017
- });
17018
- if (resolveProp.label === this.column.label && resolveProp.field === this.column.field) {
17019
- sortColumns.push(unref(this.column));
17020
- } else {
17021
- sortColumns.push(unref(resolveProp));
17020
+ this.updateColumnDefine();
17021
+ },
17022
+ methods: {
17023
+ updateColumnDefine() {
17024
+ const fn2 = () => {
17025
+ const selfVnode = this._;
17026
+ const colList = selfVnode.parent.vnode.children.default() || [];
17027
+ const sortColumns = [];
17028
+ const reduceColumns = (nodes) => {
17029
+ if (!Array.isArray(nodes)) {
17030
+ return;
17022
17031
  }
17023
- }
17024
- if (((_b = node.children) == null ? void 0 : _b.length) && skipValidateKey0) {
17025
- reduceColumns(node.children);
17026
- }
17027
- });
17028
- };
17029
- reduceColumns(colList);
17030
- this.initColumns(sortColumns);
17032
+ this.column.render = this.$slots.default ? (args) => {
17033
+ var _a, _b;
17034
+ return (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, args);
17035
+ } : void 0;
17036
+ nodes.forEach((node) => {
17037
+ var _a, _b;
17038
+ let skipValidateKey0 = true;
17039
+ if (((_a = node.type) == null ? void 0 : _a.name) === "TableColumn") {
17040
+ skipValidateKey0 = Object.hasOwnProperty.call(node.props || {}, "key");
17041
+ const resolveProp = __spreadProps(__spreadValues({}, node.props), {
17042
+ field: node.props.prop || node.props.field
17043
+ });
17044
+ if (resolveProp.label === this.column.label && resolveProp.field === this.column.field) {
17045
+ sortColumns.push(unref(this.column));
17046
+ } else {
17047
+ sortColumns.push(unref(resolveProp));
17048
+ }
17049
+ }
17050
+ if (((_b = node.children) == null ? void 0 : _b.length) && skipValidateKey0) {
17051
+ reduceColumns(node.children);
17052
+ }
17053
+ });
17054
+ };
17055
+ reduceColumns(colList);
17056
+ this.initColumns(sortColumns);
17057
+ };
17058
+ if (typeof this.bkTableCache.queueStack === "function") {
17059
+ this.bkTableCache.queueStack(BK_COLUMN_UPDATE_DEFINE, fn2);
17060
+ }
17061
+ }
17031
17062
  },
17032
17063
  render() {
17033
17064
  var _a, _b;
@@ -17036,6 +17067,20 @@ var Column = defineComponent({
17036
17067
  });
17037
17068
  }
17038
17069
  });
17070
+ class BkTableCache {
17071
+ constructor() {
17072
+ this.storage = void 0;
17073
+ this.storage = {};
17074
+ }
17075
+ queueStack(methodName, fn2 = () => {
17076
+ }) {
17077
+ this.storage[methodName] && clearTimeout(this.storage[methodName]);
17078
+ this.storage[methodName] = setTimeout(() => fn2());
17079
+ }
17080
+ clearQueueStack(methodName) {
17081
+ this.storage[methodName] && clearTimeout(this.storage[methodName]);
17082
+ }
17083
+ }
17039
17084
  const resolvePaginationOption = (propPagination, defVal) => {
17040
17085
  if (!!propPagination) {
17041
17086
  if (typeof propPagination === "object") {
@@ -18454,7 +18499,7 @@ var TableCell = defineComponent({
18454
18499
  };
18455
18500
  };
18456
18501
  const resolveOverflowTooltip = () => {
18457
- if (!refRoot.value || !isElement$2(refRoot.value)) {
18502
+ if (!refRoot.value || !isElement$3(refRoot.value)) {
18458
18503
  return;
18459
18504
  }
18460
18505
  const {
@@ -20297,11 +20342,13 @@ var Component$e = defineComponent({
20297
20342
  let columnSortFn = null;
20298
20343
  let activeSortColumn = null;
20299
20344
  let columnFilterFn = null;
20345
+ const bkTableCache = new BkTableCache();
20300
20346
  const targetColumns = reactive([]);
20301
20347
  const {
20302
20348
  initColumns
20303
20349
  } = useColumn(props2, targetColumns);
20304
20350
  provide(PROVIDE_KEY_INIT_COL, initColumns);
20351
+ provide(PROVIDE_KEY_TB_CACHE, bkTableCache);
20305
20352
  const root = ref();
20306
20353
  const refVirtualRender = ref();
20307
20354
  const tableOffsetRight = ref(0);
@@ -20625,13 +20672,10 @@ var Component$e = defineComponent({
20625
20672
  isExist,
20626
20673
  colPos,
20627
20674
  column
20628
- }) => {
20629
- console.log("fixedWrapperClass");
20630
- return isExist ? "" : createVNode("div", {
20631
- "class": resolveColumnClass(column, reactiveSchema.scrollTranslateX, tableOffsetRight.value),
20632
- "style": resolveColumnStyle(colPos)
20633
- }, null);
20634
- }), createVNode("div", {
20675
+ }) => isExist ? "" : createVNode("div", {
20676
+ "class": resolveColumnClass(column, reactiveSchema.scrollTranslateX, tableOffsetRight.value),
20677
+ "style": resolveColumnStyle(colPos)
20678
+ }, null)), createVNode("div", {
20635
20679
  "class": resizeColumnClass,
20636
20680
  "style": resizeColumnStyle.value
20637
20681
  }, null), createVNode("div", {
@@ -22327,7 +22371,7 @@ const Message$1 = (constructor, options) => {
22327
22371
  render$1(vm, container2);
22328
22372
  instances[position].push(vm);
22329
22373
  let target;
22330
- if (vm.props.getContainer && isElement$2(vm.props.getContainer)) {
22374
+ if (vm.props.getContainer && isElement$3(vm.props.getContainer)) {
22331
22375
  target = vm.props.getContainer;
22332
22376
  } else {
22333
22377
  target = document.body;
@@ -22380,7 +22424,7 @@ var MessageConstructor = defineComponent({
22380
22424
  }) {
22381
22425
  const classNames = computed(() => ["bk-message", `bk-message-${props2.theme}`, `${props2.extCls}`]);
22382
22426
  const zIndex = bkZIndexManager.getMessageNextIndex();
22383
- const isGetContainer = computed(() => props2.getContainer && isElement$2(props2.getContainer));
22427
+ const isGetContainer = computed(() => props2.getContainer && isElement$3(props2.getContainer));
22384
22428
  const styles = computed(() => ({
22385
22429
  top: `${props2.offsetY}px`,
22386
22430
  zIndex,
@@ -28901,10 +28945,10 @@ const treeProps = {
28901
28945
  PropTypes.bool
28902
28946
  ]).def(""),
28903
28947
  match: PropTypes.oneOfType([
28904
- j("TreeSearchMatchType", {}).def("fuzzy"),
28948
+ E(),
28905
28949
  PropTypes.func
28906
- ]),
28907
- resultType: j("treeSearchResultType", {}).def("tree"),
28950
+ ]).def("fuzzy"),
28951
+ resultType: E().def("tree"),
28908
28952
  openResultNode: PropTypes.bool
28909
28953
  }),
28910
28954
  PropTypes.string,