vxe-table 3.17.10 → 3.18.0-beta.0

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 (150) hide show
  1. package/es/grid/src/grid.js +1 -2
  2. package/es/index.css +1 -1
  3. package/es/index.min.css +1 -1
  4. package/es/locale/lang/ar-EG.js +3 -1
  5. package/es/locale/lang/de-DE.js +3 -1
  6. package/es/locale/lang/en-US.js +3 -1
  7. package/es/locale/lang/es-ES.js +3 -1
  8. package/es/locale/lang/fr-FR.js +3 -1
  9. package/es/locale/lang/hu-HU.js +3 -1
  10. package/es/locale/lang/hy-AM.js +3 -1
  11. package/es/locale/lang/id-ID.js +3 -1
  12. package/es/locale/lang/it-IT.js +3 -1
  13. package/es/locale/lang/ja-JP.js +3 -1
  14. package/es/locale/lang/ko-KR.js +3 -1
  15. package/es/locale/lang/ms-MY.js +3 -1
  16. package/es/locale/lang/nb-NO.js +3 -1
  17. package/es/locale/lang/pt-BR.js +3 -1
  18. package/es/locale/lang/ru-RU.js +3 -1
  19. package/es/locale/lang/th-TH.js +3 -1
  20. package/es/locale/lang/ug-CN.js +3 -1
  21. package/es/locale/lang/uk-UA.js +3 -1
  22. package/es/locale/lang/uz-UZ.js +3 -1
  23. package/es/locale/lang/vi-VN.js +3 -1
  24. package/es/locale/lang/zh-CHT.js +3 -1
  25. package/es/locale/lang/zh-CN.js +3 -1
  26. package/es/style.css +1 -1
  27. package/es/style.min.css +1 -1
  28. package/es/table/src/methods.js +49 -21
  29. package/es/table/style.css +3 -3
  30. package/es/table/style.min.css +1 -1
  31. package/es/ui/index.js +1 -1
  32. package/es/ui/src/log.js +1 -1
  33. package/es/vxe-table/style.css +3 -3
  34. package/es/vxe-table/style.min.css +1 -1
  35. package/lib/grid/src/grid.js +1 -2
  36. package/lib/grid/src/grid.min.js +1 -1
  37. package/lib/index.css +1 -1
  38. package/lib/index.min.css +1 -1
  39. package/lib/index.umd.js +61 -41
  40. package/lib/index.umd.min.js +1 -1
  41. package/lib/locale/lang/ar-EG.js +3 -1
  42. package/lib/locale/lang/ar-EG.min.js +1 -1
  43. package/lib/locale/lang/ar-EG.umd.js +3 -1
  44. package/lib/locale/lang/de-DE.js +3 -1
  45. package/lib/locale/lang/de-DE.min.js +1 -1
  46. package/lib/locale/lang/de-DE.umd.js +3 -1
  47. package/lib/locale/lang/en-US.js +3 -1
  48. package/lib/locale/lang/en-US.min.js +1 -1
  49. package/lib/locale/lang/en-US.umd.js +3 -1
  50. package/lib/locale/lang/es-ES.js +3 -1
  51. package/lib/locale/lang/es-ES.min.js +1 -1
  52. package/lib/locale/lang/es-ES.umd.js +3 -1
  53. package/lib/locale/lang/fr-FR.js +3 -1
  54. package/lib/locale/lang/fr-FR.min.js +1 -1
  55. package/lib/locale/lang/fr-FR.umd.js +3 -1
  56. package/lib/locale/lang/hu-HU.js +3 -1
  57. package/lib/locale/lang/hu-HU.min.js +1 -1
  58. package/lib/locale/lang/hu-HU.umd.js +3 -1
  59. package/lib/locale/lang/hy-AM.js +3 -1
  60. package/lib/locale/lang/hy-AM.min.js +1 -1
  61. package/lib/locale/lang/hy-AM.umd.js +3 -1
  62. package/lib/locale/lang/id-ID.js +3 -1
  63. package/lib/locale/lang/id-ID.min.js +1 -1
  64. package/lib/locale/lang/id-ID.umd.js +3 -1
  65. package/lib/locale/lang/it-IT.js +3 -1
  66. package/lib/locale/lang/it-IT.min.js +1 -1
  67. package/lib/locale/lang/it-IT.umd.js +3 -1
  68. package/lib/locale/lang/ja-JP.js +3 -1
  69. package/lib/locale/lang/ja-JP.min.js +1 -1
  70. package/lib/locale/lang/ja-JP.umd.js +3 -1
  71. package/lib/locale/lang/ko-KR.js +3 -1
  72. package/lib/locale/lang/ko-KR.min.js +1 -1
  73. package/lib/locale/lang/ko-KR.umd.js +3 -1
  74. package/lib/locale/lang/ms-MY.js +3 -1
  75. package/lib/locale/lang/ms-MY.min.js +1 -1
  76. package/lib/locale/lang/ms-MY.umd.js +3 -1
  77. package/lib/locale/lang/nb-NO.js +3 -1
  78. package/lib/locale/lang/nb-NO.min.js +1 -1
  79. package/lib/locale/lang/nb-NO.umd.js +3 -1
  80. package/lib/locale/lang/pt-BR.js +3 -1
  81. package/lib/locale/lang/pt-BR.min.js +1 -1
  82. package/lib/locale/lang/pt-BR.umd.js +3 -1
  83. package/lib/locale/lang/ru-RU.js +3 -1
  84. package/lib/locale/lang/ru-RU.min.js +1 -1
  85. package/lib/locale/lang/ru-RU.umd.js +3 -1
  86. package/lib/locale/lang/th-TH.js +3 -1
  87. package/lib/locale/lang/th-TH.min.js +1 -1
  88. package/lib/locale/lang/th-TH.umd.js +3 -1
  89. package/lib/locale/lang/ug-CN.js +3 -1
  90. package/lib/locale/lang/ug-CN.min.js +1 -1
  91. package/lib/locale/lang/ug-CN.umd.js +3 -1
  92. package/lib/locale/lang/uk-UA.js +3 -1
  93. package/lib/locale/lang/uk-UA.min.js +1 -1
  94. package/lib/locale/lang/uk-UA.umd.js +3 -1
  95. package/lib/locale/lang/uz-UZ.js +3 -1
  96. package/lib/locale/lang/uz-UZ.min.js +1 -1
  97. package/lib/locale/lang/uz-UZ.umd.js +3 -1
  98. package/lib/locale/lang/vi-VN.js +3 -1
  99. package/lib/locale/lang/vi-VN.min.js +1 -1
  100. package/lib/locale/lang/vi-VN.umd.js +3 -1
  101. package/lib/locale/lang/zh-CHT.js +3 -1
  102. package/lib/locale/lang/zh-CHT.min.js +1 -1
  103. package/lib/locale/lang/zh-CHT.umd.js +3 -1
  104. package/lib/locale/lang/zh-CN.js +3 -1
  105. package/lib/locale/lang/zh-CN.min.js +1 -1
  106. package/lib/locale/lang/zh-CN.umd.js +3 -1
  107. package/lib/style.css +1 -1
  108. package/lib/style.min.css +1 -1
  109. package/lib/table/src/methods.js +49 -30
  110. package/lib/table/src/methods.min.js +1 -1
  111. package/lib/table/style/style.css +3 -3
  112. package/lib/table/style/style.min.css +1 -1
  113. package/lib/ui/index.js +1 -1
  114. package/lib/ui/index.min.js +1 -1
  115. package/lib/ui/src/log.js +1 -1
  116. package/lib/ui/src/log.min.js +1 -1
  117. package/lib/vxe-table/style/style.css +3 -3
  118. package/lib/vxe-table/style/style.min.css +1 -1
  119. package/package.json +1 -1
  120. package/packages/grid/src/grid.ts +1 -2
  121. package/packages/locale/lang/ar-EG.ts +3 -1
  122. package/packages/locale/lang/de-DE.ts +3 -1
  123. package/packages/locale/lang/en-US.ts +3 -1
  124. package/packages/locale/lang/es-ES.ts +3 -1
  125. package/packages/locale/lang/fr-FR.ts +3 -1
  126. package/packages/locale/lang/hu-HU.ts +3 -1
  127. package/packages/locale/lang/hy-AM.ts +3 -1
  128. package/packages/locale/lang/id-ID.ts +3 -1
  129. package/packages/locale/lang/it-IT.ts +3 -1
  130. package/packages/locale/lang/ja-JP.ts +3 -1
  131. package/packages/locale/lang/ko-KR.ts +3 -1
  132. package/packages/locale/lang/ms-MY.ts +3 -1
  133. package/packages/locale/lang/nb-NO.ts +3 -1
  134. package/packages/locale/lang/pt-BR.ts +3 -1
  135. package/packages/locale/lang/ru-RU.ts +3 -1
  136. package/packages/locale/lang/th-TH.ts +3 -1
  137. package/packages/locale/lang/ug-CN.ts +3 -1
  138. package/packages/locale/lang/uk-UA.ts +3 -1
  139. package/packages/locale/lang/uz-UZ.ts +3 -1
  140. package/packages/locale/lang/vi-VN.ts +3 -1
  141. package/packages/locale/lang/zh-CHT.ts +3 -1
  142. package/packages/locale/lang/zh-CN.ts +3 -1
  143. package/packages/table/src/methods.ts +53 -21
  144. package/styles/components/table.scss +7 -3
  145. /package/es/{iconfont.1755133667514.ttf → iconfont.1755178463571.ttf} +0 -0
  146. /package/es/{iconfont.1755133667514.woff → iconfont.1755178463571.woff} +0 -0
  147. /package/es/{iconfont.1755133667514.woff2 → iconfont.1755178463571.woff2} +0 -0
  148. /package/lib/{iconfont.1755133667514.ttf → iconfont.1755178463571.ttf} +0 -0
  149. /package/lib/{iconfont.1755133667514.woff → iconfont.1755178463571.woff} +0 -0
  150. /package/lib/{iconfont.1755133667514.woff2 → iconfont.1755178463571.woff2} +0 -0
