vxe-table 4.10.8 → 4.10.10

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 (37) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/style.css +1 -1
  4. package/es/style.min.css +1 -1
  5. package/es/table/src/table.js +66 -28
  6. package/es/table/style.css +23 -0
  7. package/es/table/style.min.css +1 -1
  8. package/es/ui/index.js +5 -3
  9. package/es/ui/src/log.js +1 -1
  10. package/es/vxe-table/style.css +23 -0
  11. package/es/vxe-table/style.min.css +1 -1
  12. package/lib/index.css +1 -1
  13. package/lib/index.min.css +1 -1
  14. package/lib/index.umd.js +48 -13
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/table/src/table.js +42 -9
  19. package/lib/table/src/table.min.js +1 -1
  20. package/lib/table/style/style.css +23 -0
  21. package/lib/table/style/style.min.css +1 -1
  22. package/lib/ui/index.js +5 -3
  23. package/lib/ui/index.min.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/lib/ui/src/log.min.js +1 -1
  26. package/lib/vxe-table/style/style.css +23 -0
  27. package/lib/vxe-table/style/style.min.css +1 -1
  28. package/package.json +2 -2
  29. package/packages/table/src/table.ts +68 -28
  30. package/packages/ui/index.ts +4 -2
  31. package/styles/components/table.scss +21 -0
  32. /package/es/{iconfont.1739010729902.ttf → iconfont.1739161310227.ttf} +0 -0
  33. /package/es/{iconfont.1739010729902.woff → iconfont.1739161310227.woff} +0 -0
  34. /package/es/{iconfont.1739010729902.woff2 → iconfont.1739161310227.woff2} +0 -0
  35. /package/lib/{iconfont.1739010729902.ttf → iconfont.1739161310227.ttf} +0 -0
  36. /package/lib/{iconfont.1739010729902.woff → iconfont.1739161310227.woff} +0 -0
  37. /package/lib/{iconfont.1739010729902.woff2 → iconfont.1739161310227.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
3138
3138
  ;// ./packages/ui/index.ts
3139
3139
 
3140
3140
 
3141
- const version = "4.10.8";
3141
+ const version = "4.10.10";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3184,12 +3184,14 @@ core_.VxeUI.setConfig({
3184
3184
  rowDragConfig: {
3185
3185
  showIcon: true,
3186
3186
  animation: true,
3187
- showGuidesStatus: true
3187
+ showGuidesStatus: true,
3188
+ showDragTip: true
3188
3189
  },
3189
3190
  columnDragConfig: {
3190
3191
  showIcon: true,
3191
3192
  animation: true,
3192
- showGuidesStatus: true
3193
+ showGuidesStatus: true,
3194
+ showDragTip: true
3193
3195
  },
3194
3196
  checkboxConfig: {
3195
3197
  // trigger: 'default',
@@ -3583,7 +3585,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3583
3585
  const {
3584
3586
  log: log_log
3585
3587
  } = core_.VxeUI;
3586
- const log_version = `table v${"4.10.8"}`;
3588
+ const log_version = `table v${"4.10.10"}`;
3587
3589
  const warnLog = log_log.create('warn', log_version);
3588
3590
  const errLog = log_log.create('error', log_version);
3589
3591
  ;// ./packages/table/src/columnInfo.ts
@@ -10539,6 +10541,12 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
10539
10541
  isHeader: false,
10540
10542
  isFooter: false
10541
10543
  },
10544
+ rowHeightStore: {
10545
+ default: 48,
10546
+ medium: 44,
10547
+ small: 40,
10548
+ mini: 36
10549
+ },
10542
10550
  scrollVMLoading: false,
10543
10551
  calcCellHeightFlag: 1,
10544
10552
  resizeHeightFlag: 0,
@@ -10633,6 +10641,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
10633
10641
  let tableMethods = {};
10634
10642
  let tablePrivateMethods = {};
10635
10643
  const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
10644
+ const refVarElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
10636
10645
  const refTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
10637
10646
  const refCommTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
10638
10647
  const refValidTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
@@ -10741,12 +10750,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
10741
10750
  return 0;
10742
10751
  });
10743
10752
  const computeRowHeightMaps = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
10744
- return {
10745
- default: 48,
10746
- medium: 44,
10747
- small: 40,
10748
- mini: 36
10749
- };
10753
+ return reactData.rowHeightStore;
10750
10754
  });
