vxe-table 3.9.0-rc.9 → 3.9.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 (222) hide show
  1. package/README.md +1 -1
  2. package/es/grid/src/grid.js +120 -66
  3. package/es/grid/style.css +0 -1
  4. package/es/grid/style.min.css +1 -1
  5. package/es/index.esm.js +22 -3
  6. package/es/locale/lang/en-US.js +2 -1
  7. package/es/locale/lang/es-ES.js +2 -1
  8. package/es/locale/lang/hu-HU.js +2 -1
  9. package/es/locale/lang/ja-JP.js +2 -1
  10. package/es/locale/lang/ko-KR.js +2 -1
  11. package/es/locale/lang/pt-BR.js +2 -1
  12. package/es/locale/lang/ru-RU.js +2 -1
  13. package/es/locale/lang/uk-UA.js +2 -1
  14. package/es/locale/lang/vi-VN.js +2 -1
  15. package/es/locale/lang/zh-CHT.js +2 -1
  16. package/es/locale/lang/zh-CN.js +2 -1
  17. package/es/style.css +1 -1
  18. package/es/style.min.css +1 -1
  19. package/es/table/module/custom/panel.js +183 -173
  20. package/es/table/module/edit/mixin.js +33 -24
  21. package/es/table/module/export/export-panel.js +32 -4
  22. package/es/table/module/export/import-panel.js +25 -6
  23. package/es/table/module/export/mixin.js +11 -11
  24. package/es/table/module/menu/mixin.js +2 -2
  25. package/es/table/module/validator/mixin.js +4 -4
  26. package/es/table/render/index.js +17 -11
  27. package/es/table/src/body.js +1 -0
  28. package/es/table/src/columnInfo.js +3 -3
  29. package/es/table/src/methods.js +54 -42
  30. package/es/table/src/props.js +65 -15
  31. package/es/table/src/table.js +91 -57
  32. package/es/table/src/util.js +3 -2
  33. package/es/table/style.css +37 -48
  34. package/es/table/style.min.css +1 -1
  35. package/es/toolbar/src/toolbar.js +21 -7
  36. package/es/toolbar/style.css +0 -1
  37. package/es/toolbar/style.min.css +1 -1
  38. package/es/ui/index.js +5 -3
  39. package/es/ui/src/log.js +1 -1
  40. package/es/vxe-grid/style.css +0 -1
  41. package/es/vxe-grid/style.min.css +1 -1
  42. package/es/vxe-table/style.css +37 -48
  43. package/es/vxe-table/style.min.css +1 -1
  44. package/es/vxe-toolbar/style.css +0 -1
  45. package/es/vxe-toolbar/style.min.css +1 -1
  46. package/lib/colgroup/index.js +3 -3
  47. package/lib/colgroup/index.min.js +1 -1
  48. package/lib/column/index.js +3 -3
  49. package/lib/column/index.min.js +1 -1
  50. package/lib/components.js +9 -11
  51. package/lib/components.min.js +1 -1
  52. package/lib/grid/index.js +3 -3
  53. package/lib/grid/index.min.js +1 -1
  54. package/lib/grid/src/grid.js +581 -491
  55. package/lib/grid/src/grid.min.js +1 -1
  56. package/lib/grid/style/style.css +0 -1
  57. package/lib/grid/style/style.min.css +1 -1
  58. package/lib/index.common.js +3 -4
  59. package/lib/index.umd.js +9174 -17260
  60. package/lib/index.umd.min.js +1 -1
  61. package/lib/locale/lang/en-US.js +2 -1
  62. package/lib/locale/lang/en-US.min.js +1 -1
  63. package/lib/locale/lang/en-US.umd.js +2 -1
  64. package/lib/locale/lang/es-ES.js +2 -1
  65. package/lib/locale/lang/es-ES.min.js +1 -1
  66. package/lib/locale/lang/es-ES.umd.js +2 -1
  67. package/lib/locale/lang/hu-HU.js +2 -1
  68. package/lib/locale/lang/hu-HU.min.js +1 -1
  69. package/lib/locale/lang/hu-HU.umd.js +2 -1
  70. package/lib/locale/lang/ja-JP.js +2 -1
  71. package/lib/locale/lang/ja-JP.min.js +1 -1
  72. package/lib/locale/lang/ja-JP.umd.js +2 -1
  73. package/lib/locale/lang/ko-KR.js +2 -1
  74. package/lib/locale/lang/ko-KR.min.js +1 -1
  75. package/lib/locale/lang/ko-KR.umd.js +2 -1
  76. package/lib/locale/lang/pt-BR.js +2 -1
  77. package/lib/locale/lang/pt-BR.min.js +1 -1
  78. package/lib/locale/lang/pt-BR.umd.js +2 -1
  79. package/lib/locale/lang/ru-RU.js +2 -1
  80. package/lib/locale/lang/ru-RU.min.js +1 -1
  81. package/lib/locale/lang/ru-RU.umd.js +2 -1
  82. package/lib/locale/lang/uk-UA.js +2 -1
  83. package/lib/locale/lang/uk-UA.min.js +1 -1
  84. package/lib/locale/lang/uk-UA.umd.js +2 -1
  85. package/lib/locale/lang/vi-VN.js +2 -1
  86. package/lib/locale/lang/vi-VN.min.js +1 -1
  87. package/lib/locale/lang/zh-CHT.js +2 -1
  88. package/lib/locale/lang/zh-CHT.min.js +1 -1
  89. package/lib/locale/lang/zh-CHT.umd.js +2 -1
  90. package/lib/locale/lang/zh-CN.js +2 -1
  91. package/lib/locale/lang/zh-CN.min.js +1 -1
  92. package/lib/locale/lang/zh-CN.umd.js +2 -1
  93. package/lib/style.css +1 -1
  94. package/lib/style.min.css +1 -1
  95. package/lib/table/index.js +4 -4
  96. package/lib/table/index.min.js +1 -1
  97. package/lib/table/module/custom/mixin.js +53 -44
  98. package/lib/table/module/custom/mixin.min.js +1 -1
  99. package/lib/table/module/custom/panel.js +310 -239
  100. package/lib/table/module/custom/panel.min.js +1 -1
  101. package/lib/table/module/edit/mixin.js +436 -371
  102. package/lib/table/module/edit/mixin.min.js +1 -1
  103. package/lib/table/module/export/export-panel.js +136 -106
  104. package/lib/table/module/export/export-panel.min.js +1 -1
  105. package/lib/table/module/export/import-panel.js +75 -54
  106. package/lib/table/module/export/import-panel.min.js +1 -1
  107. package/lib/table/module/export/mixin.js +592 -597
  108. package/lib/table/module/export/mixin.min.js +1 -1
  109. package/lib/table/module/export/util.js +6 -4
  110. package/lib/table/module/export/util.min.js +1 -1
  111. package/lib/table/module/filter/mixin.js +147 -118
  112. package/lib/table/module/filter/mixin.min.js +1 -1
  113. package/lib/table/module/filter/panel.js +86 -65
  114. package/lib/table/module/filter/panel.min.js +1 -1
  115. package/lib/table/module/keyboard/mixin.js +163 -151
  116. package/lib/table/module/keyboard/mixin.min.js +1 -1
  117. package/lib/table/module/menu/mixin.js +125 -114
  118. package/lib/table/module/menu/mixin.min.js +1 -1
  119. package/lib/table/module/menu/panel.js +36 -34
  120. package/lib/table/module/menu/panel.min.js +1 -1
  121. package/lib/table/module/validator/mixin.js +225 -214
  122. package/lib/table/module/validator/mixin.min.js +1 -1
  123. package/lib/table/render/index.js +401 -297
  124. package/lib/table/render/index.min.js +1 -1
  125. package/lib/table/src/body.js +411 -349
  126. package/lib/table/src/body.min.js +1 -1
  127. package/lib/table/src/cell.js +470 -344
  128. package/lib/table/src/cell.min.js +1 -1
  129. package/lib/table/src/column.js +10 -10
  130. package/lib/table/src/column.min.js +1 -1
  131. package/lib/table/src/columnInfo.js +46 -55
  132. package/lib/table/src/columnInfo.min.js +1 -1
  133. package/lib/table/src/footer.js +157 -132
  134. package/lib/table/src/footer.min.js +1 -1
  135. package/lib/table/src/group.js +1 -1
  136. package/lib/table/src/group.min.js +1 -1
  137. package/lib/table/src/header.js +170 -153
  138. package/lib/table/src/header.min.js +1 -1
  139. package/lib/table/src/methods.js +2758 -2478
  140. package/lib/table/src/methods.min.js +1 -1
  141. package/lib/table/src/props.js +33 -74
  142. package/lib/table/src/props.min.js +1 -1
  143. package/lib/table/src/table.js +465 -424
  144. package/lib/table/src/table.min.js +1 -1
  145. package/lib/table/src/util.js +143 -131
  146. package/lib/table/src/util.min.js +1 -1
  147. package/lib/table/style/style.css +37 -48
  148. package/lib/table/style/style.min.css +1 -1
  149. package/lib/toolbar/index.js +3 -3
  150. package/lib/toolbar/index.min.js +1 -1
  151. package/lib/toolbar/src/toolbar.js +332 -284
  152. package/lib/toolbar/src/toolbar.min.js +1 -1
  153. package/lib/toolbar/style/style.css +0 -1
  154. package/lib/toolbar/style/style.min.css +1 -1
  155. package/lib/ui/index.js +50 -41
  156. package/lib/ui/index.min.js +1 -1
  157. package/lib/ui/src/comp.js +2 -3
  158. package/lib/ui/src/comp.min.js +1 -1
  159. package/lib/ui/src/dom.js +29 -28
  160. package/lib/ui/src/dom.min.js +1 -1
  161. package/lib/ui/src/log.js +6 -4
  162. package/lib/ui/src/log.min.js +1 -1
  163. package/lib/ui/src/utils.js +7 -7
  164. package/lib/v-x-e-table/index.js +3 -4
  165. package/lib/v-x-e-table/index.min.js +1 -1
  166. package/lib/vxe-colgroup/index.js +3 -4
  167. package/lib/vxe-colgroup/index.min.js +1 -1
  168. package/lib/vxe-column/index.js +3 -4
  169. package/lib/vxe-column/index.min.js +1 -1
  170. package/lib/vxe-grid/index.js +3 -4
  171. package/lib/vxe-grid/index.min.js +1 -1
  172. package/lib/vxe-grid/style/style.css +0 -1
  173. package/lib/vxe-grid/style/style.min.css +1 -1
  174. package/lib/vxe-table/index.js +3 -4
  175. package/lib/vxe-table/index.min.js +1 -1
  176. package/lib/vxe-table/style/style.css +37 -48
  177. package/lib/vxe-table/style/style.min.css +1 -1
  178. package/lib/vxe-toolbar/index.js +3 -4
  179. package/lib/vxe-toolbar/index.min.js +1 -1
  180. package/lib/vxe-toolbar/style/style.css +0 -1
  181. package/lib/vxe-toolbar/style/style.min.css +1 -1
  182. package/lib/vxe-ui/index.js +3 -4
  183. package/lib/vxe-ui/index.min.js +1 -1
  184. package/lib/vxe-v-x-e-table/index.js +3 -4
  185. package/lib/vxe-v-x-e-table/index.min.js +1 -1
  186. package/package.json +5 -4
  187. package/packages/grid/src/grid.ts +127 -65
  188. package/packages/locale/lang/en-US.ts +2 -1
  189. package/packages/locale/lang/es-ES.ts +2 -1
  190. package/packages/locale/lang/hu-HU.ts +2 -1
  191. package/packages/locale/lang/ja-JP.ts +2 -1
  192. package/packages/locale/lang/ko-KR.ts +2 -1
  193. package/packages/locale/lang/pt-BR.ts +2 -1
  194. package/packages/locale/lang/ru-RU.ts +2 -1
  195. package/packages/locale/lang/uk-UA.ts +2 -1
  196. package/packages/locale/lang/vi-VN.ts +2 -1
  197. package/packages/locale/lang/zh-CHT.ts +2 -1
  198. package/packages/locale/lang/zh-CN.ts +2 -1
  199. package/packages/table/module/custom/panel.ts +186 -175
  200. package/packages/table/module/edit/mixin.ts +32 -23
  201. package/packages/table/module/export/export-panel.ts +36 -4
  202. package/packages/table/module/export/import-panel.ts +29 -6
  203. package/packages/table/module/export/mixin.ts +11 -11
  204. package/packages/table/module/menu/mixin.ts +2 -2
  205. package/packages/table/module/validator/mixin.ts +4 -4
  206. package/packages/table/render/index.ts +20 -11
  207. package/packages/table/src/body.ts +1 -0
  208. package/packages/table/src/columnInfo.ts +3 -3
  209. package/packages/table/src/methods.ts +53 -42
  210. package/packages/table/src/props.ts +68 -15
  211. package/packages/table/src/table.ts +99 -54
  212. package/packages/table/src/util.ts +3 -2
  213. package/packages/toolbar/src/toolbar.ts +21 -7
  214. package/packages/ui/index.ts +3 -1
  215. package/styles/components/table.scss +82 -17
  216. package/types/all.d.ts +1 -0
  217. /package/es/{iconfont.1726453742001.ttf → iconfont.1728348263835.ttf} +0 -0
  218. /package/es/{iconfont.1726453742001.woff → iconfont.1728348263835.woff} +0 -0
  219. /package/es/{iconfont.1726453742001.woff2 → iconfont.1728348263835.woff2} +0 -0
  220. /package/lib/{iconfont.1726453742001.ttf → iconfont.1728348263835.ttf} +0 -0
  221. /package/lib/{iconfont.1726453742001.woff → iconfont.1728348263835.woff} +0 -0
  222. /package/lib/{iconfont.1726453742001.woff2 → iconfont.1728348263835.woff2} +0 -0
