vxe-table 3.17.9 → 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 (166) hide show
  1. package/es/components.js +1 -1
  2. package/es/grid/src/grid.js +6 -6
  3. package/es/index.css +1 -1
  4. package/es/index.min.css +1 -1
  5. package/es/locale/lang/ar-EG.js +3 -1
  6. package/es/locale/lang/de-DE.js +3 -1
  7. package/es/locale/lang/en-US.js +3 -1
  8. package/es/locale/lang/es-ES.js +3 -1
  9. package/es/locale/lang/fr-FR.js +3 -1
  10. package/es/locale/lang/hu-HU.js +3 -1
  11. package/es/locale/lang/hy-AM.js +3 -1
  12. package/es/locale/lang/id-ID.js +3 -1
  13. package/es/locale/lang/it-IT.js +3 -1
  14. package/es/locale/lang/ja-JP.js +3 -1
  15. package/es/locale/lang/ko-KR.js +3 -1
  16. package/es/locale/lang/ms-MY.js +3 -1
  17. package/es/locale/lang/nb-NO.js +3 -1
  18. package/es/locale/lang/pt-BR.js +3 -1
  19. package/es/locale/lang/ru-RU.js +3 -1
  20. package/es/locale/lang/th-TH.js +3 -1
  21. package/es/locale/lang/ug-CN.js +3 -1
  22. package/es/locale/lang/uk-UA.js +3 -1
  23. package/es/locale/lang/uz-UZ.js +3 -1
  24. package/es/locale/lang/vi-VN.js +3 -1
  25. package/es/locale/lang/zh-CHT.js +3 -1
  26. package/es/locale/lang/zh-CN.js +3 -1
  27. package/es/style.css +1 -1
  28. package/es/style.min.css +1 -1
  29. package/es/table/src/body.js +3 -3
  30. package/es/table/src/footer.js +1 -1
  31. package/es/table/src/header.js +2 -2
  32. package/es/table/src/methods.js +49 -21
  33. package/es/table/style.css +3 -3
  34. package/es/table/style.min.css +1 -1
  35. package/es/ui/index.js +1 -1
  36. package/es/ui/src/log.js +1 -1
  37. package/es/vxe-table/style.css +3 -3
  38. package/es/vxe-table/style.min.css +1 -1
  39. package/lib/components.js +17 -18
  40. package/lib/components.min.js +1 -1
  41. package/lib/grid/src/grid.js +6 -27
  42. package/lib/grid/src/grid.min.js +1 -1
  43. package/lib/index.css +1 -1
  44. package/lib/index.min.css +1 -1
  45. package/lib/index.umd.js +72 -71
  46. package/lib/index.umd.min.js +1 -1
  47. package/lib/locale/lang/ar-EG.js +3 -1
  48. package/lib/locale/lang/ar-EG.min.js +1 -1
  49. package/lib/locale/lang/ar-EG.umd.js +3 -1
  50. package/lib/locale/lang/de-DE.js +3 -1
  51. package/lib/locale/lang/de-DE.min.js +1 -1
  52. package/lib/locale/lang/de-DE.umd.js +3 -1
  53. package/lib/locale/lang/en-US.js +3 -1
  54. package/lib/locale/lang/en-US.min.js +1 -1
  55. package/lib/locale/lang/en-US.umd.js +3 -1
  56. package/lib/locale/lang/es-ES.js +3 -1
  57. package/lib/locale/lang/es-ES.min.js +1 -1
  58. package/lib/locale/lang/es-ES.umd.js +3 -1
  59. package/lib/locale/lang/fr-FR.js +3 -1
  60. package/lib/locale/lang/fr-FR.min.js +1 -1
  61. package/lib/locale/lang/fr-FR.umd.js +3 -1
  62. package/lib/locale/lang/hu-HU.js +3 -1
  63. package/lib/locale/lang/hu-HU.min.js +1 -1
  64. package/lib/locale/lang/hu-HU.umd.js +3 -1
  65. package/lib/locale/lang/hy-AM.js +3 -1
  66. package/lib/locale/lang/hy-AM.min.js +1 -1
  67. package/lib/locale/lang/hy-AM.umd.js +3 -1
  68. package/lib/locale/lang/id-ID.js +3 -1
  69. package/lib/locale/lang/id-ID.min.js +1 -1
  70. package/lib/locale/lang/id-ID.umd.js +3 -1
  71. package/lib/locale/lang/it-IT.js +3 -1
  72. package/lib/locale/lang/it-IT.min.js +1 -1
  73. package/lib/locale/lang/it-IT.umd.js +3 -1
  74. package/lib/locale/lang/ja-JP.js +3 -1
  75. package/lib/locale/lang/ja-JP.min.js +1 -1
  76. package/lib/locale/lang/ja-JP.umd.js +3 -1
  77. package/lib/locale/lang/ko-KR.js +3 -1
  78. package/lib/locale/lang/ko-KR.min.js +1 -1
  79. package/lib/locale/lang/ko-KR.umd.js +3 -1
  80. package/lib/locale/lang/ms-MY.js +3 -1
  81. package/lib/locale/lang/ms-MY.min.js +1 -1
  82. package/lib/locale/lang/ms-MY.umd.js +3 -1
  83. package/lib/locale/lang/nb-NO.js +3 -1
  84. package/lib/locale/lang/nb-NO.min.js +1 -1
  85. package/lib/locale/lang/nb-NO.umd.js +3 -1
  86. package/lib/locale/lang/pt-BR.js +3 -1
  87. package/lib/locale/lang/pt-BR.min.js +1 -1
  88. package/lib/locale/lang/pt-BR.umd.js +3 -1
  89. package/lib/locale/lang/ru-RU.js +3 -1
  90. package/lib/locale/lang/ru-RU.min.js +1 -1
  91. package/lib/locale/lang/ru-RU.umd.js +3 -1
  92. package/lib/locale/lang/th-TH.js +3 -1
  93. package/lib/locale/lang/th-TH.min.js +1 -1
  94. package/lib/locale/lang/th-TH.umd.js +3 -1
  95. package/lib/locale/lang/ug-CN.js +3 -1
  96. package/lib/locale/lang/ug-CN.min.js +1 -1
  97. package/lib/locale/lang/ug-CN.umd.js +3 -1
  98. package/lib/locale/lang/uk-UA.js +3 -1
  99. package/lib/locale/lang/uk-UA.min.js +1 -1
  100. package/lib/locale/lang/uk-UA.umd.js +3 -1
  101. package/lib/locale/lang/uz-UZ.js +3 -1
  102. package/lib/locale/lang/uz-UZ.min.js +1 -1
  103. package/lib/locale/lang/uz-UZ.umd.js +3 -1
  104. package/lib/locale/lang/vi-VN.js +3 -1
  105. package/lib/locale/lang/vi-VN.min.js +1 -1
  106. package/lib/locale/lang/vi-VN.umd.js +3 -1
  107. package/lib/locale/lang/zh-CHT.js +3 -1
  108. package/lib/locale/lang/zh-CHT.min.js +1 -1
  109. package/lib/locale/lang/zh-CHT.umd.js +3 -1
  110. package/lib/locale/lang/zh-CN.js +3 -1
  111. package/lib/locale/lang/zh-CN.min.js +1 -1
  112. package/lib/locale/lang/zh-CN.umd.js +3 -1
  113. package/lib/style.css +1 -1
  114. package/lib/style.min.css +1 -1
  115. package/lib/table/src/body.js +3 -2
  116. package/lib/table/src/body.min.js +1 -1
  117. package/lib/table/src/footer.js +1 -1
  118. package/lib/table/src/footer.min.js +1 -1
  119. package/lib/table/src/header.js +3 -2
  120. package/lib/table/src/header.min.js +1 -1
  121. package/lib/table/src/methods.js +49 -30
  122. package/lib/table/src/methods.min.js +1 -1
  123. package/lib/table/style/style.css +3 -3
  124. package/lib/table/style/style.min.css +1 -1
  125. package/lib/ui/index.js +1 -1
  126. package/lib/ui/index.min.js +1 -1
  127. package/lib/ui/src/log.js +1 -1
  128. package/lib/ui/src/log.min.js +1 -1
  129. package/lib/vxe-table/style/style.css +3 -3
  130. package/lib/vxe-table/style/style.min.css +1 -1
  131. package/package.json +1 -1
  132. package/packages/components.ts +1 -1
  133. package/packages/grid/src/grid.ts +26 -25
  134. package/packages/locale/lang/ar-EG.ts +3 -1
  135. package/packages/locale/lang/de-DE.ts +3 -1
  136. package/packages/locale/lang/en-US.ts +3 -1
  137. package/packages/locale/lang/es-ES.ts +3 -1
  138. package/packages/locale/lang/fr-FR.ts +3 -1
  139. package/packages/locale/lang/hu-HU.ts +3 -1
  140. package/packages/locale/lang/hy-AM.ts +3 -1
  141. package/packages/locale/lang/id-ID.ts +3 -1
  142. package/packages/locale/lang/it-IT.ts +3 -1
  143. package/packages/locale/lang/ja-JP.ts +3 -1
  144. package/packages/locale/lang/ko-KR.ts +3 -1
  145. package/packages/locale/lang/ms-MY.ts +3 -1
  146. package/packages/locale/lang/nb-NO.ts +3 -1
  147. package/packages/locale/lang/pt-BR.ts +3 -1
  148. package/packages/locale/lang/ru-RU.ts +3 -1
  149. package/packages/locale/lang/th-TH.ts +3 -1
  150. package/packages/locale/lang/ug-CN.ts +3 -1
  151. package/packages/locale/lang/uk-UA.ts +3 -1
  152. package/packages/locale/lang/uz-UZ.ts +3 -1
  153. package/packages/locale/lang/vi-VN.ts +3 -1
  154. package/packages/locale/lang/zh-CHT.ts +3 -1
  155. package/packages/locale/lang/zh-CN.ts +3 -1
  156. package/packages/table/src/body.ts +3 -3
  157. package/packages/table/src/footer.ts +1 -1
  158. package/packages/table/src/header.ts +2 -2
  159. package/packages/table/src/methods.ts +53 -21
  160. package/styles/components/table.scss +7 -3
  161. /package/es/{iconfont.1755066349013.ttf → iconfont.1755178463571.ttf} +0 -0
  162. /package/es/{iconfont.1755066349013.woff → iconfont.1755178463571.woff} +0 -0
  163. /package/es/{iconfont.1755066349013.woff2 → iconfont.1755178463571.woff2} +0 -0
  164. /package/lib/{iconfont.1755066349013.ttf → iconfont.1755178463571.ttf} +0 -0
  165. /package/lib/{iconfont.1755066349013.woff → iconfont.1755178463571.woff} +0 -0
  166. /package/lib/{iconfont.1755066349013.woff2 → iconfont.1755178463571.woff2} +0 -0
