bkui-vue 1.0.3-beta.66.dialog.3 → 1.0.3-beta.67

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 (86) hide show
  1. package/dist/index.cjs.js +70 -70
  2. package/dist/index.esm.js +18476 -19285
  3. package/dist/index.umd.js +70 -70
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/components.d.ts +0 -1
  7. package/lib/components.js +0 -1
  8. package/lib/dialog/dialog.css +84 -135
  9. package/lib/dialog/dialog.d.ts +133 -32
  10. package/lib/dialog/dialog.less +76 -9
  11. package/lib/dialog/dialog.variable.css +84 -135
  12. package/lib/dialog/index.d.ts +314 -84
  13. package/lib/dialog/index.js +221 -206
  14. package/lib/dialog/props.d.ts +48 -8
  15. package/lib/info-box/index.d.ts +2 -2
  16. package/lib/info-box/index.js +173 -318
  17. package/lib/info-box/info-box.css +7 -63
  18. package/lib/info-box/info-box.d.ts +16 -17
  19. package/lib/info-box/info-box.less +14 -76
  20. package/lib/info-box/info-box.variable.css +7 -63
  21. package/lib/modal/hooks.d.ts +1 -1
  22. package/lib/modal/index.d.ts +350 -16
  23. package/lib/modal/index.js +675 -183
  24. package/lib/modal/modal.css +32 -131
  25. package/lib/modal/modal.d.ts +134 -6
  26. package/lib/modal/modal.less +29 -84
  27. package/lib/modal/modal.variable.css +32 -131
  28. package/lib/modal/props.mixin.d.ts +53 -2
  29. package/lib/overflow-title/index.js +52 -46
  30. package/lib/resize-layout/index.js +1 -1
  31. package/lib/select/index.js +2 -2
  32. package/lib/shared/index.d.ts +1 -0
  33. package/lib/shared/index.js +48 -1
  34. package/lib/shared/mask.d.ts +11 -0
  35. package/lib/sideslider/index.d.ts +222 -31
  36. package/lib/sideslider/index.js +40 -64
  37. package/lib/sideslider/sideslider.css +86 -17
  38. package/lib/sideslider/sideslider.d.ts +105 -14
  39. package/lib/sideslider/sideslider.less +107 -27
  40. package/lib/sideslider/sideslider.variable.css +86 -17
  41. package/lib/table/const.d.ts +1 -1
  42. package/lib/table/index.d.ts +0 -23
  43. package/lib/table/index.js +77 -220
  44. package/lib/table/plugins/head-filter.css +4 -8
  45. package/lib/table/plugins/head-filter.less +3 -6
  46. package/lib/table/plugins/head-filter.variable.css +4 -8
  47. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  48. package/lib/table/plugins/use-pagination.d.ts +1 -3
  49. package/lib/table/props.d.ts +0 -8
  50. package/lib/table/table.css +46 -106
  51. package/lib/table/table.d.ts +0 -11
  52. package/lib/table/table.less +58 -43
  53. package/lib/table/table.variable.css +46 -106
  54. package/lib/table/use-attributes.d.ts +0 -1
  55. package/lib/table/use-render.d.ts +1 -1
  56. package/lib/table-column/index.js +2 -6
  57. package/lib/tree/index.d.ts +0 -23
  58. package/lib/tree/index.js +3 -9
  59. package/lib/tree/props.d.ts +0 -8
  60. package/lib/tree/tree.css +2 -76
  61. package/lib/tree/tree.d.ts +0 -11
  62. package/lib/tree/tree.variable.css +2 -76
  63. package/lib/virtual-render/index.d.ts +0 -27
  64. package/lib/virtual-render/index.js +76 -285
  65. package/lib/virtual-render/props.d.ts +0 -16
  66. package/lib/virtual-render/use-fix-top.d.ts +7 -2
  67. package/lib/virtual-render/v-virtual-render.d.ts +1 -2
  68. package/lib/virtual-render/virtual-render.css +2 -76
  69. package/lib/virtual-render/virtual-render.d.ts +0 -13
  70. package/lib/virtual-render/virtual-render.less +3 -3
  71. package/lib/virtual-render/virtual-render.variable.css +2 -76
  72. package/package.json +1 -1
  73. package/lib/info-box/render-component.d.ts +0 -4
  74. package/lib/modal/mask.d.ts +0 -6
  75. package/lib/scrollbar/index.d.ts +0 -15
  76. package/lib/scrollbar/index.js +0 -18756
  77. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  78. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  79. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -240
  80. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  81. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  82. package/lib/scrollbar/scrollbar.css +0 -75
  83. package/lib/scrollbar/scrollbar.less +0 -94
  84. package/lib/scrollbar/scrollbar.variable.css +0 -204
  85. package/lib/table/plugins/use-shift-key.d.ts +0 -11
  86. package/lib/virtual-render/use-scrollbar.d.ts +0 -24
