vxe-table 3.17.10 → 3.17.12

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 (153) hide show
  1. package/es/index.esm.js +1 -2
  2. package/es/locale/lang/ar-EG.js +3 -1
  3. package/es/locale/lang/de-DE.js +3 -1
  4. package/es/locale/lang/en-US.js +3 -1
  5. package/es/locale/lang/es-ES.js +3 -1
  6. package/es/locale/lang/fr-FR.js +3 -1
  7. package/es/locale/lang/hu-HU.js +3 -1
  8. package/es/locale/lang/hy-AM.js +3 -1
  9. package/es/locale/lang/id-ID.js +3 -1
  10. package/es/locale/lang/it-IT.js +3 -1
  11. package/es/locale/lang/ja-JP.js +3 -1
  12. package/es/locale/lang/ko-KR.js +3 -1
  13. package/es/locale/lang/ms-MY.js +3 -1
  14. package/es/locale/lang/nb-NO.js +3 -1
  15. package/es/locale/lang/pt-BR.js +3 -1
  16. package/es/locale/lang/ru-RU.js +3 -1
  17. package/es/locale/lang/th-TH.js +3 -1
  18. package/es/locale/lang/ug-CN.js +3 -1
  19. package/es/locale/lang/uk-UA.js +3 -1
  20. package/es/locale/lang/uz-UZ.js +3 -1
  21. package/es/locale/lang/vi-VN.js +3 -1
  22. package/es/locale/lang/zh-CHT.js +3 -1
  23. package/es/locale/lang/zh-CN.js +3 -1
  24. package/es/style.css +1 -1
  25. package/es/table/src/cell.js +4 -0
  26. package/es/table/src/methods.js +30 -35
  27. package/es/ui/index.js +1 -1
  28. package/es/ui/src/log.js +1 -1
  29. package/lib/index.common.js +1 -2
  30. package/lib/index.umd.js +2292 -951
  31. package/lib/index.umd.min.js +1 -1
  32. package/lib/locale/lang/ar-EG.js +3 -1
  33. package/lib/locale/lang/ar-EG.min.js +1 -1
  34. package/lib/locale/lang/ar-EG.umd.js +3 -1
  35. package/lib/locale/lang/de-DE.js +3 -1
  36. package/lib/locale/lang/de-DE.min.js +1 -1
  37. package/lib/locale/lang/de-DE.umd.js +3 -1
  38. package/lib/locale/lang/en-US.js +3 -1
  39. package/lib/locale/lang/en-US.min.js +1 -1
  40. package/lib/locale/lang/en-US.umd.js +3 -1
  41. package/lib/locale/lang/es-ES.js +3 -1
  42. package/lib/locale/lang/es-ES.min.js +1 -1
  43. package/lib/locale/lang/es-ES.umd.js +3 -1
  44. package/lib/locale/lang/fr-FR.js +3 -1
  45. package/lib/locale/lang/fr-FR.min.js +1 -1
  46. package/lib/locale/lang/fr-FR.umd.js +3 -1
  47. package/lib/locale/lang/hu-HU.js +3 -1
  48. package/lib/locale/lang/hu-HU.min.js +1 -1
  49. package/lib/locale/lang/hu-HU.umd.js +3 -1
  50. package/lib/locale/lang/hy-AM.js +3 -1
  51. package/lib/locale/lang/hy-AM.min.js +1 -1
  52. package/lib/locale/lang/hy-AM.umd.js +3 -1
  53. package/lib/locale/lang/id-ID.js +3 -1
  54. package/lib/locale/lang/id-ID.min.js +1 -1
  55. package/lib/locale/lang/id-ID.umd.js +3 -1
  56. package/lib/locale/lang/it-IT.js +3 -1
  57. package/lib/locale/lang/it-IT.min.js +1 -1
  58. package/lib/locale/lang/it-IT.umd.js +3 -1
  59. package/lib/locale/lang/ja-JP.js +3 -1
  60. package/lib/locale/lang/ja-JP.min.js +1 -1
  61. package/lib/locale/lang/ja-JP.umd.js +3 -1
  62. package/lib/locale/lang/ko-KR.js +3 -1
  63. package/lib/locale/lang/ko-KR.min.js +1 -1
  64. package/lib/locale/lang/ko-KR.umd.js +3 -1
  65. package/lib/locale/lang/ms-MY.js +3 -1
  66. package/lib/locale/lang/ms-MY.min.js +1 -1
  67. package/lib/locale/lang/ms-MY.umd.js +3 -1
  68. package/lib/locale/lang/nb-NO.js +3 -1
  69. package/lib/locale/lang/nb-NO.min.js +1 -1
  70. package/lib/locale/lang/nb-NO.umd.js +3 -1
  71. package/lib/locale/lang/pt-BR.js +3 -1
  72. package/lib/locale/lang/pt-BR.min.js +1 -1
  73. package/lib/locale/lang/pt-BR.umd.js +3 -1
  74. package/lib/locale/lang/ru-RU.js +3 -1
  75. package/lib/locale/lang/ru-RU.min.js +1 -1
  76. package/lib/locale/lang/ru-RU.umd.js +3 -1
  77. package/lib/locale/lang/th-TH.js +3 -1
  78. package/lib/locale/lang/th-TH.min.js +1 -1
  79. package/lib/locale/lang/th-TH.umd.js +3 -1
  80. package/lib/locale/lang/ug-CN.js +3 -1
  81. package/lib/locale/lang/ug-CN.min.js +1 -1
  82. package/lib/locale/lang/ug-CN.umd.js +3 -1
  83. package/lib/locale/lang/uk-UA.js +3 -1
  84. package/lib/locale/lang/uk-UA.min.js +1 -1
  85. package/lib/locale/lang/uk-UA.umd.js +3 -1
  86. package/lib/locale/lang/uz-UZ.js +3 -1
  87. package/lib/locale/lang/uz-UZ.min.js +1 -1
  88. package/lib/locale/lang/uz-UZ.umd.js +3 -1
  89. package/lib/locale/lang/vi-VN.js +3 -1
  90. package/lib/locale/lang/vi-VN.min.js +1 -1
  91. package/lib/locale/lang/vi-VN.umd.js +3 -1
  92. package/lib/locale/lang/zh-CHT.js +3 -1
  93. package/lib/locale/lang/zh-CHT.min.js +1 -1
  94. package/lib/locale/lang/zh-CHT.umd.js +3 -1
  95. package/lib/locale/lang/zh-CN.js +3 -1
  96. package/lib/locale/lang/zh-CN.min.js +1 -1
  97. package/lib/locale/lang/zh-CN.umd.js +3 -1
  98. package/lib/style.css +1 -1
  99. package/lib/table/src/cell.js +8 -0
  100. package/lib/table/src/cell.min.js +1 -1
  101. package/lib/table/src/methods.js +33 -37
  102. package/lib/table/src/methods.min.js +1 -1
  103. package/lib/ui/index.js +1 -1
  104. package/lib/ui/index.min.js +1 -1
  105. package/lib/ui/src/log.js +1 -1
  106. package/lib/ui/src/log.min.js +1 -1
  107. package/lib/v-x-e-table/index.js +1 -2
  108. package/lib/v-x-e-table/index.min.js +1 -1
  109. package/lib/vxe-colgroup/index.js +1 -2
  110. package/lib/vxe-colgroup/index.min.js +1 -1
  111. package/lib/vxe-column/index.js +1 -2
  112. package/lib/vxe-column/index.min.js +1 -1
  113. package/lib/vxe-grid/index.js +1 -2
  114. package/lib/vxe-grid/index.min.js +1 -1
  115. package/lib/vxe-table/index.js +1 -2
  116. package/lib/vxe-table/index.min.js +1 -1
  117. package/lib/vxe-toolbar/index.js +1 -2
  118. package/lib/vxe-toolbar/index.min.js +1 -1
  119. package/lib/vxe-ui/index.js +1 -2
  120. package/lib/vxe-ui/index.min.js +1 -1
  121. package/lib/vxe-v-x-e-table/index.js +1 -2
  122. package/lib/vxe-v-x-e-table/index.min.js +1 -1
  123. package/package.json +1 -1
  124. package/packages/locale/lang/ar-EG.ts +3 -1
  125. package/packages/locale/lang/de-DE.ts +3 -1
  126. package/packages/locale/lang/en-US.ts +3 -1
  127. package/packages/locale/lang/es-ES.ts +3 -1
  128. package/packages/locale/lang/fr-FR.ts +3 -1
  129. package/packages/locale/lang/hu-HU.ts +3 -1
  130. package/packages/locale/lang/hy-AM.ts +3 -1
  131. package/packages/locale/lang/id-ID.ts +3 -1
  132. package/packages/locale/lang/it-IT.ts +3 -1
  133. package/packages/locale/lang/ja-JP.ts +3 -1
  134. package/packages/locale/lang/ko-KR.ts +3 -1
  135. package/packages/locale/lang/ms-MY.ts +3 -1
  136. package/packages/locale/lang/nb-NO.ts +3 -1
  137. package/packages/locale/lang/pt-BR.ts +3 -1
  138. package/packages/locale/lang/ru-RU.ts +3 -1
  139. package/packages/locale/lang/th-TH.ts +3 -1
  140. package/packages/locale/lang/ug-CN.ts +3 -1
  141. package/packages/locale/lang/uk-UA.ts +3 -1
  142. package/packages/locale/lang/uz-UZ.ts +3 -1
  143. package/packages/locale/lang/vi-VN.ts +3 -1
  144. package/packages/locale/lang/zh-CHT.ts +3 -1
  145. package/packages/locale/lang/zh-CN.ts +3 -1
  146. package/packages/table/src/cell.ts +4 -0
  147. package/packages/table/src/methods.ts +30 -37
  148. /package/es/{iconfont.1755133667514.ttf → iconfont.1755588694607.ttf} +0 -0
  149. /package/es/{iconfont.1755133667514.woff → iconfont.1755588694607.woff} +0 -0
  150. /package/es/{iconfont.1755133667514.woff2 → iconfont.1755588694607.woff2} +0 -0
  151. /package/lib/{iconfont.1755133667514.ttf → iconfont.1755588694607.ttf} +0 -0
  152. /package/lib/{iconfont.1755133667514.woff → iconfont.1755588694607.woff} +0 -0
  153. /package/lib/{iconfont.1755133667514.woff2 → iconfont.1755588694607.woff2} +0 -0