@@ -584,7 +584,7 @@ function downloadFile ($xetable: any, opts: any, content: any) {
584
584
  saveLocalFile({ filename, type, content }).then(() => {
585
585
  if (opts.message !== false) {
586
586
  // 检测弹窗模块
587
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
587
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
588
588
  if (!VxeUI.modal) {
589
589
  errLog('vxe.error.reqModule', ['Modal'])
590
590
  }
@@ -813,7 +813,7 @@ function handleImport ($xetable: any, content: any, opts: any) {
813
813
  }
814
814
  if (opts.message !== false) {
815
815
  // 检测弹窗模块
816
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
816
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
817
817
  if (!VxeUI.modal) {
818
818
  errLog('vxe.error.reqModule', ['Modal'])
819
819
  }
@@ -828,7 +828,7 @@ function handleImport ($xetable: any, content: any, opts: any) {
828
828
  })
829
829
  } else if (opts.message !== false) {
830
830
  // 检测弹窗模块
831
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
831
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
832
832
  if (!VxeUI.modal) {
833
833
  errLog('vxe.error.reqModule', ['Modal'])
834
834
  }
@@ -849,7 +849,7 @@ function handleFileImport ($xetable: any, file: any, opts: any) {
849
849
  if (!importMethod && !XEUtils.includes(XEUtils.keys(importOpts._typeMaps), type)) {
850
850
  if (opts.message !== false) {
851
851
  // 检测弹窗模块
852
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
852
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
853
853
  if (!VxeUI.modal) {
854
854
  errLog('vxe.error.reqModule', ['Modal'])
855
855
  }
@@ -900,7 +900,7 @@ function handleFileImport ($xetable: any, file: any, opts: any) {
900
900
  }
901
901
  } else {
902
902
  // 不支持的浏览器
903
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
903
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
904
904
  errLog('vxe.error.notExp')
905
905
  }
906
906
  _importResolve({ status: true })
@@ -957,7 +957,7 @@ export function readLocalFile (options: any = {}) {
957
957
  } else {
958
958
  if (options.message !== false) {
959
959
  // 检测弹窗模块
960
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
960
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
961
961
  if (!VxeUI.modal) {
962
962
  errLog('vxe.error.reqModule', ['Modal'])
963
963
  }
@@ -1277,7 +1277,7 @@ export default {
1277
1277
 
1278
1278
  // 检查类型,如果为自定义导出,则不需要校验类型
1279
1279
  if (!opts.exportMethod && !XEUtils.includes(XEUtils.keys(exportOpts._typeMaps), type)) {
1280
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
1280
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
1281
1281
  errLog('vxe.error.notType', [type])
1282
1282
  }
1283
1283
  const params = { status: false }
@@ -1300,7 +1300,7 @@ export default {
1300
1300
  opts.data = selectRecords
1301
1301
  }
1302
1302
  } else if (mode === 'all') {
1303
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
1303
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
1304
1304
  if (!$xegrid) {
1305
1305
  warnLog('vxe.error.errProp', ['all', 'mode=current,selected'])
1306
1306
  }
@@ -1312,7 +1312,7 @@ export default {
1312
1312
  const queryAllSuccessMethods = ajax.queryAllSuccess
1313
1313
  const queryAllErrorMethods = ajax.queryAllError
1314
1314
 
1315
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
1315
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
1316
1316
  if (!ajaxMethods) {
1317
1317
  warnLog('vxe.error.notFunc', ['proxy-config.ajax.queryAll'])
1318
1318
  }
@@ -1484,7 +1484,7 @@ export default {
1484
1484
  },
1485
1485
  _openExport (options: any) {
1486
1486
  const { exportOpts } = this
1487
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
1487
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
1488
1488
  if (!this.exportConfig) {
1489
1489
  errLog('vxe.error.reqProp', ['export-config'])
1490
1490
  }
@@ -1493,7 +1493,7 @@ export default {
1493
1493
  },
1494
1494
  _openPrint (options: any) {
1495
1495
  const { printOpts } = this
1496
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
1496
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
1497
1497
  if (!this.printConfig) {
1498
1498
  errLog('vxe.error.reqProp', ['print-config'])
1499
1499
  }
@@ -107,7 +107,7 @@ export default {
107
107
  this.handleOpenMenuEvent(evnt, layout, params)
108
108
  // 在 v4 中废弃事件 cell-context-menu、header-cell-context-menu、footer-cell-context-menu
109
109
  if (this.$listeners[`${typePrefix}cell-context-menu`]) {
110
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
110
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
111
111
  warnLog('vxe.error.delEvent', [`${typePrefix}cell-context-menu`, `${typePrefix}cell-menu`])
112
112
  }
113
113
  this.emitEvent(`${typePrefix}cell-context-menu`, params, evnt)
@@ -258,7 +258,7 @@ export default {
258
258
  }
259
259
  // 在 v4 中废弃事件 context-menu-click
260
260
  if (this.$listeners['context-menu-click']) {
261
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
261
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
262
262
  warnLog('vxe.error.delEvent', ['context-menu-click', 'menu-click'])
263
263
  }
264
264
  this.emitEvent('context-menu-click', params, evnt)
@@ -68,7 +68,7 @@ export default {
68
68
  * 完整校验,和 validate 的区别就是会给有效数据中的每一行进行校验
69
69
  */
70
70
  _fullValidate (rows: any, cb: any) {
71
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
71
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
72
72
  if (XEUtils.isFunction(cb)) {
73
73
  warnLog('vxe.error.notValidators', ['fullValidate(rows, callback)', 'fullValidate(rows)'])
74
74
  }
@@ -79,7 +79,7 @@ export default {
79
79
  * 快速校验,如果存在记录不通过的记录,则返回不再继续校验(异步校验除外)
80
80
  */
81
81
  _validate (rows: any, cb: any) {
82
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
82
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
83
83
  if (XEUtils.isFunction(cb)) {
84
84
  warnLog('vxe.error.notValidators', ['validate(rows, callback)', 'validate(rows)'])
85
85
  }
@@ -308,12 +308,12 @@ export default {
308
308
  if (gvItem.cellValidatorMethod) {
309
309
  customValid = gvItem.cellValidatorMethod(validParams)
310
310
  } else {
311
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
311
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
312
312
  warnLog('vxe.error.notValidators', [validator])
313
313
  }
314
314
  }
315
315
  } else {
316
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
316
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
317
317
  errLog('vxe.error.notValidators', [validator])
318
318
  }
319
319
  }
@@ -24,7 +24,7 @@ function getFormatDate (value: any, props: any, defaultFormat: string) {
24
24
  }
25
25
 
26
26
  function getLabelFormatDate (value: any, props: any) {
27
- return getFormatDate(value, props, getI18n(`vxe.input.date.labelFormat.${props.type}`))
27
+ return getFormatDate(value, props, getI18n(`vxe.input.date.labelFormat.${props.type || 'date'}`))
28
28
  }
29
29
 
30
30
  /**
@@ -640,15 +640,7 @@ renderer.mixin({
640
640
  const { row, column } = params
641
641
  let cellValue = XEUtils.get(row, column.field)
642
642
  if (cellValue) {
643
- switch (props.type) {
644
- case 'date':
645
- case 'week':
646
- case 'month':
647
- case 'quarter':
648
- case 'year':
649
- cellValue = getLabelFormatDate(cellValue, props)
650
- break
651
- }
643
+ cellValue = getLabelFormatDate(cellValue, props)
652
644
  }
653
645
  return getCellLabelVNs(h, renderOpts, params, cellValue)
654
646
  },
@@ -657,7 +649,8 @@ renderer.mixin({
657
649
  tableFilterDefaultMethod: handleFilterMethod
658
650
  },
659
651
  VxeTextarea: {
660
- tableAutoFocus: 'VxeTextarea'
652
+ tableAutoFocus: 'textarea',
653
+ renderTableEdit: defaultEditRender
661
654
  },
662
655
  VxeButton: {
663
656
  renderTableDefault: buttonCellRender
@@ -765,6 +758,22 @@ renderer.mixin({
765
758
  ]
766
759
  }
767
760
  },
761
+ VxeTextEllipsis: {
762
+ renderTableDefault (h, renderOpts, params) {
763
+ const { row, column } = params
764
+ const { props } = renderOpts
765
+ const cellValue = getCellValue(row, column)
766
+ return [
767
+ h(getDefaultComponent(renderOpts), {
768
+ props: {
769
+ ...props,
770
+ content: cellValue
771
+ },
772
+ on: getEditOns(renderOpts, params)
773
+ })
774
+ ]
775
+ }
776
+ },
768
777
 
769
778
  // 以下已废弃
770
779
  $input: {
@@ -280,6 +280,7 @@ function renderColumn (h: any, _vm: any, $xetable: any, seq: any, rowid: any, fi
280
280
  'col--tree-node': treeNode,
281
281
  'col--edit': isEdit,
282
282
  'col--ellipsis': hasEllipsis,
283
+ 'col--height': !!rowOpts.height,
283
284
  'fixed--hidden': fixedHiddenColumn,
284
285
  'col--dirty': isDirty,
285
286
  'col--active': editConfig && isEdit && (actived.row === row && (actived.column === column || editOpts.mode === 'row')),
@@ -14,7 +14,7 @@ export class ColumnInfo {
14
14
  const formatter = _vm.formatter
15
15
  const visible = XEUtils.isBoolean(_vm.visible) ? _vm.visible : true
16
16
 
17
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
17
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
18
18
  const types = ['seq', 'checkbox', 'radio', 'expand', 'html']
19
19
  if (_vm.type && types.indexOf(_vm.type) === -1) {
20
20
  warnLog('vxe.error.errProp', [`type=${_vm.type}`, types.join(', ')])
@@ -42,12 +42,12 @@ export class ColumnInfo {
42
42
  if (formatter) {
43
43
  if (XEUtils.isString(formatter)) {
44
44
  const gFormatOpts = formats.get(formatter) || XEUtils[formatter]
45
- if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.cellFormatMethod)) {
45
+ if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
46
46
  errLog('vxe.error.notFormats', [formatter])
47
47
  }
48
48
  } else if (XEUtils.isArray(formatter)) {
49
49
  const gFormatOpts = formats.get(formatter[0]) || XEUtils[formatter[0]]
50
- if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.cellFormatMethod)) {
50
+ if (!gFormatOpts || !XEUtils.isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
51
51
  errLog('vxe.error.notFormats', [formatter[0]])
52
52
  }
53
53
  }
@@ -101,15 +101,16 @@ function computeVirtualX (_vm: any) {
101
101
  }
102
102
  }
103
103
  }
104
- return { toVisibleIndex: Math.max(0, toVisibleIndex), visibleSize: Math.max(8, visibleSize) }
104
+ return { toVisibleIndex: Math.max(0, toVisibleIndex), visibleSize: Math.max(6, visibleSize) }
105
105
  }
106
- return { toVisibleIndex: 0, visibleSize: 8 }
106
+ return { toVisibleIndex: 0, visibleSize: 6 }
107
107
  }
108
108
 
109
109
  function computeVirtualY (_vm: any) {
110
- const { $refs, vSize, rowHeightMaps } = _vm
110
+ const { $refs, computeSize, rowHeightMaps } = _vm
111
111
  const { tableHeader, tableBody } = $refs
112
112
  const tableBodyElem = tableBody ? tableBody.$el : null
113
+ const vSize = computeSize
113
114
  if (tableBodyElem) {
114
115
  const tableHeaderElem = tableHeader ? tableHeader.$el : null
115
116
  let rowHeight = 0
@@ -395,7 +396,7 @@ const Methods = {
395
396
  if (treeConfig) {
396
397
  // 树结构自动转换
397
398
  if (treeOpts.transform) {
398
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
399
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
399
400
  if (!treeOpts.rowField) {
400
401
  errLog('vxe.error.reqProp', ['table.tree-config.rowField'])
401
402
  }
@@ -449,7 +450,7 @@ const Methods = {
449
450
  if (keepSource) {
450
451
  this.cacheSourceMap(fullData)
451
452
  }
452
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
453
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
453
454
  if (sYLoad) {
454
455
  if (!(this.height || this.maxHeight)) {
455
456
  errLog('vxe.error.reqProp', ['table.height | table.max-height | table.scroll-y={enabled: false}'])
@@ -580,7 +581,7 @@ const Methods = {
580
581
  }
581
582
  this.tableData = tableData.slice(0)
582
583
  } else {
583
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
584
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
584
585
  warnLog('vxe.error.reqProp', ['keep-source'])
585
586
  }
586
587
  }
@@ -632,7 +633,7 @@ const Methods = {
632
633
  this.clearMergeCells()
633
634
  this.clearMergeFooterItems()
634
635
  this.handleTableData(true)
635
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
636
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
636
637
  if ((this.scrollXLoad || this.scrollYLoad) && this.expandColumn) {
637
638
  warnLog('vxe.error.scrollErrProp', ['column.type=expand'])
638
639
  }
@@ -770,7 +771,7 @@ const Methods = {
770
771
  const { id: colid, field, fixed, type, treeNode } = column
771
772
  const rest = { column, colid, index, items, parent }
772
773
  if (field) {
773
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
774
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
774
775
  if (fullColumnFieldData[field]) {
775
776
  warnLog('vxe.error.colRepet', ['field', field])
776
777
  }
@@ -786,7 +787,7 @@ const Methods = {
786
787
  }
787
788
 
788
789
  if (treeNode) {
789
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
790
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
790
791
  if (treeNodeColumn) {
791
792
  warnLog('vxe.error.colRepet', ['tree-node', treeNode])
792
793
  }
@@ -795,7 +796,7 @@ const Methods = {
795
796
  treeNodeColumn = column
796
797
  }
797
798
  } else if (type === 'expand') {
798
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
799
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
799
800
  if (expandColumn) {
800
801
  warnLog('vxe.error.colRepet', ['type', type])
801
802
  }
@@ -804,7 +805,7 @@ const Methods = {
804
805
  expandColumn = column
805
806
  }
806
807
  }
807
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
808
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
808
809
  if (type === 'checkbox') {
809
810
  if (checkboxColumn) {
810
811
  warnLog('vxe.error.colRepet', ['type', type])
@@ -821,7 +822,7 @@ const Methods = {
821
822
  }
822
823
  }
823
824
  }
824
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
825
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
825
826
  if (this.showOverflow && column.showOverflow === false) {
826
827
  warnLog('vxe.error.errConflicts', [`table.show-overflow=${this.showOverflow}`, `column.show-overflow=${column.showOverflow}`])
827
828
  }
@@ -833,7 +834,7 @@ const Methods = {
833
834
  }
834
835
  }
835
836
 
836
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
837
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
837
838
  if (htmlColumn) {
838
839
  if (!columnOpts.useKey) {
839
840
  errLog('vxe.error.reqProp', ['column-config.useKey', 'column.type=html'])
@@ -863,7 +864,7 @@ const Methods = {
863
864
  tableFullColumn.forEach(handleFunc)
864
865
  }
865
866
 
866
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
867
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
867
868
  if (expandColumn && this.mouseOpts.area) {
868
869
  errLog('vxe.error.errConflicts', ['mouse-config.area', 'column.type=expand'])
869
870
  }
@@ -935,7 +936,7 @@ const Methods = {
935
936
  },
936
937
  // 在 v3 中废弃
937
938
  _getRowIndex (row: any) {
938
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
939
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
939
940
  warnLog('vxe.error.delFunc', ['_getRowIndex', 'getVTRowIndex'])
940
941
  }
941
942
  return this.getVTRowIndex(row)
@@ -949,7 +950,7 @@ const Methods = {
949
950
  },
950
951
  // 在 v3 中废弃
951
952
  $getRowIndex (row: any) {
952
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
953
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
953
954
  warnLog('vxe.error.delFunc', ['$getRowIndex', 'getVMRowIndex'])
954
955
  }
955
956
  return this.getVMRowIndex(row)
@@ -970,7 +971,7 @@ const Methods = {
970
971
  },
971
972
  // 在 v3 中废弃
972
973
  _getColumnIndex (column: any) {
973
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
974
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
974
975
  warnLog('vxe.error.delFunc', ['_getColumnIndex', 'getVTColumnIndex'])
975
976
  }
976
977
  return this.getVTColumnIndex(column)
@@ -984,7 +985,7 @@ const Methods = {
984
985
  },
985
986
  // 在 v3 中废弃
986
987
  $getColumnIndex (column: any) {
987
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
988
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
988
989
  warnLog('vxe.error.delFunc', ['$getColumnIndex', 'getVMColumnIndex'])
989
990
  }
990
991
  return this.getVMColumnIndex(column)
@@ -1071,7 +1072,7 @@ const Methods = {
1071
1072
  revertData (rows: any, field: any) {
1072
1073
  const { keepSource, tableSourceData, treeConfig } = this
1073
1074
  if (!keepSource) {
1074
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
1075
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
1075
1076
  warnLog('vxe.error.reqProp', ['keep-source'])
1076
1077
  }
1077
1078
  return this.$nextTick()
@@ -1180,10 +1181,12 @@ const Methods = {
1180
1181
  const formatParams = { cellValue, row, rowIndex: this.getRowIndex(row), column, columnIndex: this.getColumnIndex(column) }
1181
1182
  if (XEUtils.isString(formatter)) {
1182
1183
  const gFormatOpts = formats.get(formatter)
1183
- cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams) : ''
1184
+ const tcFormatMethod = gFormatOpts ? (gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod) : null
1185
+ cellLabel = tcFormatMethod ? tcFormatMethod(formatParams) : ''
1184
1186
  } else if (XEUtils.isArray(formatter)) {
1185
1187
  const gFormatOpts = formats.get(formatter[0])
1186
- cellLabel = gFormatOpts && gFormatOpts.cellFormatMethod ? gFormatOpts.cellFormatMethod(formatParams, ...formatter.slice(1)) : ''
1188
+ const tcFormatMethod = gFormatOpts ? (gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod) : null
1189
+ cellLabel = tcFormatMethod ? tcFormatMethod(formatParams, ...formatter.slice(1)) : ''
1187
1190
  } else {
1188
1191
  cellLabel = formatter(formatParams)
1189
1192
  }
@@ -1389,8 +1392,8 @@ const Methods = {
1389
1392
  if (valueList.length && !allRemoteFilter) {
1390
1393
  const { filterMethod, filterRender, field } = column
1391
1394
  const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
1392
- const compFilterMethod = compConf && compConf.renderFilter ? (compConf.tableFilterMethod || compConf.filterMethod) : null
1393
- const defaultFilterMethod = compConf ? (compConf.tableFilterDefaultMethod || compConf.defaultTableFilterMethod || compConf.defaultFilterMethod) : null
1395
+ const compFilterMethod = compConf ? (compConf.tableFilterMethod || compConf.filterMethod) : null
1396
+ const tdFilterMethod = compConf ? (compConf.tableFilterDefaultMethod || compConf.defaultTableFilterMethod || compConf.defaultFilterMethod) : null
1394
1397
  const cellValue = getCellValue(row, column)
1395
1398
  if (filterMethod) {
1396
1399
  return itemList.some((item: any) => filterMethod({ value: item.value, option: item, cellValue, row, column, $table: this }))
@@ -1398,8 +1401,8 @@ const Methods = {
1398
1401
  return itemList.some((item: any) => compFilterMethod({ value: item.value, option: item, cellValue, row, column, $table: this }))
1399
1402
  } else if (allFilterMethod) {
1400
1403
  return allFilterMethod({ options: itemList, values: valueList, cellValue, row, column })
1401
- } else if (defaultFilterMethod) {
1402
- return itemList.some((item: any) => defaultFilterMethod({ value: item.value, option: item, cellValue, row, column, $table: this }))
1404
+ } else if (tdFilterMethod) {
1405
+ return itemList.some((item: any) => tdFilterMethod({ value: item.value, option: item, cellValue, row, column, $table: this }))
1403
1406
  }
1404
1407
  return valueList.indexOf(XEUtils.get(row, field)) > -1
1405
1408
  }
@@ -1982,7 +1985,7 @@ const Methods = {
1982
1985
  this.hasFixedColumn = leftList.length > 0 || rightList.length > 0
1983
1986
  Object.assign(columnStore, { leftList, centerList, rightList })
1984
1987
  if (scrollXLoad) {
1985
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
1988
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
1986
1989
  // if (this.showHeader && !this.showHeaderOverflow) {
1987
1990
  // warnLog('vxe.error.reqProp', ['show-header-overflow'])
1988
1991
  // }
@@ -2098,6 +2101,10 @@ const Methods = {
2098
2101
  const bodyElem = tableBody ? tableBody.$el : null
2099
2102
  const headerElem = tableHeader ? tableHeader.$el : null
2100
2103
  const footerElem = tableFooter ? tableFooter.$el : null
2104
+ const el = this.$el
2105
+ if (!el || !el.clientWidth) {
2106
+ return this.$nextTick()
2107
+ }
2101
2108
  if (bodyElem) {
2102
2109
  this.calcCellWidth()
2103
2110
  this.autoCellWidth(headerElem, bodyElem, footerElem)
@@ -2130,10 +2137,20 @@ const Methods = {
2130
2137
  paddingSize = Math.floor(XEUtils.toNumber(cellStyle.paddingLeft) + XEUtils.toNumber(cellStyle.paddingRight)) + 2
2131
2138
  }
2132
2139
  let colWidth = column.renderAutoWidth - paddingSize
2133
- XEUtils.arrayEach(cellElList, (cellEl: any) => {
2134
- const labelEl = cellEl.firstChild
2135
- if (labelEl) {
2136
- colWidth = Math.max(colWidth, Math.ceil(labelEl.offsetWidth) + 4)
2140
+ XEUtils.arrayEach(cellElList, (itemEl) => {
2141
+ const cellEl = itemEl as HTMLElement
2142
+ const thElem = cellEl.parentNode as HTMLElement
2143
+ let titleWidth = 0
2144
+ if (`${thElem.tagName}`.toLowerCase() === 'th') {
2145
+ XEUtils.arrayEach(cellEl.children, (btnEl) => {
2146
+ titleWidth += (btnEl as HTMLElement).offsetWidth + 1
2147
+ })
2148
+ } else {
2149
+ const labelEl = cellEl.firstChild as HTMLElement
2150
+ titleWidth = labelEl.offsetWidth
2151
+ }
2152
+ if (titleWidth) {
2153
+ colWidth = Math.max(colWidth, Math.ceil(titleWidth) + 4)
2137
2154
  }
2138
2155
  })
2139
2156
  column.renderAutoWidth = colWidth + paddingSize
@@ -2590,7 +2607,7 @@ const Methods = {
2590
2607
  // 兼容老版本
2591
2608
  if (!evntList.length && type === 'event.clearEdit') {
2592
2609
  evntList = interceptor.get('event.clearActived')
2593
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
2610
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
2594
2611
  if (evntList.length) {
2595
2612
  warnLog('vxe.error.delEvent', ['event.clearActived', 'event.clearEdit'])
2596
2613
  }
@@ -2988,12 +3005,6 @@ const Methods = {
2988
3005
  setCellValue(selected.row, selected.column, null)
2989
3006
  this.handleEdit(selected.args, evnt)
2990
3007
  }
2991
- const afterEditMethod = editOpts.afterEditMethod
2992
- if (afterEditMethod) {
2993
- this.$nextTick(() => {
2994
- afterEditMethod(params)
2995
- })
2996
- }
2997
3008
  }
2998
3009
  }
2999
3010
  }
@@ -4394,7 +4405,7 @@ const Methods = {
4394
4405
  },
4395
4406
  // 在 v3 中废弃
4396
4407
  getSortColumn () {
4397
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
4408
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
4398
4409
  warnLog('vxe.error.delFunc', ['getSortColumn', 'getSortColumns'])
4399
4410
  }
4400
4411
  return XEUtils.find(this.tableFullColumn, column => (column.sortable || column.remoteSort) && column.order)
@@ -4491,7 +4502,7 @@ const Methods = {
4491
4502
  return this.$nextTick()
4492
4503
  },
4493
4504
  reloadExpandContent (row: any) {
4494
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
4505
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
4495
4506
  warnLog('vxe.error.delFunc', ['reloadExpandContent', 'reloadRowExpand'])
4496
4507
  }
4497
4508
  // 即将废弃
@@ -4653,7 +4664,7 @@ const Methods = {
4653
4664
  return !!rowExpandedMaps[rowid]
4654
4665
  },
4655
4666
  isExpandByRow (row: any) {
4656
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
4667
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
4657
4668
  warnLog('vxe.error.delFunc', ['isExpandByRow', 'isRowExpandByRow'])
4658
4669
  }
4659
4670
  // 即将废弃
@@ -4770,7 +4781,7 @@ const Methods = {
4770
4781
  return this.$nextTick()
4771
4782
  },
4772
4783
  reloadTreeChilds (row: any) {
4773
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
4784
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
4774
4785
  warnLog('vxe.error.delFunc', ['reloadTreeChilds', 'reloadTreeExpand'])
4775
4786
  }
4776
4787
  // 即将废弃
@@ -5537,7 +5548,7 @@ const funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,updateFilterOp
5537
5548
 
5538
5549
  funcs.forEach(name => {
5539
5550
  Methods[name] = function (...args: any[]) {
5540
- if (process.env.VUE_APP_VXE_TABLE_ENV === 'development') {
5551
+ if (process.env.VUE_APP_VXE_ENV === 'development') {
5541
5552
  if (!this[`_${name}`]) {
5542
5553
  if ('openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',').includes(name)) {
5543
5554
  errLog('vxe.error.reqModule', ['VxeTableExportModule'])
@@ -1,5 +1,8 @@
1
+ import { PropType } from 'vue'
1
2
  import { VxeUI } from '../../ui'
2
3
 
4
+ import type { VxeTablePropTypes } from '../../../types'
5
+
3
6
  const { getConfig } = VxeUI
4
7
 
5
8
  export default {
@@ -10,39 +13,89 @@ export default {
10
13
  // 表格的高度
11
14
  height: [Number, String],
12
15
  // 表格的最小高度
13
- minHeight: { type: [Number, String], default: () => getConfig().table.minHeight },
16
+ minHeight: {
17
+ type: [Number, String],
18
+ default: () => getConfig().table.minHeight
19
+ },
14
20
  // 表格的最大高度
15
21
  maxHeight: [Number, String],
16
22
  // 已废弃,被 column-config.resizable 替换
17
- resizable: { type: Boolean, default: () => getConfig().table.resizable },
23
+ resizable: {
24
+ type: Boolean,
25
+ default: () => getConfig().table.resizable
26
+ },
18
27
  // 是否带有斑马纹
19
- stripe: { type: Boolean, default: () => getConfig().table.stripe },
28
+ stripe: {
29
+ type: Boolean,
30
+ default: () => getConfig().table.stripe
31
+ },
20
32
  // 是否带有边框
21
- border: { type: [Boolean, String], default: () => getConfig().table.border },
33
+ border: {
34
+ type: [Boolean, String],
35
+ default: () => getConfig().table.border
36
+ },
37
+ // 单元格是否有边距
38
+ padding: {
39
+ type: Boolean as PropType<VxeTablePropTypes.Padding>,
40
+ default: () => getConfig().table.padding
41
+ },
22
42
  // 是否圆角边框
23
- round: { type: Boolean, default: () => getConfig().table.round },
43
+ round: {
44
+ type: Boolean,
45
+ default: () => getConfig().table.round
46
+ },
24
47
  // 表格的尺寸
25
- size: { type: String, default: () => getConfig().table.size || getConfig().size },
48
+ size: {
49
+ type: String,
50
+ default: () => getConfig().table.size || getConfig().size
51
+ },
26
52
  // 列的宽度是否自撑开(可能会被废弃的参数,不要使用)
27
- fit: { type: Boolean, default: () => getConfig().table.fit },
53
+ fit: {
54
+ type: Boolean,
55
+ default: () => getConfig().table.fit
56
+ },
28
57
  // 表格是否加载中
29
58
  loading: Boolean,
30
59
  // 所有的列对其方式
31
- align: { type: String, default: () => getConfig().table.align },
60
+ align: {
61
+ type: String,
62
+ default: () => getConfig().table.align
63
+ },
32
64
  // 所有的表头列的对齐方式
33
- headerAlign: { type: String, default: () => getConfig().table.headerAlign },
65
+ headerAlign: {
66
+ type: String,
67
+ default: () => getConfig().table.headerAlign
68
+ },
34
69
  // 所有的表尾列的对齐方式
35
- footerAlign: { type: String, default: () => getConfig().table.footerAlign },
70
+ footerAlign: {
71
+ type: String,
72
+ default: () => getConfig().table.footerAlign
73
+ },
36
74
  // 是否显示表头
37
- showHeader: { type: Boolean, default: () => getConfig().table.showHeader },
75
+ showHeader: {
76
+ type: Boolean,
77
+ default: () => getConfig().table.showHeader
78
+ },
38
79
  // 已废弃,被 row-config.isCurrent 替换
39
- highlightCurrentRow: { type: Boolean, default: () => getConfig().table.highlightCurrentRow },
80
+ highlightCurrentRow: {
81
+ type: Boolean,
82
+ default: () => getConfig().table.highlightCurrentRow
83
+ },
40
84
  // 已废弃,被 row-config.isHover 替换
41
- highlightHoverRow: { type: Boolean, default: () => getConfig().table.highlightHoverRow },
85
+ highlightHoverRow: {
86
+ type: Boolean,
87
+ default: () => getConfig().table.highlightHoverRow
88
+ },
42
89
  // 已废弃,被 column-config.isCurrent 替换
43
- highlightCurrentColumn: { type: Boolean, default: () => getConfig().table.highlightCurrentColumn },
90
+ highlightCurrentColumn: {
91
+ type: Boolean,
92
+ default: () => getConfig().table.highlightCurrentColumn
93
+ },
44
94
  // 已废弃,被 column-config.isHover 替换
45
- highlightHoverColumn: { type: Boolean, default: () => getConfig().table.highlightHoverColumn },
95
+ highlightHoverColumn: {
96
+ type: Boolean,
97
+ default: () => getConfig().table.highlightHoverColumn
98
+ },
46
99
  // 已废弃,直接删除
47
100
  highlightCell: Boolean,
48
101
  // 是否显示表尾合计