@@ -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
 
@@ -1500,6 +1496,7 @@ function _toConsumableArray(arr) {
1500
1496
  */
1501
1497
 
1502
1498
 
1499
+
1503
1500
  /**
1504
1501
  * 固定列Hooks
1505
1502
  */
@@ -1586,12 +1583,13 @@ function _toConsumableArray(arr) {
1586
1583
  * @returns
1587
1584
  */
1588
1585
  var resolveFixedColumnStyle = function resolveFixedColumnStyle(column) {
1586
+ var hasScrollY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1589
1587
  if (!column.fixed || isHiddenColumn(column)) {
1590
1588
  return {};
1591
1589
  }
1592
1590
  var fixedOffset = {
1593
1591
  left: 0,
1594
- right: -1
1592
+ right: hasScrollY ? SCROLLY_WIDTH : -1
1595
1593
  };
1596
1594
  var fixedPos = resolveFixColPos(column);
1597
1595
  fixedOffset[fixedPos] = getPreColumnOffset(fixedPos, column, fixedOffset[fixedPos]);
@@ -3201,7 +3199,6 @@ const loading_less_namespaceObject = loading_less_x({ });
3201
3199
  return refScrollLoading.value !== null && (typeof refScrollLoading.value === 'boolean' && refScrollLoading.value || typeof_typeof(refScrollLoading.value) === 'object');
3202
3200
  });
3203
3201
  var renderScrollLoading = function renderScrollLoading() {
3204
- var _ctx$slots$fixedBotto3, _ctx$slots$fixedBotto4, _ctx$slots2;
3205
3202
  if (isRender.value) {
3206
3203
  var _ctx$slots$fixedBotto, _ctx$slots$fixedBotto2, _ctx$slots;
3207
3204
  var _getLoadingOption = getLoadingOption(),
@@ -3220,7 +3217,6 @@ const loading_less_namespaceObject = loading_less_x({ });
3220
3217
  indicator: indicator
3221
3218
  }, null);
3222
3219
  }
3223
- 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;
3224
3220
  };
3225
3221
  return {
3226
3222
  renderScrollLoading: renderScrollLoading
@@ -3308,9 +3304,9 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
3308
3304
  if (!props.pagination) {
3309
3305
  return;
3310
3306
  }
3311
- localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread({
3307
+ localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread(use_pagination_objectSpread({}, pagination), {}, {
3312
3308
  count: indexData.length
3313
- }, pagination);
3309
+ });
3314
3310
  };
