bkui-vue 1.0.3-beta.62.dialog.1 → 1.0.3-beta.64

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 (222) hide show
  1. package/dist/index.cjs.js +69 -69
  2. package/dist/index.esm.js +17803 -18626
  3. package/dist/index.umd.js +69 -69
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -1
  7. package/lib/alert/index.js +1 -1
  8. package/lib/animate-number/index.js +8 -7
  9. package/lib/badge/index.js +1 -1
  10. package/lib/breadcrumb/index.js +1 -1
  11. package/lib/button/index.js +1 -1
  12. package/lib/card/index.js +1 -1
  13. package/lib/cascader/index.js +42 -38
  14. package/lib/checkbox/index.js +11 -10
  15. package/lib/collapse/index.js +12 -11
  16. package/lib/collapse-transition/index.js +4 -3
  17. package/lib/color-picker/index.js +13 -10
  18. package/lib/components.d.ts +0 -1
  19. package/lib/components.js +0 -1
  20. package/lib/config-provider/index.js +1 -1
  21. package/lib/container/index.js +12 -10
  22. package/lib/date-picker/index.js +1 -1
  23. package/lib/dialog/dialog.css +77 -139
  24. package/lib/dialog/dialog.d.ts +121 -41
  25. package/lib/dialog/dialog.less +65 -10
  26. package/lib/dialog/dialog.variable.css +77 -139
  27. package/lib/dialog/index.d.ts +272 -105
  28. package/lib/dialog/index.js +104 -95
  29. package/lib/dialog/props.d.ts +48 -8
  30. package/lib/directives/index.js +1 -1
  31. package/lib/divider/index.js +3 -2
  32. package/lib/dropdown/index.js +8 -6
  33. package/lib/exception/index.js +1 -1
  34. package/lib/fixed-navbar/index.js +3 -2
  35. package/lib/form/index.js +1 -1
  36. package/lib/icon/angle-double-down-line.js +1 -1
  37. package/lib/icon/angle-double-left-line.js +1 -1
  38. package/lib/icon/angle-double-left.js +1 -1
  39. package/lib/icon/angle-double-right-line.js +1 -1
  40. package/lib/icon/angle-double-right.js +1 -1
  41. package/lib/icon/angle-double-up-line.js +1 -1
  42. package/lib/icon/angle-down-fill.js +1 -1
  43. package/lib/icon/angle-down-line.js +1 -1
  44. package/lib/icon/angle-down.js +1 -1
  45. package/lib/icon/angle-left.js +1 -1
  46. package/lib/icon/angle-right.js +1 -1
  47. package/lib/icon/angle-up-fill.js +1 -1
  48. package/lib/icon/angle-up.js +1 -1
  49. package/lib/icon/archive-fill.js +1 -1
  50. package/lib/icon/arrows-left.js +1 -1
  51. package/lib/icon/arrows-right.js +1 -1
  52. package/lib/icon/assistant.js +1 -1
  53. package/lib/icon/audio-fill.js +1 -1
  54. package/lib/icon/bk.js +1 -1
  55. package/lib/icon/circle.js +1 -1
  56. package/lib/icon/close-line.js +1 -1
  57. package/lib/icon/close.js +1 -1
  58. package/lib/icon/code.js +1 -1
  59. package/lib/icon/cog-shape.js +1 -1
  60. package/lib/icon/collapse-left.js +1 -1
  61. package/lib/icon/copy-shape.js +1 -1
  62. package/lib/icon/copy.js +1 -1
  63. package/lib/icon/data-shape.js +1 -1
  64. package/lib/icon/del.js +1 -1
  65. package/lib/icon/doc-fill.js +1 -1
  66. package/lib/icon/done.js +1 -1
  67. package/lib/icon/down-shape.js +1 -1
  68. package/lib/icon/down-small.js +1 -1
  69. package/lib/icon/edit-line.js +1 -1
  70. package/lib/icon/ellipsis.js +1 -1
  71. package/lib/icon/enlarge-line.js +1 -1
  72. package/lib/icon/error.js +1 -1
  73. package/lib/icon/excel-fill.js +1 -1
  74. package/lib/icon/exclamation-circle-shape.js +1 -1
  75. package/lib/icon/eye.js +1 -1
  76. package/lib/icon/filliscreen-line.js +1 -1
  77. package/lib/icon/fix-line.js +1 -1
  78. package/lib/icon/fix-shape.js +1 -1
  79. package/lib/icon/folder-open.js +1 -1
  80. package/lib/icon/folder-shape-open.js +1 -1
  81. package/lib/icon/folder-shape.js +1 -1
  82. package/lib/icon/folder.js +1 -1
  83. package/lib/icon/funnel.js +1 -1
  84. package/lib/icon/grag-fill.js +1 -1
  85. package/lib/icon/help-document-fill.js +1 -1
  86. package/lib/icon/help-fill.js +1 -1
  87. package/lib/icon/help.js +1 -1
  88. package/lib/icon/image-fill.js +1 -1
  89. package/lib/icon/img-error.js +1 -1
  90. package/lib/icon/img-placehoulder.js +1 -1
  91. package/lib/icon/info-line.js +1 -1
  92. package/lib/icon/info.js +1 -1
  93. package/lib/icon/left-shape.js +1 -1
  94. package/lib/icon/left-turn-line.js +1 -1
  95. package/lib/icon/loading.js +1 -1
  96. package/lib/icon/narrow-line.js +1 -1
  97. package/lib/icon/original.js +1 -1
  98. package/lib/icon/pdf-fill.js +1 -1
  99. package/lib/icon/play-shape.js +1 -1
  100. package/lib/icon/plus.js +1 -1
  101. package/lib/icon/ppt-fill.js +1 -1
  102. package/lib/icon/qq.js +1 -1
  103. package/lib/icon/right-shape.js +1 -1
  104. package/lib/icon/right-turn-line.js +1 -1
  105. package/lib/icon/search.js +1 -1
  106. package/lib/icon/share.js +1 -1
  107. package/lib/icon/spinner.js +1 -1
  108. package/lib/icon/success.js +1 -1
  109. package/lib/icon/switcher-loading.js +1 -1
  110. package/lib/icon/text-all.js +1 -1
  111. package/lib/icon/text-file.js +1 -1
  112. package/lib/icon/text-fill.js +1 -1
  113. package/lib/icon/transfer.js +1 -1
  114. package/lib/icon/tree-application-shape.js +1 -1
  115. package/lib/icon/unfull-screen.js +1 -1
  116. package/lib/icon/unvisible.js +1 -1
  117. package/lib/icon/up-shape.js +1 -1
  118. package/lib/icon/upload.js +1 -1
  119. package/lib/icon/video-fill.js +1 -1
  120. package/lib/icon/warn.js +1 -1
  121. package/lib/icon/weixin-pro.js +1 -1
  122. package/lib/icon/weixin.js +1 -1
  123. package/lib/image/index.js +11 -10
  124. package/lib/info-box/index.d.ts +2 -2
  125. package/lib/info-box/index.js +177 -316
  126. package/lib/info-box/info-box.css +7 -63
  127. package/lib/info-box/info-box.d.ts +16 -17
  128. package/lib/info-box/info-box.less +14 -76
  129. package/lib/info-box/info-box.variable.css +7 -63
  130. package/lib/input/index.js +4 -4
  131. package/lib/link/index.js +2 -2
  132. package/lib/loading/index.js +12 -11
  133. package/lib/menu/index.js +3 -2
  134. package/lib/message/index.js +1 -1
  135. package/lib/modal/index.d.ts +325 -45
  136. package/lib/modal/index.js +667 -188
  137. package/lib/modal/modal.css +31 -131
  138. package/lib/modal/modal.d.ts +126 -16
  139. package/lib/modal/modal.less +28 -84
  140. package/lib/modal/modal.variable.css +31 -131
  141. package/lib/modal/props.mixin.d.ts +53 -2
  142. package/lib/navigation/index.js +9 -7
  143. package/lib/notify/index.js +1 -1
  144. package/lib/overflow-title/index.js +10 -9
  145. package/lib/pagination/index.js +1 -1
  146. package/lib/plugin-popover/index.js +30 -26
  147. package/lib/pop-confirm/index.js +5 -4
  148. package/lib/popover/index.js +30 -26
  149. package/lib/popover2/index.js +2 -2
  150. package/lib/process/index.js +4 -4
  151. package/lib/progress/index.js +6 -5
  152. package/lib/radio/index.js +12 -11
  153. package/lib/rate/index.js +1 -1
  154. package/lib/resize-layout/index.js +1 -1
  155. package/lib/search-select/index.js +14 -11
  156. package/lib/select/index.d.ts +33 -0
  157. package/lib/select/index.js +9 -6
  158. package/lib/select/select.css +19 -5
  159. package/lib/select/select.d.ts +11 -0
  160. package/lib/select/select.less +26 -6
  161. package/lib/select/select.variable.css +19 -5
  162. package/lib/select/selectTagInput.d.ts +7 -0
  163. package/lib/shared/index.d.ts +1 -0
  164. package/lib/shared/index.js +56 -6
  165. package/lib/shared/mask.d.ts +11 -0
  166. package/lib/sideslider/index.d.ts +222 -31
  167. package/lib/sideslider/index.js +40 -53
  168. package/lib/sideslider/sideslider.css +42 -4
  169. package/lib/sideslider/sideslider.d.ts +105 -14
  170. package/lib/sideslider/sideslider.less +58 -13
  171. package/lib/sideslider/sideslider.variable.css +42 -4
  172. package/lib/slider/index.js +20 -19
  173. package/lib/steps/index.js +4 -4
  174. package/lib/swiper/index.js +1 -1
  175. package/lib/switcher/index.js +1 -1
  176. package/lib/tab/index.js +4 -3
  177. package/lib/table/const.d.ts +1 -1
  178. package/lib/table/index.d.ts +0 -23
  179. package/lib/table/index.js +51 -182
  180. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  181. package/lib/table/plugins/use-pagination.d.ts +1 -3
  182. package/lib/table/props.d.ts +0 -8
  183. package/lib/table/table.css +42 -97
  184. package/lib/table/table.d.ts +0 -11
  185. package/lib/table/table.less +58 -43
  186. package/lib/table/table.variable.css +42 -97
  187. package/lib/table/use-attributes.d.ts +0 -1
  188. package/lib/table/use-render.d.ts +1 -1
  189. package/lib/table-column/index.js +3 -7
  190. package/lib/tag/index.js +1 -1
  191. package/lib/tag-input/index.js +4 -3
  192. package/lib/tree/index.d.ts +0 -23
  193. package/lib/tree/index.js +15 -19
  194. package/lib/tree/props.d.ts +0 -8
  195. package/lib/tree/tree.css +2 -75
  196. package/lib/tree/tree.d.ts +0 -11
  197. package/lib/tree/tree.variable.css +2 -75
  198. package/lib/upload/index.js +4 -4
  199. package/lib/virtual-render/index.d.ts +0 -4
  200. package/lib/virtual-render/index.js +55 -255
  201. package/lib/virtual-render/props.d.ts +0 -7
  202. package/lib/virtual-render/use-fix-top.d.ts +7 -2
  203. package/lib/virtual-render/v-virtual-render.d.ts +1 -2
  204. package/lib/virtual-render/virtual-render.css +2 -75
  205. package/lib/virtual-render/virtual-render.d.ts +0 -2
  206. package/lib/virtual-render/virtual-render.less +3 -3
  207. package/lib/virtual-render/virtual-render.variable.css +2 -75
  208. package/package.json +1 -1
  209. package/lib/info-box/render-component.d.ts +0 -4
  210. package/lib/modal/mask.d.ts +0 -6
  211. package/lib/scrollbar/index.d.ts +0 -14
  212. package/lib/scrollbar/index.js +0 -18737
  213. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  214. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  215. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -236
  216. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  217. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  218. package/lib/scrollbar/scrollbar.css +0 -74
  219. package/lib/scrollbar/scrollbar.less +0 -93
  220. package/lib/scrollbar/scrollbar.variable.css +0 -203
  221. package/lib/table/plugins/use-shift-key.d.ts +0 -11
  222. package/lib/virtual-render/use-scrollbar.d.ts +0 -23