@@ -1214,9 +1214,6 @@ function updateStyle($xeTable) {
1214
1214
  if (mouseConfig && mouseOpts.selected && editStore.selected.row && editStore.selected.column) {
1215
1215
  $xeTable.addCellSelectedClass();
1216
1216
  }
1217
- if ($xeGanttView) {
1218
- $xeGanttView.handleUpdateStyle();
1219
- }
1220
1217
  return $xeTable.$nextTick();
1221
1218
  }
1222
1219
  function checkValidate($xeTable, type) {
@@ -2741,7 +2738,6 @@ function handleLazyRecalculate($xeTable, reFull, reWidth, reHeight) {
2741
2738
  const internalData = $xeTable;
2742
2739
  return new Promise(resolve => {
2743
2740
  const { rceTimeout, rceRunTime } = internalData;
2744
- const $xeGanttView = internalData.xeGanttView;
2745
2741
  const resizeOpts = $xeTable.computeResizeOpts;
2746
2742
  const refreshDelay = resizeOpts.refreshDelay || 20;
2747
2743
  const el = $xeTable.$refs.refElem;
@@ -2763,9 +2759,6 @@ function handleLazyRecalculate($xeTable, reFull, reWidth, reHeight) {
2763
2759
  else {
2764
2760
  resolve(handleRecalculateStyle($xeTable, reFull, reWidth, reHeight));
2765
2761
  }
2766
- if ($xeGanttView) {
2767
- $xeGanttView.handleLazyRecalculate();
2768
- }
2769
2762
  internalData.rceTimeout = setTimeout(() => {
2770
2763
  internalData.rceTimeout = undefined;
2771
2764
  handleRecalculateStyle($xeTable, reFull, reWidth, reHeight);
@@ -3025,6 +3018,7 @@ function loadTableData($xeTable, datas, isReset) {
3025
3018
  }).then(() => {
3026
3019
  computeScrollLoad($xeTable);
3027
3020
  }).then(() => {
3021
+ const virtualYOpts = $xeTable.computeVirtualYOpts;
3028
3022
  // 是否启用了虚拟滚动
3029
3023
  if (sYLoad) {
3030
3024
  scrollYStore.endIndex = scrollYStore.visibleSize;
@@ -3033,6 +3027,9 @@ function loadTableData($xeTable, datas, isReset) {
3033
3027
  if (reactData.expandColumn && expandOpts.mode !== 'fixed') {
3034
3028
  errLog('vxe.error.notConflictProp', ['column.type="expand', 'expand-config.mode="fixed"']);
3035
3029
  }
3030
+ if (virtualYOpts.mode === 'scroll' && expandOpts.mode === 'fixed') {
3031
+ warnLog('vxe.error.notConflictProp', ['virtual-y-config.mode=scroll', 'expand-config.mode=inside']);
3032
+ }
3036
3033
  // if (showOverflow) {
3037
3034
  // if (!rowOpts.height) {
3038
3035
  // const errColumn = internalData.tableFullColumn.find(column => column.showOverflow === false)
@@ -3546,18 +3543,6 @@ const wheelScrollTopTo = (diffNum, cb) => {
3546
3543
  };
3547
3544
  requestAnimationFrame(step);
3548
3545
  };
3549
- const syncGanttScrollTop = ($xeTable, scrollTop) => {
3550
- const internalData = $xeTable;
3551
- const $xeGanttView = internalData.xeGanttView;
3552
- if ($xeGanttView) {
3553
- const ganttInternalData = $xeGanttView.internalData;
3554
- const { elemStore: ganttElemStore } = ganttInternalData;
3555
- const ganttBodyScrollElem = getRefElem(ganttElemStore['main-body-scroll']);
3556
- if (ganttBodyScrollElem) {
3557
- ganttBodyScrollElem.scrollTop = scrollTop;
3558
- }
3559
- }
3560
- };
3561
3546
  function updateHeight($xeTable) {
3562
3547
  const reactData = $xeTable;
3563
3548
  const internalData = $xeTable;
@@ -3864,7 +3849,6 @@ const Methods = {
3864
3849
  const internalData = $xeTable;
3865
3850
  const { scrollYLoad } = reactData;
3866
3851
  const { scrollYStore, fullDataRowIdData } = internalData;
3867
- const $xeGanttView = internalData.xeGanttView;
3868
3852
  let fullList = internalData.afterFullData;
3869
3853
  // 是否进行数据处理
3870
3854
  if (force) {
@@ -3885,9 +3869,6 @@ const Methods = {
3885
3869
  });
3886
3870
  reactData.tableData = tableData;
3887
3871
  internalData.visibleDataRowIdData = visibleDataRowIdMaps;
3888
- if ($xeGanttView) {
3889
- $xeGanttView.updateViewData();
3890
- }
3891
3872
  return $xeTable.$nextTick();
3892
3873
  },
3893
3874
  /**
@@ -4847,6 +4828,32 @@ const Methods = {
4847
4828
  }
4848
4829
  return [];
4849
4830
  },
4831
+ /**
4832
+ * 只对 tree-config 有效,用于树形结构,获取指定行的层级
4833
+ */
4834
+ getTreeRowLevel(rowOrRowid) {
4835
+ const $xeTable = this;
4836
+ const props = $xeTable;
4837
+ const internalData = $xeTable;
4838
+ const { treeConfig } = props;
4839
+ const { fullAllDataRowIdData } = internalData;
4840
+ if (rowOrRowid && treeConfig) {
4841
+ let rowid;
4842
+ if (XEUtils.isString(rowOrRowid)) {
4843
+ rowid = rowOrRowid;
4844
+ }
4845
+ else {
4846
+ rowid = getRowid($xeTable, rowOrRowid);
4847
+ }
4848
+ if (rowid) {
4849
+ const rest = fullAllDataRowIdData[rowid];
4850
+ if (rest) {
4851
+ return rest.level;
4852
+ }
4853
+ }
4854
+ }
4855
+ return -1;
4856
+ },
4850
4857
  /**
4851
4858
  * 只对 tree-config 有效,获取行的父级
4852
4859
  */
@@ -10017,7 +10024,6 @@ const Methods = {
10017
10024
  }
10018
10025
  setScrollTop(yHandleEl, scrollTop);
10019
10026
  setScrollTop(rowExpandEl, scrollTop);
10020
- syncGanttScrollTop($xeTable, scrollTop);
10021
10027
  if (scrollYLoad) {
10022
10028
  $xeTable.triggerScrollYEvent(evnt);
10023
10029
  }
@@ -10214,7 +10220,6 @@ const Methods = {
10214
10220
  setScrollTop(leftScrollElem, currTopNum);
10215
10221
  setScrollTop(rightScrollElem, currTopNum);
10216
10222
  setScrollTop(rowExpandEl, currTopNum);
10217
- syncGanttScrollTop($xeTable, currTopNum);
10218
10223
  if (scrollYLoad) {
10219
10224
  $xeTable.triggerScrollYEvent(evnt);
10220
10225
  }
@@ -10232,7 +10237,6 @@ const Methods = {
10232
10237
  setScrollTop(leftScrollElem, currTopNum);
10233
10238
  setScrollTop(rightScrollElem, currTopNum);
10234
10239
  setScrollTop(rowExpandEl, currTopNum);
10235
- syncGanttScrollTop($xeTable, currTopNum);
10236
10240
  if (scrollYLoad) {
10237
10241
  $xeTable.triggerScrollYEvent(evnt);
10238
10242
  }
@@ -10312,7 +10316,6 @@ const Methods = {
10312
10316
  setScrollTop(leftScrollElem, scrollTop);
10313
10317
  setScrollTop(rightScrollElem, scrollTop);
10314
10318
  setScrollTop(rowExpandEl, scrollTop);
10315
- syncGanttScrollTop($xeTable, scrollTop);
10316
10319
  if (scrollYLoad) {
10317
10320
  $xeTable.triggerScrollYEvent(evnt);
10318
10321
  }
@@ -10342,7 +10345,6 @@ const Methods = {
10342
10345
  const internalData = $xeTable;
10343
10346
  const { scrollXLoad, overflowX, scrollXWidth } = reactData;
10344
10347
  const { visibleColumn, scrollXStore, elemStore, fullColumnIdData } = internalData;
10345
- const $xeGanttView = internalData.xeGanttView;
10346
10348
  const mouseOpts = $xeTable.computeMouseOpts;
10347
10349
  const tableBody = $xeTable.$refs.refTableBody;
10348
10350
  const tableBodyElem = tableBody ? tableBody.$el : null;
@@ -10408,9 +10410,6 @@ const Methods = {
10408
10410
  if (isScrollXBig && mouseOpts.area) {
10409
10411
  errLog('vxe.error.notProp', ['mouse-config.area']);
10410
10412
  }
10411
- if ($xeGanttView) {
10412
- $xeGanttView.updateScrollXSpace();
10413
- }
10414
10413
  return $xeTable.$nextTick(() => {
10415
10414
  updateStyle($xeTable);
10416
10415
  });
@@ -10432,7 +10431,6 @@ const Methods = {
10432
10431
  const internalData = $xeTable;
10433
10432
  const { isAllOverflow, scrollYLoad, expandColumn } = reactData;
10434
10433
  const { scrollYStore, elemStore, isResizeCellHeight, afterFullData, fullAllDataRowIdData, rowExpandedMaps } = internalData;
10435
- const $xeGanttView = internalData.xeGanttView;
10436
10434
  const { startIndex } = scrollYStore;
10437
10435
  const mouseOpts = $xeTable.computeMouseOpts;
10438
10436
  const expandOpts = $xeTable.computeExpandOpts;
@@ -10529,9 +10527,6 @@ const Methods = {
10529
10527
  if (isScrollYBig && mouseOpts.area) {
10530
10528
  errLog('vxe.error.notProp', ['mouse-config.area']);
10531
10529
  }
10532
- if ($xeGanttView) {
10533
- $xeGanttView.updateScrollYSpace();
10534
- }
10535
10530
  return $xeTable.$nextTick().then(() => {
10536
10531
  updateStyle($xeTable);
10537
10532
  });
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.17.10";
3
+ export const version = "3.17.12";
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.17.10"}`;
3
+ const version = `table v${"3.17.12"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
@@ -17,6 +17,5 @@ Object.keys(VxeTableExport).forEach(function (key) {
17
17
  }
18
18
  });
19
19
  });
20
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
21
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
22
21
  var _default = exports.default = VxeTableExport;