bkui-vue 1.0.3-beta.1 → 1.0.3-beta.3

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 (81) hide show
  1. package/README.md +1 -0
  2. package/dist/index.cjs.js +60 -60
  3. package/dist/index.esm.js +8762 -8735
  4. package/dist/index.umd.js +60 -60
  5. package/dist/style.css +1 -1
  6. package/dist/style.variable.css +1 -1
  7. package/lib/affix/index.js +1 -0
  8. package/lib/alert/index.js +1 -0
  9. package/lib/animate-number/index.js +1 -0
  10. package/lib/backtop/index.js +1 -0
  11. package/lib/badge/index.js +1 -0
  12. package/lib/breadcrumb/index.js +1 -0
  13. package/lib/button/index.js +1 -0
  14. package/lib/card/index.js +1 -0
  15. package/lib/cascader/index.js +1 -0
  16. package/lib/checkbox/index.js +1 -0
  17. package/lib/code-diff/index.js +1 -0
  18. package/lib/collapse/index.js +1 -0
  19. package/lib/collapse-transition/index.js +1 -0
  20. package/lib/color-picker/index.js +1 -0
  21. package/lib/config-provider/index.js +1 -0
  22. package/lib/container/index.js +1 -0
  23. package/lib/date-picker/index.js +1 -0
  24. package/lib/dialog/index.js +1 -0
  25. package/lib/directives/index.js +1 -0
  26. package/lib/divider/index.js +1 -0
  27. package/lib/dropdown/index.js +1 -0
  28. package/lib/exception/index.js +1 -0
  29. package/lib/fixed-navbar/index.js +1 -0
  30. package/lib/form/form.less +1 -0
  31. package/lib/form/index.js +1 -0
  32. package/lib/icon/index.js +1 -0
  33. package/lib/image/index.js +1 -0
  34. package/lib/info-box/index.js +1 -0
  35. package/lib/input/index.js +1 -0
  36. package/lib/link/index.js +1 -0
  37. package/lib/loading/index.js +1 -0
  38. package/lib/locale/index.js +1 -0
  39. package/lib/menu/index.js +1 -0
  40. package/lib/message/index.js +1 -0
  41. package/lib/modal/index.js +1 -0
  42. package/lib/navigation/index.js +1 -0
  43. package/lib/notify/index.js +1 -0
  44. package/lib/overflow-title/index.js +1 -0
  45. package/lib/pagination/index.js +1 -0
  46. package/lib/plugin-popover/index.js +1 -0
  47. package/lib/plugins/index.js +1 -0
  48. package/lib/pop-confirm/index.js +1 -0
  49. package/lib/popover/index.js +1 -0
  50. package/lib/popover2/index.js +1 -0
  51. package/lib/process/index.js +1 -0
  52. package/lib/progress/index.js +1 -0
  53. package/lib/radio/index.js +1 -0
  54. package/lib/rate/index.js +1 -0
  55. package/lib/resize-layout/index.js +1 -0
  56. package/lib/search-select/index.js +1 -0
  57. package/lib/select/index.js +1 -0
  58. package/lib/shared/index.js +1 -0
  59. package/lib/sideslider/index.js +1 -0
  60. package/lib/slider/index.js +1 -0
  61. package/lib/steps/index.js +1 -0
  62. package/lib/swiper/index.js +1 -0
  63. package/lib/switcher/index.js +1 -0
  64. package/lib/tab/index.js +1 -0
  65. package/lib/table/index.js +81 -37
  66. package/lib/table/plugins/use-pagination.d.ts +2 -1
  67. package/lib/table/table.css +12 -5
  68. package/lib/table/table.less +15 -5
  69. package/lib/table/table.variable.css +12 -5
  70. package/lib/table/use-attributes.d.ts +40 -1
  71. package/lib/table/use-common.d.ts +1 -0
  72. package/lib/table-column/index.js +1 -0
  73. package/lib/tag/index.js +1 -0
  74. package/lib/tag-input/index.js +1 -0
  75. package/lib/time-picker/index.js +1 -0
  76. package/lib/timeline/index.js +1 -0
  77. package/lib/transfer/index.js +1 -0
  78. package/lib/tree/index.js +1 -0
  79. package/lib/upload/index.js +1 -0
  80. package/lib/virtual-render/index.js +1 -0
  81. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./table.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