3315
3311
  /**
3316
3312
  * 重置当前分页开始位置 & 结束位置
@@ -3375,35 +3371,35 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
3375
3371
  }
3376
3372
  pageData.length = 0;
3377
3373
  pageData.push.apply(pageData, _toConsumableArray(sourceData.slice(startIndex.value, endIndex.value)));
3378
- if (Array.isArray(filterFn)) {
3379
- multiFilter(filterFn, pageData);
3380
- } else {
3381
- filter(pageData, filterFn);
3382
- }
3374
+ filter(pageData, filterFn);
3383
3375
  sort(pageData, sortFn, column, type, sortScope);
3384
3376
  resolveLocalPagination();
3385
3377
  };
3386
3378
  var resolvePageDataBySortList = function resolvePageDataBySortList(multiCol) {
3387
3379
  resolvePageData(null, null, null, null, null, multiCol);
3388
3380
  };
3389
- var getCurrentPageData = function getCurrentPageData() {
3390
- return indexData.slice(startIndex.value, endIndex.value);
3391
- };
3392
- var multiFilter = function multiFilter(filterFnList, origin) {
3393
- var sourceData = (origin !== null && origin !== void 0 ? origin : indexData).slice();
3381
+ var multiFilter = function multiFilter(filterFnList) {
3382
+ var sourceData = indexData.slice();
3394
3383
  var target = filterFnList.reduce(function (result, fn) {
3395
3384
  return filter(result, fn);
3396
3385
  }, sourceData);
3397
3386
  pageData.length = 0;
3398
3387
  pageData.push.apply(pageData, _toConsumableArray(getRawData(target)));
3399
3388
  };
3400
- var handlePaginationChange = function handlePaginationChange(filterFn, sortFn) {
3389
+ var handlePaginationChange = function handlePaginationChange() {
3401
3390
  pagination = resolvePaginationOption(props.pagination, pagination);
3402
3391
  resolveLocalPagination();
3403
3392
  resetStartEndIndex();
3404
- resolvePageData(filterFn, sortFn);
3393
+ resolvePageData();
3405
3394
  };
3406
3395
  handlePaginationChange();
3396
+ (0,external_vue_namespaceObject.watch)(function () {
3397
+ return [props.pagination];
3398
+ }, function () {
3399
+ handlePaginationChange();
3400
+ }, {
3401
+ deep: true
3402
+ });
3407
3403
  return {
3408
3404
  pageData: pageData,
3409
3405
  indexData: indexData,
@@ -3411,9 +3407,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
3411
3407
  resolvePageData: resolvePageData,
3412
3408
  resolveIndexData: resolveIndexData,
3413
3409
  resolvePageDataBySortList: resolvePageDataBySortList,
3414
- handlePaginationChange: handlePaginationChange,
3415
3410
  resetStartEndIndex: resetStartEndIndex,
3416
- getCurrentPageData: getCurrentPageData,
3417
3411
  multiFilter: multiFilter,
3418
3412
  sort: sort
3419
3413
  };
@@ -3492,8 +3486,6 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
3492
3486
  localPagination = _usePagination.localPagination,
3493
3487
  resolvePageData = _usePagination.resolvePageData,
3494
3488
  resolvePageDataBySortList = _usePagination.resolvePageDataBySortList,
3495
- handlePaginationChange = _usePagination.handlePaginationChange,
3496
- getCurrentPageData = _usePagination.getCurrentPageData,
3497
3489
  multiFilter = _usePagination.multiFilter,
3498
3490
  sort = _usePagination.sort,
3499
3491
  resetStartEndIndex = _usePagination.resetStartEndIndex,
@@ -3616,15 +3608,13 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
3616
3608
  var getColumnFilterFn = function getColumnFilterFn(col) {
3617
3609
  return getColumnAttribute(col, COLUMN_ATTRIBUTE.COL_FILTER_FN);
3618
3610
  };
3619
- var getFilterFnList = function getFilterFnList() {
3620
- return formatData.columns.filter(function (col) {
3611
+ var filter = function filter() {
3612
+ var filterFnList = formatData.columns.filter(function (col) {
3621
3613
  return !isHiddenColumn(col) && typeof getColumnFilterFn(col) === 'function';
3622
3614
  }).map(function (col) {
3623
3615
  return getColumnFilterFn(col);
3624
3616
  });
3625
- };
3626
- var filter = function filter() {
3627
- multiFilter(getFilterFnList(), getCurrentPageData());
3617
+ multiFilter(filterFnList);
3628
3618
  };
3629
3619
  /**
3630
3620
  * 按照指定列排序
@@ -4085,13 +4075,6 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
4085
4075
  var setIndexData = function setIndexData() {
4086
4076
  return resolveIndexData();
4087
4077
  };
4088
- (0,external_vue_namespaceObject.watch)(function () {
4089
- return [props.pagination];
4090
- }, function () {
4091
- handlePaginationChange(getFilterFnList());
4092
- }, {
4093
- deep: true
4094
- });
4095
4078
  return {
4096
4079
  formatColumns: formatColumns,
4097
4080
  formatDataSchema: formatDataSchema,
@@ -4129,8 +4112,7 @@ var tableSchemaResponse = function tableSchemaResponse(props) {
4129
4112
  pageData: pageData,
4130
4113
  localPagination: localPagination,
4131
4114
  formatData: formatData,
4132
- setIndexData: setIndexData,
4133
- getFilterFnList: getFilterFnList
4115
+ setIndexData: setIndexData
4134
4116
  };
4135
4117
  };
4136
4118
  /* harmony default export */ const use_attributes = (tableSchemaResponse);
@@ -5439,15 +5421,15 @@ const input_less_namespaceObject = input_less_x({ });
5439
5421
 
5440
5422
 
5441
5423
 
5424
+
5442
5425
  function head_filter_isSlot(s) {
5443
5426
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
5444
5427
  }