10751
10755
  const computeDefaultRowHeight = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
10752
10756
  const vSize = computeSize.value;
@@ -20820,7 +20824,8 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20820
20824
  };
20821
20825
  const renderDragTip = () => {
20822
20826
  const {
20823
- dragRow
20827
+ dragRow,
20828
+ dragCol
20824
20829
  } = reactData;
20825
20830
  const rowOpts = computeRowOpts.value;
20826
20831
  const columnOpts = computeColumnOpts.value;
@@ -20839,7 +20844,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20839
20844
  class: ['vxe-table--drag-col-line', {
20840
20845
  'is--guides': columnDragOpts.showGuidesStatus
20841
20846
  }]
20842
- }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20847
+ }), dragRow && rowDragOpts.showDragTip || dragCol && columnDragOpts.showDragTip ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20843
20848
  ref: refDragTipElem,
20844
20849
  class: 'vxe-table--drag-sort-tip'
20845
20850
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
@@ -20854,7 +20859,7 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
20854
20859
  class: ['vxe-table--drag-sort-tip-disabled-status', table_getIcon().TABLE_DRAG_DISABLED]
20855
20860
  })]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
20856
20861
  class: 'vxe-table--drag-sort-tip-content'
20857
- }, renderDragTipContents())])])]);
20862
+ }, renderDragTipContents())])]) : table_renderEmptyElement($xeTable)]);
20858
20863
  }
20859
20864
  return table_renderEmptyElement($xeTable);
20860
20865
  };
@@ -21052,6 +21057,17 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
21052
21057
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21053
21058
  class: 'vxe-table-slots'
21054
21059
  }, slots.default ? slots.default({}) : []), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21060
+ ref: refVarElem,
21061
+ class: 'vxe-table-vars'
21062
+ }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21063
+ class: 'vxe-table-var-default'
21064
+ }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21065
+ class: 'vxe-table-var-medium'
21066
+ }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21067
+ class: 'vxe-table-var-small'
21068
+ }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21069
+ class: 'vxe-table-var-mini'
21070
+ })]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
21055
21071
  key: 'tw',
21056
21072
  class: 'vxe-table--render-wrapper'
21057
21073
  }, scrollbarXToTop ? [renderScrollX(), renderBody()] : [renderBody(), renderScrollX()]),
@@ -21378,9 +21394,28 @@ const customStorageKey = 'VXE_CUSTOM_STORE';
21378
21394
  });
21379
21395
  });
21380
21396
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
21397
+ const {
21398
+ rowHeightStore
21399
+ } = reactData;
21400
+ const varEl = refVarElem.value;
21381
21401
  const columnOpts = computeColumnOpts.value;
21382
21402
  const rowOpts = computeRowOpts.value;
21383
21403
  const customOpts = computeCustomOpts.value;
21404
+ if (varEl) {
21405
+ const [defEl, mediumEl, smallEl, miniEl] = varEl.children;
21406
+ if (defEl) {
21407
+ rowHeightStore.default = defEl.clientHeight;
21408
+ }
21409
+ if (mediumEl) {
21410
+ rowHeightStore.medium = mediumEl.clientHeight;
21411
+ }
21412
+ if (smallEl) {
21413
+ rowHeightStore.small = smallEl.clientHeight;
21414
+ }
21415
+ if (miniEl) {
21416
+ rowHeightStore.mini = miniEl.clientHeight;
21417
+ }
21418
+ }
21384
21419
  if (columnOpts.drag || rowOpts.drag || customOpts.allowSort) {
21385
21420
  initTpImg();
21386
21421
  }