@@ -304,8 +304,11 @@ function cacheColumnMap ($xeTable: VxeTableConstructor & VxeTablePrivateMethods)
304
304
  }
305
305
  fullColFieldData[field] = rest
306
306
  } else {
307
- if ((storage && !type) || (columnOpts.drag && (isCrossDrag || isSelfToChildDrag))) {
308
- errLog('vxe.error.reqProp', [`${column.getTitle() || type || ''} -> column.field=?`])
307
+ if (storage && !type) {
308
+ errLog('vxe.error.reqSupportProp', ['storage', `${column.getTitle() || type || ''} -> field=?`])
309
+ }
310
+ if (columnOpts.drag && (isCrossDrag || isSelfToChildDrag)) {
311
+ errLog('vxe.error.reqSupportProp', ['column-drag-config.isCrossDrag | column-drag-config.isSelfToChildDrag', `${column.getTitle() || type || ''} -> field=?`])
309
312
  }
310
313
  }
311
314
  if (!hasFixed && fixed) {
@@ -7765,15 +7768,23 @@ const Methods = {
7765
7768
  * @param {Row} row 行对象
7766
7769
  */
7767
7770
  setCurrentRow (row: any) {
7768
- const { $el, rowOpts } = this
7771
+ const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
7772
+ const internalData = $xeTable as unknown as TableInternalData
7773
+
7774
+ const $xeGanttView = internalData.xeGanttView
7775
+ const el = $xeTable.$refs.refElem as HTMLDivElement
7776
+ const rowOpts = $xeTable.computeRowOpts
7769
7777
  this.clearCurrentRow()
7770
7778
  // this.clearCurrentColumn()
7771
7779
  this.currentRow = row
7772
7780
  if (rowOpts.isCurrent || this.highlightCurrentRow) {
7773
- if ($el) {
7774
- XEUtils.arrayEach($el.querySelectorAll(`[rowid="${getRowid(this, row)}"]`), elem => addClass(elem, 'row--current'))
7781
+ if (el) {
7782
+ XEUtils.arrayEach(el.querySelectorAll(`[rowid="${getRowid($xeTable, row)}"]`), elem => addClass(elem, 'row--current'))
7775
7783
  }
7776
7784
  }
7785
+ if ($xeGanttView) {
7786
+ $xeGanttView.handleUpdateCurrentRow(row)
7787
+ }
7777
7788
  return this.$nextTick()
7778
7789
  },
7779
7790
  isCheckedByRadioRow (row: any) {
@@ -7824,13 +7835,21 @@ const Methods = {
7824
7835
  * 用于当前行,手动清空当前高亮的状态
7825
7836
  */
7826
7837
  clearCurrentRow () {
7827
- const { $el } = this
7828
- this.currentRow = null
7829
- this.hoverRow = null
7830
- if ($el) {
7831
- XEUtils.arrayEach($el.querySelectorAll('.row--current'), elem => removeClass(elem, 'row--current'))
7838
+ const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
7839
+ const reactData = $xeTable as unknown as TableReactData
7840
+ const internalData = $xeTable as unknown as TableInternalData
7841
+
7842
+ const $xeGanttView = internalData.xeGanttView
7843
+ const el = $xeTable.$refs.refElem as HTMLDivElement
7844
+ reactData.currentRow = null
7845
+ internalData.hoverRow = null
7846
+ if (el) {
7847
+ XEUtils.arrayEach(el.querySelectorAll('.row--current'), elem => removeClass(elem, 'row--current'))
7832
7848
  }
7833
- return this.$nextTick()
7849
+ if ($xeGanttView) {
7850
+ $xeGanttView.handleUpdateCurrentRow()
7851
+ }
7852
+ return $xeTable.$nextTick()
7834
7853
  },
7835
7854
  /**
7836
7855
  * 用于单选行,手动清空用户的选择
@@ -7891,20 +7910,33 @@ const Methods = {
7891
7910
  this.setHoverRow(row)
7892
7911
  },
7893
7912
  setHoverRow (row: any) {
7894
- const { $el } = this
7895
- const rowid = getRowid(this, row)
7896
- this.clearHoverRow()
7897
- if ($el) {
7898
- XEUtils.arrayEach($el.querySelectorAll(`.vxe-body--row[rowid="${rowid}"]`), elem => addClass(elem, 'row--hover'))
7913
+ const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
7914
+ const internalData = $xeTable as unknown as TableInternalData
7915
+
7916
+ const $xeGanttView = internalData.xeGanttView
7917
+ const el = $xeTable.$refs.refElem as HTMLDivElement
7918
+ $xeTable.clearHoverRow()
7919
+ if (el) {
7920
+ XEUtils.arrayEach(el.querySelectorAll(`.vxe-body--row[rowid="${getRowid($xeTable, row)}"]`), elem => addClass(elem, 'row--hover'))
7921
+ }
7922
+ internalData.hoverRow = row
7923
+ if ($xeGanttView) {
7924
+ $xeGanttView.handleUpdateHoverRow(row)
7899
7925
  }
7900
- this.hoverRow = row
7901
7926
  },
7902
7927
  clearHoverRow () {
7903
- const { $el } = this
7904
- if ($el) {
7905
- XEUtils.arrayEach($el.querySelectorAll('.vxe-body--row.row--hover'), elem => removeClass(elem, 'row--hover'))
7928
+ const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
7929
+ const internalData = $xeTable as unknown as TableInternalData
7930
+
7931
+ const $xeGanttView = internalData.xeGanttView
7932
+ const el = $xeTable.$refs.refElem as HTMLDivElement
7933
+ if (el) {
7934
+ XEUtils.arrayEach(el.querySelectorAll('.vxe-body--row.row--hover'), elem => removeClass(elem, 'row--hover'))
7935
+ }
7936
+ internalData.hoverRow = null
7937
+ if ($xeGanttView) {
7938
+ $xeGanttView.handleUpdateHoverRow()
7906
7939
  }
7907
- this.hoverRow = null
7908
7940
  },
7909
7941
  triggerHeaderCellClickEvent (evnt: MouseEvent, params: VxeTableDefines.CellRenderHeaderParams) {
7910
7942
  const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
@@ -1223,9 +1223,6 @@ $btnThemeList: (
1223
1223
  // }
1224
1224
 
1225
1225
  /*边框*/
1226
- .vxe-table--footer-wrapper {
1227
- border-top: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
1228
- }
1229
1226
  &.border--default,
1230
1227
  &.border--full,
1231
1228
  &.border--outer,
@@ -1323,6 +1320,13 @@ $btnThemeList: (
1323
1320
  }
1324
1321
  }
1325
1322
  &.border--default,
1323
+ &.border--full,
1324
+ &.border--inner {
1325
+ .vxe-table--footer-wrapper {
1326
+ border-top: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
1327
+ }
1328
+ }
1329
+ &.border--default,
1326
1330
  &.border--full {
1327
1331
  .vxe-table--scroll-y-top-corner {
1328
1332
  &::before {