5445
- var ROW_HEIGHT = 32;
5446
5428
  /* harmony default export */ const head_filter = ((0,external_vue_namespaceObject.defineComponent)({
5447
5429
  name: 'HeadFilter',
5448
5430
  props: {
5449
5431
  column: IColumnType,
5450
- height: shared_namespaceObject.PropTypes.number.def(ROW_HEIGHT)
5432
+ height: shared_namespaceObject.PropTypes.number.def(LINE_HEIGHT)
5451
5433
  },
5452
5434
  emits: ['change', 'filterSave'],
5453
5435
  setup: function setup(props, _ref) {
@@ -5469,6 +5451,14 @@ var ROW_HEIGHT = 32;
5469
5451
  isOpen: false,
5470
5452
  checked: checked.value
5471
5453
  });
5454
+ var maxHeight = (0,external_vue_namespaceObject.computed)(function () {
5455
+ var _filter$value$maxHeig, _filter$value2;
5456
+ return (_filter$value$maxHeig = (_filter$value2 = filter.value) === null || _filter$value2 === void 0 ? void 0 : _filter$value2.maxHeight) !== null && _filter$value$maxHeig !== void 0 ? _filter$value$maxHeig : LINE_HEIGHT * 15;
5457
+ });
5458
+ var height = (0,external_vue_namespaceObject.computed)(function () {
5459
+ var _filter$value3;
5460
+ return ((_filter$value3 = filter.value) === null || _filter$value3 === void 0 ? void 0 : _filter$value3.height) || '100%';
5461
+ });
5472
5462
  (0,external_vue_namespaceObject.watch)(function () {
5473
5463
  return filter.value;
5474
5464
  }, function () {
@@ -5500,22 +5490,6 @@ var ROW_HEIGHT = 32;
5500
5490
  });
5501
5491
  return filterList;
5502
5492
  });
5503
- var maxLength = 5;
5504
- var maxHeight = (0,external_vue_namespaceObject.computed)(function () {
5505
- var _filter$value$maxHeig, _filter$value2;
5506
- return (_filter$value$maxHeig = (_filter$value2 = filter.value) === null || _filter$value2 === void 0 ? void 0 : _filter$value2.maxHeight) !== null && _filter$value$maxHeig !== void 0 ? _filter$value$maxHeig : ROW_HEIGHT * maxLength;
5507
- });
5508
- var height = (0,external_vue_namespaceObject.computed)(function () {
5509
- var _filter$value3;
5510
- return ((_filter$value3 = filter.value) === null || _filter$value3 === void 0 ? void 0 : _filter$value3.height) || '100%';
5511
- });
5512
- var minHeight = (0,external_vue_namespaceObject.computed)(function () {
5513
- var defaultMin = ROW_HEIGHT * 2;
5514
- if (localData.value.length > maxLength) {
5515
- return maxHeight.value;
5516
- }
5517
- return defaultMin;
5518
- });
5519
5493
  var getRegExp = function getRegExp(val) {
5520
5494
  var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ig';
5521
5495
  return new RegExp("".concat(val).replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), flags);
@@ -5630,10 +5604,10 @@ var ROW_HEIGHT = 32;
5630
5604
  if (scope.data.length) {
5631
5605
  return scope.data.map(function (item) {
5632
5606
  return (0,external_vue_namespaceObject.createVNode)("div", {
5633
- "class": "list-item",
5634
- "key": item.value
5607
+ "class": "list-item"
5635
5608
  }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
5636
5609
  "label": item.value,
5610
+ "key": item.$index,
5637
5611
  "immediateEmitChange": false,
5638
5612
  "checked": state.checked.includes(item.value),
5639
5613
  "modelValue": state.checked.includes(item.value),
@@ -5651,6 +5625,16 @@ var ROW_HEIGHT = 32;
5651
5625
  "class": "list-item is-empty"
5652
5626
  }, [t.value.emptyText]);
5653
5627
  };
5628
+ /* 监听过滤筛选值,更新表格
5629
+ onMounted(() => {
5630
+ watch(() => filter.value.checked, (val) => {
5631
+ if (val?.length) {
5632
+ state.checked = val;
5633
+ emit('change', val, filterFn);
5634
+ }
5635
+ }, { immediate: true });
5636
+ });
5637
+ */
5654
5638
  return function () {
5655
5639
  return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
5656
5640
  "trigger": "click",
@@ -5690,7 +5674,6 @@ var ROW_HEIGHT = 32;
5690
5674
  "default": function _default() {
5691
5675
  return [(0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
5692
5676
  "maxHeight": maxHeight.value,
5693
- "minHeight": minHeight.value,
5694
5677
  "height": height.value,
5695
5678
  "lineHeight": 32,
5696
5679
  "list": localData.value,
@@ -5926,11 +5909,11 @@ function use_head_cell_isSlot(s) {
5926
5909
  }));
5927
5910
  }, {});
5928
5911
  };