@@ -378,8 +378,11 @@ function cacheColumnMap($xeTable) {
378
378
  }
379
379
  fullColFieldData[field] = rest;
380
380
  } else {
381
- if (storage && !type || columnOpts.drag && (isCrossDrag || isSelfToChildDrag)) {
382
- (0, _log.errLog)('vxe.error.reqProp', [`${column.getTitle() || type || ''} -> column.field=?`]);
381
+ if (storage && !type) {
382
+ (0, _log.errLog)('vxe.error.reqSupportProp', ['storage', `${column.getTitle() || type || ''} -> field=?`]);
383
+ }
384
+ if (columnOpts.drag && (isCrossDrag || isSelfToChildDrag)) {
385
+ (0, _log.errLog)('vxe.error.reqSupportProp', ['column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag', `${column.getTitle() || type || ''} -> field=?`]);
383
386
  }
384
387
  }
385
388
  if (!hasFixed && fixed) {
@@ -8835,18 +8838,22 @@ const Methods = {
8835
8838
  * @param {Row} row 行对象
8836
8839
  */
8837
8840
  setCurrentRow(row) {
8838
- const {
8839
- $el,
8840
- rowOpts
8841
- } = this;
8841
+ const $xeTable = this;
8842
+ const internalData = $xeTable;
8843
+ const $xeGanttView = internalData.xeGanttView;
8844
+ const el = $xeTable.$refs.refElem;
8845
+ const rowOpts = $xeTable.computeRowOpts;
8842
8846
  this.clearCurrentRow();
8843
8847
  // this.clearCurrentColumn()
8844
8848
  this.currentRow = row;
8845
8849
  if (rowOpts.isCurrent || this.highlightCurrentRow) {
8846
- if ($el) {
8847
- _xeUtils.default.arrayEach($el.querySelectorAll(`[rowid="${(0, _util.getRowid)(this, row)}"]`), elem => (0, _dom.addClass)(elem, 'row--current'));
8850
+ if (el) {
8851
+ _xeUtils.default.arrayEach(el.querySelectorAll(`[rowid="${(0, _util.getRowid)($xeTable, row)}"]`), elem => (0, _dom.addClass)(elem, 'row--current'));
8848
8852
  }
8849
8853
  }
8854
+ if ($xeGanttView) {
8855
+ $xeGanttView.handleUpdateCurrentRow(row);
8856
+ }
8850
8857
  return this.$nextTick();
8851
8858
  },
8852
8859
  isCheckedByRadioRow(row) {
@@ -8899,15 +8906,20 @@ const Methods = {
8899
8906
  * 用于当前行,手动清空当前高亮的状态
8900
8907
  */
8901
8908
  clearCurrentRow() {
8902
- const {
8903
- $el
8904
- } = this;
8905
- this.currentRow = null;
8906
- this.hoverRow = null;
8907
- if ($el) {
8908
- _xeUtils.default.arrayEach($el.querySelectorAll('.row--current'), elem => (0, _dom.removeClass)(elem, 'row--current'));
8909
+ const $xeTable = this;
8910
+ const reactData = $xeTable;
8911
+ const internalData = $xeTable;
8912
+ const $xeGanttView = internalData.xeGanttView;
8913
+ const el = $xeTable.$refs.refElem;
8914
+ reactData.currentRow = null;
8915
+ internalData.hoverRow = null;
8916
+ if (el) {
8917
+ _xeUtils.default.arrayEach(el.querySelectorAll('.row--current'), elem => (0, _dom.removeClass)(elem, 'row--current'));
8909
8918
  }
8910
- return this.$nextTick();
8919
+ if ($xeGanttView) {
8920
+ $xeGanttView.handleUpdateCurrentRow();
8921
+ }
8922
+ return $xeTable.$nextTick();
8911
8923
  },
8912
8924
  /**
8913
8925
  * 用于单选行,手动清空用户的选择
@@ -8978,24 +8990,31 @@ const Methods = {
8978
8990
  this.setHoverRow(row);
8979
8991
  },
8980
8992
  setHoverRow(row) {
8981
- const {
8982
- $el
8983
- } = this;
8984
- const rowid = (0, _util.getRowid)(this, row);
8985
- this.clearHoverRow();
8986
- if ($el) {
8987
- _xeUtils.default.arrayEach($el.querySelectorAll(`.vxe-body--row[rowid="${rowid}"]`), elem => (0, _dom.addClass)(elem, 'row--hover'));
8993
+ const $xeTable = this;
8994
+ const internalData = $xeTable;
8995
+ const $xeGanttView = internalData.xeGanttView;
8996
+ const el = $xeTable.$refs.refElem;
8997
+ $xeTable.clearHoverRow();
8998
+ if (el) {
8999
+ _xeUtils.default.arrayEach(el.querySelectorAll(`.vxe-body--row[rowid="${(0, _util.getRowid)($xeTable, row)}"]`), elem => (0, _dom.addClass)(elem, 'row--hover'));
9000
+ }
9001
+ internalData.hoverRow = row;
9002
+ if ($xeGanttView) {
9003
+ $xeGanttView.handleUpdateHoverRow(row);
8988
9004
  }
8989
- this.hoverRow = row;
8990
9005
  },
8991
9006
  clearHoverRow() {
8992
- const {
8993
- $el
8994
- } = this;
8995
- if ($el) {
8996
- _xeUtils.default.arrayEach($el.querySelectorAll('.vxe-body--row.row--hover'), elem => (0, _dom.removeClass)(elem, 'row--hover'));
9007
+ const $xeTable = this;
9008
+ const internalData = $xeTable;
9009
+ const $xeGanttView = internalData.xeGanttView;
9010
+ const el = $xeTable.$refs.refElem;
9011
+ if (el) {
9012
+ _xeUtils.default.arrayEach(el.querySelectorAll('.vxe-body--row.row--hover'), elem => (0, _dom.removeClass)(elem, 'row--hover'));
9013
+ }
9014
+ internalData.hoverRow = null;
9015
+ if ($xeGanttView) {
9016
+ $xeGanttView.handleUpdateHoverRow();
8997
9017
  }
8998
- this.hoverRow = null;
8999
9018
  },
9000
9019
  triggerHeaderCellClickEvent(evnt, params) {
9001
9020
  const $xeTable = this;