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

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 (124) hide show
  1. package/dist/index.cjs.js +54 -54
  2. package/dist/index.esm.js +311 -182
  3. package/dist/index.umd.js +53 -53
  4. package/dist/locale/en.esm.js +1 -1
  5. package/dist/locale/en.esm.js.map +1 -1
  6. package/dist/locale/en.umd.js +1 -1
  7. package/dist/locale/en.umd.js.map +1 -1
  8. package/dist/locale/zh-cn.esm.js +1 -1
  9. package/dist/locale/zh-cn.esm.js.map +1 -1
  10. package/dist/locale/zh-cn.umd.js +1 -1
  11. package/dist/locale/zh-cn.umd.js.map +1 -1
  12. package/dist/style.css +1 -1
  13. package/dist/style.variable.css +1 -1
  14. package/lib/badge/badge.d.ts +1 -1
  15. package/lib/badge/index.d.ts +4 -4
  16. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  17. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  18. package/lib/breadcrumb/index.d.ts +5 -5
  19. package/lib/cascader/cascader.d.ts +2 -2
  20. package/lib/cascader/index.d.ts +7 -7
  21. package/lib/collapse/collapse-panel.d.ts +7 -2
  22. package/lib/collapse/index.d.ts +7 -2
  23. package/lib/collapse/props.d.ts +3 -1
  24. package/lib/color-picker/color-picker.d.ts +1 -1
  25. package/lib/color-picker/index.d.ts +4 -4
  26. package/lib/components.d.ts +1 -0
  27. package/lib/components.js +1 -1
  28. package/lib/config-provider/config-provider.d.ts +8 -0
  29. package/lib/config-provider/index.d.ts +16 -0
  30. package/lib/config-provider/type.d.ts +4 -0
  31. package/lib/container/container.d.ts +1 -1
  32. package/lib/container/index.d.ts +4 -4
  33. package/lib/dialog/dialog.css +1 -1
  34. package/lib/dialog/dialog.d.ts +12 -7
  35. package/lib/dialog/dialog.less +1 -1
  36. package/lib/dialog/dialog.variable.css +1 -1
  37. package/lib/dialog/index.d.ts +27 -16
  38. package/lib/dialog/props.d.ts +5 -3
  39. package/lib/directives/index.js +1 -1
  40. package/lib/divider/divider.d.ts +3 -3
  41. package/lib/divider/index.d.ts +8 -8
  42. package/lib/divider/index.js +1 -1
  43. package/lib/divider/props.d.ts +1 -1
  44. package/lib/dropdown/dropdown.d.ts +6 -6
  45. package/lib/dropdown/index.d.ts +15 -15
  46. package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
  47. package/lib/fixed-navbar/index.d.ts +4 -4
  48. package/lib/icon/image-fill.js +1 -0
  49. package/lib/icon/index.js +1 -1
  50. package/lib/loading/index.js +1 -1
  51. package/lib/loading/loading.css +2 -0
  52. package/lib/loading/loading.less +2 -0
  53. package/lib/loading/loading.variable.css +2 -0
  54. package/lib/locale/index.js +1 -1
  55. package/lib/locale/lang/en.d.ts +4 -0
  56. package/lib/message/messageConstructor.d.ts +1 -1
  57. package/lib/modal/index.d.ts +22 -9
  58. package/lib/modal/modal.d.ts +8 -3
  59. package/lib/modal/props.mixin.d.ts +3 -1
  60. package/lib/notify/notifyConstructor.d.ts +1 -1
  61. package/lib/overflow-title/index.d.ts +2 -2
  62. package/lib/pagination/index.d.ts +4 -4
  63. package/lib/pagination/pagination.d.ts +1 -1
  64. package/lib/plugin-popover/index.js +1 -1
  65. package/lib/pop-confirm/index.d.ts +214 -0
  66. package/lib/pop-confirm/index.js +1 -0
  67. package/lib/pop-confirm/pop-confirm.css +28 -0
  68. package/lib/pop-confirm/pop-confirm.d.ts +79 -0
  69. package/lib/pop-confirm/pop-confirm.less +34 -0
  70. package/lib/pop-confirm/pop-confirm.variable.css +148 -0
  71. package/lib/pop-confirm/props.d.ts +59 -0
  72. package/lib/popover/content.d.ts +11 -0
  73. package/lib/popover/index.d.ts +70 -53
  74. package/lib/popover/index.js +1 -1
  75. package/lib/popover/popover.d.ts +31 -22
  76. package/lib/popover/props.d.ts +15 -7
  77. package/lib/popover/use-floating.d.ts +4 -1
  78. package/lib/popover/utils.d.ts +1 -0
  79. package/lib/preset.d.ts +8 -0
  80. package/lib/process/index.d.ts +4 -4
  81. package/lib/process/process.d.ts +1 -1
  82. package/lib/progress/index.d.ts +4 -4
  83. package/lib/progress/progress.d.ts +1 -1
  84. package/lib/select/index.d.ts +36 -21
  85. package/lib/select/select.d.ts +12 -7
  86. package/lib/shared/index.js +1 -1
  87. package/lib/shared/vue-types.d.ts +6 -4
  88. package/lib/sideslider/index.d.ts +19 -8
  89. package/lib/sideslider/sideslider.d.ts +8 -3
  90. package/lib/slider/index.d.ts +4 -4
  91. package/lib/slider/slider.d.ts +1 -1
  92. package/lib/steps/index.d.ts +4 -4
  93. package/lib/steps/steps.d.ts +1 -1
  94. package/lib/styles/index.d.ts +1 -0
  95. package/lib/switcher/index.d.ts +4 -4
  96. package/lib/switcher/switcher.d.ts +1 -1
  97. package/lib/tab/index.d.ts +11 -6
  98. package/lib/tab/props.d.ts +3 -1
  99. package/lib/tab/tab-panel.d.ts +7 -2
  100. package/lib/tab/tab.d.ts +1 -1
  101. package/lib/table/cache.d.ts +6 -0
  102. package/lib/table/components/table-column.d.ts +6 -1
  103. package/lib/table/const.d.ts +2 -0
  104. package/lib/table/index.d.ts +18 -3
  105. package/lib/table/index.js +1 -1
  106. package/lib/table/props.d.ts +1 -1
  107. package/lib/table-column/index.d.ts +18 -3
  108. package/lib/table-column/index.js +1 -1
  109. package/lib/tag/index.d.ts +4 -4
  110. package/lib/tag/tag.d.ts +1 -1
  111. package/lib/tag-input/index.d.ts +52 -32
  112. package/lib/tag-input/tag-input.d.ts +25 -15
  113. package/lib/tag-input/tag-props.d.ts +12 -7
  114. package/lib/timeline/index.d.ts +4 -4
  115. package/lib/timeline/timeline.d.ts +1 -1
  116. package/lib/tree/index.js +1 -1
  117. package/lib/tree/props.d.ts +10 -2
  118. package/lib/tree/use-search.d.ts +1 -1
  119. package/lib/upload/index.d.ts +4 -4
  120. package/lib/upload/upload.d.ts +1 -1
  121. package/package.json +1 -1
  122. package/lib/icon/img-error.js +0 -1
  123. /package/lib/overflow-title/components/{OverflowTitle.d.ts → overflow-title.d.ts} +0 -0
  124. /package/lib/overflow-title/directive/{overflowTitle.d.ts → overflow-title.d.ts} +0 -0
package/dist/index.esm.js CHANGED
@@ -89,6 +89,7 @@ var colorPicker = "";
89
89
  var timePicker = "";
90
90
  var searchSelect = "";
91
91
  var configProvider = "";
92
+ var popConfirm = "";
92
93
  const BKLAYERD_INDEX_EFAULT_VALUE = {
93
94
  ["bottom"]: 0,
94
95
  ["content"]: 1,
@@ -334,7 +335,7 @@ function getWindow$1(node) {
334
335
  }
335
336
  return node;
336
337
  }
337
- function isElement$3(node) {
338
+ function isElement$4(node) {
338
339
  var OwnElement = getWindow$1(node).Element;
339
340
  return node instanceof OwnElement || node instanceof Element;
340
341
  }
@@ -488,7 +489,7 @@ function isTableElement$1(element) {
488
489
  return ["table", "td", "th"].indexOf(getNodeName$1(element)) >= 0;
489
490
  }
490
491
  function getDocumentElement$1(element) {
491
- return ((isElement$3(element) ? element.ownerDocument : element.document) || window.document).documentElement;
492
+ return ((isElement$4(element) ? element.ownerDocument : element.document) || window.document).documentElement;
492
493
  }
493
494
  function getParentNode$1(element) {
494
495
  if (getNodeName$1(element) === "html") {
@@ -896,17 +897,17 @@ function getInnerBoundingClientRect$1(element) {
896
897
  return rect;
897
898
  }
898
899
  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)));
900
+ return clippingParent === viewport ? rectToClientRect$1(getViewportRect$1(element)) : isElement$4(clippingParent) ? getInnerBoundingClientRect$1(clippingParent) : rectToClientRect$1(getDocumentRect$1(getDocumentElement$1(element)));
900
901
  }
901
902
  function getClippingParents(element) {
902
903
  var clippingParents2 = listScrollParents(getParentNode$1(element));
903
904
  var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle$2(element).position) >= 0;
904
905
  var clipperElement = canEscapeClipping && isHTMLElement$1(element) ? getOffsetParent$1(element) : element;
