vxe-table 4.10.9 → 4.10.11

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 (40) 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/header.js +4 -2
  6. package/es/table/src/table.js +42 -6
  7. package/es/table/style.css +23 -0
  8. package/es/table/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/es/vxe-table/style.css +23 -0
  12. package/es/vxe-table/style.min.css +1 -1
  13. package/lib/index.css +1 -1
  14. package/lib/index.min.css +1 -1
  15. package/lib/index.umd.js +44 -10
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/table/src/header.js +4 -2
  20. package/lib/table/src/header.min.js +1 -1
  21. package/lib/table/src/table.js +38 -6
  22. package/lib/table/src/table.min.js +1 -1
  23. package/lib/table/style/style.css +23 -0
  24. package/lib/table/style/style.min.css +1 -1
  25. package/lib/ui/index.js +1 -1
  26. package/lib/ui/index.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/lib/vxe-table/style/style.css +23 -0
  30. package/lib/vxe-table/style/style.min.css +1 -1
  31. package/package.json +2 -2
  32. package/packages/table/src/header.ts +4 -2
  33. package/packages/table/src/table.ts +44 -6
  34. package/styles/components/table.scss +21 -0
  35. /package/es/{iconfont.1739152200042.ttf → iconfont.1739164577907.ttf} +0 -0
  36. /package/es/{iconfont.1739152200042.woff → iconfont.1739164577907.woff} +0 -0
  37. /package/es/{iconfont.1739152200042.woff2 → iconfont.1739164577907.woff2} +0 -0
  38. /package/lib/{iconfont.1739152200042.ttf → iconfont.1739164577907.ttf} +0 -0
  39. /package/lib/{iconfont.1739152200042.woff → iconfont.1739164577907.woff} +0 -0
  40. /package/lib/{iconfont.1739152200042.woff2 → iconfont.1739164577907.woff2} +0 -0
@@ -269,6 +269,12 @@ var _default = exports.default = (0, _vue.defineComponent)({
269
269
  isHeader: false,
270
270
  isFooter: false
271
271
  },
272
+ rowHeightStore: {
273
+ default: 48,
274
+ medium: 44,
275
+ small: 40,
276
+ mini: 36
277
+ },
272
278
  scrollVMLoading: false,
273
279
  calcCellHeightFlag: 1,
274
280
  resizeHeightFlag: 0,
@@ -363,6 +369,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
363
369
  let tableMethods = {};
364
370
  let tablePrivateMethods = {};
365
371
  const refElem = (0, _vue.ref)();
372
+ const refVarElem = (0, _vue.ref)();
366
373
  const refTooltip = (0, _vue.ref)();
367
374
  const refCommTooltip = (0, _vue.ref)();
368
375
  const refValidTooltip = (0, _vue.ref)();
@@ -471,12 +478,7 @@ var _default = exports.default = (0, _vue.defineComponent)({
471
478
  return 0;
472
479
  });
473
480
  const computeRowHeightMaps = (0, _vue.computed)(() => {
474
- return {
475
- default: 48,
476
- medium: 44,
477
- small: 40,
478
- mini: 36
479
- };
481
+ return reactData.rowHeightStore;
480
482
  });
481
483
  const computeDefaultRowHeight = (0, _vue.computed)(() => {
482
484
  const vSize = computeSize.value;
@@ -10762,6 +10764,17 @@ var _default = exports.default = (0, _vue.defineComponent)({
10762
10764
  (0, _vue.h)('div', {
10763
10765
  class: 'vxe-table-slots'
10764
10766
  }, slots.default ? slots.default({}) : []), (0, _vue.h)('div', {
10767
+ ref: refVarElem,
10768
+ class: 'vxe-table-vars'
10769
+ }, [(0, _vue.h)('div', {
10770
+ class: 'vxe-table-var-default'
10771
+ }), (0, _vue.h)('div', {
10772
+ class: 'vxe-table-var-medium'
10773
+ }), (0, _vue.h)('div', {
10774
+ class: 'vxe-table-var-small'
10775
+ }), (0, _vue.h)('div', {
10776
+ class: 'vxe-table-var-mini'
10777
+ })]), (0, _vue.h)('div', {
10765
10778
  key: 'tw',
10766
10779
  class: 'vxe-table--render-wrapper'
10767
10780
  }, scrollbarXToTop ? [renderScrollX(), renderBody()] : [renderBody(), renderScrollX()]),
@@ -11088,9 +11101,28 @@ var _default = exports.default = (0, _vue.defineComponent)({
11088
11101
  });
11089
11102
  });
11090
11103
  (0, _vue.onMounted)(() => {
11104
+ const {
11105
+ rowHeightStore
11106
+ } = reactData;
11107
+ const varEl = refVarElem.value;
11091
11108
  const columnOpts = computeColumnOpts.value;
11092
11109
  const rowOpts = computeRowOpts.value;
11093
11110
  const customOpts = computeCustomOpts.value;
11111
+ if (varEl) {
11112
+ const [defEl, mediumEl, smallEl, miniEl] = varEl.children;
11113
+ if (defEl) {
11114
+ rowHeightStore.default = defEl.clientHeight;
11115
+ }
11116
+ if (mediumEl) {
11117
+ rowHeightStore.medium = mediumEl.clientHeight;
11118
+ }
11119
+ if (smallEl) {
11120
+ rowHeightStore.small = smallEl.clientHeight;
11121
+ }
11122
+ if (miniEl) {
11123
+ rowHeightStore.mini = miniEl.clientHeight;
11124
+ }
11125
+ }
11094
11126
  if (columnOpts.drag || rowOpts.drag || customOpts.allowSort) {
11095
11127
  (0, _dom.initTpImg)();
11096
11128
  }