vxe-table 3.8.16 → 3.8.18

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 (63) hide show
  1. package/lib/edit/src/mixin.js +39 -29
  2. package/lib/edit/src/mixin.min.js +1 -1
  3. package/lib/export/src/mixin.js +26 -6
  4. package/lib/export/src/mixin.min.js +1 -1
  5. package/lib/grid/src/grid.js +63 -20
  6. package/lib/grid/src/grid.min.js +1 -1
  7. package/lib/icon/style/{iconfont.1721369585843.ttf → iconfont.1723040514481.ttf} +0 -0
  8. package/lib/icon/style/iconfont.1723040514481.woff +0 -0
  9. package/lib/icon/style/iconfont.1723040514481.woff2 +0 -0
  10. package/lib/icon/style/style.css +81 -3
  11. package/lib/icon/style/style.min.css +81 -3
  12. package/lib/{iconfont.1721369585843.ttf → iconfont.1723040514481.ttf} +0 -0
  13. package/lib/iconfont.1723040514481.woff +0 -0
  14. package/lib/iconfont.1723040514481.woff2 +0 -0
  15. package/lib/index.css +1 -1
  16. package/lib/index.umd.js +180 -87
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/input/src/input.js +14 -6
  19. package/lib/input/src/input.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/table/src/methods.js +25 -24
  23. package/lib/table/src/methods.min.js +1 -1
  24. package/lib/table/src/table.js +15 -3
  25. package/lib/table/src/table.min.js +1 -1
  26. package/lib/table/style/style.css +70 -46
  27. package/lib/table/style/style.min.css +1 -1
  28. package/lib/toolbar/src/toolbar.js +3 -0
  29. package/lib/toolbar/src/toolbar.min.js +1 -1
  30. package/lib/tools/log.js +1 -1
  31. package/lib/tools/log.min.js +1 -1
  32. package/lib/v-x-e-table/index.js +1 -1
  33. package/lib/v-x-e-table/index.min.js +1 -1
  34. package/lib/v-x-e-table/src/conf.js +2 -1
  35. package/lib/v-x-e-table/src/conf.min.js +1 -1
  36. package/lib/v-x-e-table/src/renderer.js +1 -1
  37. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  38. package/lib/v-x-e-table/style/style.css +57 -3
  39. package/lib/v-x-e-table/style/style.min.css +1 -1
  40. package/lib/vxe-icon/style/style.css +81 -3
  41. package/lib/vxe-icon/style/style.min.css +1 -1
  42. package/lib/vxe-table/style/style.css +70 -46
  43. package/lib/vxe-table/style/style.min.css +1 -1
  44. package/package.json +2 -2
  45. package/packages/edit/src/mixin.js +10 -3
  46. package/packages/export/src/mixin.js +15 -4
  47. package/packages/grid/src/grid.js +48 -18
  48. package/packages/input/src/input.js +14 -8
  49. package/packages/table/src/methods.js +23 -22
  50. package/packages/table/src/table.js +40 -28
  51. package/packages/toolbar/src/toolbar.js +3 -0
  52. package/packages/v-x-e-table/src/conf.js +2 -1
  53. package/packages/v-x-e-table/src/renderer.js +1 -1
  54. package/styles/icon/iconfont.ttf +0 -0
  55. package/styles/icon/iconfont.woff +0 -0
  56. package/styles/icon/iconfont.woff2 +0 -0
  57. package/styles/icon.scss +53 -4
  58. package/styles/old-icon.scss +4 -0
  59. package/styles/table.scss +37 -17
  60. package/lib/icon/style/iconfont.1721369585843.woff +0 -0
  61. package/lib/icon/style/iconfont.1721369585843.woff2 +0 -0
  62. package/lib/iconfont.1721369585843.woff +0 -0
  63. package/lib/iconfont.1721369585843.woff2 +0 -0
@@ -464,11 +464,11 @@ var Methods = {
464
464
  if (childrenField === treeOpts.mapChildrenField) {
465
465
  (0, _log.errLog)('vxe.error.errConflicts', ['tree-config.childrenField', 'tree-config.mapChildrenField']);
466
466
  }
467
- fullData.forEach(function (row) {
468
- if (row[childrenField] && row[childrenField].length) {
469
- (0, _log.warnLog)('vxe.error.errConflicts', ['tree-config.transform', "row.".concat(childrenField)]);
470
- }
471
- });
467
+ // fullData.forEach(row => {
468
+ // if (row[childrenField] && row[childrenField].length) {
469
+ // warnLog('vxe.error.errConflicts', ['tree-config.transform', `row.${childrenField}`])
470
+ // }
471
+ // })
472
472
  }