905
- if (!isElement$3(clipperElement)) {
906
+ if (!isElement$4(clipperElement)) {
906
907
  return [];
907
908
  }
908
909
  return clippingParents2.filter(function(clippingParent) {
909
- return isElement$3(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== "body";
910
+ return isElement$4(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== "body";
910
911
  });
911
912
  }
912
913
  function getClippingRect$1(element, boundary, rootBoundary) {
@@ -988,7 +989,7 @@ function detectOverflow$1(state, options) {
988
989
  var altContext = elementContext === popper ? reference : popper;
989
990
  var popperRect = state.rects.popper;
990
991
  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);
992
+ var clippingClientRect = getClippingRect$1(isElement$4(element) ? element : element.contextElement || getDocumentElement$1(state.elements.popper), boundary, rootBoundary);
992
993
  var referenceClientRect = getBoundingClientRect$1(state.elements.reference);
993
994
  var popperOffsets2 = computeOffsets({
994
995
  reference: referenceClientRect,
@@ -1505,7 +1506,7 @@ function popperGenerator(generatorOptions) {
1505
1506
  cleanupModifierEffects();
1506
1507
  state.options = Object.assign({}, defaultOptions, state.options, options2);
1507
1508
  state.scrollParents = {
1508
- reference: isElement$3(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
1509
+ reference: isElement$4(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
1509
1510
  popper: listScrollParents(popper2)
1510
1511
  };
1511
1512
  var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
@@ -1664,7 +1665,7 @@ function merge$1(target, source, options) {
1664
1665
  }
1665
1666
  return target;
1666
1667
  }
1667
- function isElement$2(obj) {
1668
+ function isElement$3(obj) {
1668
1669
  try {
1669
1670
  return obj instanceof HTMLElement;
1670
1671
  } catch (e) {
@@ -1773,13 +1774,13 @@ class BKPopover {
1773
1774
  }
1774
1775
  restorePopContent() {
1775
1776
  const target = this.getAppendToTarget();
1776
- if (isElement$2(target) && target.contains(this.popperRefer) && this.container && !this.container.contains(this.popperRefer)) {
1777
+ if (isElement$3(target) && target.contains(this.popperRefer) && this.container && !this.container.contains(this.popperRefer)) {
1777
1778
  this.container.append(this.popperRefer);
1778
1779
  }
1779
1780
  }
1780
1781
  appendToTarget() {
1781
1782
  const target = this.getAppendToTarget();
1782
- if (isElement$2(target) && target.contains(this.popperRefer)) {
1783
+ if (isElement$3(target) && target.contains(this.popperRefer)) {
1783
1784
  target.append(this.popperRefer);
1784
1785
  }
1785
1786
  }
@@ -1860,7 +1861,7 @@ class BKPopover {
1860
1861
  return null;
1861
1862
  }
1862
1863
  isElement(obj) {
1863
- return isElement$2(obj);
1864
+ return isElement$3(obj);
1864
1865
  }
1865
1866
  registerEvents() {
1866
1867
  if (this.isElement(this.referenceTarget)) {
@@ -7935,9 +7936,7 @@ var SizeEnum = /* @__PURE__ */ ((SizeEnum2) => {
7935
7936
  return SizeEnum2;
7936
7937
  })(SizeEnum || {});
7937
7938
  function renderDirectiveType() {
7938
- return j("renderDirective", {
7939
- default: "show"
7940
- });
7939
+ return E().def("show");
7941
7940
  }
7942
7941
  var AlignEnum = /* @__PURE__ */ ((AlignEnum2) => {
7943
7942
  AlignEnum2["LEFT"] = "left";
@@ -7946,9 +7945,7 @@ var AlignEnum = /* @__PURE__ */ ((AlignEnum2) => {
7946
7945
  return AlignEnum2;
7947
7946
  })(AlignEnum || {});
7948
7947
  function alignType() {
7949
- return j("align", {
7950
- default: "left"
7951
- }).def("left");
7948
+ return E().def("left");
7952
7949
  }
7953
7950
  var ThemeEnum = /* @__PURE__ */ ((ThemeEnum2) => {
7954
7951
  ThemeEnum2["PRIMARY"] = "primary";
@@ -7976,10 +7973,10 @@ var PlacementEnum = /* @__PURE__ */ ((PlacementEnum2) => {
7976
7973
  return PlacementEnum2;
7977
7974
  })(PlacementEnum || {});
7978
7975
  function placementType() {
7979
- return j("placement", {}).def("bottom");
7976
+ return E().def("bottom");
7980
7977
  }
7981
- function triggerType() {
7982
- return j("trigger", {}).def("hover");
7978
+ function triggerType$1() {
7979
+ return E().def("hover");
7983
7980
  }
7984
7981
  var RenderType = /* @__PURE__ */ ((RenderType2) => {
7985
7982
  RenderType2["AUTO"] = "auto";
@@ -8046,7 +8043,6 @@ class PropTypes extends propTypesNS {
8046
8043
  if (!val || placements2.includes(val)) {
8047
8044
  return true;
8048
8045
  }
8049
- console.error(`invalid placements, ${val}, the placement must be one of \u3010${placements2.join(" | ")}\u3011`);
8050
8046
  return false;
8051
8047
  },
8052
8048
  default: "top"
@@ -8198,6 +8194,10 @@ const zhCn = {
8198
8194
  prev: "\u4E0A\u4E00\u6B65",
8199
8195
  next: "\u4E0B\u4E00\u6B65"
8200
8196
  },
8197
+ popConfirm: {
8198
+ ok: "\u786E\u5B9A",
8199
+ cancel: "\u53D6\u6D88"
8200
+ },
8201
8201
  form: {
8202
8202
  notBeEmpty: "\u4E0D\u80FD\u4E3A\u7A7A",
8203
8203
  incorrectFormat: "\u683C\u5F0F\u4E0D\u6B63\u786E",
@@ -8307,7 +8307,7 @@ const provideGlobalConfig = (config) => {
8307
8307
  });
8308
8308
  provide(rootProviderKey, configData);
8309
8309
  };
8310
- var Component$F = defineComponent({
8310
+ var Component$G = defineComponent({
8311
8311
  name: "ConfigProvider",
8312
8312
  inheritAttrs: false,
8313
8313
  props: configProviderProps,
@@ -8321,7 +8321,7 @@ var Component$F = defineComponent({
8321
8321
  };
8322
8322
  }
8323
8323
  });
8324
- const BkConfigProvider = withInstall(Component$F);
8324
+ const BkConfigProvider = withInstall(Component$G);
8325
8325
  function generate(node, key2, rootAttrs) {
8326
8326
  return h$1(node.name, __spreadProps(__spreadValues({
8327
8327
  key: key2
@@ -8857,7 +8857,7 @@ const warn = (props2, context) => {
8857
8857
  warn.displayName = "warn";
8858
8858
  warn.inheritAttrs = false;
8859
8859
  JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M603.52 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M357.11999999999995 348.8c0 26.496-22.357333333333333 48-49.919999999999995 48s-49.919999999999995-21.503999999999998-49.919999999999995-48c0-26.496 22.357333333333333-48 49.919999999999995-48s49.919999999999995 21.503999999999998 49.919999999999995 48z"}},{"type":"element","name":"path","attributes":{"d":"M693.12 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}},{"type":"element","name":"path","attributes":{"d":"M951.68 832c43.775999999999996-42.410666666666664 71.29599999999999-101.41866666666665 72.32-166.86933333333332-4.608-109.696-77.35466666666666-201.0453333333333-176.72533333333334-233.30133333333333 5.674666666666667-12.117333333333331 10.154666666666666-26.282666666666664 10.154666666666666-41.471999999999994 0-4.522666666666666-0.38399999999999995-8.959999999999999-1.152-13.226666666666667-33.834666666666664-181.29066666666665-212.39466666666664-313.1306666666667-425.5146666666667-313.1306666666667-238.71999999999997 0-430.72 167.04-430.72 372.48 1.2799999999999998 107.56266666666666 50.56 203.30666666666664 127.40266666666668 267.05066666666664l-16.682666666666666 55.50933333333333c-2.1759999999999997 6.784-3.456 14.634666666666668-3.456 22.741333333333333 0 42.410666666666664 34.38933333333333 76.8 76.8 76.8 12.458666666666666 0 24.191999999999997-2.944 34.602666666666664-8.234666666666666l101.33333333333333-52.906666666666666c32.81066666666666 7.722666666666666 70.52799999999999 12.159999999999998 109.22666666666666 12.159999999999998 0.08533333333333333 0 0.17066666666666666 0 0.21333333333333332 0h28.16c13.098666666666666-0.7679999999999999 25.130666666666663-4.693333333333333 35.54133333333333-11.050666666666666 54.22933333333333 73.55733333333333 140.672 120.53333333333333 238.07999999999998 120.53333333333333 1.664 0 3.3706666666666667 0 5.034666666666666-0.042666666666666665 21.077333333333332-0.08533333333333333 41.855999999999995-2.1759999999999997 61.99466666666667-6.101333333333333l49.10933333333333 26.581333333333333c9.941333333333333 5.034666666666666 21.717333333333332 8.021333333333333 34.176 8.021333333333333 42.410666666666664 0 76.8-34.38933333333333 76.8-76.8 0-8.106666666666666-1.2799999999999998-15.957333333333333-3.584-23.296zM430.72 752.64c-0.17066666666666666 0-0.38399999999999995 0-0.5973333333333333 0-40.831999999999994 0-80.29866666666666-5.8453333333333335-117.58933333333331-16.72533333333333l-3.456 0.7253333333333334-131.2 67.19999999999999 35.199999999999996-113.27999999999999h-3.1999999999999997c-86.10133333333332-52.05333333333333-143.40266666666668-144.17066666666665-145.92-249.89866666666666 0-172.50133333333332 165.76-312.66133333333335 366.72-312.66133333333335 5.717333333333333-0.3413333333333333 12.415999999999999-0.512 19.157333333333334-0.512 163.32799999999997 0 300.58666666666664 111.40266666666668 340.0106666666667 262.4l-14.805333333333332 2.432c-183.04 0-327.03999999999996 112-327.03999999999996 285.44 0.512 26.709333333333333 5.1626666666666665 52.181333333333335 13.312 75.98933333333332zM872.96 812.8v0l21.759999999999998 67.84-81.28-40.959999999999994h-3.84c-21.119999999999997 6.101333333333333-45.397333333333336 9.6-70.48533333333333 9.6-0.17066666666666666 0-0.38399999999999995 0-0.5546666666666666 0-5.888 0.5973333333333333-12.757333333333332 0.9386666666666665-19.712 0.9386666666666665-107.09333333333332 0-195.2853333333333-80.93866666666666-206.71999999999997-184.95999999999998 10.367999999999999-106.96533333333333 99.072-189.1413333333333 206.976-189.1413333333333 5.973333333333334 0 11.861333333333334 0.256 17.706666666666663 0.7253333333333334 4.309333333333333-0.512 10.197333333333333-0.7253333333333334 16.170666666666666-0.7253333333333334 107.904 0 196.60799999999998 82.17599999999999 206.976 187.34933333333333-1.7066666666666666 63.82933333333333-35.79733333333333 118.44266666666665-86.18666666666667 148.90666666666667z"}},{"type":"element","name":"path","attributes":{"d":"M839.68 604.16c0 15.914666666666665-13.184 28.8-29.439999999999998 28.8s-29.439999999999998-12.885333333333332-29.439999999999998-28.8c0-15.914666666666665 13.184-28.8 29.439999999999998-28.8s29.439999999999998 12.885333333333332 29.439999999999998 28.8z"}}]}');
8860
- var Component$E = defineComponent({
8860
+ var Component$F = defineComponent({
8861
8861
  name: "Alert",
8862
8862
  props: {
8863
8863
  theme: TagThemeType().def(TagThemeEnum.INFO),
@@ -8914,8 +8914,8 @@ var Component$E = defineComponent({
8914
8914
  }, [this.closeText ? this.closeText : createVNode(closeLine, null, null)])])]);
8915
8915
  }
8916
8916
  });
8917
- const BkAlert = withInstall(Component$E);
8918
- var Component$D = defineComponent({
8917
+ const BkAlert = withInstall(Component$F);
8918
+ var Component$E = defineComponent({
8919
8919
  name: "AnimateNumber",
8920
8920
  props: {
8921
8921
  value: PropTypes.number.def(0),
@@ -8963,7 +8963,7 @@ var Component$D = defineComponent({
8963
8963
  return () => createVNode("span", null, [formatValue.value]);
8964
8964
  }
8965
8965
  });
8966
- const BkAnimateNumber = withInstall(Component$D);
8966
+ const BkAnimateNumber = withInstall(Component$E);
8967
8967
  const on$1 = (() => {
8968
8968
  if (document.addEventListener) {
8969
8969
  return (element, event, handler) => {
@@ -8992,7 +8992,7 @@ const off$1 = (() => {
8992
8992
  }
8993
8993
  };
8994
8994
  })();
8995
- var Component$C = defineComponent({
8995
+ var Component$D = defineComponent({
8996
8996
  name: "Affix",
8997
8997
  props: {
8998
8998
  offsetTop: PropTypes.number.def(0),
@@ -9117,8 +9117,8 @@ var Component$C = defineComponent({
9117
9117
  };
9118
9118
  }
9119
9119
  });
9120
- const BkAffix = withInstall(Component$C);
9121
- var Component$B = defineComponent({
9120
+ const BkAffix = withInstall(Component$D);
9121
+ var Component$C = defineComponent({
9122
9122
  name: "Backtop",
9123
9123
  props: {
9124
9124
  visibilityHeight: PropTypes.number.def(200),
@@ -9183,8 +9183,8 @@ var Component$B = defineComponent({
9183
9183
  });
9184
9184
  }
9185
9185
  });
9186
- const BkBacktop = withInstall(Component$B);
9187
- var Component$A = defineComponent({
9186
+ const BkBacktop = withInstall(Component$C);
9187
+ var Component$B = defineComponent({
9188
9188
  name: "Badge",
9189
9189
  props: {
9190
9190
  theme: PropTypes.string.def("primary"),
@@ -9260,8 +9260,8 @@ var Component$A = defineComponent({
9260
9260
  }, [(_f = (_e = (_d = this.$slots).icon) == null ? void 0 : _e.call(_d)) != null ? _f : number]) : ""]);
9261
9261
  }
9262
9262
  });
9263
- const BkBadge = withInstall(Component$A);
9264
- var Component$z = defineComponent({
9263
+ const BkBadge = withInstall(Component$B);
9264
+ var Component$A = defineComponent({
9265
9265
  name: "Breadcrumb",
9266
9266
  props: {
9267
9267
  extCls: PropTypes.string,
@@ -9375,7 +9375,7 @@ var BreadcrumbItem = defineComponent({
9375
9375
  };
9376
9376
  }
9377
9377
  });
9378
- const BkBreadcrumb = withInstallProps(Component$z, { Item: BreadcrumbItem });
9378
+ const BkBreadcrumb = withInstallProps(Component$A, { Item: BreadcrumbItem });
9379
9379
  let BkLoadingMode;
9380
9380
  (function(BkLoadingMode2) {
9381
9381
  BkLoadingMode2["Default"] = "default";
@@ -9414,7 +9414,7 @@ const loadingTypes = {
9414
9414
  color: PropTypes.string.def("white"),
9415
9415
  zIndex: PropTypes.number.def(1)
9416
9416
  };
9417
- var Component$y = defineComponent({
9417
+ var Component$z = defineComponent({
9418
9418
  name: "Loading",
9419
9419
  props: loadingTypes,
9420
9420
  setup(props2, ctx) {
@@ -9458,7 +9458,7 @@ var Component$y = defineComponent({
9458
9458
  var _a, _b;
9459
9459
  return createVNode("div", {
9460
9460
  "class": loadingWrapperCls.value
9461
- }, [props2.loading && [ctx.slots.default && createVNode("div", {
9461
+ }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a), props2.loading && [ctx.slots.default && createVNode("div", {
9462
9462
  "class": "bk-loading-mask",
9463
9463
  "style": maskStyle.value
9464
9464
  }, null), createVNode("div", {
@@ -9466,11 +9466,11 @@ var Component$y = defineComponent({
9466
9466
  "style": zIndexStyle.value
9467
9467
  }, [indicator.value, hasTitle.value && createVNode("div", {
9468
9468
  "class": "bk-loading-title"
9469
- }, [props2.title])])], (_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]);
9469
+ }, [props2.title])])]]);
9470
9470
  };
9471
9471
  }
9472
9472
  });
9473
- const BkLoading = withInstallProps(Component$y, { setDefaultIndicator, BkLoadingMode, BkLoadingSize }, true);
9473
+ const BkLoading = withInstallProps(Component$z, { setDefaultIndicator, BkLoadingMode, BkLoadingSize }, true);
9474
9474
  const btnSizes = ["", "small", "large"];
9475
9475
  const buttonProps = {
9476
9476
  theme: PropTypes.theme(),
@@ -9496,7 +9496,7 @@ const buttonProps = {
9496
9496
  default: "button"
9497
9497
  }
9498
9498
  };
9499
- var Component$x = defineComponent({
9499
+ var Component$y = defineComponent({
9500
9500
  name: "Button",
9501
9501
  props: buttonProps,
9502
9502
  emits: ["click", "mouseover"],
@@ -9586,7 +9586,7 @@ var ButtonGroup = defineComponent({
9586
9586
  };
9587
9587
  }
9588
9588
  });
9589
- const BkButton = withInstallProps(Component$x, { ButtonGroup });
9589
+ const BkButton = withInstallProps(Component$y, { ButtonGroup });
9590
9590
  var CollapseTransition = defineComponent({
9591
9591
  name: "CollapseTransition",
9592
9592
  setup(_props, {
@@ -9723,7 +9723,7 @@ const inputEmitEventsType = {
9723
9723
  [EVENTS$2.COMPOSITIONUPDATE]: CompositionEventFunction,
9724
9724
  [EVENTS$2.COMPOSITIONEND]: CompositionEventFunction
9725
9725
  };
9726
- var Component$w = defineComponent({
9726
+ var Component$x = defineComponent({
9727
9727
  name: "Input",
9728
9728
  inheritAttrs: false,
9729
9729
  props: inputType,
@@ -9944,8 +9944,8 @@ var Component$w = defineComponent({
9944
9944
  };
9945
9945
  }
9946
9946
  });
9947
- const BkInput = withInstall(Component$w);
9948
- var Component$v = defineComponent({
9947
+ const BkInput = withInstall(Component$x);
9948
+ var Component$w = defineComponent({
9949
9949
  name: "Card",
9950
9950
  props: {
9951
9951
  title: PropTypes.string,
@@ -10043,7 +10043,7 @@ var Component$v = defineComponent({
10043
10043
  })]);
10044
10044
  }
10045
10045
  });
10046
- const BkCard = withInstall(Component$v);
10046
+ const BkCard = withInstall(Component$w);
10047
10047
  const checkboxGroupKey = Symbol("CheckboxGroup");
10048
10048
  function useFocus$1() {
10049
10049
  const isFocus = ref(false);
@@ -10153,7 +10153,7 @@ const checkboxProps = {
10153
10153
  size: PropTypes.size().def(SizeEnum.LARGE),
10154
10154
  immediateEmitChange: PropTypes.bool.def(true)
10155
10155
  };
10156
- var Component$u = defineComponent({
10156
+ var Component$v = defineComponent({
10157
10157
  name: "Checkbox",
10158
10158
  props: checkboxProps,
10159
10159
  emits: ["update:modelValue", "change"],
@@ -10274,7 +10274,7 @@ var BkCheckboxGroup = defineComponent({
10274
10274
  }, [(_a = this.$slots) == null ? void 0 : _a.default()]);
10275
10275
  }
10276
10276
  });
10277
- const BkCheckbox = withInstallProps(Component$u, { Group: BkCheckboxGroup });
10277
+ const BkCheckbox = withInstallProps(Component$v, { Group: BkCheckboxGroup });
10278
10278
  const propsCollapse = {
10279
10279
  list: PropTypes.arrayOf(PropTypes.any).def([]),
10280
10280
  idFiled: PropTypes.string.def("$index"),
@@ -10527,7 +10527,7 @@ const propsMixin$1 = {
10527
10527
  multiInstance: PropTypes.bool.def(true),
10528
10528
  infoType: PropTypes.theme()
10529
10529
  };
10530
- var Component$t = defineComponent({
10530
+ var Component$u = defineComponent({
10531
10531
  name: "Modal",
10532
10532
  props: __spreadValues({}, propsMixin$1),
10533
10533
  emits: ["quick-close", "quickClose", "hidden", "shown", "close"],
@@ -10642,7 +10642,7 @@ var Component$t = defineComponent({
10642
10642
  })]);
10643
10643
  }
10644
10644
  });
10645
- const BkModal = withInstallProps(Component$t, { propsMixin: propsMixin$1 }, true);
10645
+ const BkModal = withInstallProps(Component$u, { propsMixin: propsMixin$1 }, true);
10646
10646
  const props$1 = __spreadProps(__spreadValues({}, propsMixin$1), {
10647
10647
  width: PropTypes.oneOfType([String, Number]).def(""),
10648
10648
  height: PropTypes.oneOfType([String, Number]).def(""),
@@ -11021,7 +11021,7 @@ var Exception = defineComponent({
11021
11021
  }
11022
11022
  });
11023
11023
  const BkException = withInstall(Exception);
11024
- var Component$s = defineComponent({
11024
+ var Component$t = defineComponent({
11025
11025
  name: "FixedNavbar",
11026
11026
  props: {
11027
11027
  navItems: PropTypes.array.def([]),
@@ -11062,7 +11062,7 @@ var Component$s = defineComponent({
11062
11062
  }, [item.text]) : ""]))]);
11063
11063
  }
11064
11064
  });
11065
- const BkFixedNavbar = withInstall(Component$s);
11065
+ const BkFixedNavbar = withInstall(Component$t);
11066
11066
  var LinkThemeEnum;
11067
11067
  (function(LinkThemeEnum2) {
11068
11068
  LinkThemeEnum2["DANGER"] = "danger";
@@ -11071,7 +11071,7 @@ var LinkThemeEnum;
11071
11071
  LinkThemeEnum2["WARNING"] = "warning";
11072
11072
  LinkThemeEnum2["DEFAULT"] = "default";
11073
11073
  })(LinkThemeEnum || (LinkThemeEnum = {}));
11074
- var Component$r = defineComponent({
11074
+ var Component$s = defineComponent({
11075
11075
  name: "Link",
11076
11076
  props: {
11077
11077
  theme: j("linkTheme", {}).def(LinkThemeEnum.DEFAULT),
@@ -11109,8 +11109,8 @@ var Component$r = defineComponent({
11109
11109
  }, [createVNode("span", null, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)])]);
11110
11110
  }
11111
11111
  });
11112
- const BkLink = withInstall(Component$r);
11113
- const isElement$1 = (e) => {
11112
+ const BkLink = withInstall(Component$s);
11113
+ const isElement$2 = (e) => {
11114
11114
  if (typeof Element === "undefined")
11115
11115
  return false;
11116
11116
  return e instanceof Element;
@@ -11129,7 +11129,7 @@ function createDocumentHandler(el, binding) {
11129
11129
  let excludes = [];
11130
11130
  if (Array.isArray(binding.arg)) {
11131
11131
  excludes = binding.arg;
11132
- } else if (isElement$1(binding.arg)) {
11132
+ } else if (isElement$2(binding.arg)) {
11133
11133
  excludes.push(binding.arg);
11134
11134
  }
11135
11135
  return function(mouseup, mousedown) {
@@ -11213,7 +11213,8 @@ var Content = defineComponent({
11213
11213
  props: {
11214
11214
  width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
11215
11215
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
11216
- maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto")
11216
+ maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto"),
11217
+ extCls: PropTypes.string.def("")
11217
11218
  },
11218
11219
  setup(props2) {
11219
11220
  const resolveValToPix = (val) => {
@@ -11233,7 +11234,7 @@ var Content = defineComponent({
11233
11234
  },
11234
11235
  render() {
11235
11236
  var _a, _b, _c, _d, _e, _f;
11236
- const className = [resolveClassName("popover"), resolveClassName("pop2-content")];
11237
+ const className = [resolveClassName("popover"), resolveClassName("pop2-content"), this.extCls];
11237
11238
  return createVNode("div", {
11238
11239
  "class": className,
11239
11240
  "tabindex": "-1",
@@ -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$1(),
11260
11261
  renderType: renderType(),
11261
11262
  arrow: PropTypes.bool.def(true),
11262
11263
  padding: PropTypes.number.def(5),
@@ -11270,7 +11271,8 @@ const PopoverProps = __spreadValues({
11270
11271
  disableTransform: PropTypes.bool.def(false),
11271
11272
  reference: PropTypes.any.def(null),
11272
11273
  modifiers: PropTypes.array.def([]),
11273
- popoverDelay: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]).def(100)
11274
+ popoverDelay: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]).def(100),
11275
+ extCls: PropTypes.string.def("")
11274
11276
  }, EventProps$1);
11275
11277
  var Reference = defineComponent({
11276
11278
  name: "PopReference",
@@ -12093,7 +12095,7 @@ function getUAString() {
12093
12095
  function isHTMLElement(value) {
12094
12096
  return value instanceof getWindow(value).HTMLElement;
12095
12097
  }
12096
- function isElement(value) {
12098
+ function isElement$1(value) {
12097
12099
  return value instanceof getWindow(value).Element;
12098
12100
  }
12099
12101
  function isNode(value) {
@@ -12143,7 +12145,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
12143
12145
  scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
12144
12146
  scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
12145
12147
  }
12146
- const win = isElement(element) ? getWindow(element) : window;
12148
+ const win = isElement$1(element) ? getWindow(element) : window;
12147
12149
  const addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
12148
12150
  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
12151
  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 +12166,7 @@ function getDocumentElement(node) {
12164
12166
  return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;
12165
12167
  }
12166
12168
  function getNodeScroll(element) {
12167
- if (isElement(element)) {
12169
+ if (isElement$1(element)) {
12168
12170
  return {
12169
12171
  scrollLeft: element.scrollLeft,
12170
12172
  scrollTop: element.scrollTop
@@ -12396,7 +12398,7 @@ function getClientRectFromClippingAncestor(element, clippingParent, strategy) {
12396
12398
  if (clippingParent === "viewport") {
12397
12399
  return rectToClientRect(getViewportRect(element, strategy));
12398
12400
  }
12399
- if (isElement(clippingParent)) {
12401
+ if (isElement$1(clippingParent)) {
12400
12402
  return getInnerBoundingClientRect(clippingParent, strategy);
12401
12403
  }
12402
12404
  return rectToClientRect(getDocumentRect(getDocumentElement(element)));
@@ -12405,10 +12407,10 @@ function getClippingAncestors(element) {
12405
12407
  const clippingAncestors = getOverflowAncestors(element);
12406
12408
  const canEscapeClipping = ["absolute", "fixed"].includes(getComputedStyle$1$1(element).position);
12407
12409
  const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
12408
- if (!isElement(clipperElement)) {
12410
+ if (!isElement$1(clipperElement)) {
12409
12411
  return [];
12410
12412
  }
12411
- return clippingAncestors.filter((clippingAncestors2) => isElement(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
12413
+ return clippingAncestors.filter((clippingAncestors2) => isElement$1(clippingAncestors2) && contains(clippingAncestors2, clipperElement) && getNodeName(clippingAncestors2) !== "body");
12412
12414
  }
12413
12415
  function getClippingRect(_ref) {
12414
12416
  let {
@@ -12438,7 +12440,7 @@ function getClippingRect(_ref) {
12438
12440
  const platform = {
12439
12441
  getClippingRect,
12440
12442
  convertOffsetParentRelativeRectToViewportRelativeRect,
12441
- isElement,
12443
+ isElement: isElement$1,
12442
12444
  getDimensions,
12443
12445
  getOffsetParent,
12444
12446
  getDocumentElement,
@@ -12471,7 +12473,7 @@ function autoUpdate(reference2, floating, update, options) {
12471
12473
  } = options;
12472
12474
  const ancestorScroll = _ancestorScroll && !animationFrame;
12473
12475
  const ancestorResize = _ancestorResize && !animationFrame;
12474
- const ancestors = ancestorScroll || ancestorResize ? [...isElement(reference2) ? getOverflowAncestors(reference2) : [], ...getOverflowAncestors(floating)] : [];
12476
+ const ancestors = ancestorScroll || ancestorResize ? [...isElement$1(reference2) ? getOverflowAncestors(reference2) : [], ...getOverflowAncestors(floating)] : [];
12475
12477
  ancestors.forEach((ancestor) => {
12476
12478
  ancestorScroll && ancestor.addEventListener("scroll", update, {
12477
12479
  passive: true
@@ -12481,7 +12483,7 @@ function autoUpdate(reference2, floating, update, options) {
12481
12483
  let observer = null;
12482
12484
  if (elementResize) {
12483
12485
  observer = new ResizeObserver(update);
12484
- isElement(reference2) && !animationFrame && observer.observe(reference2);
12486
+ isElement$1(reference2) && !animationFrame && observer.observe(reference2);
12485
12487
  observer.observe(floating);
12486
12488
  }
12487
12489
  let frameId;
@@ -12891,6 +12893,9 @@ var useFloating = (props2, ctx, {
12891
12893
  const updateFullscreenTarget = (val) => {
12892
12894
  fullScreenTarget.value = val;
12893
12895
  };
12896
+ watch(() => props2.isShow, (val) => {
12897
+ localIsShow.value = val;
12898
+ });
12894
12899
  watch(localIsShow, (val) => {
12895
12900
  if (val) {
12896
12901
  hanldePopoverShow();
@@ -12933,6 +12938,7 @@ const getFullscreenUid = () => {
12933
12938
  }
12934
12939
  return CachedConst.fullscreenReferId;
12935
12940
  };
12941
+ const isElement = (element) => element instanceof Element || element instanceof HTMLDocument;
12936
12942
  let popContainerId = null;
12937
12943
  let parentNodeReferId = null;
12938
12944
  var usePopperId = (props2, prefix = "#") => {
@@ -13131,7 +13137,7 @@ var usePopoverInit = (props2, ctx, { refReference, refContent, refArrow, refRoot
13131
13137
  localIsShow
13132
13138
  };
13133
13139
  };
13134
- var Component$q = defineComponent({
13140
+ var Component$r = defineComponent({
13135
13141
  name: "Popover",
13136
13142
  components: {
13137
13143
  Content,
@@ -13209,7 +13215,21 @@ var Component$q = defineComponent({
13209
13215
  return localIsShow.value;
13210
13216
  });
13211
13217
  const renderContent2 = () => {
13212
- if (props2.allowHTML) {
13218
+ if (props2.allowHtml) {
13219
+ if (isElement(props2.content)) {
13220
+ return h$1("div", {
13221
+ innerHTML: props2.content.innerHTML
13222
+ });
13223
+ }
13224
+ if (/^(#|\.)/.test(props2.content)) {
13225
+ const target = document.querySelector(props2.content);
13226
+ if (isElement(target)) {
13227
+ return h$1("div", {
13228
+ innerHTML: target.innerHTML
13229
+ });
13230
+ }
13231
+ return content;
13232
+ }
13213
13233
  return h$1("div", {
13214
13234
  innerHTML: props2.content
13215
13235
  });
@@ -13252,6 +13272,7 @@ var Component$q = defineComponent({
13252
13272
  default: () => [withDirectives(createVNode(Content, {
13253
13273
  "ref": "refContent",
13254
13274
  "data-theme": this.theme,
13275
+ "extCls": this.extCls,
13255
13276
  "width": this.width,
13256
13277
  "height": this.height,
13257
13278
  "maxHeight": this.maxHeight
@@ -13284,7 +13305,6 @@ function createPopoverComponent(options) {
13284
13305
  }, options), {
13285
13306
  trigger: "manual"
13286
13307
  });
13287
- const isElement2 = (element) => element instanceof Element || element instanceof HTMLDocument;
13288
13308
  const popoverComponent = {
13289
13309
  name: "$popover",
13290
13310
  setup(_2, {
@@ -13302,7 +13322,7 @@ function createPopoverComponent(options) {
13302
13322
  transform: ""
13303
13323
  });
13304
13324
  const updateStyle = (target) => {
13305
- if (isElement2(target)) {
13325
+ if (isElement(target)) {
13306
13326
  const {
13307
13327
  x: x2,
13308
13328
  y: y2,
@@ -13369,7 +13389,7 @@ function createPopoverComponent(options) {
13369
13389
  updateTarget,
13370
13390
  stopHide
13371
13391
  });
13372
- return () => createVNode(Component$q, mergeProps(attrs.value, {
13392
+ return () => createVNode(Component$r, mergeProps(attrs.value, {
13373
13393
  "ref": refReference,
13374
13394
  "onContentMouseenter": handleContentMouseenter,
13375
13395
  "onContentMouseleave": handleContentMouseleave
@@ -13385,7 +13405,7 @@ function createPopoverComponent(options) {
13385
13405
  return document.body;
13386
13406
  }
13387
13407
  if (/^parent$/i.test(boundary)) {
13388
- if (isElement2(resolvedOptions.target)) {
13408
+ if (isElement(resolvedOptions.target)) {
13389
13409
  return resolvedOptions.target.parentNode;
13390
13410
  }
13391
13411
  return resolvedOptions.target.target.parentNode;
@@ -13431,7 +13451,7 @@ function createPopoverComponent(options) {
13431
13451
  }
13432
13452
  };
13433
13453
  }
13434
- const BkPopover = withInstall(Component$q);
13454
+ const BkPopover = withInstall(Component$r);
13435
13455
  var popover = defineComponent({
13436
13456
  name: "Popover2",
13437
13457
  setup() {
@@ -13561,7 +13581,7 @@ const Line = (_2, {
13561
13581
  function _isSlot$5(s2) {
13562
13582
  return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
13563
13583
  }
13564
- var Component$p = defineComponent({
13584
+ var Component$q = defineComponent({
13565
13585
  name: "Progress",
13566
13586
  props: {
13567
13587
  extCls: PropTypes.string,
@@ -13639,7 +13659,7 @@ var Component$p = defineComponent({
13639
13659
  return createVNode("div", progressProps, [progress2]);
13640
13660
  }
13641
13661
  });
13642
- const BkProgress = withInstall(Component$p);
13662
+ const BkProgress = withInstall(Component$q);
13643
13663
  const radioGroupKey = Symbol("RadioGroup");
13644
13664
  function useFocus() {
13645
13665
  const isFocused = ref(false);
@@ -13733,7 +13753,7 @@ const radioProps = {
13733
13753
  checked: PropTypes.bool.def(false),
13734
13754
  disabled: PropTypes.bool.def(false)
13735
13755
  };
13736
- var Component$o = defineComponent({
13756
+ var Component$p = defineComponent({
13737
13757
  name: "Radio",
13738
13758
  props: radioProps,
13739
13759
  emits: ["change", "update:modelValue"],
@@ -13915,7 +13935,7 @@ var RadioGroup = defineComponent({
13915
13935
  }, [(_a = this.$slots) == null ? void 0 : _a.default()]);
13916
13936
  }
13917
13937
  });
13918
- const BkRadio = withInstallProps(Component$o, { Group: RadioGroup, Button: RadioButton });
13938
+ const BkRadio = withInstallProps(Component$p, { Group: RadioGroup, Button: RadioButton });
13919
13939
  var star = defineComponent({
13920
13940
  name: "Star",
13921
13941
  props: {
@@ -13977,7 +13997,7 @@ var star = defineComponent({
13977
13997
  }, null)])])])])]))]);
13978
13998
  }
13979
13999
  });
13980
- var Component$n = defineComponent({
14000
+ var Component$o = defineComponent({
13981
14001
  name: "Rate",
13982
14002
  components: {
13983
14003
  star
@@ -14057,8 +14077,8 @@ var Component$n = defineComponent({
14057
14077
  }, commonAttrs), null)]]);
14058
14078
  }
14059
14079
  });
14060
- const BkRate = withInstall(Component$n);
14061
- var Component$m = defineComponent({
14080
+ const BkRate = withInstall(Component$o);
14081
+ var Component$n = defineComponent({
14062
14082
  name: "Swiper",
14063
14083
  props: {
14064
14084
  isLoop: PropTypes.bool.def(true),
@@ -14217,7 +14237,7 @@ var Component$m = defineComponent({
14217
14237
  }, null)])]);
14218
14238
  }
14219
14239
  });
14220
- const BkSwiper = withInstall(Component$m);
14240
+ const BkSwiper = withInstall(Component$n);
14221
14241
  const selectKey = Symbol("BkSelect");
14222
14242
  const optionGroupKey = Symbol("BkOptionGroup");
14223
14243
  function useHover() {
@@ -15049,7 +15069,7 @@ const createInstance = (el, binding) => {
15049
15069
  const targetOptions = resolveOptions(el, binding);
15050
15070
  targetOptions.isShow = true;
15051
15071
  targetOptions.content = targetOptions.content || el.innerHTML;
15052
- targetOptions.allowHTML = true;
15072
+ targetOptions.allowHtml = true;
15053
15073
  Object.assign(targetOptions, {
15054
15074
  onContentMouseenter: handleContentEnter,
15055
15075
  onContentMouseleave: handleContentLeave
@@ -15247,7 +15267,7 @@ var virtualRender = {
15247
15267
  }
15248
15268
  }
15249
15269
  };
15250
- var Component$l = defineComponent({
15270
+ var Component$m = defineComponent({
15251
15271
  name: "VirtualRender",
15252
15272
  directives: {
15253
15273
  bkVirtualRender: virtualRender
@@ -15419,14 +15439,14 @@ var Component$l = defineComponent({
15419
15439
  };
15420
15440
  }
15421
15441
  });
15422
- const BkVirtualRender = withInstall(Component$l);
15442
+ const BkVirtualRender = withInstall(Component$m);
15423
15443
  var TagStrokeType;
15424
15444
  (function(TagStrokeType2) {
15425
15445
  TagStrokeType2["UNKNOWN"] = "";
15426
15446
  TagStrokeType2["FILLED"] = "filled";
15427
15447
  TagStrokeType2["STROKE"] = "stroke";
15428
15448
  })(TagStrokeType || (TagStrokeType = {}));
15429
- var Component$k = defineComponent({
15449
+ var Component$l = defineComponent({
15430
15450
  name: "Tag",
15431
15451
  props: {
15432
15452
  theme: TagThemeType(),
@@ -15488,7 +15508,7 @@ var Component$k = defineComponent({
15488
15508
  }, null) : ""]);
15489
15509
  }
15490
15510
  });
15491
- const BkTag = withInstall(Component$k);
15511
+ const BkTag = withInstall(Component$l);
15492
15512
  var SelectTagInput = defineComponent({
15493
15513
  name: "SelectTagInput",
15494
15514
  props: {
@@ -15626,7 +15646,7 @@ var SelectTagInput = defineComponent({
15626
15646
  }, null), (_g = (_f = this.$slots) == null ? void 0 : _f.suffix) == null ? void 0 : _g.call(_f)]);
15627
15647
  }
15628
15648
  });
15629
- var Component$j = defineComponent({
15649
+ var Component$k = defineComponent({
15630
15650
  name: "Select",
15631
15651
  directives: {
15632
15652
  clickoutside: ClickOutside
@@ -16341,7 +16361,7 @@ var Component$j = defineComponent({
16341
16361
  })]);
16342
16362
  }
16343
16363
  });
16344
- const BkSelect = withInstallProps(Component$j, { Option: BkOption, Group: OptionGroup });
16364
+ const BkSelect = withInstallProps(Component$k, { Option: BkOption, Group: OptionGroup });
16345
16365
  function _isSlot$4(s2) {
16346
16366
  return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
16347
16367
  }
@@ -16351,7 +16371,7 @@ const {
16351
16371
  const sliderPops = Object.assign({}, propsMixin);
16352
16372
  sliderPops.width.default = "400";
16353
16373
  sliderPops.height.default = "100%";
16354
- var Component$i = defineComponent({
16374
+ var Component$j = defineComponent({
16355
16375
  name: "Sideslider",
16356
16376
  components: {
16357
16377
  BkModal,
@@ -16442,7 +16462,7 @@ var Component$i = defineComponent({
16442
16462
  };
16443
16463
  }
16444
16464
  });
16445
- const BkSideslider = withInstall(Component$i);
16465
+ const BkSideslider = withInstall(Component$j);
16446
16466
  var StatusEnum;
16447
16467
  (function(StatusEnum2) {
16448
16468
  StatusEnum2["UNKNOWN"] = "";
@@ -16462,7 +16482,7 @@ const stepsProps = {
16462
16482
  steps: PropTypes.array.def([]),
16463
16483
  beforeChange: PropTypes.func
16464
16484
  };
16465
- var Component$h = defineComponent({
16485
+ var Component$i = defineComponent({
16466
16486
  name: "Steps",
16467
16487
  props: stepsProps,
16468
16488
  emits: ["update:curStep", "click"],
@@ -16621,8 +16641,8 @@ var Component$h = defineComponent({
16621
16641
  })]);
16622
16642
  }
16623
16643
  });
16624
- const BkSteps = withInstall(Component$h);
16625
- var Component$g = defineComponent({
16644
+ const BkSteps = withInstall(Component$i);
16645
+ var Component$h = defineComponent({
16626
16646
  name: "Switcher",
16627
16647
  props: {
16628
16648
  theme: PropTypes.theme(),
@@ -16724,7 +16744,7 @@ var Component$g = defineComponent({
16724
16744
  }, [isChecked.value ? props2.onText : props2.offText]) : ""]);
16725
16745
  }
16726
16746
  });
16727
- const BkSwitcher = withInstall(Component$g);
16747
+ const BkSwitcher = withInstall(Component$h);
16728
16748
  var BORDER_OPTION = /* @__PURE__ */ ((BORDER_OPTION2) => {
16729
16749
  BORDER_OPTION2["NONE"] = "none";
16730
16750
  BORDER_OPTION2["ROW"] = "row";
@@ -16821,6 +16841,8 @@ const createDefaultSizeList = (t2) => [
16821
16841
  { value: "large", label: t2.value.setting.lineHeight.large, height: SETTING_SIZE.large }
16822
16842
  ];
16823
16843
  const PROVIDE_KEY_INIT_COL = "InitColumns";
16844
+ const PROVIDE_KEY_TB_CACHE = "BKTableCahce";
16845
+ const BK_COLUMN_UPDATE_DEFINE = "Bk_COlumn_Update_Define";
16824
16846
  var SORT_OPTION = /* @__PURE__ */ ((SORT_OPTION2) => {
16825
16847
  SORT_OPTION2["ASC"] = "asc";
16826
16848
  SORT_OPTION2["DESC"] = "desc";
@@ -16853,7 +16875,7 @@ var SettingSizeEnum = /* @__PURE__ */ ((SettingSizeEnum2) => {
16853
16875
  const settingSizeType = j("columnSize", {
16854
16876
  default: "small"
16855
16877
  });
16856
- const fixedType = j("columnSize", {});
16878
+ const fixedType = E();
16857
16879
  const sortScopeType = j("sortScope", {}).def("current");
16858
16880
  var ResizerWay = /* @__PURE__ */ ((ResizerWay2) => {
16859
16881
  ResizerWay2["DEBOUNCE"] = "debounce";
@@ -16984,50 +17006,64 @@ var Column = defineComponent({
16984
17006
  setup(props2) {
16985
17007
  const initColumns = inject(PROVIDE_KEY_INIT_COL, (_column, _remove = false) => {
16986
17008
  }, false);
17009
+ const bkTableCache = inject(PROVIDE_KEY_TB_CACHE, {
17010
+ queueStack: (_2, fn2) => fn2 == null ? void 0 : fn2()
17011
+ });
16987
17012
  const column = reactive(__spreadProps(__spreadValues({}, props2), {
16988
17013
  field: props2.prop || props2.field
16989
17014
  }));
16990
- onUnmounted(() => {
16991
- initColumns(column, true);
16992
- });
16993
17015
  return {
16994
17016
  initColumns,
17017
+ bkTableCache,
16995
17018
  column
16996
17019
  };
16997
17020
  },
17021
+ unmounted() {
17022
+ this.updateColumnDefine();
17023
+ },
16998
17024
  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));
17025
+ this.updateColumnDefine();
17026
+ },
17027
+ methods: {
17028
+ updateColumnDefine() {
17029
+ const fn2 = () => {
17030
+ const selfVnode = this._;
17031
+ const colList = selfVnode.parent.vnode.children.default() || [];
17032
+ const sortColumns = [];
17033
+ const reduceColumns = (nodes) => {
17034
+ if (!Array.isArray(nodes)) {
17035
+ return;
17022
17036
  }
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);
17037
+ this.column.render = this.$slots.default ? (args) => {
17038
+ var _a, _b;
17039
+ return (_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a, args);
17040
+ } : void 0;
17041
+ nodes.forEach((node) => {
17042
+ var _a, _b;
17043
+ let skipValidateKey0 = true;
17044
+ if (((_a = node.type) == null ? void 0 : _a.name) === "TableColumn") {
17045
+ skipValidateKey0 = Object.hasOwnProperty.call(node.props || {}, "key");
17046
+ const resolveProp = __spreadProps(__spreadValues({}, node.props), {
17047
+ field: node.props.prop || node.props.field
17048
+ });
17049
+ if (resolveProp.label === this.column.label && resolveProp.field === this.column.field) {
17050
+ sortColumns.push(unref(this.column));
17051
+ } else {
17052
+ sortColumns.push(unref(resolveProp));
17053
+ }
17054
+ }
17055
+ if (((_b = node.children) == null ? void 0 : _b.length) && skipValidateKey0) {
17056
+ reduceColumns(node.children);
17057
+ }
17058
+ });
17059
+ };
17060
+ reduceColumns(colList);
17061
+ this.initColumns(sortColumns);
17062
+ };
17063
+ if (typeof this.bkTableCache.queueStack === "function") {
17064
+ this.bkTableCache.queueStack(BK_COLUMN_UPDATE_DEFINE, fn2);
17065
+ }
17066
+ }
17031
17067
  },
17032
17068
  render() {
17033
17069
  var _a, _b;
@@ -17036,6 +17072,20 @@ var Column = defineComponent({
17036
17072
  });
17037
17073
  }
17038
17074
  });
17075
+ class BkTableCache {
17076
+ constructor() {
17077
+ this.storage = void 0;
17078
+ this.storage = {};
17079
+ }
17080
+ queueStack(methodName, fn2 = () => {
17081
+ }) {
17082
+ this.storage[methodName] && clearTimeout(this.storage[methodName]);
17083
+ this.storage[methodName] = setTimeout(() => fn2());
17084
+ }
17085
+ clearQueueStack(methodName) {
17086
+ this.storage[methodName] && clearTimeout(this.storage[methodName]);
17087
+ }
17088
+ }
17039
17089
  const resolvePaginationOption = (propPagination, defVal) => {
17040
17090
  if (!!propPagination) {
17041
17091
  if (typeof propPagination === "object") {
@@ -17532,7 +17582,7 @@ const paginationProps = {
17532
17582
  return value.some((item) => layoutNameMap[item]);
17533
17583
  }, "layout \u7684\u503C\u53EA\u652F\u6301 * total\u3001list\u3001limit *").def(["total", "list", "limit"])
17534
17584
  };
17535
- var Component$f = defineComponent({
17585
+ var Component$g = defineComponent({
17536
17586
  name: "Pagination",
17537
17587
  props: paginationProps,
17538
17588
  emits: ["update:modelValue", "change", "update:limit", "limitChange"],
@@ -17603,7 +17653,7 @@ var Component$f = defineComponent({
17603
17653
  }))]);
17604
17654
  }
17605
17655
  });
17606
- const BkPagination = withInstall(Component$f);
17656
+ const BkPagination = withInstall(Component$g);
17607
17657
  var MapShim = function() {
17608
17658
  if (typeof Map !== "undefined") {
17609
17659
  return Map;
@@ -18454,7 +18504,7 @@ var TableCell = defineComponent({
18454
18504
  };
18455
18505
  };
18456
18506
  const resolveOverflowTooltip = () => {
18457
- if (!refRoot.value || !isElement$2(refRoot.value)) {
18507
+ if (!refRoot.value || !isElement$3(refRoot.value)) {
18458
18508
  return;
18459
18509
  }
18460
18510
  const {
@@ -20288,7 +20338,7 @@ const useInit = (props2, targetColumns) => {
20288
20338
  clearSort
20289
20339
  };
20290
20340
  };
20291
- var Component$e = defineComponent({
20341
+ var Component$f = defineComponent({
20292
20342
  name: "Table",
20293
20343
  props: tableProps,
20294
20344
  emits: EMIT_EVENT_TYPES,
@@ -20297,11 +20347,13 @@ var Component$e = defineComponent({
20297
20347
  let columnSortFn = null;
20298
20348
  let activeSortColumn = null;
20299
20349
  let columnFilterFn = null;
20350
+ const bkTableCache = new BkTableCache();
20300
20351
  const targetColumns = reactive([]);
20301
20352
  const {
20302
20353
  initColumns
20303
20354
  } = useColumn(props2, targetColumns);
20304
20355
  provide(PROVIDE_KEY_INIT_COL, initColumns);
20356
+ provide(PROVIDE_KEY_TB_CACHE, bkTableCache);
20305
20357
  const root = ref();
20306
20358
  const refVirtualRender = ref();
20307
20359
  const tableOffsetRight = ref(0);
@@ -20625,13 +20677,10 @@ var Component$e = defineComponent({
20625
20677
  isExist,
20626
20678
  colPos,
20627
20679
  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", {
20680
+ }) => isExist ? "" : createVNode("div", {
20681
+ "class": resolveColumnClass(column, reactiveSchema.scrollTranslateX, tableOffsetRight.value),
20682
+ "style": resolveColumnStyle(colPos)
20683
+ }, null)), createVNode("div", {
20635
20684
  "class": resizeColumnClass,
20636
20685
  "style": resizeColumnStyle.value
20637
20686
  }, null), createVNode("div", {
@@ -20648,7 +20697,7 @@ var Component$e = defineComponent({
20648
20697
  };
20649
20698
  }
20650
20699
  });
20651
- const BkTable = withInstall(Component$e);
20700
+ const BkTable = withInstall(Component$f);
20652
20701
  withInstall(Column);
20653
20702
  const BkTableColumn = withInstall(Column);
20654
20703
  const INPUT_MIN_WIDTH = 12;
@@ -20895,7 +20944,7 @@ var TagRender = defineComponent({
20895
20944
  }, [this.node[this.displayKey]])]), [[resolveDirective("bk-tooltips"), this.overflowTips]]);
20896
20945
  }
20897
20946
  });
20898
- var Component$d = defineComponent({
20947
+ var Component$e = defineComponent({
20899
20948
  name: "TagInput",
20900
20949
  directives: {
20901
20950
  bkTooltips: tooltips
@@ -21690,7 +21739,7 @@ var Component$d = defineComponent({
21690
21739
  })]);
21691
21740
  }
21692
21741
  });
21693
- const TagInput = withInstall(Component$d);
21742
+ const TagInput = withInstall(Component$e);
21694
21743
  const dividerProps = {
21695
21744
  direction: directionType(),
21696
21745
  align: alignType().def(AlignEnum.CENTER),
@@ -22327,7 +22376,7 @@ const Message$1 = (constructor, options) => {
22327
22376
  render$1(vm, container2);
22328
22377
  instances[position].push(vm);
22329
22378
  let target;
22330
- if (vm.props.getContainer && isElement$2(vm.props.getContainer)) {
22379
+ if (vm.props.getContainer && isElement$3(vm.props.getContainer)) {
22331
22380
  target = vm.props.getContainer;
22332
22381
  } else {
22333
22382
  target = document.body;
@@ -22380,7 +22429,7 @@ var MessageConstructor = defineComponent({
22380
22429
  }) {
22381
22430
  const classNames = computed(() => ["bk-message", `bk-message-${props2.theme}`, `${props2.extCls}`]);
22382
22431
  const zIndex = bkZIndexManager.getMessageNextIndex();
22383
- const isGetContainer = computed(() => props2.getContainer && isElement$2(props2.getContainer));
22432
+ const isGetContainer = computed(() => props2.getContainer && isElement$3(props2.getContainer));
22384
22433
  const styles = computed(() => ({
22385
22434
  top: `${props2.offsetY}px`,
22386
22435
  zIndex,
@@ -22758,7 +22807,7 @@ const menuProps = {
22758
22807
  default: true
22759
22808
  }
22760
22809
  };
22761
- var Component$c = defineComponent({
22810
+ var Component$d = defineComponent({
22762
22811
  name: "Menu",
22763
22812
  props: menuProps,
22764
22813
  emits: ["update:activeKey", "update:openKeys", "click", "openChange"],
@@ -23005,7 +23054,7 @@ var Submenu = defineComponent({
23005
23054
  };
23006
23055
  }
23007
23056
  });
23008
- const BkMenu = withInstallProps(Component$c, { Item, Submenu, Group });
23057
+ const BkMenu = withInstallProps(Component$d, { Item, Submenu, Group });
23009
23058
  const TitleProps = {
23010
23059
  sideTitle: {
23011
23060
  type: String,
@@ -23085,7 +23134,7 @@ const NavigationProps = {
23085
23134
  default: true
23086
23135
  }
23087
23136
  };
23088
- var Component$b = defineComponent({
23137
+ var Component$c = defineComponent({
23089
23138
  name: "Navigation",
23090
23139
  props: NavigationProps,
23091
23140
  emits: ["leave", "toggle", "hover", "toggle-click"],
@@ -23227,7 +23276,7 @@ var Component$b = defineComponent({
23227
23276
  }, [(_l = (_k = this.$slots).footer) == null ? void 0 : _l.call(_k)])])])])]);
23228
23277
  }
23229
23278
  });
23230
- const Navigation = withInstall(Component$b);
23279
+ const Navigation = withInstall(Component$c);
23231
23280
  const pickerDropdownProps = {
23232
23281
  placement: {
23233
23282
  type: String,
@@ -27454,7 +27503,7 @@ var DateRangePanel = defineComponent({
27454
27503
  }, this.$slots) : ""]), shortcuts]);
27455
27504
  }
27456
27505
  });
27457
- var Component$a = defineComponent({
27506
+ var Component$b = defineComponent({
27458
27507
  name: "DatePicker",
27459
27508
  directives: {
27460
27509
  clickoutside: ClickOutside
@@ -28547,7 +28596,7 @@ var TimePicker = defineComponent({
28547
28596
  })]), [[resolveDirective("clickoutside"), this.handleClose]]);
28548
28597
  }
28549
28598
  });
28550
- const BkDatePicker = withInstall(Component$a);
28599
+ const BkDatePicker = withInstall(Component$b);
28551
28600
  var ArrayType = /* @__PURE__ */ ((ArrayType2) => {
28552
28601
  ArrayType2["OBJECT_ARRAY"] = "objectArray";
28553
28602
  ArrayType2["BASE_ARRAY"] = "baseArray";
@@ -28611,7 +28660,7 @@ function useSelectListSearch(selectList, displayCode) {
28611
28660
  selectListSearch
28612
28661
  };
28613
28662
  }
28614
- var Component$9 = defineComponent({
28663
+ var Component$a = defineComponent({
28615
28664
  name: "Transfer",
28616
28665
  props: transferProps,
28617
28666
  emits: ["change", "update:targetList"],
@@ -28808,7 +28857,7 @@ var Component$9 = defineComponent({
28808
28857
  }, [getHeaderHtml("right-header"), getListContentHtml("right")])]);
28809
28858
  }
28810
28859
  });
28811
- const Transfer = withInstall(Component$9);
28860
+ const Transfer = withInstall(Component$a);
28812
28861
  var EVENTS = /* @__PURE__ */ ((EVENTS2) => {
28813
28862
  EVENTS2["NODE_CLICK"] = "nodeClick";
28814
28863
  EVENTS2["NODE_COLLAPSE"] = "nodeCollapse";
@@ -28901,10 +28950,10 @@ const treeProps = {
28901
28950
  PropTypes.bool
28902
28951
  ]).def(""),
28903
28952
  match: PropTypes.oneOfType([
28904
- j("TreeSearchMatchType", {}).def("fuzzy"),
28953
+ E(),
28905
28954
  PropTypes.func
28906
- ]),
28907
- resultType: j("treeSearchResultType", {}).def("tree"),
28955
+ ]).def("fuzzy"),
28956
+ resultType: E().def("tree"),
28908
28957
  openResultNode: PropTypes.bool
28909
28958
  }),
28910
28959
  PropTypes.string,
@@ -29995,7 +30044,7 @@ var useTreeInit = (props2) => {
29995
30044
  onSelected
29996
30045
  };
29997
30046
  };
29998
- var Component$8 = defineComponent({
30047
+ var Component$9 = defineComponent({
29999
30048
  name: "Tree",
30000
30049
  props: treeProps,
30001
30050
  emits: TreeEmitEventsType,
@@ -30107,7 +30156,7 @@ var Component$8 = defineComponent({
30107
30156
  });
30108
30157
  }
30109
30158
  });
30110
- const BkTree = withInstall(Component$8);
30159
+ const BkTree = withInstall(Component$9);
30111
30160
  const isCustomComponent = (node) => node.__v_isVNode;
30112
30161
  var ComposeFormItem = defineComponent({
30113
30162
  name: "ComposeFormItem",
@@ -30699,7 +30748,7 @@ var Dropdown = defineComponent({
30699
30748
  props: {
30700
30749
  isShow: PropTypes.bool.def(false),
30701
30750
  placement: placementType(),
30702
- trigger: triggerType(),
30751
+ trigger: triggerType$1(),
30703
30752
  disabled: PropTypes.bool.def(false),
30704
30753
  popoverOptions: PropTypes.object.def({}),
30705
30754
  extCls: PropTypes.string
@@ -31190,7 +31239,7 @@ class Store {
31190
31239
  nodeDataList.forEach((node) => this.appendNode(node, parentNode));
31191
31240
  }
31192
31241
  }
31193
- var Component$7 = defineComponent({
31242
+ var Component$8 = defineComponent({
31194
31243
  name: "Cascader",
31195
31244
  directives: {
31196
31245
  bkTooltips: tooltips
@@ -31509,7 +31558,7 @@ var Component$7 = defineComponent({
31509
31558
  })])]);
31510
31559
  }
31511
31560
  });
31512
- const BkCascader = withInstallProps(Component$7, { CascaderPanel });
31561
+ const BkCascader = withInstallProps(Component$8, { CascaderPanel });
31513
31562
  var SliderButton = defineComponent({
31514
31563
  name: "SliderButton",
31515
31564
  props: {
@@ -31680,7 +31729,7 @@ const off = (element, event, handler) => {
31680
31729
  element.removeEventListener(event, handler, false);
31681
31730
  }
31682
31731
  };
31683
- var Component$6 = defineComponent({
31732
+ var Component$7 = defineComponent({
31684
31733
  name: "Slider",
31685
31734
  props: {
31686
31735
  modelValue: PropTypes.oneOfType([PropTypes.array, PropTypes.number]),
@@ -32126,8 +32175,8 @@ var Component$6 = defineComponent({
32126
32175
  return this.renderDom();
32127
32176
  }
32128
32177
  });
32129
- const Slider = withInstall(Component$6);
32130
- var Component$5 = defineComponent({
32178
+ const Slider = withInstall(Component$7);
32179
+ var Component$6 = defineComponent({
32131
32180
  name: "ResizeLayout",
32132
32181
  props: {
32133
32182
  placement: PropTypes.placement().def("left"),
@@ -32382,13 +32431,13 @@ var Component$5 = defineComponent({
32382
32431
  }, null)]);
32383
32432
  }
32384
32433
  });
32385
- const BkResizeLayout = withInstall(Component$5);
32434
+ const BkResizeLayout = withInstall(Component$6);
32386
32435
  const timelineProps = {
32387
32436
  list: PropTypes.array.def([]),
32388
32437
  titleAble: PropTypes.bool.def(false),
32389
32438
  extCls: PropTypes.string
32390
32439
  };
32391
- var Component$4 = defineComponent({
32440
+ var Component$5 = defineComponent({
32392
32441
  name: "Timeline",
32393
32442
  props: timelineProps,
32394
32443
  emits: ["select"],
@@ -32501,7 +32550,7 @@ var Component$4 = defineComponent({
32501
32550
  })]);
32502
32551
  }
32503
32552
  });
32504
- const BkTimeline = withInstall(Component$4);
32553
+ const BkTimeline = withInstall(Component$5);
32505
32554
  const processProps = {
32506
32555
  list: PropTypes.array.def([]),
32507
32556
  controllable: PropTypes.bool.def(false),
@@ -32510,7 +32559,7 @@ const processProps = {
32510
32559
  displayKey: PropTypes.string.def("content"),
32511
32560
  extCls: PropTypes.string
32512
32561
  };
32513
- var Component$3 = defineComponent({
32562
+ var Component$4 = defineComponent({
32514
32563
  name: "Process",
32515
32564
  props: processProps,
32516
32565
  emits: ["update:curProcess", "click"],
@@ -32610,7 +32659,7 @@ var Component$3 = defineComponent({
32610
32659
  }, [item[this.displayKey]]), renderIcon(index2, item)])]))])]);
32611
32660
  }
32612
32661
  });
32613
- const BkProcess = withInstall(Component$3);
32662
+ const BkProcess = withInstall(Component$4);
32614
32663
  const CLASS_PREFIX = "bk-upload";
32615
32664
  var EThemes = /* @__PURE__ */ ((EThemes2) => {
32616
32665
  EThemes2["BUTTON"] = "button";
@@ -33887,7 +33936,7 @@ var useFileHandler = (props2, hooks) => {
33887
33936
  handleProgress
33888
33937
  };
33889
33938
  };
33890
- var Component$2 = defineComponent({
33939
+ var Component$3 = defineComponent({
33891
33940
  name: "Upload",
33892
33941
  props: uploadProps,
33893
33942
  emits: ["exceed", "progress", "success", "error", "delete", "done"],
@@ -34092,7 +34141,7 @@ var Component$2 = defineComponent({
34092
34141
  })]);
34093
34142
  }
34094
34143
  });
34095
- const Upload = withInstall(Component$2);
34144
+ const Upload = withInstall(Component$3);
34096
34145
  function Diff$1() {
34097
34146
  }
34098
34147
  Diff$1.prototype = {
@@ -38447,7 +38496,7 @@ const colorPickerProps = {
38447
38496
  withValidate: PropTypes.bool.def(true)
38448
38497
  };
38449
38498
  const whiteColorObj = formatColor("#FFFFFF");
38450
- var Component$1 = defineComponent({
38499
+ var Component$2 = defineComponent({
38451
38500
  name: "ColorPicker",
38452
38501
  directives: {
38453
38502
  clickoutside: ClickOutside
@@ -38639,7 +38688,7 @@ var Component$1 = defineComponent({
38639
38688
  })]), [[resolveDirective("clickoutside"), hideDropDown]]);
38640
38689
  }
38641
38690
  });
38642
- const BkColorPicker = withInstall(Component$1);
38691
+ const BkColorPicker = withInstall(Component$2);
38643
38692
  const BkTimePicker = withInstall(TimePicker);
38644
38693
  var raf = null;
38645
38694
  function requestAnimationFrame$1(callback) {
@@ -39845,7 +39894,7 @@ const SearchSelectProps = {
39845
39894
  }
39846
39895
  }
39847
39896
  };
39848
- var Component = defineComponent({
39897
+ var Component$1 = defineComponent({
39849
39898
  name: "SearchSelect",
39850
39899
  directives: {
39851
39900
  clickoutside: ClickOutside
@@ -40100,7 +40149,86 @@ var Component = defineComponent({
40100
40149
  }, null), this.validateStr || ""])])]);
40101
40150
  }
40102
40151
  });
40103
- const BkSearchSelect = withInstall(Component);
40152
+ const BkSearchSelect = withInstall(Component$1);
40153
+ function triggerType() {
40154
+ return j("trigger", {}).def("hover");
40155
+ }
40156
+ const PopConfirmProps = {
40157
+ trigger: triggerType(),
40158
+ title: PropTypes.string,
40159
+ content: PropTypes.string,
40160
+ confirmText: PropTypes.string,
40161
+ cancelText: PropTypes.string,
40162
+ placement: PropTypes.oneOfType([placementType().def(PlacementEnum.TOP), PropTypes.string]).def(PlacementEnum.TOP),
40163
+ theme: PropTypes.string.def("light "),
40164
+ icon: PropTypes.string.def(""),
40165
+ width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).def("auto")
40166
+ };
40167
+ var Component = defineComponent({
40168
+ name: "PopConfirm",
40169
+ components: {
40170
+ BkPopover,
40171
+ BkButton
40172
+ },
40173
+ props: PopConfirmProps,
40174
+ emits: ["confirm", "cancel"],
40175
+ setup(props2, {
40176
+ emit,
40177
+ slots
40178
+ }) {
40179
+ const visible = ref(false);
40180
+ const t2 = useLocale("popConfirm");
40181
+ function ensure(e) {
40182
+ visible.value = false;
40183
+ emit("confirm");
40184
+ e.stopPropagation();
40185
+ }
40186
+ function cancel(e) {
40187
+ visible.value = false;
40188
+ emit("cancel");
40189
+ e.stopPropagation();
40190
+ }
40191
+ function renderIcon() {
40192
+ if (typeof slots.icon === "function") {
40193
+ return slots.icon();
40194
+ }
40195
+ return props2.icon;
40196
+ }
40197
+ return () => createVNode(BkPopover, {
40198
+ "isShow": visible.value,
40199
+ "trigger": props2.trigger,
40200
+ "theme": props2.theme,
40201
+ "width": props2.width,
40202
+ "onAfterShow": () => visible.value = true,
40203
+ "extCls": "bk-pop-confirm-box"
40204
+ }, {
40205
+ default: () => slots.default(),
40206
+ content: () => createVNode("div", {
40207
+ "class": "bk-pop-confirm"
40208
+ }, [typeof slots.content === "function" ? slots.content() : createVNode(Fragment, null, [props2.title ? createVNode("div", {
40209
+ "class": "bk-pop-confirm-title"
40210
+ }, [createVNode("span", {
40211
+ "class": "bk-pop-confirm-icon"
40212
+ }, [renderIcon()]), createVNode("span", null, [props2.title])]) : "", createVNode("div", {
40213
+ "class": "bk-pop-confirm-content"
40214
+ }, [!props2.title ? renderIcon() : "", props2.content])]), createVNode("div", {
40215
+ "class": "bk-pop-confirm-footer"
40216
+ }, [createVNode(BkButton, {
40217
+ "onClick": ensure,
40218
+ "size": "small",
40219
+ "theme": "primary"
40220
+ }, {
40221
+ default: () => [t2.value.ok]
40222
+ }), createVNode(BkButton, {
40223
+ "onClick": cancel,
40224
+ "size": "small"
40225
+ }, {
40226
+ default: () => [t2.value.cancel]
40227
+ })])])
40228
+ });
40229
+ }
40230
+ });
40231
+ const BKPopConfirm = withInstall(Component);
40104
40232
  var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
40105
40233
  __proto__: null,
40106
40234
  Alert: BkAlert,
@@ -40162,7 +40290,8 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
40162
40290
  SearchSelect: BkSearchSelect,
40163
40291
  OverflowTitle: BkOverflowTitle,
40164
40292
  $bkPopover: createPopoverComponent,
40165
- ConfigProvider: BkConfigProvider
40293
+ ConfigProvider: BkConfigProvider,
40294
+ PopConfirm: BKPopConfirm
40166
40295
  }, Symbol.toStringTag, { value: "Module" }));
40167
40296
  const createInstall = (prefix = "Bk") => (app, options) => {
40168
40297
  const pre = app.config.globalProperties.bkUIPrefix || prefix;
@@ -40183,4 +40312,4 @@ var preset = {
40183
40312
  install: createInstall(),
40184
40313
  version: "0.0.1"
40185
40314
  };
40186
- export { createPopoverComponent as $bkPopover, BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkConfigProvider as ConfigProvider, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, BkInfoBox as InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkOverflowTitle as OverflowTitle, BkPagination as Pagination, BkPopover as Popover, BkPopover2 as Popover2, BkProcess as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSearchSelect as SearchSelect, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTableColumn as TableColumn, BkTag as Tag, TagInput, BkTimeline as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, configProviderProps, BkContainer as containerProps, preset as default, defaultRootConfig, mousewheel, overflowTitle, provideGlobalConfig, rootProviderKey, useLocale };
40315
+ export { createPopoverComponent as $bkPopover, BkAffix as Affix, BkAlert as Alert, BkAnimateNumber as AnimateNumber, BkBacktop as Backtop, BkBadge as Badge, BkBreadcrumb as Breadcrumb, BkButton as Button, BkCard as Card, BkCascader as Cascader, BkCheckbox as Checkbox, BkCodeDiff as CodeDiff, BkCollapse as Collapse, BkColorPicker as ColorPicker, BkConfigProvider as ConfigProvider, BkContainer as Container, BkDatePicker as DatePicker, BkDialog as Dialog, BkDivider as Divider, BkDropdown as Dropdown, BkException as Exception, BkFixedNavbar as FixedNavbar, BkForm as Form, BkInfoBox as InfoBox, BkInput as Input, BkLink as Link, BkLoading as Loading, BkMenu as Menu, Message, BkModal as Modal, Navigation, Notify, BkOverflowTitle as OverflowTitle, BkPagination as Pagination, BKPopConfirm as PopConfirm, BkPopover as Popover, BkPopover2 as Popover2, BkProcess as Process, BkProgress as Progress, BkRadio as Radio, BkRate as Rate, BkResizeLayout as ResizeLayout, BkSearchSelect as SearchSelect, BkSelect as Select, BkSideslider as Sideslider, Slider, BkSteps as Steps, BkSwiper as Swiper, BkSwitcher as Switcher, BkTab as Tab, BkTable as Table, BkTableColumn as TableColumn, BkTag as Tag, TagInput, BkTimeline as TimeLine, BkTimePicker as TimePicker, Transfer, BkTree as Tree, Upload, BkVirtualRender as VirtualRender, ellipsis as bkEllipsis, createInstance as bkEllipsisInstance, tooltips as bkTooltips, ClickOutside as clickoutside, configProviderProps, BkContainer as containerProps, preset as default, defaultRootConfig, mousewheel, overflowTitle, provideGlobalConfig, rootProviderKey, useLocale };