@@ -119,7 +120,7 @@ function defineProperty_defineProperty(obj, key, value) {
119
120
  ;// CONCATENATED MODULE: external "vue"
120
121
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
121
122
  var external_vue_y = x => () => x
122
- 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, ["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, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
123
+ 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, ["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, ["resolveComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveComponent, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
123
124
  ;// CONCATENATED MODULE: ../../packages/table/src/const.ts
124
125
 
125
126
  /*
@@ -1663,10 +1664,11 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
1663
1664
  * pagination 为Prop传入配置
1664
1665
  * 方便兼容内置分页功能,此处需要单独处理count
1665
1666
  */
1666
- var localPagination = (0,external_vue_namespaceObject.ref)(null);
1667
- var indexData = (0,external_vue_namespaceObject.computed)(function () {
1667
+ var propsData = (0,external_vue_namespaceObject.computed)(function () {
1668
1668
  return props.data;
1669
1669
  });
1670
+ var localPagination = (0,external_vue_namespaceObject.ref)(null);
1671
+ var indexData = (0,external_vue_namespaceObject.reactive)([]);
1670
1672
  // 当前分页缓存,用于支持内置前端分页,用户无需接收change事件来自行处理数据分割
1671
1673
  var pagination = (0,external_vue_namespaceObject.reactive)({
1672
1674
  count: 0,
@@ -1680,7 +1682,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
1680
1682
  return;
1681
1683
  }
1682
1684
  localPagination.value = props.remotePagination ? pagination : use_pagination_objectSpread(use_pagination_objectSpread({}, pagination), {}, {
1683
- count: indexData.value.length
1685
+ count: indexData.length
1684
1686
  });
1685
1687
  };
1686
1688
  /**
@@ -1691,7 +1693,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
1691
1693
  var resetStartEndIndex = function resetStartEndIndex() {
1692
1694
  if (!props.pagination || props.remotePagination) {
1693
1695
  startIndex.value = 0;
1694
- endIndex.value = indexData.value.length;
1696
+ endIndex.value = indexData.length;
1695
1697
  return;
1696
1698
  }
1697
1699
  // 如果是前端分页
@@ -1722,15 +1724,25 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
1722
1724
  var filter = function filter(sourceData, filterFn) {
1723
1725
  if (typeof filterFn === 'function') {
1724
1726
  var filterVals = sourceData.filter(function (row, index) {
1725
- return filterFn(row, index, indexData.value);
1727
+ return filterFn(row, index, indexData);
1726
1728
  });
1727
1729
  sourceData.length = 0;
1728
1730
  sourceData.push.apply(sourceData, _toConsumableArray(filterVals));
1729
1731
  }
1730
1732
  return sourceData;
1731
1733
  };
1734
+ var resolveIndexData = function resolveIndexData() {
1735
+ return new Promise(function (resolve) {
1736
+ (0,external_vue_namespaceObject.nextTick)(function () {
1737
+ var target = propsData.value.slice();
1738
+ indexData.length = 0;
1739
+ indexData.push.apply(indexData, _toConsumableArray(target));
1740
+ resolve();
1741
+ });
1742
+ });
1743
+ };
1732
1744
  var resolvePageData = function resolvePageData(filterFn, sortFn, column, type, sortScope, multiCol) {
1733
- var sourceData = indexData.value.slice();
1745
+ var sourceData = indexData.slice();
1734
1746
  if (multiCol !== null && multiCol !== void 0 && multiCol.length) {
1735
1747
  multiSort(sourceData, multiCol);
1736
1748
  }
@@ -1744,7 +1756,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
1744
1756
  resolvePageData(null, null, null, null, null, multiCol);
1745
1757
  };
1746
1758
  var multiFilter = function multiFilter(filterFnList) {
1747
- var sourceData = indexData.value.slice();
1759
+ var sourceData = indexData.slice();
1748
1760
  var target = filterFnList.reduce(function (result, fn) {
1749
1761
  return filter(result, fn);
1750
1762
  }, sourceData);
@@ -1770,6 +1782,7 @@ var resolvePaginationOption = function resolvePaginationOption(propPagination, d
1770
1782
  indexData: indexData,
1771
1783
  localPagination: localPagination,
1772
1784
  resolvePageData: resolvePageData,
1785
+ resolveIndexData: resolveIndexData,
1773
1786
  resolvePageDataBySortList: resolvePageDataBySortList,
1774
1787
  resetStartEndIndex: resetStartEndIndex,
1775
1788
  multiFilter: multiFilter,
@@ -3250,12 +3263,14 @@ function use_attributes_objectSpread(e) { for (var r = 1; r < arguments.length;
3250
3263
  });
3251
3264
  var _usePagination = use_pagination(props),
3252
3265
  pageData = _usePagination.pageData,
3266
+ indexData = _usePagination.indexData,
3253
3267
  localPagination = _usePagination.localPagination,
3254
3268
  resolvePageData = _usePagination.resolvePageData,
3255
3269
  resolvePageDataBySortList = _usePagination.resolvePageDataBySortList,
3256
3270
  multiFilter = _usePagination.multiFilter,
3257
3271
  sort = _usePagination.sort,
3258
- resetStartEndIndex = _usePagination.resetStartEndIndex;
3272
+ resetStartEndIndex = _usePagination.resetStartEndIndex,
3273
+ resolveIndexData = _usePagination.resolveIndexData;
3259
3274
  var updateSettings = function updateSettings(settings, rowHeight) {
3260
3275
  if (settings) {
3261
3276
  var _ref2, _ref3;
@@ -3391,6 +3406,13 @@ function use_attributes_objectSpread(e) { for (var r = 1; r < arguments.length;
3391
3406
  var type = getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_TYPE);
3392
3407
  var scope = getColumnAttribute(column, COLUMN_ATTRIBUTE.COL_SORT_SCOPE);
3393
3408
  if (type === SORT_OPTION.NULL) {
3409
+ resolveIndexData().then(function () {
3410
+ resolvePageData();
3411
+ });
3412
+ return;
3413
+ }
3414
+ if (scope === 'all') {
3415
+ sort(indexData, fn, column, type, scope);
3394
3416
  resolvePageData();
3395
3417
  return;
3396
3418
  }
@@ -3828,6 +3850,9 @@ function use_attributes_objectSpread(e) { for (var r = 1; r < arguments.length;
3828
3850
  var resolvedIndex = sourceIndex < targetIndex ? sourceIndex : sourceIndex + 1;
3829
3851
  pageData.splice(resolvedIndex, 1);
3830
3852
  };
3853
+ var setIndexData = function setIndexData() {
3854
+ return resolveIndexData();
3855
+ };
3831
3856
  return {
3832
3857
  formatColumns: formatColumns,
3833
3858
  formatDataSchema: formatDataSchema,
@@ -3864,7 +3889,8 @@ function use_attributes_objectSpread(e) { for (var r = 1; r < arguments.length;
3864
3889
  changePageRowIndex: changePageRowIndex,
3865
3890
  pageData: pageData,
3866
3891
  localPagination: localPagination,
3867
- formatData: formatData
3892
+ formatData: formatData,
3893
+ setIndexData: setIndexData
3868
3894
  };
3869
3895
  });
3870
3896
  ;// CONCATENATED MODULE: ../../packages/table/src/use-column.ts
@@ -4036,10 +4062,12 @@ var useClass = function useClass(props, targetColumns, root, TableSchema, pageDa
4036
4062
  });
4037
4063
  var config = resolveHeadConfig(props);
4038
4064
  var headStyle = (0,external_vue_namespaceObject.computed)(function () {
4065
+ var _props$thead$color, _props$thead;
4039
4066
  return {
4040
4067
  '--row-height': "".concat(resolvePropVal(config, 'height', ['thead']), "px"),
4041
4068
  '--scroll-head-left': "-".concat(TableSchema.formatData.layout.translateX, "px"),
4042
- '--scroll-left': "".concat(TableSchema.formatData.layout.translateX, "px")
4069
+ '--scroll-left': "".concat(TableSchema.formatData.layout.translateX, "px"),
4070
+ '--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]
4043
4071
  };
4044
4072
  });
4045
4073
  var contentClass = defineProperty_defineProperty({}, resolveClassName('table-body'), true);
@@ -5122,6 +5150,7 @@ function head_filter_isSlot(s) {
5122
5150
  var _filter$value$checked, _filter$value;
5123
5151
  return (_filter$value$checked = (_filter$value = filter.value) === null || _filter$value === void 0 ? void 0 : _filter$value.checked) !== null && _filter$value$checked !== void 0 ? _filter$value$checked : [];
5124
5152
  });
5153
+ var searchValue = (0,external_vue_namespaceObject.ref)('');
5125
5154
  var state = (0,external_vue_namespaceObject.reactive)({
5126
5155
  isOpen: false,
5127
5156
  checked: checked.value
@@ -5152,21 +5181,28 @@ function head_filter_isSlot(s) {
5152
5181
  isOpen && setTimeout(function () {
5153
5182
  refVirtualRender.value.reset();
5154
5183
  });
5184
+ if (!isOpen) {
5185
+ searchValue.value = '';
5186
+ }
5155
5187
  };
5156
5188
  var theme = "light ".concat(resolveClassName('table-head-filter'));
5157
5189
  var localData = (0,external_vue_namespaceObject.computed)(function () {
5158
5190
  var _filter$value$list = filter.value.list,
5159
5191
  list = _filter$value$list === void 0 ? [] : _filter$value$list;
5160
- return list;
5192
+ var filterList = list.filter(function (l) {
5193
+ return getRegExp(searchValue.value).test(l.value);
5194
+ });
5195
+ console.log(' filterList: ', filterList);
5196
+ return filterList;
5161
5197
  });
5162
- var getRegExp = function getRegExp(searchValue) {
5198
+ var getRegExp = function getRegExp(val) {
5163
5199
  var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'ig';
5164
- return new RegExp("".concat(searchValue).replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), flags);
5200
+ return new RegExp("".concat(val).replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), flags);
5165
5201
  };
5166
5202
  var defaultFilterFn = function defaultFilterFn(checked, row) {
5167
5203
  var match = filter.value.match;
5168
5204
  var matchText = getRowText(row, resolvePropVal(column, 'field', [column, row]));
5169
- if (match === 'full') {
5205
+ if (match !== 'fuzzy') {
5170
5206
  return checked.includes(matchText);
5171
5207
  }
5172
5208
  return checked.some(function (str) {
@@ -5330,7 +5366,14 @@ function head_filter_isSlot(s) {
5330
5366
  content: function content() {
5331
5367
  return (0,external_vue_namespaceObject.createVNode)("div", {
5332
5368
  "class": headFilterContentClass
5333
- }, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject.BkCheckboxGroup, {
5369
+ }, [(0,external_vue_namespaceObject.createVNode)("div", {
5370
+ "style": "padding: 4px 10px;"
5371
+ }, [(0,external_vue_namespaceObject.createVNode)((0,external_vue_namespaceObject.resolveComponent)("bk-input"), {
5372
+ "modelValue": searchValue.value,
5373
+ "onUpdate:modelValue": function onUpdateModelValue($event) {
5374
+ return searchValue.value = $event;
5375
+ }
5376
+ }, null)]), (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject.BkCheckboxGroup, {
5334
5377
  "class": "content-list"
5335
5378
  }, {
5336
5379
  "default": function _default() {
@@ -6473,7 +6516,6 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6473
6516
  hasFooter = _useClass.hasFooter,
6474
6517
  footerStyle = _useClass.footerStyle,
6475
6518
  tableBodyClass = _useClass.tableBodyClass,
6476
- fixedBottomBorder = _useClass.fixedBottomBorder,
6477
6519
  resizeColumnClass = _useClass.resizeColumnClass,
6478
6520
  tableBodyContentClass = _useClass.tableBodyContentClass,
6479
6521
  loadingRowClass = _useClass.loadingRowClass,
@@ -6513,27 +6555,30 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6513
6555
  }
6514
6556
  };
6515
6557
  var isFirstLoad = (0,external_vue_namespaceObject.ref)(true);
6558
+ // const tableWidth = ref(null);
6516
6559
  (0,external_vue_namespaceObject.watch)(function () {
6517
6560
  return [props.data, columns];
6518
6561
  }, function () {
6519
- tableSchema.formatColumns(columns);
6520
- tableSchema.formatDataSchema(props.data);
6521
- tableSchema.resetStartEndIndex();
6522
- if (isFirstLoad.value) {
6523
- tableSchema.resolveByDefColumns();
6524
- isFirstLoad.value = false;
6525
- } else {
6526
- tableSchema.resolvePageData();
6527
- }
6528
- registerResizeEvent();
6529
- (0,external_vue_namespaceObject.nextTick)(function () {
6530
- updateOffsetRight();
6531
- resolveFixedColumns(tableOffsetRight.value);
6532
- /**
6533
- * 确保在所有数据渲染完毕再执行fix column计算
6534
- */
6562
+ tableSchema.setIndexData().then(function () {
6563
+ tableSchema.formatColumns(columns);
6564
+ tableSchema.formatDataSchema(props.data);
6565
+ tableSchema.resetStartEndIndex();
6566
+ if (isFirstLoad.value) {
6567
+ tableSchema.resolveByDefColumns();
6568
+ isFirstLoad.value = false;
6569
+ } else {
6570
+ tableSchema.resolvePageData();
6571
+ }
6572
+ registerResizeEvent();
6535
6573
  (0,external_vue_namespaceObject.nextTick)(function () {
6536
- resetTableHeight(root.value);
6574
+ updateOffsetRight();
6575
+ resolveFixedColumns(tableOffsetRight.value);
6576
+ /**
6577
+ * 确保在所有数据渲染完毕再执行fix column计算
6578
+ */
6579
+ (0,external_vue_namespaceObject.nextTick)(function () {
6580
+ resetTableHeight(root.value);
6581
+ });
6537
6582
  });
6538
6583
  });
6539
6584
  }, {
@@ -6650,9 +6695,8 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
6650
6695
  return renderTableBodySchema(scope.data);
6651
6696
  },
6652
6697
  afterSection: function afterSection() {
6653
- return [(0,external_vue_namespaceObject.createVNode)("div", {
6654
- "class": fixedBottomBorder.value
6655
- }, null), (0,external_vue_namespaceObject.createVNode)("div", {
6698
+ return [// <div class={fixedBottomBorder.value}></div>,
6699
+ (0,external_vue_namespaceObject.createVNode)("div", {
6656
6700
  "class": resizeColumnClass,
6657
6701
  "style": resizeColumnStyle.value
6658
6702
  }, null)];
@@ -9,9 +9,10 @@ import { Column, SortScope, TablePropTypes } from '../props';
9
9
  export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
10
10
  declare const _default: (props: TablePropTypes) => {
11
11
  pageData: any[];
12
- indexData: import("vue").ComputedRef<any[]>;
12
+ indexData: any[];
13
13
  localPagination: import("vue").Ref<any>;
14
14
  resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
15
+ resolveIndexData: () => Promise<void>;
15
16
  resolvePageDataBySortList: (multiCol?: any) => void;
16
17
  resetStartEndIndex: () => void;
17
18
  multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[]) => void;
@@ -997,6 +997,7 @@
997
997
  position: relative;
998
998
  height: auto;
999
999
  overflow: hidden;
1000
+ width: 100%;
1000
1001
  }
1001
1002
  .bk-table-flex {
1002
1003
  display: flex;
@@ -1014,6 +1015,7 @@
1014
1015
  position: relative;
1015
1016
  overflow: auto;
1016
1017
  scrollbar-gutter: stable;
1018
+ border-bottom: 1px solid #dcdee5;
1017
1019
  }
1018
1020
  .bk-table .bk-table-body::-webkit-scrollbar {
1019
1021
  width: 5px;
@@ -1300,6 +1302,7 @@
1300
1302
  z-index: 2;
1301
1303
  scrollbar-gutter: stable;
1302
1304
  overflow: hidden;
1305
+ background-color: var(--background-color);
1303
1306
  }
1304
1307
  .bk-table .bk-table-head .col-resize-drag {
1305
1308
  position: absolute;
@@ -1325,10 +1328,8 @@
1325
1328
  font-size: 14px;
1326
1329
  cursor: pointer;
1327
1330
  background: #fafbfd;
1328
- border-bottom: 1px solid #dcdee5;
1329
1331
  border-left: 1px solid #dcdee5;
1330
1332
  border-radius: 0 2px 0 0;
1331
- transform: translateX(var(--scroll-left));
1332
1333
  justify-content: center;
1333
1334
  align-items: center;
1334
1335
  }
@@ -1346,8 +1347,10 @@
1346
1347
  .bk-table .bk-table-footer.is-hidden {
1347
1348
  display: none;
1348
1349
  }
1349
- .bk-table.bordered-row td,
1350
- .bk-table.bordered-row th {
1350
+ .bk-table.bordered-row .bk-table-head {
1351
+ border-bottom: 1px solid #dcdee5;
1352
+ }
1353
+ .bk-table.bordered-row td {
1351
1354
  border-bottom: 1px solid #dcdee5;
1352
1355
  }
1353
1356
  .bk-table.bordered-row tr:last-child td {
@@ -1379,10 +1382,14 @@
1379
1382
  .bk-table.bordered-col td:last-child {
1380
1383
  border-right: none;
1381
1384
  }
1385
+ .bk-table th,
1386
+ .bk-table td {
1387
+ border-right: 1px solid transparent;
1388
+ }
1382
1389
  .bk-table.bordered-none th,
1383
1390
  .bk-table.bordered-none td {
1384
1391
  border-top: none;
1385
- border-right: none;
1392
+ border-right: 1px solid transparent;
1386
1393
  border-bottom: none;
1387
1394
  border-left: none;
1388
1395
  }
@@ -14,6 +14,7 @@
14
14
  position: relative;
15
15
  height: auto;
16
16
  overflow: hidden;
17
+ width: 100%;
17
18
 
18
19
  &-flex {
19
20
  display: flex;
@@ -35,6 +36,7 @@
35
36
  position: relative;
36
37
  overflow: auto;
37
38
  scrollbar-gutter: stable;
39
+ border-bottom: 1px solid @table-border-color;
38
40
 
39
41
  &::-webkit-scrollbar {
40
42
  width: 5px;
@@ -334,6 +336,7 @@
334
336
  z-index: 2;
335
337
  scrollbar-gutter: stable;
336
338
  overflow: hidden;
339
+ background-color: var(--background-color);
337
340
 
338
341
  .col-resize-drag {
339
342
  position: absolute;
@@ -363,10 +366,10 @@
363
366
 
364
367
  background: @table-head-bg-color;
365
368
  //border-right: 1px solid @table-border-color;
366
- border-bottom: 1px solid @table-border-color;
369
+ // border-bottom: 1px solid @table-border-color;
367
370
  border-left: 1px solid @table-border-color;
368
371
  border-radius: 0 2px 0 0;
369
- transform: translateX(var(--scroll-left));
372
+ // transform: translateX(var(--scroll-left));
370
373
  justify-content: center;
371
374
  align-items: center;
372
375
 
@@ -390,8 +393,11 @@
390
393
  }
391
394
 
392
395
  &.bordered-row {
393
- td,
394
- th {
396
+ .@{bk-prefix}-table-head {
397
+ border-bottom: 1px solid @table-border-color;
398
+ }
399
+
400
+ td {
395
401
  border-bottom: 1px solid @table-border-color;
396
402
  }
397
403
 
@@ -444,11 +450,15 @@
444
450
 
445
451
  }
446
452
 
453
+ th, td {
454
+ border-right: 1px solid transparent;
455
+ }
456
+
447
457
  &.bordered-none {
448
458
  th,
449
459
  td {
450
460
  border-top: none;
451
- border-right: none;
461
+ border-right: 1px solid transparent;
452
462
  border-bottom: none;
453
463
  border-left: none;
454
464
  }
@@ -1123,6 +1123,7 @@
1123
1123
  position: relative;
1124
1124
  height: auto;
1125
1125
  overflow: hidden;
1126
+ width: 100%;
1126
1127
  }
1127
1128
  .bk-table-flex {
1128
1129
  display: flex;
@@ -1140,6 +1141,7 @@
1140
1141
  position: relative;
1141
1142
  overflow: auto;
1142
1143
  scrollbar-gutter: stable;
1144
+ border-bottom: 1px solid #dcdee5;
1143
1145
  }
1144
1146
  .bk-table .bk-table-body::-webkit-scrollbar {
1145
1147
  width: 5px;
@@ -1426,6 +1428,7 @@
1426
1428
  z-index: 2;
1427
1429
  scrollbar-gutter: stable;
1428
1430
  overflow: hidden;
1431
+ background-color: var(--background-color);
1429
1432
  }
1430
1433
  .bk-table .bk-table-head .col-resize-drag {
1431
1434
  position: absolute;
@@ -1451,10 +1454,8 @@
1451
1454
  font-size: 14px;
1452
1455
  cursor: pointer;
1453
1456
  background: #fafbfd;
1454
- border-bottom: 1px solid #dcdee5;
1455
1457
  border-left: 1px solid #dcdee5;
1456
1458
  border-radius: 0 2px 0 0;
1457
- transform: translateX(var(--scroll-left));
1458
1459
  justify-content: center;
1459
1460
  align-items: center;
1460
1461
  }
@@ -1472,8 +1473,10 @@
1472
1473
  .bk-table .bk-table-footer.is-hidden {
1473
1474
  display: none;
1474
1475
  }
1475
- .bk-table.bordered-row td,
1476
- .bk-table.bordered-row th {
1476
+ .bk-table.bordered-row .bk-table-head {
1477
+ border-bottom: 1px solid #dcdee5;
1478
+ }
1479
+ .bk-table.bordered-row td {
1477
1480
  border-bottom: 1px solid #dcdee5;
1478
1481
  }
1479
1482
  .bk-table.bordered-row tr:last-child td {
@@ -1505,10 +1508,14 @@
1505
1508
  .bk-table.bordered-col td:last-child {
1506
1509
  border-right: none;
1507
1510
  }
1511
+ .bk-table th,
1512
+ .bk-table td {
1513
+ border-right: 1px solid transparent;
1514
+ }
1508
1515
  .bk-table.bordered-none th,
1509
1516
  .bk-table.bordered-none td {
1510
1517
  border-top: none;
1511
- border-right: none;
1518
+ border-right: 1px solid transparent;
1512
1519
  border-bottom: none;
1513
1520
  border-left: none;
1514
1521
  }
@@ -19,6 +19,7 @@ export type ITableFormatData = {
19
19
  };
20
20
  };
21
21
  export type ITableResponse = {
22
+ setIndexData: () => Promise<void>;
22
23
  formatColumns: (columns: Column[]) => void;
23
24
  formatDataSchema: (data: any[]) => void;
24
25
  setRowSelection: (row: any, isSelected: boolean) => void;
@@ -56,5 +57,43 @@ export type ITableResponse = {
56
57
  localPagination: any;
57
58
  formatData: ITableFormatData;
58
59
  };
59
- declare const _default: (props: TablePropTypes) => ITableResponse;
60
+ declare const _default: (props: TablePropTypes) => {
61
+ formatColumns: (columns: Column[]) => void;
62
+ formatDataSchema: (data: any[]) => void;
63
+ setRowSelection: (row: any, isSelected: boolean) => void;
64
+ setRowExpand: (row: any, isExpand: boolean) => void;
65
+ setRowIndex: (row: any, index: number) => void;
66
+ setColumnAttribute: (col: Column, attrName: string, attrValue: string | number | boolean | ((...args: any[]) => boolean | number | void | string)) => void;
67
+ setColumnAttributeBySettings: (settings: Settings, checkedVal?: string[]) => void;
68
+ setColumnSortActive: (column: Column, active: boolean) => void;
69
+ setRowSelectionAll: (val: boolean) => void;
70
+ setRowIndeterminate: () => void;
71
+ setAllColumnAttribute: (attributeName: string | string[], value: string | number | boolean | ((...args: any[]) => boolean | number | void | string)) => void;
72
+ getColumnAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
73
+ getColumnId: (col: Column) => any;
74
+ getColumnOrderWidth: (col: Column, orders?: string[]) => number;
75
+ getRowSelection: () => any[];
76
+ resolveColumnWidth: (root: HTMLElement, autoWidth?: number, offsetWidth?: number) => void;
77
+ isActiveColumn: (col: Column) => any;
78
+ isHiddenColumn: (col: Column) => any;
79
+ resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
80
+ resolveByDefColumns: () => void;
81
+ resetStartEndIndex: () => void;
82
+ toggleAllSelection: (value?: boolean) => void;
83
+ setAllRowExpand: (value?: boolean) => void;
84
+ clearSelection: () => void;
85
+ clearColumnSort: (reset?: boolean) => void;
86
+ toggleRowSelection: (row: any) => void;
87
+ getRowAttribute: (row: any | IEmptyObject, attrName: string) => any;
88
+ filter: () => void;
89
+ sortData: (column: Column) => void;
90
+ isCheckedAll: () => boolean;
91
+ hasCheckedRow: () => boolean;
92
+ updateSettings: (settings?: Settings, rowHeight?: number) => void;
93
+ changePageRowIndex: (sourceIndex: any, targetIndex: any) => void;
94
+ pageData: any[];
95
+ localPagination: import("vue").Ref<any>;
96
+ formatData: ITableFormatData;
97
+ setIndexData: () => Promise<void>;
98
+ };
60
99
  export default _default;
@@ -32,6 +32,7 @@ export declare const useClass: (props: TablePropTypes, targetColumns: ITableColu
32
32
  '--row-height': string;
33
33
  '--scroll-head-left': string;
34
34
  '--scroll-left': string;
35
+ '--background-color': any;
35
36
  }>;
36
37
  fixHeight: import("vue").Ref<number>;
37
38
  maxFixHeight: import("vue").Ref<number>;
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
package/lib/tag/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./tag.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./tag-input.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./time-picker.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_date_picker_d04526d6__ from "../date-picker";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./transfer.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
package/lib/tree/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./tree.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./upload.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
@@ -1,3 +1,4 @@
1
+ import "../styles/reset.css";
1
2
  import "./virtual-render.less";
2
3
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.1",
3
+ "version": "1.0.3-beta.3",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",