@@ -101,7 +101,7 @@ function toPrimitive(t, r) {
101
101
 
102
102
  function toPropertyKey(t) {
103
103
  var i = toPrimitive(t, "string");
104
- return "symbol" == typeof_typeof(i) ? i : i + "";
104
+ return "symbol" == typeof_typeof(i) ? i : String(i);
105
105
  }
106
106
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
107
107
 
@@ -122,7 +122,7 @@ function defineProperty_defineProperty(obj, key, value) {
122
122
  ;// CONCATENATED MODULE: external "vue"
123
123
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
124
124
  var external_vue_y = x => () => x
125
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["watchEffect"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watchEffect });
125
+ const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["watchEffect"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watchEffect });
126
126
  ;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
127
127
  const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
128
128
  /* harmony default export */ const esm_browser_native = ({
@@ -295,7 +295,7 @@ var COLUMN_ATTRIBUTE = {
295
295
  /**
296
296
  * Y 轴滚动条宽度
297
297
  */
298
- var SCROLLY_WIDTH = 0;
298
+ var SCROLLY_WIDTH = 6;
299
299
  /**
300
300
  * 默认行高
301
301
  */
@@ -723,11 +723,7 @@ var tableProps = {
723
723
  /**
724
724
  * 是否支持行拖拽排序
725
725
  */
726
- rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false),
727
- /**
728
- * 是否支持shift键多行选择
729
- */
730
- shiftMultiChecked: shared_namespaceObject.PropTypes.bool.def(false)
726
+ rowDraggable: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.func, shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.object]).def(false)
731
727
  };
