vxe-table 3.12.0-beta.13 → 3.12.0-beta.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 (52) hide show
  1. package/es/locale/lang/de-DE.js +490 -490
  2. package/es/locale/lang/en-US.js +438 -438
  3. package/es/locale/lang/it-IT.js +692 -0
  4. package/es/locale/lang/ru-RU.js +36 -36
  5. package/es/locale/lang/th-TH.js +692 -0
  6. package/es/locale/lang/zh-CHT.js +19 -19
  7. package/es/style.css +1 -1
  8. package/es/table/module/export/mixin.js +1 -1
  9. package/es/table/src/methods.js +25 -25
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/lib/index.umd.js +28 -31
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/locale/lang/de-DE.js +490 -490
  15. package/lib/locale/lang/de-DE.min.js +1 -1
  16. package/lib/locale/lang/en-US.js +438 -438
  17. package/lib/locale/lang/en-US.min.js +1 -1
  18. package/lib/locale/lang/en-US.umd.js +438 -438
  19. package/lib/locale/lang/it-IT.js +698 -0
  20. package/lib/locale/lang/it-IT.min.js +1 -0
  21. package/lib/locale/lang/ru-RU.js +36 -36
  22. package/lib/locale/lang/ru-RU.min.js +1 -1
  23. package/lib/locale/lang/ru-RU.umd.js +36 -36
  24. package/lib/locale/lang/th-TH.js +698 -0
  25. package/lib/locale/lang/th-TH.min.js +1 -0
  26. package/lib/locale/lang/zh-CHT.js +19 -19
  27. package/lib/locale/lang/zh-CHT.min.js +1 -1
  28. package/lib/locale/lang/zh-CHT.umd.js +19 -19
  29. package/lib/style.css +1 -1
  30. package/lib/table/module/export/mixin.js +1 -4
  31. package/lib/table/module/export/mixin.min.js +1 -1
  32. package/lib/table/src/methods.js +25 -25
  33. package/lib/table/src/methods.min.js +1 -1
  34. package/lib/ui/index.js +1 -1
  35. package/lib/ui/index.min.js +1 -1
  36. package/lib/ui/src/log.js +1 -1
  37. package/lib/ui/src/log.min.js +1 -1
  38. package/package.json +2 -2
  39. package/packages/locale/lang/de-DE.ts +492 -491
  40. package/packages/locale/lang/en-US.ts +438 -438
  41. package/packages/locale/lang/it-IT.ts +692 -0
  42. package/packages/locale/lang/ru-RU.ts +36 -36
  43. package/packages/locale/lang/th-TH.ts +692 -0
  44. package/packages/locale/lang/zh-CHT.ts +19 -19
  45. package/packages/table/module/export/mixin.ts +1 -1
  46. package/packages/table/src/methods.ts +25 -25
  47. /package/es/{iconfont.1735542540986.ttf → iconfont.1735615313592.ttf} +0 -0
  48. /package/es/{iconfont.1735542540986.woff → iconfont.1735615313592.woff} +0 -0
  49. /package/es/{iconfont.1735542540986.woff2 → iconfont.1735615313592.woff2} +0 -0
  50. /package/lib/{iconfont.1735542540986.ttf → iconfont.1735615313592.ttf} +0 -0
  51. /package/lib/{iconfont.1735542540986.woff → iconfont.1735615313592.woff} +0 -0
  52. /package/lib/{iconfont.1735542540986.woff2 → iconfont.1735615313592.woff2} +0 -0