5929
- var getSortFnByColumn = function getSortFnByColumn(column, fn, a, b, type) {
5912
+ var getSortFnByColumn = function getSortFnByColumn(column, fn, a, b) {
5930
5913
  if (column.type === 'index') {
5931
- return fn(tableResp.getRowAttribute(a, TABLE_ROW_ATTRIBUTE.ROW_INDEX), tableResp.getRowAttribute(b, TABLE_ROW_ATTRIBUTE.ROW_INDEX), type);
5914
+ return fn(tableResp.getRowAttribute(a, TABLE_ROW_ATTRIBUTE.ROW_INDEX), tableResp.getRowAttribute(b, TABLE_ROW_ATTRIBUTE.ROW_INDEX));
5932
5915
  }
5933
- return fn(a, b, type);
5916
+ return fn(a, b);
5934
5917
  };
5935
5918
  /**
5936
5919
  * 点击选中一列事件
@@ -5945,7 +5928,7 @@ function use_head_cell_isSlot(s) {
5945
5928
  var type = tableResp.getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE);
5946
5929
  nextSort.value = getNextSortType(type);
5947
5930
  var sortFn = function sortFn(a, b) {
5948
- return getSortFnByColumn(column, getSortFn(column, nextSort.value, props.sortValFormat), a, b, type);
5931
+ return getSortFnByColumn(column, getSortFn(column, nextSort.value, props.sortValFormat), a, b);
5949
5932
  };
5950
5933
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE, nextSort.value);
5951
5934
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_FN, sortFn);
@@ -6013,9 +5996,8 @@ function use_head_cell_isSlot(s) {
6013
5996
  * @param type 排序类型
6014
5997
  */
6015
5998
  var handleSortClick = function handleSortClick(sortFn, type) {
6016
- console.log('handleSortClick', type);
6017
5999
  var fn = function fn(a, b) {
6018
- return getSortFnByColumn(column, sortFn, a, b, type);
6000
+ return getSortFnByColumn(column, sortFn, a, b);
6019
6001
  };
6020
6002
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE, type);
6021
6003
  tableResp.setColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_FN, fn);
@@ -6130,88 +6112,6 @@ function use_head_cell_isSlot(s) {
6130
6112
  getTH: getTH
6131
6113
  };
6132
6114
  });
6133
- ;// CONCATENATED MODULE: ../../packages/table/src/plugins/use-shift-key.tsx
6134
- /*
6135
- * Tencent is pleased to support the open source community by making
6136
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
6137
- *
6138
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
6139
- *
6140
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
6141
- *
6142
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
6143
- *
6144
- * ---------------------------------------------------
6145
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6146
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
6147
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
6148
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6149
- *
6150
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
6151
- * the Software.
6152
- *
6153
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
6154
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
6155
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
6156
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
6157
- * IN THE SOFTWARE.
6158
- */
6159
-
6160
- /* harmony default export */ const use_shift_key = (function (props) {
6161
- var isShiftKeyDown = (0,external_vue_namespaceObject.ref)(false);
6162
- var store = {
6163
- start: null,
6164
- end: null
6165
- };
6166
- var handleKeyDown = function handleKeyDown(e) {
6167
- if (e.key === 'Shift') {
6168
- isShiftKeyDown.value = true;
6169
- }
6170
- };
6171
- var handleKeyUp = function handleKeyUp(e) {
6172
- if (e.key === 'Shift') {
6173
- isShiftKeyDown.value = false;
6174
- clearStore();
6175
- }
6176
- };
6177
- var setStore = function setStore(row, index) {
6178
- if (store.start === null && store.end === null) {
6179
- store.start = {
6180
- index: index,
6181
- row: row
6182
- };
6183
- return false;
6184
- }
6185
- store.end = {
6186
- index: index,
6187
- row: row
6188
- };
6189
- return true;
6190
- };
6191
- var clearStore = function clearStore() {
6192
- store.start = null;
6193
- store.end = null;
6194
- };
6195
- if (props.shiftMultiChecked) {
6196
- window.addEventListener('keydown', handleKeyDown);
6197
- window.addEventListener('keyup', handleKeyUp);
6198
- }
6199
- var getStore = function getStore() {
6200
- return store;
6201
- };
6202
- (0,external_vue_namespaceObject.onUnmounted)(function () {
6203
- if (props.shiftMultiChecked) {
6204
- window.removeEventListener('keydown', handleKeyDown);
6205
- window.removeEventListener('keyup', handleKeyUp);
6206
- }
6207
- });
6208
- return {
6209
- isShiftKeyDown: isShiftKeyDown,
6210
- setStore: setStore,
6211
- getStore: getStore,
6212
- clearStore: clearStore
6213
- };
6214
- });
6215
6115
  ;// CONCATENATED MODULE: ../../packages/table/src/use-render.tsx