473
473
  treeData = _xeUtils.default.toArrayTree(fullData, {
474
474
  key: treeOpts.rowField,
@@ -2040,7 +2040,6 @@ var Methods = {
2040
2040
  return this.refreshColumn(true);
2041
2041
  },
2042
2042
  handleCustomRestore: function handleCustomRestore(storeData) {
2043
- var tableFullColumn = this.tableFullColumn;
2044
2043
  var collectColumn = this.collectColumn;
2045
2044
  var resizableData = storeData.resizableData,
2046
2045
  sortData = storeData.sortData,
@@ -2049,7 +2048,7 @@ var Methods = {
2049
2048
  var hasCustomSort = false;
2050
2049
  // 处理还原
2051
2050
  if (resizableData || sortData || visibleData || fixedData) {
2052
- tableFullColumn.forEach(function (column) {
2051
+ _xeUtils.default.eachTree(collectColumn, function (column, index, items, path, parent) {
2053
2052
  var colKey = column.getKey();
2054
2053
  // 支持一级
2055
2054
  if (!parent) {
@@ -2081,7 +2080,7 @@ var Methods = {
2081
2080
  */
2082
2081
  restoreCustomStorage: function restoreCustomStorage() {
2083
2082
  var _this21 = this;
2084
- var id = this.id,
2083
+ var tableId = this.tableId,
2085
2084
  customConfig = this.customConfig,
2086
2085
  customOpts = this.customOpts;
2087
2086
  var storage = customOpts.storage,
@@ -2093,14 +2092,14 @@ var Methods = {
2093
2092
  var isCustomFixed = isAllCustom || storageOpts.fixed;
2094
2093
  var isCustomSort = isAllCustom || storageOpts.sort;
2095
2094
  if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort)) {
2096
- if (!id) {
2095
+ if (!tableId) {
2097
2096
  (0, _log.errLog)('vxe.error.reqProp', ['id']);
2098
2097
  return;
2099
2098
  }
2100
- var storeData = getCustomStorageMap(id);
2099
+ var storeData = getCustomStorageMap(tableId);
2101
2100
  if (restoreStore) {
2102
2101
  return Promise.resolve(restoreStore({
2103
- id: id,
2102
+ id: tableId,
2104
2103
  type: 'restore',
2105
2104
  storeData: storeData
2106
2105
  })).then(function (storeData) {
@@ -2197,7 +2196,7 @@ var Methods = {
2197
2196
  return storeData;
2198
2197
  },
2199
2198
  saveCustomStore: function saveCustomStore(type) {
2200
- var id = this.id,
2199
+ var tableId = this.tableId,
2201
2200
  customOpts = this.customOpts;
2202
2201
  var updateStore = customOpts.updateStore,
2203
2202
  storage = customOpts.storage;
@@ -2208,7 +2207,7 @@ var Methods = {
2208
2207
  var isCustomFixed = isAllCustom || storageOpts.fixed;
2209
2208
  var isCustomSort = isAllCustom || storageOpts.sort;
2210
2209
  if (isCustomResizable || isCustomVisible || isCustomFixed || isCustomSort) {
2211
- if (!id) {
2210
+ if (!tableId) {
2212
2211
  (0, _log.errLog)('vxe.error.reqProp', ['id']);
2213
2212
  return this.$nextTick();
2214
2213
  }
@@ -2220,12 +2219,12 @@ var Methods = {
2220
2219
  } : this.getCustomStoreData();
2221
2220
  if (updateStore) {
2222
2221
  return updateStore({
2223
- id: id,
2222
+ id: tableId,
2224
2223
  type: type,
2225
2224
  storeData: storeData
2226
2225
  });
2227
2226
  } else {
2228
- setCustomStorageMap(id, type === 'reset' ? null : storeData);
2227
+ setCustomStorageMap(tableId, type === 'reset' ? null : storeData);
2229
2228
  }
2230
2229
  }
2231
2230
  return this.$nextTick();
@@ -3088,15 +3087,17 @@ var Methods = {
3088
3087
  this.clearSelected();
3089
3088
  }
3090
3089
  if (areaOpts.autoClear) {
3091
- var cellAreas = this.getCellAreas();
3092
- if (cellAreas.length && !getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
3093
- this.preventEvent(evnt, 'event.clearAreas', {}, function () {
3094
- _this29.clearCellAreas();
3095
- _this29.clearCopyCellArea();
3096
- _this29.emitEvent('clear-cell-area-selection', {
3097
- cellAreas: cellAreas
3098
- }, evnt);
3099
- });
3090
+ if (this.getCellAreas) {
3091
+ var cellAreas = this.getCellAreas();
3092
+ if (cellAreas && cellAreas.length && !getEventTargetNode(evnt, document.body, 'vxe-table--ignore-areas-clear').flag) {
3093
+ this.preventEvent(evnt, 'event.clearAreas', {}, function () {
3094
+ _this29.clearCellAreas();
3095
+ _this29.clearCopyCellArea();
3096
+ _this29.emitEvent('clear-cell-area-selection', {
3097
+ cellAreas: cellAreas
3098
+ }, evnt);
3099
+ });
3100
+ }
3100
3101
  }
3101
3102
  }
3102
3103
  }