@@ -969,7 +969,7 @@ const Methods = {
969
969
  const isLazy = treeConfig && treeOpts.lazy;
970
970
  const fullAllDataRowIdMaps = {};
971
971
  const fullDataRowIdMaps = {};
972
- const handleCache = (row, index, items, path, parent, nodes) => {
972
+ const handleCache = (row, index, items, path, parentRow, nodes) => {
973
973
  let rowid = getRowid(this, row);
974
974
  const seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
975
975
  const level = nodes ? nodes.length - 1 : 0;
@@ -982,13 +982,13 @@ const Methods = {
982
982
  }
983
983
  let cacheItem = fullAllDataRowIdData[rowid];
984
984
  if (!cacheItem) {
985
- cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, items, parent, level, height: 0 };
985
+ cacheItem = { row, rowid, seq, index: -1, _index: -1, $index: -1, items, parent: parentRow, level, height: 0 };
986
986
  }
987
987
  cacheItem.row = row;
988
988
  cacheItem.items = items;
989
- cacheItem.parent = parent;
989
+ cacheItem.parent = parentRow;
990
990
  cacheItem.level = level;
991
- cacheItem.index = treeConfig && parent ? -1 : index;
991
+ cacheItem.index = treeConfig && parentRow ? -1 : index;
992
992
  if (isSource) {
993
993
  fullDataRowIdMaps[rowid] = cacheItem;
994
994
  }
@@ -1053,9 +1053,9 @@ const Methods = {
1053
1053
  sourceDataRowIdData[rowid] = XEUtils.clone(childRow, true);
1054
1054
  });
1055
1055
  }
