vxe-table 3.15.14 → 3.15.15

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/style.css +1 -1
  2. package/es/table/src/footer.js +1 -1
  3. package/es/table/src/header.js +1 -1
  4. package/es/table/src/methods.js +3 -3
  5. package/es/table/src/table.js +5 -7
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/dom.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/lib/index.umd.js +12 -14
  10. package/lib/index.umd.min.js +1 -1
  11. package/lib/style.css +1 -1
  12. package/lib/table/src/footer.js +1 -1
  13. package/lib/table/src/footer.min.js +1 -1
  14. package/lib/table/src/header.js +1 -1
  15. package/lib/table/src/header.min.js +1 -1
  16. package/lib/table/src/methods.js +3 -3
  17. package/lib/table/src/methods.min.js +1 -1
  18. package/lib/table/src/table.js +4 -6
  19. package/lib/table/src/table.min.js +1 -1
  20. package/lib/ui/index.js +1 -1
  21. package/lib/ui/index.min.js +1 -1
  22. package/lib/ui/src/dom.js +1 -1
  23. package/lib/ui/src/dom.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/package.json +2 -2
  27. package/packages/table/src/footer.ts +1 -1
  28. package/packages/table/src/header.ts +1 -1
  29. package/packages/table/src/methods.ts +3 -3
  30. package/packages/table/src/table.ts +5 -7
  31. package/packages/ui/src/dom.ts +1 -1
  32. /package/es/{iconfont.1745827933282.ttf → iconfont.1745889617363.ttf} +0 -0
  33. /package/es/{iconfont.1745827933282.woff → iconfont.1745889617363.woff} +0 -0
  34. /package/es/{iconfont.1745827933282.woff2 → iconfont.1745889617363.woff2} +0 -0
  35. /package/lib/{iconfont.1745827933282.ttf → iconfont.1745889617363.ttf} +0 -0
  36. /package/lib/{iconfont.1745827933282.woff → iconfont.1745889617363.woff} +0 -0
  37. /package/lib/{iconfont.1745827933282.woff2 → iconfont.1745889617363.woff2} +0 -0