6216
6116
 
6217
6117
 
@@ -6263,11 +6163,10 @@ function use_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
6263
6163
 
6264
6164
 
6265
6165
 
6266
-
6267
6166
  function use_render_isSlot(s) {
6268
6167
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
6269
6168
  }
6270
- /* 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) {
6271
6170
  var t = (0,config_provider_namespaceObject.useLocale)('table');
6272
6171
  var uuid = esm_browser_v4();
6273
6172
  var formatData = (0,external_vue_namespaceObject.computed)(function () {
@@ -6279,10 +6178,6 @@ function use_render_isSlot(s) {
6279
6178
  var settings = (0,external_vue_namespaceObject.computed)(function () {
6280
6179
  return formatData.value.settings;
6281
6180
  });
6282
- var _useShiftKey = use_shift_key(props),
6283
- isShiftKeyDown = _useShiftKey.isShiftKeyDown,
6284
- getStore = _useShiftKey.getStore,
6285
- setStore = _useShiftKey.setStore;
6286
6181
  // const activeSortIndex = ref(null);
6287
6182
  /**
6288
6183
  * 过滤当前可渲染的列
@@ -6392,17 +6287,11 @@ function use_render_isSlot(s) {
6392
6287
  context.emit(EMIT_EVENTS.PAGE_LIMIT_CHANGE, limit);
6393
6288
  };
6394
6289
  var handlePageChange = function handlePageChange(current) {
6395
- if (typeof_typeof(props.pagination) === 'object' && current !== props.pagination.current) {
6396
- Object.assign(props.pagination, {
6397
- current: current,
6398
- value: current
6399
- });
6400
- context.emit(EMIT_EVENTS.PAGE_VALUE_CHANGE, current);
6401
- return;
6402
- }
6403
- if (typeof props.pagination === 'boolean' && props.pagination !== false) {
6404
- context.emit(EMIT_EVENTS.PAGE_VALUE_CHANGE, current);
6405
- }
6290
+ Object.assign(props.pagination, {
6291
+ current: current,
6292
+ value: current
6293
+ });
6294
+ context.emit(EMIT_EVENTS.PAGE_VALUE_CHANGE, current);
6406
6295
  };
6407
6296
  /**
6408
6297
  * 渲染Table Header
@@ -6415,7 +6304,8 @@ function use_render_isSlot(s) {
6415
6304
  '--row-height': "".concat(resolvePropVal(config, 'height', ['thead']), "px"),
6416
6305
  backgroundColor: props.thead.color
6417
6306
  };
6418
- // const { resolveFixedColumnStyle } = useFixedColumn(props, tableResp, head);
6307
+ var _useFixedColumn = use_fixed_column(props, tableResp, head),
6308
+ resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
6419
6309
  return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("thead", {
6420
6310
  "style": rowStyle
6421
6311
  }, [(0,external_vue_namespaceObject.createVNode)(table_row, null, {
@@ -6424,7 +6314,7 @@ function use_render_isSlot(s) {
6424
6314
  var _props$thead$color, _props$thead;
6425
6315
  var _useHeadCell = use_head_cell(props, context, column, tableResp),
6426
6316
  getTH = _useHeadCell.getTH;
6427
- var headStyle = Object.assign({}, resolveFixedColumnStyle(column), {
6317
+ var headStyle = Object.assign({}, resolveFixedColumnStyle(column, styleRef.value.hasScrollY), {
6428
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]
6429
6319
  });
6430
6320
  var classList = [getHeadColumnClass(column, index), getColumnCustomClass(column), column.align || props.headerAlign || props.align];
@@ -6500,14 +6390,13 @@ function use_render_isSlot(s) {
6500
6390
  return result;
6501
6391
  })]);
6502
6392
  };
6503
- var _useFixedColumn = use_fixed_column(props, tableResp, head),
6504
- resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
6393
+ var _useFixedColumn2 = use_fixed_column(props, tableResp, head),
6394
+ resolveFixedColumnStyle = _useFixedColumn2.resolveFixedColumnStyle;
6505
6395
  var getRowRender = function getRowRender(row, rowIndex, preRow, rows, rowSpanMap, needRowSpan) {
6506
6396
  var isChild = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
6507
6397
  var rowLength = rows.length;
6508
6398
  var rowStyle = [].concat(_toConsumableArray(formatPropAsArray(props.rowStyle, [row, rowIndex])), [{
6509
- '--row-height': "".concat(getRowHeight(row, rowIndex), "px"),
6510
- '--scroll-x': "".concat(tableResp.formatData.layout.translateX, "px")
6399
+ '--row-height': "".concat(getRowHeight(row, rowIndex), "px")
6511
6400
  }]);
6512
6401
  var rowClass = [].concat(_toConsumableArray(formatPropAsArray(props.rowClass, [row, rowIndex])), ["hover-".concat(props.rowHover), rowIndex % 2 === 1 && props.stripe ? 'stripe-row' : '']);
6513
6402
  var rowId = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_UID);
@@ -6518,6 +6407,7 @@ function use_render_isSlot(s) {
6518
6407
  return [(0,external_vue_namespaceObject.createVNode)("tr", (0,external_vue_namespaceObject.mergeProps)({
6519
6408
  "style": rowStyle,
6520
6409
  "class": rowClass,
6410
+ "data-row-id": rowId,
6521
6411
  "key": rowId,
6522
6412
  "data-row-index": rowIndex,
6523
6413
  "onClick": function onClick(e) {
@@ -6568,14 +6458,11 @@ function use_render_isSlot(s) {
6568
6458
  };
6569
6459
  context.emit(type, args);
6570
6460
  };
6571
- var columnKey = "".concat(rowId, "_").concat(index);
6572
- var cellKey = "".concat(rowId, "_").concat(index, "_cell");
6573
6461
  return (0,external_vue_namespaceObject.createVNode)("td", {
6574
6462
  "class": cellClass,
6575
6463
  "style": cellStyle,
6576
6464
  "colspan": colspan,
6577
6465
  "rowspan": rowspan,
6578
- "key": columnKey,
6579
6466
  "onClick": function onClick(event) {
6580
6467
  return handleEmit(event, EMIT_EVENTS.CELL_CLICK);
6581
6468
  },
@@ -6583,7 +6470,6 @@ function use_render_isSlot(s) {
6583
6470
  return handleEmit(event, EMIT_EVENTS.CELL_DBL_CLICK);
6584
6471
  }
6585
6472
  }, [(0,external_vue_namespaceObject.createVNode)(table_cell, {
6586
- "key": cellKey,
6587
6473
  "class": tdCtxClass,
6588
6474
  "column": column,
6589
6475
  "row": row,
@@ -6715,38 +6601,6 @@ function use_render_isSlot(s) {
6715
6601
  data: props.data
6716
6602
  });
6717
6603
  };
6718
- var beforeRowChange = function beforeRowChange() {
6719
- if (isShiftKeyDown.value && !isAll) {
6720
- var result = setStore(row, index);
6721
- if (result) {
6722
- var _tableResp$pageData$s;
6723
- var _getStore = getStore(),
6724
- start = _getStore.start,
6725
- end = _getStore.end;
6726
- var startIndex = start.index < end.index ? start.index : end.index;
6727
- var endIndex = start.index < end.index ? end.index : start.index;
6728
- ((_tableResp$pageData$s = tableResp.pageData.slice(startIndex, endIndex + 1)) !== null && _tableResp$pageData$s !== void 0 ? _tableResp$pageData$s : []).forEach(function (item) {
6729
- tableResp.setRowSelection(item, true);
6730
- });
6731
- }
6732
- context.emit(EMIT_EVENTS.ROW_SELECT, {
6733
- row: row,
6734
- index: index,
6735
- checked: true,
6736
- data: props.data,
6737
- isShiftKeyDown: true
6738
- });
6739
- context.emit(EMIT_EVENTS.ROW_SELECT_CHANGE, {
6740
- row: row,
6741
- index: index,
6742
- checked: true,
6743
- data: props.data,
6744
- isShiftKeyDown: true
6745
- });
6746
- return Promise.resolve(!result);
6747
- }
6748
- return Promise.resolve(true);
6749
- };
6750
6604
  var indeterminate = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION_INDETERMINATE);
6751
6605
  var isChecked = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_SELECTION);
6752
6606
  var isEnable = isRowSelectEnable(props, {
@@ -6758,8 +6612,7 @@ function use_render_isSlot(s) {
6758
6612
  "onChange": handleChecked,
6759
6613
  "disabled": !isEnable,
6760
6614
  "modelValue": isChecked,
6761
- "indeterminate": indeterminate,
6762
- "beforeChange": beforeRowChange
6615
+ "indeterminate": indeterminate
6763
6616
  }, null);
6764
6617
  };
6765
6618
  var renderExpandColumn = function renderExpandColumn(row, column, index, rows) {
@@ -6958,6 +6811,7 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6958
6811
  wrapperStyle = _useClass.wrapperStyle,
6959
6812
  contentStyle = _useClass.contentStyle,
6960
6813
  headStyle = _useClass.headStyle,
6814
+ hasScrollYRef = _useClass.hasScrollYRef,
6961
6815
  hasFooter = _useClass.hasFooter,
6962
6816
  footerStyle = _useClass.footerStyle,
6963
6817
  tableBodyClass = _useClass.tableBodyClass,
@@ -6978,12 +6832,17 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6978
6832
  updateFixClass = _useFixedColumn.updateFixClass;
6979
6833
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
6980
6834
  resolveClassName = _usePrefix.resolveClassName;
6835
+ var styleRef = (0,external_vue_namespaceObject.computed)(function () {
6836
+ return {
6837
+ hasScrollY: hasScrollYRef.value
6838
+ };
6839
+ });
6981
6840
  use_observer_resize(root, function () {
6982
6841
  (0,external_vue_namespaceObject.nextTick)(function () {
6983
6842
  resolveFixedColumns(tableOffsetRight.value);
6984
6843
  });
6985
6844
  });
6986
- var _useRender = use_render(props, ctx, tableSchema, head, root, resetTableHeight),
6845
+ var _useRender = use_render(props, ctx, tableSchema, styleRef, head, root, resetTableHeight),
6987
6846
  renderTableBodySchema = _useRender.renderTableBodySchema,
6988
6847
  renderTableFooter = _useRender.renderTableFooter,
6989
6848
  renderTableHeadSchema = _useRender.renderTableHeadSchema;
@@ -7005,12 +6864,13 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
7005
6864
  tableSchema.formatColumns(columns);
7006
6865
  resolveFixedColumns(tableOffsetRight.value);
7007
6866
  tableSchema.setIndexData().then(function () {
6867
+ // tableSchema.formatDataSchema(props.data);
7008
6868
  tableSchema.resetStartEndIndex();
7009
6869
  if (isFirstLoad.value) {
7010
6870
  tableSchema.resolveByDefColumns();
7011
6871
  isFirstLoad.value = false;
7012
6872
  } else {
7013
- tableSchema.resolvePageData(tableSchema.getFilterFnList());
6873
+ tableSchema.resolvePageData();
7014
6874
  }
7015
6875
  registerResizeEvent();
7016
6876
  (0,external_vue_namespaceObject.nextTick)(function () {
@@ -7124,12 +6984,8 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
7124
6984
  "throttleDelay": 120,
7125
6985
  "scrollEvent": true,
7126
6986
  "rowKey": props.rowKey,
7127
- "scrollbar": {
7128
- enabled: true
7129
- },
7130
6987
  "enabled": props.virtualEnabled,
7131
- "keepAlive": true,
7132
- "autoIndex": false
6988
+ "keepAlive": true
7133
6989
  }), {
7134
6990
  beforeContent: function beforeContent() {
7135
6991
  return renderPrepend();
@@ -7138,7 +6994,8 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
7138
6994
  return renderTableBodySchema(scope.data);
7139
6995
  },
7140
6996
  afterSection: function afterSection() {
7141
- return [(0,external_vue_namespaceObject.createVNode)("div", {
6997
+ return [// <div class={fixedBottomBorder.value}></div>,
6998
+ (0,external_vue_namespaceObject.createVNode)("div", {
7142
6999
  "class": resizeColumnClass,
7143
7000
  "style": resizeColumnStyle.value
7144
7001
  }, null)];
@@ -27,6 +27,10 @@
27
27
  max-width: 300px;
28
28
  min-width: 200px;
29
29
  }
30
+ .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
31
+ max-height: 200px;
32
+ min-height: 40px;
33
+ }
30
34
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
31
35
  width: 100%;
32
36
  height: 32px;
@@ -39,19 +43,11 @@
39
43
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
40
44
  background: #f0f1f5;
41
45
  }
42
- .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
43
- text-overflow: ellipsis;
44
- white-space: nowrap;
45
- overflow: hidden;
46
- width: 100%;
47
- }
48
46
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
49
47
  background: #f0f1f5;
50
48
  }
51
49
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
52
50
  white-space: nowrap;
53
- text-overflow: ellipsis;
54
- overflow: hidden;
55
51
  }
56
52
  .bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
57
53
  margin-left: 0;