732
728
  ;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
733
729
 
@@ -1055,7 +1051,7 @@ var BkTableCache = /*#__PURE__*/function () {
1055
1051
  defineProperty_defineProperty(this, "defKey", Symbol('bk-table-cache-def-key'));
1056
1052
  this.storage = new WeakMap();
1057
1053
  }
1058
- return _createClass(BkTableCache, [{
1054
+ _createClass(BkTableCache, [{
1059
1055
  key: "queueStack",
1060
1056
  value: function queueStack(methodName) {
1061
1057
  var _target$methodName;
@@ -1089,6 +1085,7 @@ var BkTableCache = /*#__PURE__*/function () {
1089
1085
  }
1090
1086
  }
1091
1087
  }]);
1088
+ return BkTableCache;
1092
1089
  }();
1093
1090
 
1094
1091
  ;// CONCATENATED MODULE: ../../packages/table/src/events.ts
@@ -1499,6 +1496,7 @@ function _toConsumableArray(arr) {
1499
1496
  */
1500
1497
 
1501
1498
 
1499
+
1502
1500
  /**
1503
1501
  * 固定列Hooks
1504
1502
  */
@@ -1585,12 +1583,13 @@ function _toConsumableArray(arr) {
1585
1583
  * @returns
1586
1584
  */
1587
1585
  var resolveFixedColumnStyle = function resolveFixedColumnStyle(column) {
1586
+ var hasScrollY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1588
1587
  if (!column.fixed || isHiddenColumn(column)) {
1589
1588
  return {};
1590
1589
  }
1591
1590
  var fixedOffset = {
1592
1591
  left: 0,
1593
- right: -1
1592
+ right: hasScrollY ? SCROLLY_WIDTH : -1
1594
1593
  };
1595
1594
  var fixedPos = resolveFixColPos(column);
1596
1595
  fixedOffset[fixedPos] = getPreColumnOffset(fixedPos, column, fixedOffset[fixedPos]);
@@ -3200,7 +3199,6 @@ const loading_less_namespaceObject = loading_less_x({ });
3200
3199
  return refScrollLoading.value !== null && (typeof refScrollLoading.value === 'boolean' && refScrollLoading.value || typeof_typeof(refScrollLoading.value) === 'object');
3201
3200
  });
3202
3201
  var renderScrollLoading = function renderScrollLoading() {
3203
- var _ctx$slots$fixedBotto3, _ctx$slots$fixedBotto4, _ctx$slots2;
3204
3202
  if (isRender.value) {
3205
3203
  var _ctx$slots$fixedBotto, _ctx$slots$fixedBotto2, _ctx$slots;
3206
3204
  var _getLoadingOption = getLoadingOption(),
@@ -3219,7 +3217,6 @@ const loading_less_namespaceObject = loading_less_x({ });
3219
3217
  indicator: indicator
3220
3218
  }, null);
3221
3219
  }
3222
- return (_ctx$slots$fixedBotto3 = (_ctx$slots$fixedBotto4 = (_ctx$slots2 = ctx.slots).fixedBottom) === null || _ctx$slots$fixedBotto4 === void 0 ? void 0 : _ctx$slots$fixedBotto4.call(_ctx$slots2)) !== null && _ctx$slots$fixedBotto3 !== void 0 ? _ctx$slots$fixedBotto3 : null;
3223
3220
  };
3224
3221
  return {
3225
3222
  renderScrollLoading: renderScrollLoading
@@ -3307,9 +3304,9 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
3307
3304
  if (!props.pagination) {
3308
3305
  return;
3309
3306
  }
3310
- localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread({
3307
+ localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread(use_pagination_objectSpread({}, pagination), {}, {
3311
3308
  count: indexData.length
3312
- }, pagination);
3309
+ });
3313
3310
  };
3314
3311
  /**
3315
3312
  * 重置当前分页开始位置 & 结束位置
@@ -3374,35 +3371,35 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
3374
3371
  }
3375
3372
  pageData.length = 0;
3376
3373
  pageData.push.apply(pageData, _toConsumableArray(sourceData.slice(startIndex.value, endIndex.value)));
3377
- if (Array.isArray(filterFn)) {
3378
- multiFilter(filterFn, pageData);
3379
- } else {
3380
- filter(pageData, filterFn);
3381
- }
3374
+ filter(pageData, filterFn);
3382
3375
  sort(pageData, sortFn, column, type, sortScope);
3383
3376
  resolveLocalPagination();
3384
3377
  };
3385
3378
  var resolvePageDataBySortList = function resolvePageDataBySortList(multiCol) {
3386
3379
  resolvePageData(null, null, null, null, null, multiCol);
3387
3380
  };
3388
- var getCurrentPageData = function getCurrentPageData() {
3389
- return indexData.slice(startIndex.value, endIndex.value);
3390
- };
3391
- var multiFilter = function multiFilter(filterFnList, origin) {
3392
- var sourceData = (origin !== null && origin !== void 0 ? origin : indexData).slice();
3381
+ var multiFilter = function multiFilter(filterFnList) {
3382
+ var sourceData = indexData.slice();
3393
3383
  var target = filterFnList.reduce(function (result, fn) {
3394
3384
  return filter(result, fn);
3395
3385
  }, sourceData);
3396
3386
  pageData.length = 0;
3397
3387
  pageData.push.apply(pageData, _toConsumableArray(getRawData(target)));
3398
3388
  };
3399
- var handlePaginationChange = function handlePaginationChange(filterFn, sortFn) {
3389
+ var handlePaginationChange = function handlePaginationChange() {
3400
3390
  pagination = resolvePaginationOption(props.pagination, pagination);
3401
3391
  resolveLocalPagination();
3402
3392
  resetStartEndIndex();
3403
- resolvePageData(filterFn, sortFn);
3393
+ resolvePageData();
3404
3394
  };
3405
3395
  handlePaginationChange();
3396
+ (0,external_vue_namespaceObject.watch)(function () {
3397
+ return [props.pagination];
3398
+ }, function () {
3399
+ handlePaginationChange();
3400
+ }, {
3401
+ deep: true
3402
+ });
3406
3403
  return {
3407
3404
  pageData: pageData,
3408
3405
  indexData: indexData,
@@ -3410,9 +3407,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
3410
3407
  resolvePageData: resolvePageData,
3411
3408
  resolveIndexData: resolveIndexData,
3412
3409
  resolvePageDataBySortList: resolvePageDataBySortList,
3413
- handlePaginationChange: handlePaginationChange,
3414
3410
  resetStartEndIndex: resetStartEndIndex,
3415
- getCurrentPageData: getCurrentPageData,
3416
3411
  multiFilter: multiFilter,
3417
3412
  sort: sort
3418
3413
  };
@@ -3491,8 +3486,6 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
3491
3486
  localPagination = _usePagination.localPagination,
3492
3487
  resolvePageData = _usePagination.resolvePageData,
3493
3488
  resolvePageDataBySortList = _usePagination.resolvePageDataBySortList,
3494
- handlePaginationChange = _usePagination.handlePaginationChange,
3495
- getCurrentPageData = _usePagination.getCurrentPageData,
3496
3489
  multiFilter = _usePagination.multiFilter,
3497
3490
  sort = _usePagination.sort,
3498
3491
  resetStartEndIndex = _usePagination.resetStartEndIndex,
@@ -3615,15 +3608,13 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
3615
3608
  var getColumnFilterFn = function getColumnFilterFn(col) {
3616
3609
  return getColumnAttribute(col, COLUMN_ATTRIBUTE.COL_FILTER_FN);
3617
3610
  };
3618
- var getFilterFnList = function getFilterFnList() {
3619
- return formatData.columns.filter(function (col) {
3611
+ var filter = function filter() {
3612
+ var filterFnList = formatData.columns.filter(function (col) {
3620
3613
  return !isHiddenColumn(col) && typeof getColumnFilterFn(col) === 'function';
3621
3614
  }).map(function (col) {
3622
3615
  return getColumnFilterFn(col);
3623
3616
  });
3624
- };
3625
- var filter = function filter() {
3626
- multiFilter(getFilterFnList(), getCurrentPageData());
3617
+ multiFilter(filterFnList);
3627
3618
  };
3628
3619
  /**
3629
3620
  * 按照指定列排序
@@ -4084,13 +4075,6 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
4084
4075
  var setIndexData = function setIndexData() {
4085
4076
  return resolveIndexData();
4086
4077
  };
4087
- (0,external_vue_namespaceObject.watch)(function () {
4088
- return [props.pagination];
4089
- }, function () {
4090
- handlePaginationChange(getFilterFnList());
4091
- }, {
4092
- deep: true
4093
- });
4094
4078
  return {
4095
4079
  formatColumns: formatColumns,
4096
4080
  formatDataSchema: formatDataSchema,
@@ -4128,8 +4112,7 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
4128
4112
  pageData: pageData,
4129
4113
  localPagination: localPagination,
4130
4114
  formatData: formatData,
4131
- setIndexData: setIndexData,
4132
- getFilterFnList: getFilterFnList
4115
+ setIndexData: setIndexData
4133
4116
  };
4134
4117
  };
4135
4118
  /* harmony default export */ const use_attributes = (tableSchemaResponse);
@@ -4825,7 +4808,7 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
4825
4808
  * IN THE SOFTWARE.
4826
4809
  */
4827
4810
 
4828
- /* harmony default export */ const table_row = (defineComponent({
4811
+ /* harmony default export */ const table_row = ((0,external_vue_namespaceObject.defineComponent)({
4829
4812
  name: 'TableRow',
4830
4813
  render: function render() {
4831
4814
  var _this$$slots$default, _this$$slots;
@@ -4871,7 +4854,8 @@ const exception_less_namespaceObject = exception_less_x({ });
4871
4854
 
4872
4855
 
4873
4856
 
4874
- /* harmony default export */ const body_empty = (defineComponent({
4857
+
4858
+ /* harmony default export */ const body_empty = ((0,external_vue_namespaceObject.defineComponent)({
4875
4859
  name: 'BodyEmpty',
4876
4860
  props: {
4877
4861
  list: shared_namespaceObject.PropTypes.array.def([]),
@@ -4881,13 +4865,13 @@ const exception_less_namespaceObject = exception_less_x({ });
4881
4865
  emits: ['change'],
4882
4866
  setup: function setup(props) {
4883
4867
  var t = (0,config_provider_namespaceObject.useLocale)('table');
4884
- var localEmptyText = computed(function () {
4868
+ var localEmptyText = (0,external_vue_namespaceObject.computed)(function () {
4885
4869
  if (props.emptyText === undefined) {
4886
4870
  return t.value.emptyText;
4887
4871
  }
4888
4872
  return props.emptyText;
4889
4873
  });
4890
- var type = computed(function () {
4874
+ var type = (0,external_vue_namespaceObject.computed)(function () {
4891
4875
  return props.list.length === 0 ? 'empty' : 'search-empty';
4892
4876
  });
4893
4877
  return function () {
@@ -6128,88 +6112,6 @@ function use_head_cell_isSlot(s) {
6128
6112
  getTH: getTH
6129
6113
  };
6130
6114
  });
6131
- ;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-shift-key.tsx
6132
- /*
6133
- * Tencent is pleased to support the open source community by making
6134
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
6135
- *
6136
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6137
- *
6138
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
6139
- *
6140
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
6141
- *
6142
- * ---------------------------------------------------
6143
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6144
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
6145
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
6146
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6147
- *
6148
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
6149
- * the Software.
6150
- *
6151
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
6152
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6153
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
6154
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
6155
- * IN THE SOFTWARE.
6156
- */
6157
-
6158
- /* harmony default export */ const use_shift_key = (function (props) {
6159
- var isShiftKeyDown = (0,external_vue_namespaceObject.ref)(false);
6160
- var store = {
6161
- start: null,
6162
- end: null
6163
- };
6164
- var handleKeyDown = function handleKeyDown(e) {
6165
- if (e.key === 'Shift') {
6166
- isShiftKeyDown.value = true;
6167
- }
6168
- };
6169
- var handleKeyUp = function handleKeyUp(e) {
6170
- if (e.key === 'Shift') {
6171
- isShiftKeyDown.value = false;
6172
- clearStore();
6173
- }
6174
- };
6175
- var setStore = function setStore(row, index) {
6176
- if (store.start === null && store.end === null) {
6177
- store.start = {
6178
- index: index,
6179
- row: row
6180
- };
6181
- return false;
6182
- }
6183
- store.end = {
6184
- index: index,
6185
- row: row
6186
- };
6187
- return true;
6188
- };
6189
- var clearStore = function clearStore() {
6190
- store.start = null;
6191
- store.end = null;
6192
- };
6193
- if (props.shiftMultiChecked) {
6194
- window.addEventListener('keydown', handleKeyDown);
6195
- window.addEventListener('keyup', handleKeyUp);
6196
- }
6197
- var getStore = function getStore() {
6198
- return store;
6199
- };
6200
- (0,external_vue_namespaceObject.onUnmounted)(function () {
6201
- if (props.shiftMultiChecked) {
6202
- window.removeEventListener('keydown', handleKeyDown);
6203
- window.removeEventListener('keyup', handleKeyUp);
6204
- }
6205
- });
6206
- return {
6207
- isShiftKeyDown: isShiftKeyDown,
6208
- setStore: setStore,
6209
- getStore: getStore,
6210
- clearStore: clearStore
6211
- };
6212
- });
6213
6115
  ;// CONCATENATED MODULE: ../../packages/table/src/use-render.tsx
6214
6116
 
6215
6117
 
@@ -6261,11 +6163,10 @@ function use_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
6261
6163
 
6262
6164
 
6263
6165
 
6264
-
6265
6166
  function use_render_isSlot(s) {
6266
6167
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
6267
6168
  }
6268
- /* harmony default export */ const use_render = (function (props, context, tableResp, head, root, resetTableHeight) {
6169
+ /* harmony default export */ const use_render = (function (props, context, tableResp, styleRef, head, root, resetTableHeight) {
6269
6170
  var t = (0,config_provider_namespaceObject.useLocale)('table');
6270
6171
  var uuid = esm_browser_v4();
6271
6172
  var formatData = (0,external_vue_namespaceObject.computed)(function () {
@@ -6277,10 +6178,6 @@ function use_render_isSlot(s) {
6277
6178
  var settings = (0,external_vue_namespaceObject.computed)(function () {
6278
6179
  return formatData.value.settings;
6279
6180
  });
6280
- var _useShiftKey = use_shift_key(props),
6281
- isShiftKeyDown = _useShiftKey.isShiftKeyDown,
6282
- getStore = _useShiftKey.getStore,
6283
- setStore = _useShiftKey.setStore;
6284
6181
  // const activeSortIndex = ref(null);
6285
6182
  /**
6286
6183
  * 过滤当前可渲染的列
@@ -6407,7 +6304,8 @@ function use_render_isSlot(s) {
6407
6304
  '--row-height': "".concat(resolvePropVal(config, 'height', ['thead']), "px"),
6408
6305
  backgroundColor: props.thead.color
6409
6306
  };
6410
- // const { resolveFixedColumnStyle } = useFixedColumn(props, tableResp, head);
6307
+ var _useFixedColumn = use_fixed_column(props, tableResp, head),
6308
+ resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
6411
6309
  return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("thead", {
6412
6310
  "style": rowStyle
6413
6311
  }, [(0,external_vue_namespaceObject.createVNode)(table_row, null, {
@@ -6416,7 +6314,7 @@ function use_render_isSlot(s) {
6416
6314
  var _props$thead$color, _props$thead;
6417
6315
  var _useHeadCell = use_head_cell(props, context, column, tableResp),
6418
6316
  getTH = _useHeadCell.getTH;
6419
- var headStyle = Object.assign({}, resolveFixedColumnStyle(column), {
6317
+ var headStyle = Object.assign({}, resolveFixedColumnStyle(column, styleRef.value.hasScrollY), {
6420
6318
  '--background-color': DEF_COLOR[(_props$thead$color = (_props$thead = props.thead) === null || _props$thead === void 0 ? void 0 : _props$thead.color) !== null && _props$thead$color !== void 0 ? _props$thead$color : IHeadColor.DEF1]
6421
6319
  });
6422
6320
  var classList = [getHeadColumnClass(column, index), getColumnCustomClass(column), column.align || props.headerAlign || props.align];
@@ -6492,14 +6390,13 @@ function use_render_isSlot(s) {
6492
6390
  return result;
6493
6391
  })]);
6494
6392
  };
6495
- var _useFixedColumn = use_fixed_column(props, tableResp, head),
6496
- resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
6393
+ var _useFixedColumn2 = use_fixed_column(props, tableResp, head),
6394
+ resolveFixedColumnStyle = _useFixedColumn2.resolveFixedColumnStyle;
6497
6395
  var getRowRender = function getRowRender(row, rowIndex, preRow, rows, rowSpanMap, needRowSpan) {
6498
6396
  var isChild = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
6499
6397
  var rowLength = rows.length;
6500
6398
  var rowStyle = [].concat(_toConsumableArray(formatPropAsArray(props.rowStyle, [row, rowIndex])), [{
6501
- '--row-height': "".concat(getRowHeight(row, rowIndex), "px"),
6502
- '--scroll-x': "".concat(tableResp.formatData.layout.translateX, "px")
6399
+ '--row-height': "".concat(getRowHeight(row, rowIndex), "px")
6503
6400
  }]);
6504
6401
  var rowClass = [].concat(_toConsumableArray(formatPropAsArray(props.rowClass, [row, rowIndex])), ["hover-".concat(props.rowHover), rowIndex % 2 === 1 && props.stripe ? 'stripe-row' : '']);
6505
6402
  var rowId = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_UID);
@@ -6704,38 +6601,6 @@ function use_render_isSlot(s) {
6704
6601
  data: props.data
6705
6602
  });
6706
6603
  };
6707
- var beforeRowChange = function beforeRowChange() {
6708
- if (isShiftKeyDown.value && !isAll) {
6709
- var result = setStore(row, index);
6710
- if (result) {
6711
- var _tableResp$pageData$s;
6712
- var _getStore = getStore(),
6713
- start = _getStore.start,
6714
- end = _getStore.end;
6715
- var startIndex = start.index < end.index ? start.index : end.index;
6716
- var endIndex = start.index < end.index ? end.index : start.index;
6717
- ((_tableResp$pageData$s = tableResp.pageData.slice(startIndex, endIndex + 1)) !== null && _tableResp$pageData$s !== void 0 ? _tableResp$pageData$s : []).forEach(function (item) {
6718
- tableResp.setRowSelection(item, true);
6719
- });
6720
- }
6721
- context.emit(EMIT_EVENTS.ROW_SELECT, {
6722
- row: row,
6723
- index: index,
6724
- checked: true,
6725
- data: props.data,
6726
- isShiftKeyDown: true
6727
- });
6728
- context.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
6729
- row: row,
6730
- index: index,
6731
- checked: true,
6732
- data: props.data,
6733
- isShiftKeyDown: true
6734
- });
6735
- return Promise.resolve(!result);
6736
- }
6737
- return Promise.resolve(true);
6738
- };
6739
6604
  var indeterminate = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE);
6740
6605
  var isChecked = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION);
6741
6606
  var isEnable = isRowSelectEnable(props, {
@@ -6747,8 +6612,7 @@ function use_render_isSlot(s) {
6747
6612
  "onChange": handleChecked,
6748
6613
  "disabled": !isEnable,
6749
6614
  "modelValue": isChecked,
6750
- "indeterminate": indeterminate,
6751
- "beforeChange": beforeRowChange
6615
+ "indeterminate": indeterminate
6752
6616
  }, null);
6753
6617
  };
6754
6618
  var renderExpandColumn = function renderExpandColumn(row, column, index, rows) {
@@ -6947,6 +6811,7 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6947
6811
  wrapperStyle = _useClass.wrapperStyle,
6948
6812
  contentStyle = _useClass.contentStyle,
6949
6813
  headStyle = _useClass.headStyle,
6814
+ hasScrollYRef = _useClass.hasScrollYRef,
6950
6815
  hasFooter = _useClass.hasFooter,
6951
6816
  footerStyle = _useClass.footerStyle,
6952
6817
  tableBodyClass = _useClass.tableBodyClass,
@@ -6967,12 +6832,17 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6967
6832
  updateFixClass = _useFixedColumn.updateFixClass;
6968
6833
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
6969
6834
  resolveClassName = _usePrefix.resolveClassName;
6835
+ var styleRef = (0,external_vue_namespaceObject.computed)(function () {
6836
+ return {
6837
+ hasScrollY: hasScrollYRef.value
6838
+ };
6839
+ });
6970
6840
  use_observer_resize(root, function () {
6971
6841
  (0,external_vue_namespaceObject.nextTick)(function () {
6972
6842
  resolveFixedColumns(tableOffsetRight.value);
6973
6843
  });
6974
6844
  });
6975
- var _useRender = use_render(props, ctx, tableSchema, head, root, resetTableHeight),
6845
+ var _useRender = use_render(props, ctx, tableSchema, styleRef, head, root, resetTableHeight),
6976
6846
  renderTableBodySchema = _useRender.renderTableBodySchema,
6977
6847
  renderTableFooter = _useRender.renderTableFooter,
6978
6848
  renderTableHeadSchema = _useRender.renderTableHeadSchema;
@@ -6994,12 +6864,13 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6994
6864
  tableSchema.formatColumns(columns);
6995
6865
  resolveFixedColumns(tableOffsetRight.value);
6996
6866
  tableSchema.setIndexData().then(function () {
6867
+ // tableSchema.formatDataSchema(props.data);
6997
6868
  tableSchema.resetStartEndIndex();
6998
6869
  if (isFirstLoad.value) {
6999
6870
  tableSchema.resolveByDefColumns();
7000
6871
  isFirstLoad.value = false;
7001
6872
  } else {
7002
- tableSchema.resolvePageData(tableSchema.getFilterFnList());
6873
+ tableSchema.resolvePageData();
7003
6874
  }
7004
6875
  registerResizeEvent();
7005
6876
  (0,external_vue_namespaceObject.nextTick)(function () {
@@ -7113,9 +6984,6 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
7113
6984
  "throttleDelay": 120,
7114
6985
  "scrollEvent": true,
7115
6986
  "rowKey": props.rowKey,
7116
- "scrollbar": {
7117
- enabled: true
7118
- },
7119
6987
  "enabled": props.virtualEnabled,
7120
6988
  "keepAlive": true
7121
6989
  }), {
@@ -7126,7 +6994,8 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
7126
6994
  return renderTableBodySchema(scope.data);
7127
6995
  },
7128
6996
  afterSection: function afterSection() {
7129
- return [(0,external_vue_namespaceObject.createVNode)("div", {
6997
+ return [// <div class={fixedBottomBorder.value}></div>,
6998
+ (0,external_vue_namespaceObject.createVNode)("div", {
7130
6999
  "class": resizeColumnClass,
7131
7000
  "style": resizeColumnStyle.value
7132
7001
  }, null)];
@@ -6,7 +6,7 @@ import { ITableResponse } from '../use-attributes';
6
6
  */
7
7
  declare const _default: (props: TablePropTypes, tableResp: ITableResponse, head?: Ref<HTMLElement>) => {
8
8
  fixedWrapperClass: string;
9
- resolveFixedColumnStyle: (column: Column) => {
9
+ resolveFixedColumnStyle: (column: Column, hasScrollY?: boolean) => {
10
10
  [x: string]: string;
11
11
  };
12
12
  resolveFixedColumns: (tableOffsetRight: any) => void;
@@ -14,10 +14,8 @@ declare const _default: (props: TablePropTypes) => {
14
14
  resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
15
15
  resolveIndexData: () => Promise<void>;
16
16
  resolvePageDataBySortList: (multiCol?: any) => void;
17
- handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
18
17
  resetStartEndIndex: () => void;
19
- getCurrentPageData: () => any[];
20
- multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
18
+ multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[]) => void;
21
19
  sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
22
20
  };
23
21
  export default _default;
@@ -560,13 +560,5 @@ export declare const tableProps: {
560
560
  rowDraggable: import("vue-types").VueTypeDef<any> & {
561
561
  default: any;
562
562
  };
563
- /**
564
- * 是否支持shift键多行选择
565
- */
566
- shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
567
- default: boolean;
568
- } & {
569
- default: boolean;
570
- };
571
563
  };
572
564
  export {};