@@ -1031,7 +1031,7 @@ function updateStyle($xeTable) {
1031
1031
  if (tableElem) {
1032
1032
  tableElem.style.width = tWidth ? `${tWidth}px` : '';
1033
1033
  // 兼容性处理
1034
- tableElem.style.paddingRight = osbWidth && fixedType && (browseObj['-moz'] || browseObj.safari) ? `${osbWidth}px` : '';
1034
+ tableElem.style.paddingRight = osbWidth && fixedType && (browseObj.firefox || browseObj.safari) ? `${osbWidth}px` : '';
1035
1035
  }
1036
1036
  const emptyBlockElem = getRefElem(elemStore[`${name}-${layout}-emptyBlock`]);
1037
1037
  if (emptyBlockElem) {
@@ -9265,7 +9265,7 @@ const Methods = {
9265
9265
  if (isRollX) {
9266
9266
  evnt.preventDefault();
9267
9267
  internalData.inWheelScroll = true;
9268
- if (browseObj['-moz'] || browseObj.safari) {
9268
+ if (browseObj.firefox || browseObj.safari) {
9269
9269
  const currLeftNum = scrollLeft;
9270
9270
  setScrollLeft(xHandleEl, currLeftNum);
9271
9271
  setScrollLeft(bodyScrollElem, currLeftNum);
@@ -9298,7 +9298,7 @@ const Methods = {
9298
9298
  }
9299
9299
  if (isRollY) {
9300
9300
  evnt.preventDefault();
9301
- if (browseObj['-moz'] || browseObj.safari) {
9301
+ if (browseObj.firefox || browseObj.safari) {
9302
9302
  const currTopNum = scrollTop;
9303
9303
  setScrollTop(yHandleEl, currTopNum);
9304
9304
  setScrollTop(bodyScrollElem, currTopNum);
@@ -1,7 +1,7 @@
1
1
  import XEUtils from 'xe-utils';
2
2
  import { getFuncText, isEnableConf } from '../../ui/src/utils';
3
3
  import { initTpImg } from '../../ui/src/dom';
4
- import { createHandleGetRowId } from './util';
4
+ import { createHandleGetRowId, getCellHeight } from './util';
5
5
  import { VxeUI } from '../../ui';
6
6
  import methods from './methods';
7
7
  import TableBodyComponent from './body';
@@ -791,18 +791,16 @@ export default {
791
791
  const $xeTable = this;
792
792
  const props = $xeTable;
793
793
  const headerCellOpts = Object.assign({}, getConfig().table.headerCellConfig, props.headerCellConfig);
794
- if (headerCellOpts.height) {
795
- headerCellOpts.height = XEUtils.toNumber(headerCellOpts.height);
796
- }
794
+ const cellOpts = $xeTable.computeCellOpts;
795
+ headerCellOpts.height = XEUtils.toNumber(getCellHeight(headerCellOpts.height || cellOpts.height));
797
796
  return headerCellOpts;
798
797
  },
799
798
  computeFooterCellOpts() {
800
799
  const $xeTable = this;
801
800
  const props = $xeTable;
802
801
  const footerCellOpts = Object.assign({}, getConfig().table.footerCellConfig, props.footerCellConfig);
803
- if (footerCellOpts.height) {
804
- footerCellOpts.height = XEUtils.toNumber(footerCellOpts.height);
805
- }
802
+ const cellOpts = $xeTable.computeCellOpts;
803
+ footerCellOpts.height = XEUtils.toNumber(getCellHeight(footerCellOpts.height || cellOpts.height));
806
804
  return footerCellOpts;
807
805
  },
808
806
  rowOpts() {
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.15.14";
3
+ export const version = "3.15.15";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/dom.js CHANGED
@@ -45,7 +45,7 @@ export function isScale(val) {
45
45
  return val && /^\d+%$/.test(val);
46
46
  }
47
47
  export function hasClass(elem, cls) {
48
- return elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls));
48
+ return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
49
49
  }
50
50
  export function removeClass(elem, cls) {
51
51
  if (elem && hasClass(elem, cls)) {
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.15.14"}`;
3
+ const version = `table v${"3.15.15"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -2220,7 +2220,7 @@ function getClass(property, params) {
2220
2220
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2221
2221
 
2222
2222
 
2223
- const version = "3.15.14";
2223
+ const version = "3.15.15";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2718,7 +2718,7 @@ function isScale(val) {
2718
2718
  return val && /^\d+%$/.test(val);
2719
2719
  }
2720
2720
  function hasClass(elem, cls) {
2721
- return elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls));
2721
+ return !!(elem && elem.className && elem.className.match && elem.className.match(getClsRE(cls)));
2722
2722
  }
2723
2723
  function removeClass(elem, cls) {
2724
2724
  if (elem && hasClass(elem, cls)) {
@@ -2858,7 +2858,7 @@ function isNodeElement(elem) {
2858
2858
  const {
2859
2859
  log: log_log
2860
2860
  } = core_.VxeUI;
2861
- const log_version = `table v${"3.15.14"}`;
2861
+ const log_version = `table v${"3.15.15"}`;
2862
2862
  const warnLog = log_log.create('warn', log_version);
2863
2863
  const errLog = log_log.create('error', log_version);
2864
2864
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -6568,7 +6568,7 @@ function updateStyle($xeTable) {
6568
6568
  if (tableElem) {
6569
6569
  tableElem.style.width = tWidth ? `${tWidth}px` : '';
6570
6570
  // 兼容性处理
6571
- tableElem.style.paddingRight = osbWidth && fixedType && (browseObj['-moz'] || browseObj.safari) ? `${osbWidth}px` : '';
6571
+ tableElem.style.paddingRight = osbWidth && fixedType && (browseObj.firefox || browseObj.safari) ? `${osbWidth}px` : '';
6572
6572
  }
6573
6573
  const emptyBlockElem = getRefElem(elemStore[`${name}-${layout}-emptyBlock`]);
6574
6574
  if (emptyBlockElem) {
@@ -16126,7 +16126,7 @@ const Methods = {
16126
16126
  if (isRollX) {
16127
16127
  evnt.preventDefault();
16128
16128
  internalData.inWheelScroll = true;
16129
- if (browseObj['-moz'] || browseObj.safari) {
16129
+ if (browseObj.firefox || browseObj.safari) {
16130
16130
  const currLeftNum = scrollLeft;
16131
16131
  setScrollLeft(xHandleEl, currLeftNum);
16132
16132
  setScrollLeft(bodyScrollElem, currLeftNum);
@@ -16158,7 +16158,7 @@ const Methods = {
16158
16158
  }
16159
16159
  if (isRollY) {
16160
16160
  evnt.preventDefault();
16161
- if (browseObj['-moz'] || browseObj.safari) {
16161
+ if (browseObj.firefox || browseObj.safari) {
16162
16162
  const currTopNum = scrollTop;
16163
16163
  setScrollTop(yHandleEl, currTopNum);
16164
16164
  setScrollTop(bodyScrollElem, currTopNum);
@@ -17989,7 +17989,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
17989
17989
  const cellOpts = $xeTable.computeCellOpts;
17990
17990
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
17991
17991
  const headerCellOpts = $xeTable.computeHeaderCellOpts;
17992
- const currCellHeight = getCellHeight(headerCellOpts.height || cellOpts.height) || defaultRowHeight;
17992
+ const currCellHeight = getCellHeight(headerCellOpts.height) || defaultRowHeight;
17993
17993
  const {
17994
17994
  disabledMethod: dragDisabledMethod,
17995
17995
  isCrossDrag,
@@ -18455,7 +18455,7 @@ function footer_renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData,
18455
18455
  const defaultRowHeight = $xeTable.computeDefaultRowHeight;
18456
18456
  const cellOpts = $xeTable.computeCellOpts;
18457
18457
  const footerCellOpts = $xeTable.computeFooterCellOpts;
18458
- const currCellHeight = getCellHeight(footerCellOpts.height || cellOpts.height) || defaultRowHeight;
18458
+ const currCellHeight = getCellHeight(footerCellOpts.height) || defaultRowHeight;
18459
18459
  return tableColumn.map((column, $columnIndex) => {
18460
18460
  const {
18461
18461
  type,
@@ -27737,18 +27737,16 @@ function renderBody(h, $xeTable) {
27737
27737
  const $xeTable = this;
27738
27738
  const props = $xeTable;
27739
27739
  const headerCellOpts = Object.assign({}, table_getConfig().table.headerCellConfig, props.headerCellConfig);
27740
- if (headerCellOpts.height) {
27741
- headerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(headerCellOpts.height);
27742
- }
27740
+ const cellOpts = $xeTable.computeCellOpts;
27741
+ headerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getCellHeight(headerCellOpts.height || cellOpts.height));
27743
27742
  return headerCellOpts;
27744
27743
  },
27745
27744
  computeFooterCellOpts() {
27746
27745
  const $xeTable = this;
27747
27746
  const props = $xeTable;
27748
27747
  const footerCellOpts = Object.assign({}, table_getConfig().table.footerCellConfig, props.footerCellConfig);
27749
- if (footerCellOpts.height) {
27750
- footerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(footerCellOpts.height);
27751
- }
27748
+ const cellOpts = $xeTable.computeCellOpts;
27749
+ footerCellOpts.height = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getCellHeight(footerCellOpts.height || cellOpts.height));
27752
27750
  return footerCellOpts;
27753
27751
  },
27754
27752
  rowOpts() {