1056
- XEUtils.eachTree(rows, (childRow, index, items, path, parent, nodes) => {
1056
+ XEUtils.eachTree(rows, (childRow, index, items, path, parentItem, nodes) => {
1057
1057
  const rowid = getRowid($xeTable, childRow);
1058
- const parentRow = parent || parentRest.row;
1058
+ const parentRow = parentItem || parentRest.row;
1059
1059
  const rest = { row: childRow, rowid, seq: -1, index, _index: -1, $index: -1, items, parent: parentRow, level: parentLevel + nodes.length, height: 0 };
1060
1060
  fullDataRowIdData[rowid] = rest;
1061
1061
  fullAllDataRowIdData[rowid] = rest;
@@ -1093,9 +1093,9 @@ const Methods = {
1093
1093
  let radioColumn;
1094
1094
  let htmlColumn;
1095
1095
  let hasFixed;
1096
- const handleFunc = (column, index, items, path, parent) => {
1096
+ const handleFunc = (column, index, items, path, parentColumn) => {
1097
1097
  const { id: colid, field, fixed, type, treeNode } = column;
1098
- const rest = { $index: -1, _index: -1, column, colid, index, items, parent: parent || null, width: 0 };
1098
+ const rest = { $index: -1, _index: -1, column, colid, index, items, parent: parentColumn || null, width: 0 };
1099
1099
  if (field) {
1100
1100
  if (fullColumnFieldData[field]) {
1101
1101
  errLog('vxe.error.colRepet', ['field', field]);
@@ -1160,9 +1160,9 @@ const Methods = {
1160
1160
  fullColumnIdData[colid] = rest;
1161
1161
  };
1162
1162
  if (isGroup) {
1163
- XEUtils.eachTree(collectColumn, (column, index, items, path, parent, nodes) => {
1163
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn, nodes) => {
1164
1164
  column.level = nodes.length;
1165
- handleFunc(column, index, items, path, parent);
1165
+ handleFunc(column, index, items, path, parentColumn);
1166
1166
  });
1167
1167
  }
1168
1168
  else {
@@ -1754,10 +1754,10 @@ const Methods = {
1754
1754
  if (treeConfig && treeOpts.transform) {
1755
1755
  const fullData = [];
1756
1756
  const expandMaps = {};
1757
- XEUtils.eachTree(afterTreeFullData, (row, index, items, path, parent) => {
1757
+ XEUtils.eachTree(afterTreeFullData, (row, index, items, path, parentRow) => {
1758
1758
  const rowid = getRowid(this, row);
1759
- const parentRowid = getRowid(this, parent);
1760
- if (!parent || (expandMaps[parentRowid] && treeExpandedMaps[parentRowid])) {
1759
+ const parentRowid = getRowid(this, parentRow);
1760
+ if (!parentRow || (expandMaps[parentRowid] && treeExpandedMaps[parentRowid])) {
1761
1761
  const rowRest = fullAllDataRowIdData[rowid];
1762
1762
  if (rowRest) {
1763
1763
  rowRest._index = fullData.length;
@@ -2292,11 +2292,11 @@ const Methods = {
2292
2292
  let hasCustomSort = false;
2293
2293
  // 处理还原
2294
2294
  if (resizableData || sortData || visibleData || fixedData) {
2295
- XEUtils.eachTree(collectColumn, (column, index, items, path, parent) => {
2295
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentRow) => {
2296
2296
  const colKey = column.getKey();
2297
2297
  // 支持一级
2298
- if (!parent) {
2299
- if (fixedData && fixedData[colKey]) {
2298
+ if (!parentRow) {
2299
+ if (fixedData && fixedData[colKey] !== undefined) {
2300
2300
  column.fixed = fixedData[colKey];
2301
2301
  }
2302
2302
  if (sortData && XEUtils.isNumber(sortData[colKey])) {
@@ -2375,9 +2375,9 @@ const Methods = {
2375
2375
  let hasSort = 0;
2376
2376
  let hasFixedt = 0;
2377
2377
  let hasVisible = 0;
2378
- XEUtils.eachTree(collectColumn, (column, index, items, path, parent) => {
2378
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
2379
2379
  // 只支持一级
2380
- if (!parent) {
2380
+ if (!parentColumn) {
2381
2381
  collectColumn.forEach((column) => {
2382
2382
  const colKey = column.getKey();
2383
2383
  if (colKey) {
@@ -2385,7 +2385,7 @@ const Methods = {
2385
2385
  sortData[colKey] = column.renderSortNumber;
2386
2386
  }
2387
2387
  });
2388
- if (column.fixed && column.fixed !== column.defaultFixed) {
2388
+ if (column.fixed !== column.defaultFixed) {
2389
2389
  const colKey = column.getKey();
2390
2390
  if (colKey) {
2391
2391
  hasFixedt = 1;
@@ -2508,13 +2508,13 @@ const Methods = {
2508
2508
  const leftGroupList = [];
2509
2509
  const centerGroupList = [];
2510
2510
  const rightGroupList = [];
2511
- XEUtils.eachTree(collectColumn, (column, index, items, path, parent) => {
2511
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
2512
2512
  const isColGroup = hasChildrenList(column);
2513
2513
  // 如果是分组,必须按组设置固定列,不允许给子列设置固定
2514
- if (parent && parent.fixed) {
2515
- column.fixed = parent.fixed;
2514
+ if (parentColumn && parentColumn.fixed) {
2515
+ column.fixed = parentColumn.fixed;
2516
2516
  }
2517
- if (parent && column.fixed !== parent.fixed) {
2517
+ if (parentColumn && column.fixed !== parentColumn.fixed) {
2518
2518
  errLog('vxe.error.groupFixed');
2519
2519
  }
2520
2520
  if (isColGroup) {
@@ -5607,8 +5607,8 @@ const Methods = {
5607
5607
  nafIndex = nIndex;
5608
5608
  }
5609
5609
  }
5610
- XEUtils.eachTree(collectColumn, (column, index, items, path, parent) => {
5611
- if (!parent) {
5610
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentColumn) => {
5611
+ if (!parentColumn) {
5612
5612
  const sortIndex = index + 1;
5613
5613
  column.renderSortNumber = sortIndex;
5614
5614
  }
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.12.0-beta.13";
3
+ export const version = "3.12.0-beta.15";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
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.12.0-beta.13"}`;
3
+ const version = `table v${"3.12.0-beta.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.12.0-beta.13";
2223
+ const version = "3.12.0-beta.15";
2224
2224
  core_.VxeUI.version = version;
2225
2225
  core_.VxeUI.tableVersion = version;
2226
2226
  core_.VxeUI.setConfig({
@@ -2808,7 +2808,7 @@ function isNodeElement(elem) {
2808
2808
  const {
2809
2809
  log: log_log
2810
2810
  } = core_.VxeUI;
2811
- const log_version = `table v${"3.12.0-beta.13"}`;
2811
+ const log_version = `table v${"3.12.0-beta.15"}`;
2812
2812
  const warnLog = log_log.create('warn', log_version);
2813
2813
  const errLog = log_log.create('error', log_version);
2814
2814
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -6029,7 +6029,7 @@ const Methods = {
6029
6029
  const isLazy = treeConfig && treeOpts.lazy;
6030
6030
  const fullAllDataRowIdMaps = {};
6031
6031
  const fullDataRowIdMaps = {};
6032
- const handleCache = (row, index, items, path, parent, nodes) => {
6032
+ const handleCache = (row, index, items, path, parentRow, nodes) => {
6033
6033
  let rowid = getRowid(this, row);
6034
6034
  const seq = treeConfig && path ? toTreePathSeq(path) : index + 1;
6035
6035
  const level = nodes ? nodes.length - 1 : 0;
@@ -6050,16 +6050,16 @@ const Methods = {
6050
6050
  _index: -1,
6051
6051
  $index: -1,
6052
6052
  items,
6053
- parent,
6053
+ parent: parentRow,
6054
6054
  level,
6055
6055
  height: 0
6056
6056
  };
6057
6057
  }
6058
6058
  cacheItem.row = row;
6059
6059
  cacheItem.items = items;
6060
- cacheItem.parent = parent;
6060
+ cacheItem.parent = parentRow;
6061
6061
  cacheItem.level = level;
6062
- cacheItem.index = treeConfig && parent ? -1 : index;
6062
+ cacheItem.index = treeConfig && parentRow ? -1 : index;
6063
6063
  if (isSource) {
6064
6064
  fullDataRowIdMaps[rowid] = cacheItem;
6065
6065
  }
@@ -6142,9 +6142,9 @@ const Methods = {
6142
6142
  sourceDataRowIdData[rowid] = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().clone(childRow, true);
6143
6143
  });
6144
6144
  }
6145
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(rows, (childRow, index, items, path, parent, nodes) => {
6145
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(rows, (childRow, index, items, path, parentItem, nodes) => {
6146
6146
  const rowid = getRowid($xeTable, childRow);
6147
- const parentRow = parent || parentRest.row;
6147
+ const parentRow = parentItem || parentRest.row;
6148
6148
  const rest = {
6149
6149
  row: childRow,
6150
6150
  rowid,
@@ -6201,7 +6201,7 @@ const Methods = {
6201
6201
  let radioColumn;
6202
6202
  let htmlColumn;
6203
6203
  let hasFixed;
6204
- const handleFunc = (column, index, items, path, parent) => {
6204
+ const handleFunc = (column, index, items, path, parentColumn) => {
6205
6205
  const {
6206
6206
  id: colid,
6207
6207
  field,
@@ -6216,7 +6216,7 @@ const Methods = {
6216
6216
  colid,
6217
6217
  index,
6218
6218
  items,
6219
- parent: parent || null,
6219
+ parent: parentColumn || null,
6220
6220
  width: 0
6221
6221
  };
6222
6222
  if (field) {
@@ -6280,9 +6280,9 @@ const Methods = {
6280
6280
  fullColumnIdData[colid] = rest;
6281
6281
  };
6282
6282
  if (isGroup) {
6283
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent, nodes) => {
6283
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parentColumn, nodes) => {
6284
6284
  column.level = nodes.length;
6285
- handleFunc(column, index, items, path, parent);
6285
+ handleFunc(column, index, items, path, parentColumn);
6286
6286
  });
6287
6287
  } else {
6288
6288
  tableFullColumn.forEach(handleFunc);
@@ -6952,10 +6952,10 @@ const Methods = {
6952
6952
  if (treeConfig && treeOpts.transform) {
6953
6953
  const fullData = [];
6954
6954
  const expandMaps = {};
6955
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterTreeFullData, (row, index, items, path, parent) => {
6955
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(afterTreeFullData, (row, index, items, path, parentRow) => {
6956
6956
  const rowid = getRowid(this, row);
6957
- const parentRowid = getRowid(this, parent);
6958
- if (!parent || expandMaps[parentRowid] && treeExpandedMaps[parentRowid]) {
6957
+ const parentRowid = getRowid(this, parentRow);
6958
+ if (!parentRow || expandMaps[parentRowid] && treeExpandedMaps[parentRowid]) {
6959
6959
  const rowRest = fullAllDataRowIdData[rowid];
6960
6960
  if (rowRest) {
6961
6961
  rowRest._index = fullData.length;
@@ -7651,11 +7651,11 @@ const Methods = {
7651
7651
  let hasCustomSort = false;
7652
7652
  // 处理还原
7653
7653
  if (resizableData || sortData || visibleData || fixedData) {
7654
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent) => {
7654
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parentRow) => {
7655
7655
  const colKey = column.getKey();
7656
7656
  // 支持一级
7657
- if (!parent) {
7658
- if (fixedData && fixedData[colKey]) {
7657
+ if (!parentRow) {
7658
+ if (fixedData && fixedData[colKey] !== undefined) {
7659
7659
  column.fixed = fixedData[colKey];
7660
7660
  }
7661
7661
  if (sortData && external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(sortData[colKey])) {
@@ -7749,9 +7749,9 @@ const Methods = {
7749
7749
  let hasSort = 0;
7750
7750
  let hasFixedt = 0;
7751
7751
  let hasVisible = 0;
7752
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent) => {
7752
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parentColumn) => {
7753
7753
  // 只支持一级
7754
- if (!parent) {
7754
+ if (!parentColumn) {
7755
7755
  collectColumn.forEach(column => {
7756
7756
  const colKey = column.getKey();
7757
7757
  if (colKey) {
@@ -7759,7 +7759,7 @@ const Methods = {
7759
7759
  sortData[colKey] = column.renderSortNumber;
7760
7760
  }
7761
7761
  });
7762
- if (column.fixed && column.fixed !== column.defaultFixed) {
7762
+ if (column.fixed !== column.defaultFixed) {
7763
7763
  const colKey = column.getKey();
7764
7764
  if (colKey) {
7765
7765
  hasFixedt = 1;
@@ -7895,13 +7895,13 @@ const Methods = {
7895
7895
  const leftGroupList = [];
7896
7896
  const centerGroupList = [];
7897
7897
  const rightGroupList = [];
7898
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent) => {
7898
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parentColumn) => {
7899
7899
  const isColGroup = hasChildrenList(column);
7900
7900
  // 如果是分组,必须按组设置固定列,不允许给子列设置固定
7901
- if (parent && parent.fixed) {
7902
- column.fixed = parent.fixed;
7901
+ if (parentColumn && parentColumn.fixed) {
7902
+ column.fixed = parentColumn.fixed;
7903
7903
  }
7904
- if (parent && column.fixed !== parent.fixed) {
7904
+ if (parentColumn && column.fixed !== parentColumn.fixed) {
7905
7905
  errLog('vxe.error.groupFixed');
7906
7906
  }
7907
7907
  if (isColGroup) {
@@ -11529,8 +11529,8 @@ const Methods = {
11529
11529
  nafIndex = nIndex;
11530
11530
  }
11531
11531
  }
11532
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parent) => {
11533
- if (!parent) {
11532
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, (column, index, items, path, parentColumn) => {
11533
+ if (!parentColumn) {
11534
11534
  const sortIndex = index + 1;
11535
11535
  column.renderSortNumber = sortIndex;
11536
11536
  }
@@ -21582,10 +21582,7 @@ const convertToRows = originColumns => {
21582
21582
  const customCols = columns && columns.length ? columns : null;
21583
21583
  const handleOptions = Object.assign({}, opts, {
21584
21584
  filename: '',
21585
- sheetName: '',
21586
- colgroups: [],
21587
- columns: [],
21588
- data: []
21585
+ sheetName: ''
21589
21586
  });
21590
21587
  // 如果设置源数据,则默认导出设置了字段的列
21591
21588
  if (!customCols && !columnFilterMethod) {