vxe-table 4.23.11 → 4.23.13

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 (278) hide show
  1. package/dist/all.esm.js +20675 -20631
  2. package/dist/all.esm.min.js +3 -0
  3. package/es/colgroup/index.d.ts +18 -18
  4. package/es/column/index.d.ts +18 -18
  5. package/es/grid/index.d.ts +174 -174
  6. package/es/grid/src/emits.d.ts +1 -1
  7. package/es/grid/src/emits.js +3 -3
  8. package/es/grid/src/grid.d.ts +27 -27
  9. package/es/grid/src/grid.js +1670 -1667
  10. package/es/grid/src/props.d.ts +2 -2
  11. package/es/grid/src/props.js +4 -4
  12. package/es/index.esm.js +1 -0
  13. package/es/index.js +1 -0
  14. package/es/table/index.d.ts +174 -174
  15. package/es/table/module/custom/panel.js +1588 -1585
  16. package/es/table/module/export/export-panel.js +587 -584
  17. package/es/table/module/export/import-panel.js +258 -255
  18. package/es/table/module/filter/hook.js +1 -15
  19. package/es/table/module/filter/panel.js +281 -278
  20. package/es/table/module/menu/panel.js +225 -222
  21. package/es/table/src/body.js +895 -892
  22. package/es/table/src/column.d.ts +3 -3
  23. package/es/table/src/column.js +39 -36
  24. package/es/table/src/emits.d.ts +1 -1
  25. package/es/table/src/emits.js +2 -2
  26. package/es/table/src/footer.d.ts +2 -2
  27. package/es/table/src/footer.js +341 -338
  28. package/es/table/src/group.d.ts +3 -3
  29. package/es/table/src/group.js +49 -46
  30. package/es/table/src/header.js +539 -536
  31. package/es/table/src/props.d.ts +2 -2
  32. package/es/table/src/props.js +2 -2
  33. package/es/table/src/table.d.ts +27 -27
  34. package/es/table/src/table.js +13744 -13724
  35. package/es/toolbar/index.d.ts +18 -18
  36. package/es/toolbar/src/toolbar.d.ts +3 -3
  37. package/es/toolbar/src/toolbar.js +595 -592
  38. package/es/ui/index.js +2 -1
  39. package/es/ui/src/dom.d.ts +1 -1
  40. package/es/ui/src/log.js +1 -1
  41. package/es/ui/src/vn.d.ts +2 -2
  42. package/lib/colgroup/index.d.ts +760 -0
  43. package/lib/column/index.d.ts +760 -0
  44. package/lib/components.d.ts +13 -0
  45. package/lib/grid/index.d.ts +2824 -0
  46. package/lib/grid/src/emits.d.ts +2 -0
  47. package/lib/grid/src/emits.js +2 -2
  48. package/lib/grid/src/grid.d.ts +556 -0
  49. package/lib/grid/src/grid.js +1666 -1663
  50. package/lib/grid/src/props.d.ts +200 -0
  51. package/lib/grid/src/props.js +3 -3
  52. package/lib/index.common.js +1 -0
  53. package/lib/index.d.ts +3 -0
  54. package/lib/index.js +1 -0
  55. package/lib/index.umd.js +20675 -20631
  56. package/lib/index.umd.min.js +3 -3
  57. package/lib/locale/ar-EG.umd.d.ts +908 -0
  58. package/lib/locale/ar-EG.umd.min.js +1 -0
  59. package/lib/locale/de-DE.umd.d.ts +908 -0
  60. package/lib/locale/de-DE.umd.min.js +1 -0
  61. package/lib/locale/en-US.umd.d.ts +908 -0
  62. package/lib/locale/en-US.umd.min.js +1 -0
  63. package/lib/locale/es-ES.umd.d.ts +908 -0
  64. package/lib/locale/es-ES.umd.min.js +1 -0
  65. package/lib/locale/fr-FR.umd.d.ts +908 -0
  66. package/lib/locale/fr-FR.umd.min.js +1 -0
  67. package/lib/locale/hu-HU.umd.d.ts +908 -0
  68. package/lib/locale/hu-HU.umd.min.js +1 -0
  69. package/lib/locale/hy-AM.umd.d.ts +908 -0
  70. package/lib/locale/hy-AM.umd.min.js +1 -0
  71. package/lib/locale/id-ID.umd.d.ts +908 -0
  72. package/lib/locale/id-ID.umd.min.js +1 -0
  73. package/lib/locale/it-IT.umd.d.ts +908 -0
  74. package/lib/locale/it-IT.umd.min.js +1 -0
  75. package/lib/locale/ja-JP.umd.d.ts +908 -0
  76. package/lib/locale/ja-JP.umd.min.js +1 -0
  77. package/lib/locale/ko-KR.umd.d.ts +908 -0
  78. package/lib/locale/ko-KR.umd.min.js +1 -0
  79. package/lib/locale/lang/ar-EG.d.ts +908 -0
  80. package/lib/locale/lang/ar-EG.umd.d.ts +908 -0
  81. package/lib/locale/lang/ar-EG.umd.min.js +1 -0
  82. package/lib/locale/lang/de-DE.d.ts +908 -0
  83. package/lib/locale/lang/de-DE.umd.d.ts +908 -0
  84. package/lib/locale/lang/de-DE.umd.min.js +1 -0
  85. package/lib/locale/lang/en-US.d.ts +908 -0
  86. package/lib/locale/lang/en-US.umd.d.ts +908 -0
  87. package/lib/locale/lang/en-US.umd.min.js +1 -0
  88. package/lib/locale/lang/es-ES.d.ts +908 -0
  89. package/lib/locale/lang/es-ES.umd.d.ts +908 -0
  90. package/lib/locale/lang/es-ES.umd.min.js +1 -0
  91. package/lib/locale/lang/fr-FR.d.ts +908 -0
  92. package/lib/locale/lang/fr-FR.umd.d.ts +908 -0
  93. package/lib/locale/lang/fr-FR.umd.min.js +1 -0
  94. package/lib/locale/lang/hu-HU.d.ts +908 -0
  95. package/lib/locale/lang/hu-HU.umd.d.ts +908 -0
  96. package/lib/locale/lang/hu-HU.umd.min.js +1 -0
  97. package/lib/locale/lang/hy-AM.d.ts +908 -0
  98. package/lib/locale/lang/hy-AM.umd.d.ts +908 -0
  99. package/lib/locale/lang/hy-AM.umd.min.js +1 -0
  100. package/lib/locale/lang/id-ID.d.ts +908 -0
  101. package/lib/locale/lang/id-ID.umd.d.ts +908 -0
  102. package/lib/locale/lang/id-ID.umd.min.js +1 -0
  103. package/lib/locale/lang/it-IT.d.ts +908 -0
  104. package/lib/locale/lang/it-IT.umd.d.ts +908 -0
  105. package/lib/locale/lang/it-IT.umd.min.js +1 -0
  106. package/lib/locale/lang/ja-JP.d.ts +908 -0
  107. package/lib/locale/lang/ja-JP.umd.d.ts +908 -0
  108. package/lib/locale/lang/ja-JP.umd.min.js +1 -0
  109. package/lib/locale/lang/ko-KR.d.ts +908 -0
  110. package/lib/locale/lang/ko-KR.umd.d.ts +908 -0
  111. package/lib/locale/lang/ko-KR.umd.min.js +1 -0
  112. package/lib/locale/lang/ms-MY.d.ts +908 -0
  113. package/lib/locale/lang/ms-MY.umd.d.ts +908 -0
  114. package/lib/locale/lang/ms-MY.umd.min.js +1 -0
  115. package/lib/locale/lang/nb-NO.d.ts +908 -0
  116. package/lib/locale/lang/nb-NO.umd.d.ts +908 -0
  117. package/lib/locale/lang/nb-NO.umd.min.js +1 -0
  118. package/lib/locale/lang/pt-BR.d.ts +908 -0
  119. package/lib/locale/lang/pt-BR.umd.d.ts +908 -0
  120. package/lib/locale/lang/pt-BR.umd.min.js +1 -0
  121. package/lib/locale/lang/ru-RU.d.ts +908 -0
  122. package/lib/locale/lang/ru-RU.umd.d.ts +908 -0
  123. package/lib/locale/lang/ru-RU.umd.min.js +1 -0
  124. package/lib/locale/lang/th-TH.d.ts +908 -0
  125. package/lib/locale/lang/th-TH.umd.d.ts +908 -0
  126. package/lib/locale/lang/th-TH.umd.min.js +1 -0
  127. package/lib/locale/lang/ug-CN.d.ts +908 -0
  128. package/lib/locale/lang/ug-CN.umd.d.ts +908 -0
  129. package/lib/locale/lang/ug-CN.umd.min.js +1 -0
  130. package/lib/locale/lang/uk-UA.d.ts +908 -0
  131. package/lib/locale/lang/uk-UA.umd.d.ts +908 -0
  132. package/lib/locale/lang/uk-UA.umd.min.js +1 -0
  133. package/lib/locale/lang/uz-UZ.d.ts +908 -0
  134. package/lib/locale/lang/uz-UZ.umd.d.ts +908 -0
  135. package/lib/locale/lang/uz-UZ.umd.min.js +1 -0
  136. package/lib/locale/lang/vi-VN.d.ts +908 -0
  137. package/lib/locale/lang/vi-VN.umd.d.ts +908 -0
  138. package/lib/locale/lang/vi-VN.umd.min.js +1 -0
  139. package/lib/locale/lang/zh-CHT.d.ts +908 -0
  140. package/lib/locale/lang/zh-CHT.umd.d.ts +908 -0
  141. package/lib/locale/lang/zh-CHT.umd.min.js +1 -0
  142. package/lib/locale/lang/zh-CN.d.ts +908 -0
  143. package/lib/locale/lang/zh-CN.umd.d.ts +908 -0
  144. package/lib/locale/lang/zh-CN.umd.min.js +1 -0
  145. package/lib/locale/lang/zh-HK.d.ts +908 -0
  146. package/lib/locale/lang/zh-HK.umd.d.ts +908 -0
  147. package/lib/locale/lang/zh-HK.umd.min.js +1 -0
  148. package/lib/locale/lang/zh-MO.d.ts +908 -0
  149. package/lib/locale/lang/zh-MO.umd.d.ts +908 -0
  150. package/lib/locale/lang/zh-MO.umd.min.js +1 -0
  151. package/lib/locale/lang/zh-TC.d.ts +908 -0
  152. package/lib/locale/lang/zh-TC.umd.d.ts +908 -0
  153. package/lib/locale/lang/zh-TC.umd.min.js +1 -0
  154. package/lib/locale/lang/zh-TW.d.ts +908 -0
  155. package/lib/locale/lang/zh-TW.umd.d.ts +908 -0
  156. package/lib/locale/lang/zh-TW.umd.min.js +1 -0
  157. package/lib/locale/ms-MY.umd.d.ts +908 -0
  158. package/lib/locale/ms-MY.umd.min.js +1 -0
  159. package/lib/locale/nb-NO.umd.d.ts +908 -0
  160. package/lib/locale/nb-NO.umd.min.js +1 -0
  161. package/lib/locale/pt-BR.umd.d.ts +908 -0
  162. package/lib/locale/pt-BR.umd.min.js +1 -0
  163. package/lib/locale/ru-RU.umd.d.ts +908 -0
  164. package/lib/locale/ru-RU.umd.min.js +1 -0
  165. package/lib/locale/th-TH.umd.d.ts +908 -0
  166. package/lib/locale/th-TH.umd.min.js +1 -0
  167. package/lib/locale/ug-CN.umd.d.ts +908 -0
  168. package/lib/locale/ug-CN.umd.min.js +1 -0
  169. package/lib/locale/uk-UA.umd.d.ts +908 -0
  170. package/lib/locale/uk-UA.umd.min.js +1 -0
  171. package/lib/locale/uz-UZ.umd.d.ts +908 -0
  172. package/lib/locale/uz-UZ.umd.min.js +1 -0
  173. package/lib/locale/vi-VN.umd.d.ts +908 -0
  174. package/lib/locale/vi-VN.umd.min.js +1 -0
  175. package/lib/locale/zh-CHT.umd.d.ts +908 -0
  176. package/lib/locale/zh-CHT.umd.min.js +1 -0
  177. package/lib/locale/zh-CN.umd.d.ts +908 -0
  178. package/lib/locale/zh-CN.umd.min.js +1 -0
  179. package/lib/locale/zh-HK.umd.d.ts +908 -0
  180. package/lib/locale/zh-HK.umd.min.js +1 -0
  181. package/lib/locale/zh-MO.umd.d.ts +908 -0
  182. package/lib/locale/zh-MO.umd.min.js +1 -0
  183. package/lib/locale/zh-TC.umd.d.ts +908 -0
  184. package/lib/locale/zh-TC.umd.min.js +1 -0
  185. package/lib/locale/zh-TW.umd.d.ts +908 -0
  186. package/lib/locale/zh-TW.umd.min.js +1 -0
  187. package/lib/table/index.d.ts +2672 -0
  188. package/lib/table/module/custom/hook.d.ts +1 -0
  189. package/lib/table/module/custom/panel.d.ts +17 -0
  190. package/lib/table/module/custom/panel.js +1588 -1585
  191. package/lib/table/module/edit/hook.d.ts +1 -0
  192. package/lib/table/module/export/export-panel.d.ts +27 -0
  193. package/lib/table/module/export/export-panel.js +587 -584
  194. package/lib/table/module/export/hook.d.ts +1 -0
  195. package/lib/table/module/export/import-panel.d.ts +27 -0
  196. package/lib/table/module/export/import-panel.js +258 -255
  197. package/lib/table/module/export/util.d.ts +5 -0
  198. package/lib/table/module/filter/hook.d.ts +1 -0
  199. package/lib/table/module/filter/hook.js +1 -15
  200. package/lib/table/module/filter/panel.d.ts +16 -0
  201. package/lib/table/module/filter/panel.js +281 -278
  202. package/lib/table/module/keyboard/hook.d.ts +1 -0
  203. package/lib/table/module/menu/hook.d.ts +1 -0
  204. package/lib/table/module/menu/panel.d.ts +2 -0
  205. package/lib/table/module/menu/panel.js +225 -222
  206. package/lib/table/module/validator/hook.d.ts +1 -0
  207. package/lib/table/render/index.d.ts +1 -0
  208. package/lib/table/src/body.d.ts +24 -0
  209. package/lib/table/src/body.js +895 -892
  210. package/lib/table/src/cell.d.ts +192 -0
  211. package/lib/table/src/column.d.ts +263 -0
  212. package/lib/table/src/column.js +39 -36
  213. package/lib/table/src/columnInfo.d.ts +13 -0
  214. package/lib/table/src/emits.d.ts +2 -0
  215. package/lib/table/src/emits.js +2 -2
  216. package/lib/table/src/footer.d.ts +45 -0
  217. package/lib/table/src/footer.js +341 -338
  218. package/lib/table/src/group.d.ts +178 -0
  219. package/lib/table/src/group.js +49 -46
  220. package/lib/table/src/header.d.ts +26 -0
  221. package/lib/table/src/header.js +539 -536
  222. package/lib/table/src/props.d.ts +238 -0
  223. package/lib/table/src/props.js +2 -2
  224. package/lib/table/src/store.d.ts +6 -0
  225. package/lib/table/src/table.d.ts +539 -0
  226. package/lib/table/src/table.js +13742 -13722
  227. package/lib/table/src/use/cell-view.d.ts +10 -0
  228. package/lib/table/src/use/index.d.ts +1 -0
  229. package/lib/table/src/util.d.ts +74 -0
  230. package/lib/toolbar/index.d.ts +340 -0
  231. package/lib/toolbar/src/toolbar.d.ts +75 -0
  232. package/lib/toolbar/src/toolbar.js +595 -592
  233. package/lib/ui/index.d.ts +85 -0
  234. package/lib/ui/index.js +2 -1
  235. package/lib/ui/src/anime.d.ts +10 -0
  236. package/lib/ui/src/comp.d.ts +2 -0
  237. package/lib/ui/src/dom.d.ts +80 -0
  238. package/lib/ui/src/log.d.ts +6 -0
  239. package/lib/ui/src/log.js +1 -1
  240. package/lib/ui/src/utils.d.ts +23 -0
  241. package/lib/ui/src/vn.d.ts +7 -0
  242. package/lib/v-x-e-table/index.d.ts +2 -0
  243. package/lib/vxe-colgroup/index.d.ts +3 -0
  244. package/lib/vxe-column/index.d.ts +3 -0
  245. package/lib/vxe-grid/index.d.ts +3 -0
  246. package/lib/vxe-table/index.d.ts +3 -0
  247. package/lib/vxe-toolbar/index.d.ts +3 -0
  248. package/lib/vxe-ui/index.d.ts +3 -0
  249. package/package.json +9 -2
  250. package/packages/grid/src/emits.ts +2 -2
  251. package/packages/grid/src/grid.ts +10 -10
  252. package/packages/grid/src/props.ts +3 -3
  253. package/packages/index.ts +2 -2
  254. package/packages/table/module/custom/panel.ts +2 -2
  255. package/packages/table/module/export/export-panel.ts +2 -2
  256. package/packages/table/module/export/import-panel.ts +2 -2
  257. package/packages/table/module/filter/hook.ts +1 -15
  258. package/packages/table/module/filter/panel.ts +2 -2
  259. package/packages/table/module/menu/panel.ts +2 -2
  260. package/packages/table/src/body.ts +2 -2
  261. package/packages/table/src/column.ts +2 -2
  262. package/packages/table/src/emits.ts +1 -1
  263. package/packages/table/src/footer.ts +2 -2
  264. package/packages/table/src/group.ts +2 -2
  265. package/packages/table/src/header.ts +2 -2
  266. package/packages/table/src/props.ts +1 -1
  267. package/packages/table/src/table.ts +74 -57
  268. package/packages/toolbar/src/toolbar.ts +2 -2
  269. package/packages/ui/index.ts +1 -0
  270. /package/dist/{iconfont.1793016957545.ttf → iconfont.1793627868721.ttf} +0 -0
  271. /package/dist/{iconfont.1793016957545.woff → iconfont.1793627868721.woff} +0 -0
  272. /package/dist/{iconfont.1793016957545.woff2 → iconfont.1793627868721.woff2} +0 -0
  273. /package/es/{iconfont.1793016957545.ttf → iconfont.1793627868721.ttf} +0 -0
  274. /package/es/{iconfont.1793016957545.woff → iconfont.1793627868721.woff} +0 -0
  275. /package/es/{iconfont.1793016957545.woff2 → iconfont.1793627868721.woff2} +0 -0
  276. /package/lib/{iconfont.1793016957545.ttf → iconfont.1793627868721.ttf} +0 -0
  277. /package/lib/{iconfont.1793016957545.woff → iconfont.1793627868721.woff} +0 -0
  278. /package/lib/{iconfont.1793016957545.woff2 → iconfont.1793627868721.woff2} +0 -0
@@ -41,576 +41,579 @@ var import_vn = require("../../ui/src/vn");
41
41
  const { renderer, renderEmptyElement } = import_core.VxeUI;
42
42
  const sourceType = "table";
43
43
  const renderType = "header";
44
- var header_default = (0, import_comp.defineVxeComponent)({
45
- name: "VxeTableHeader",
46
- props: {
47
- tableData: Array,
48
- tableColumn: Array,
49
- tableGroupColumn: Array,
50
- fixedColumn: Array,
51
- fixedType: {
52
- type: String,
53
- default: null
54
- }
55
- },
56
- setup(props) {
57
- const $xeTable = (0, import_vue.inject)("$xeTable", {});
58
- const { xID, props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
59
- const { computeColumnOpts, computeColumnDragOpts, computeCellOpts, computeMouseOpts, computeHeaderCellOpts, computeDefaultRowHeight, computeVirtualXOpts, computeFloatingFilterOpts, computeIsHeaderRenderOptimize, computeHeaderTooltipOpts, computeRendererOpts } = $xeTable.getComputeMaps();
60
- const headerColumn = (0, import_vue.ref)([]);
61
- const refElem = (0, import_vue.ref)();
62
- const refHeaderScroll = (0, import_vue.ref)();
63
- const refHeaderTable = (0, import_vue.ref)();
64
- const refHeaderColgroup = (0, import_vue.ref)();
65
- const refHeaderTHead = (0, import_vue.ref)();
66
- const refHeaderXSpace = (0, import_vue.ref)();
67
- const refHeaderBorderRepair = (0, import_vue.ref)();
68
- const uploadColumn = () => {
69
- const { showCustomHeader } = tableProps;
70
- const { collectColumn, visibleColumn } = tableInternalData;
71
- const { tableGroupColumn } = props;
72
- const { isGroup } = tableReactData;
73
- let spanColumns = isGroup ? (0, import_util.convertHeaderColumnToRows)(tableGroupColumn) : [];
74
- let visibleColgroups = [];
75
- if (showCustomHeader && spanColumns.length > 1) {
76
- visibleColgroups = (0, import_util.convertHeaderToGridRows)(spanColumns);
77
- spanColumns = visibleColgroups;
44
+ var header_default = (
45
+ /* define-vxe-component start */
46
+ (0, import_comp.defineVxeComponent)({
47
+ name: "VxeTableHeader",
48
+ props: {
49
+ tableData: Array,
50
+ tableColumn: Array,
51
+ tableGroupColumn: Array,
52
+ fixedColumn: Array,
53
+ fixedType: {
54
+ type: String,
55
+ default: null
78
56
  }
79
- headerColumn.value = spanColumns;
80
- (0, import_vue.nextTick)(() => {
81
- $xeTable.dispatchEvent("columns-change", { visibleColgroups, collectColumn, visibleColumn }, null);
82
- });
83
- };
84
- const renderRows = (isGroup, isOptimizeMode, headerGroups, _rowIndex, cols) => {
85
- const $xeGrid = $xeTable.xeGrid;
86
- const $xeGantt = $xeTable.xeGantt;
87
- const { fixedType } = props;
88
- const { resizable: allResizable, columnKey, showCustomHeader, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps;
89
- const { dragCol, scrollXLoad, scrollYLoad, overflowX, mergeHeadFlag, tableColumn, currColFlag } = tableReactData;
90
- const { fullColumnIdData, scrollXStore, mergeHeaderList, mergeHeaderCellMaps, currentCol } = tableInternalData;
91
- const virtualXOpts = computeVirtualXOpts.value;
92
- const columnOpts = computeColumnOpts.value;
93
- const columnDragOpts = computeColumnDragOpts.value;
94
- const headerTooltipOpts = computeHeaderTooltipOpts.value;
95
- const cellOpts = computeCellOpts.value;
96
- const defaultRowHeight = computeDefaultRowHeight.value;
97
- const headerCellOpts = computeHeaderCellOpts.value;
98
- const rendererOpts = computeRendererOpts.value;
99
- const mouseOpts = computeMouseOpts.value;
100
- const currCellHeight = (0, import_util.getCalcHeight)(headerCellOpts.height) || defaultRowHeight;
101
- const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = columnDragOpts;
102
- const isLastRow = _rowIndex === headerGroups.length - 1;
103
- return cols.map((column, $columnIndex) => {
104
- const { type, showHeaderOverflow, headerAlign, align, filters, headerClassName, editRender, cellRender } = column;
105
- const colid = column.id;
106
- const colRest = fullColumnIdData[colid] || {};
107
- const renderOpts = editRender || cellRender;
108
- const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
109
- const isColGroup = column.children && column.children.length;
110
- const fixedHiddenColumn = overflowX && !isColGroup && (fixedType ? column.fixed !== fixedType : !!column.fixed);
111
- const cellPadding = (0, import_utils.getDefaultConfig)(headerCellOpts.padding, cellOpts.padding);
112
- const isAllCellPadding = cellPadding === true;
113
- const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
114
- const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
115
- const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
116
- const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
117
- const headOverflow = (0, import_utils.getDefaultConfig)(showHeaderOverflow, allColumnHeaderOverflow);
118
- const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : "") || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : "") || allAlign;
119
- const showEllipsis = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === "ellipsis";
120
- const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === "title";
121
- const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === "tooltip";
122
- const hasEllipsis = showTitle || showTooltip || showEllipsis;
123
- let hasFilter = false;
124
- let firstFilterOption = null;
125
- if (filters) {
126
- firstFilterOption = filters[0];
127
- hasFilter = filters.some((item) => item.checked);
128
- }
129
- const columnIndex = colRest.index;
130
- const _columnIndex = colRest._index;
131
- const cellParams = {
132
- $table: $xeTable,
133
- $grid: $xeGrid,
134
- $gantt: $xeGantt,
135
- rowIndex: _rowIndex,
136
- _rowIndex,
137
- $rowIndex: _rowIndex,
138
- column,
139
- columnIndex,
140
- $columnIndex,
141
- _columnIndex,
142
- firstFilterOption,
143
- fixed: fixedType,
144
- source: sourceType,
145
- type: renderType,
146
- isHidden: fixedHiddenColumn,
147
- hasFilter
148
- };
149
- const thAttrs = {
150
- colid
151
- };
152
- let isMergeCell = false;
153
- if (!showCustomHeader) {
154
- thAttrs.colspan = column.colSpan > 1 ? column.colSpan : null;
155
- thAttrs.rowspan = column.rowSpan > 1 ? column.rowSpan : null;
57
+ },
58
+ setup(props) {
59
+ const $xeTable = (0, import_vue.inject)("$xeTable", {});
60
+ const { xID, props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
61
+ const { computeColumnOpts, computeColumnDragOpts, computeCellOpts, computeMouseOpts, computeHeaderCellOpts, computeDefaultRowHeight, computeVirtualXOpts, computeFloatingFilterOpts, computeIsHeaderRenderOptimize, computeHeaderTooltipOpts, computeRendererOpts } = $xeTable.getComputeMaps();
62
+ const headerColumn = (0, import_vue.ref)([]);
63
+ const refElem = (0, import_vue.ref)();
64
+ const refHeaderScroll = (0, import_vue.ref)();
65
+ const refHeaderTable = (0, import_vue.ref)();
66
+ const refHeaderColgroup = (0, import_vue.ref)();
67
+ const refHeaderTHead = (0, import_vue.ref)();
68
+ const refHeaderXSpace = (0, import_vue.ref)();
69
+ const refHeaderBorderRepair = (0, import_vue.ref)();
70
+ const uploadColumn = () => {
71
+ const { showCustomHeader } = tableProps;
72
+ const { collectColumn, visibleColumn } = tableInternalData;
73
+ const { tableGroupColumn } = props;
74
+ const { isGroup } = tableReactData;
75
+ let spanColumns = isGroup ? (0, import_util.convertHeaderColumnToRows)(tableGroupColumn) : [];
76
+ let visibleColgroups = [];
77
+ if (showCustomHeader && spanColumns.length > 1) {
78
+ visibleColgroups = (0, import_util.convertHeaderToGridRows)(spanColumns);
79
+ spanColumns = visibleColgroups;
156
80
  }
157
- if (mergeHeadFlag && mergeHeaderList.length && (showCustomHeader || isLastRow)) {
158
- const spanRest = mergeHeaderCellMaps[`${_rowIndex}:${showCustomHeader ? $columnIndex : _columnIndex}`];
159
- if (spanRest) {
160
- const { rowspan, colspan } = spanRest;
161
- if (!rowspan || !colspan) {
162
- return null;
163
- }
164
- if (rowspan > 1) {
165
- isMergeCell = true;
166
- thAttrs.rowspan = rowspan;
167
- }
168
- if (colspan > 1) {
169
- isMergeCell = true;
170
- thAttrs.colspan = colspan;
81
+ headerColumn.value = spanColumns;
82
+ (0, import_vue.nextTick)(() => {
83
+ $xeTable.dispatchEvent("columns-change", { visibleColgroups, collectColumn, visibleColumn }, null);
84
+ });
85
+ };
86
+ const renderRows = (isGroup, isOptimizeMode, headerGroups, _rowIndex, cols) => {
87
+ const $xeGrid = $xeTable.xeGrid;
88
+ const $xeGantt = $xeTable.xeGantt;
89
+ const { fixedType } = props;
90
+ const { resizable: allResizable, columnKey, showCustomHeader, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps;
91
+ const { dragCol, scrollXLoad, scrollYLoad, overflowX, mergeHeadFlag, tableColumn, currColFlag } = tableReactData;
92
+ const { fullColumnIdData, scrollXStore, mergeHeaderList, mergeHeaderCellMaps, currentCol } = tableInternalData;
93
+ const virtualXOpts = computeVirtualXOpts.value;
94
+ const columnOpts = computeColumnOpts.value;
95
+ const columnDragOpts = computeColumnDragOpts.value;
96
+ const headerTooltipOpts = computeHeaderTooltipOpts.value;
97
+ const cellOpts = computeCellOpts.value;
98
+ const defaultRowHeight = computeDefaultRowHeight.value;
99
+ const headerCellOpts = computeHeaderCellOpts.value;
100
+ const rendererOpts = computeRendererOpts.value;
101
+ const mouseOpts = computeMouseOpts.value;
102
+ const currCellHeight = (0, import_util.getCalcHeight)(headerCellOpts.height) || defaultRowHeight;
103
+ const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = columnDragOpts;
104
+ const isLastRow = _rowIndex === headerGroups.length - 1;
105
+ return cols.map((column, $columnIndex) => {
106
+ const { type, showHeaderOverflow, headerAlign, align, filters, headerClassName, editRender, cellRender } = column;
107
+ const colid = column.id;
108
+ const colRest = fullColumnIdData[colid] || {};
109
+ const renderOpts = editRender || cellRender;
110
+ const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
111
+ const isColGroup = column.children && column.children.length;
112
+ const fixedHiddenColumn = overflowX && !isColGroup && (fixedType ? column.fixed !== fixedType : !!column.fixed);
113
+ const cellPadding = (0, import_utils.getDefaultConfig)(headerCellOpts.padding, cellOpts.padding);
114
+ const isAllCellPadding = cellPadding === true;
115
+ const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
116
+ const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
117
+ const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
118
+ const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
119
+ const headOverflow = (0, import_utils.getDefaultConfig)(showHeaderOverflow, allColumnHeaderOverflow);
120
+ const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : "") || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : "") || allAlign;
121
+ const showEllipsis = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === "ellipsis";
122
+ const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === "title";
123
+ const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === "tooltip";
124
+ const hasEllipsis = showTitle || showTooltip || showEllipsis;
125
+ let hasFilter = false;
126
+ let firstFilterOption = null;
127
+ if (filters) {
128
+ firstFilterOption = filters[0];
129
+ hasFilter = filters.some((item) => item.checked);
130
+ }
131
+ const columnIndex = colRest.index;
132
+ const _columnIndex = colRest._index;
133
+ const cellParams = {
134
+ $table: $xeTable,
135
+ $grid: $xeGrid,
136
+ $gantt: $xeGantt,
137
+ rowIndex: _rowIndex,
138
+ _rowIndex,
139
+ $rowIndex: _rowIndex,
140
+ column,
141
+ columnIndex,
142
+ $columnIndex,
143
+ _columnIndex,
144
+ firstFilterOption,
145
+ fixed: fixedType,
146
+ source: sourceType,
147
+ type: renderType,
148
+ isHidden: fixedHiddenColumn,
149
+ hasFilter
150
+ };
151
+ const thAttrs = {
152
+ colid
153
+ };
154
+ let isMergeCell = false;
155
+ if (!showCustomHeader) {
156
+ thAttrs.colspan = column.colSpan > 1 ? column.colSpan : null;
157
+ thAttrs.rowspan = column.rowSpan > 1 ? column.rowSpan : null;
158
+ }
159
+ if (mergeHeadFlag && mergeHeaderList.length && (showCustomHeader || isLastRow)) {
160
+ const spanRest = mergeHeaderCellMaps[`${_rowIndex}:${showCustomHeader ? $columnIndex : _columnIndex}`];
161
+ if (spanRest) {
162
+ const { rowspan, colspan } = spanRest;
163
+ if (!rowspan || !colspan) {
164
+ return null;
165
+ }
166
+ if (rowspan > 1) {
167
+ isMergeCell = true;
168
+ thAttrs.rowspan = rowspan;
169
+ }
170
+ if (colspan > 1) {
171
+ isMergeCell = true;
172
+ thAttrs.colspan = colspan;
173
+ }
171
174
  }
172
175
  }
173
- }
174
- const thOns = {
175
- onClick: (evnt) => $xeTable.triggerHeaderCellClickEvent(evnt, cellParams),
176
- onDblclick: (evnt) => $xeTable.triggerHeaderCellDblclickEvent(evnt, cellParams)
177
- };
178
- const isColDragCell = columnOpts.drag && columnDragOpts.trigger === "cell";
179
- let isDisabledDrag = false;
180
- if (isColDragCell) {
181
- isDisabledDrag = !!(dragDisabledMethod && dragDisabledMethod(cellParams));
182
- }
183
- if ((0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) || isColDragCell) {
184
- thOns.onMousedown = (evnt) => $xeTable.triggerHeaderCellMousedownEvent(evnt, cellParams);
185
- }
186
- if (columnOpts.drag) {
187
- thOns.onDragstart = $xeTable.handleHeaderCellDragDragstartEvent;
188
- thOns.onDragend = $xeTable.handleHeaderCellDragDragendEvent;
189
- thOns.onDragover = $xeTable.handleHeaderCellDragDragoverEvent;
176
+ const thOns = {
177
+ onClick: (evnt) => $xeTable.triggerHeaderCellClickEvent(evnt, cellParams),
178
+ onDblclick: (evnt) => $xeTable.triggerHeaderCellDblclickEvent(evnt, cellParams)
179
+ };
180
+ const isColDragCell = columnOpts.drag && columnDragOpts.trigger === "cell";
181
+ let isDisabledDrag = false;
190
182
  if (isColDragCell) {
191
- thOns.onMouseup = $xeTable.handleHeaderCellDragMouseupEvent;
183
+ isDisabledDrag = !!(dragDisabledMethod && dragDisabledMethod(cellParams));
192
184
  }
193
- }
194
- const isLastColumn = $columnIndex === cols.length - 1;
195
- const showResizable = import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
196
- const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
197
- let isVNPreEmptyStatus = false;
198
- if (isOptimizeMode && overflowX && !isGroup && !isMergeCell) {
199
- if (!dragCol || dragCol.id !== colid) {
200
- if (scrollXLoad && tableColumn.length > 10 && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
201
- isVNPreEmptyStatus = true;
185
+ if ((0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) || isColDragCell) {
186
+ thOns.onMousedown = (evnt) => $xeTable.triggerHeaderCellMousedownEvent(evnt, cellParams);
187
+ }
188
+ if (columnOpts.drag) {
189
+ thOns.onDragstart = $xeTable.handleHeaderCellDragDragstartEvent;
190
+ thOns.onDragend = $xeTable.handleHeaderCellDragDragendEvent;
191
+ thOns.onDragover = $xeTable.handleHeaderCellDragDragoverEvent;
192
+ if (isColDragCell) {
193
+ thOns.onMouseup = $xeTable.handleHeaderCellDragMouseupEvent;
202
194
  }
203
195
  }
204
- }
205
- const tcStyle = {};
206
- if (hasEllipsis) {
207
- tcStyle.height = `${currCellHeight}px`;
208
- } else {
209
- tcStyle.minHeight = `${currCellHeight}px`;
210
- }
211
- if (showCustomHeader) {
212
- } else if (isColGroup && !isLastRow) {
213
- let childWidth = 0;
214
- import_xe_utils.default.eachTree(column.children, (childRow) => {
215
- if (childRow.visible && (!childRow.children || !childRow.children.length)) {
216
- childWidth += childRow.renderWidth;
196
+ const isLastColumn = $columnIndex === cols.length - 1;
197
+ const showResizable = import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
198
+ const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
199
+ let isVNPreEmptyStatus = false;
200
+ if (isOptimizeMode && overflowX && !isGroup && !isMergeCell) {
201
+ if (!dragCol || dragCol.id !== colid) {
202
+ if (scrollXLoad && tableColumn.length > 10 && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
203
+ isVNPreEmptyStatus = true;
204
+ }
217
205
  }
218
- });
219
- tcStyle.width = `${childWidth}px`;
220
- }
221
- return (0, import_vue.h)(
222
- "th",
223
- {
224
- class: [
225
- "vxe-table--column vxe-header--column",
226
- colid,
227
- fixedHiddenColumn ? "fixed--hidden" : "fixed--visible",
228
- {
229
- [`col--${headAlign}`]: headAlign,
230
- [`col--${type}`]: type,
231
- "col--last": isLastColumn,
232
- "col--fixed": column.fixed,
233
- "col--group": isColGroup,
234
- "col--ellipsis": hasEllipsis,
235
- "fixed--width": !isAutoCellWidth,
236
- "is--pg-top": isCellPaddingTop,
237
- "is--pg-bottom": isCellPaddingBottom,
238
- "is--pg-left": isCellPaddingLeft,
239
- "is--pg-right": isCellPaddingRight,
240
- "is--sortable": column.sortable,
241
- "col--filter": !!filters,
242
- "is--filter-active": hasFilter,
243
- "is--drag-active": columnOpts.drag && !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
244
- "is--drag-disabled": columnOpts.drag && isDisabledDrag,
245
- "col--current": currColFlag && currentCol === column
246
- },
247
- headerClassName ? import_xe_utils.default.isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : "",
248
- headerCellClassName ? import_xe_utils.default.isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ""
249
- ],
250
- style: headerCellStyle ? import_xe_utils.default.isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
251
- ...thAttrs,
252
- ...thOns,
253
- key: showCustomHeader ? `${colid}${$columnIndex}` : columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
254
- },
255
- [
206
+ }
207
+ const tcStyle = {};
208
+ if (hasEllipsis) {
209
+ tcStyle.height = `${currCellHeight}px`;
210
+ } else {
211
+ tcStyle.minHeight = `${currCellHeight}px`;
212
+ }
213
+ if (showCustomHeader) {
214
+ } else if (isColGroup && !isLastRow) {
215
+ let childWidth = 0;
216
+ import_xe_utils.default.eachTree(column.children, (childRow) => {
217
+ if (childRow.visible && (!childRow.children || !childRow.children.length)) {
218
+ childWidth += childRow.renderWidth;
219
+ }
220
+ });
221
+ tcStyle.width = `${childWidth}px`;
222
+ }
223
+ return (0, import_vue.h)(
224
+ "th",
225
+ {
226
+ class: [
227
+ "vxe-table--column vxe-header--column",
228
+ colid,
229
+ fixedHiddenColumn ? "fixed--hidden" : "fixed--visible",
230
+ {
231
+ [`col--${headAlign}`]: headAlign,
232
+ [`col--${type}`]: type,
233
+ "col--last": isLastColumn,
234
+ "col--fixed": column.fixed,
235
+ "col--group": isColGroup,
236
+ "col--ellipsis": hasEllipsis,
237
+ "fixed--width": !isAutoCellWidth,
238
+ "is--pg-top": isCellPaddingTop,
239
+ "is--pg-bottom": isCellPaddingBottom,
240
+ "is--pg-left": isCellPaddingLeft,
241
+ "is--pg-right": isCellPaddingRight,
242
+ "is--sortable": column.sortable,
243
+ "col--filter": !!filters,
244
+ "is--filter-active": hasFilter,
245
+ "is--drag-active": columnOpts.drag && !column.fixed && !isDisabledDrag && (isCrossDrag || isPeerDrag || !column.parentId),
246
+ "is--drag-disabled": columnOpts.drag && isDisabledDrag,
247
+ "col--current": currColFlag && currentCol === column
248
+ },
249
+ headerClassName ? import_xe_utils.default.isFunction(headerClassName) ? headerClassName(cellParams) : headerClassName : "",
250
+ headerCellClassName ? import_xe_utils.default.isFunction(headerCellClassName) ? headerCellClassName(cellParams) : headerCellClassName : ""
251
+ ],
252
+ style: headerCellStyle ? import_xe_utils.default.isFunction(headerCellStyle) ? headerCellStyle(cellParams) : headerCellStyle : null,
253
+ ...thAttrs,
254
+ ...thOns,
255
+ key: showCustomHeader ? `${colid}${$columnIndex}` : columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
256
+ },
257
+ [
258
+ (0, import_vue.h)(
259
+ "div",
260
+ {
261
+ class: [
262
+ "vxe-cell",
263
+ {
264
+ "c--title": showTitle,
265
+ "c--tooltip": showTooltip,
266
+ "c--ellipsis": showEllipsis
267
+ }
268
+ ],
269
+ style: tcStyle
270
+ },
271
+ isVNPreEmptyStatus || isOptimizeMode && fixedHiddenColumn ? [] : [
272
+ (0, import_vue.h)(
273
+ "div",
274
+ {
275
+ colid,
276
+ class: "vxe-cell--wrapper vxe-header-cell--wrapper"
277
+ },
278
+ column.renderHeader(cellParams)
279
+ )
280
+ ]
281
+ ),
282
+ /**
283
+ * 列宽拖动
284
+ */
285
+ !fixedHiddenColumn && showResizable && (!showCustomHeader || isLastRow) ? (0, import_vue.h)("div", {
286
+ class: "vxe-cell--col-resizable",
287
+ onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
288
+ onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
289
+ }) : renderEmptyElement($xeTable)
290
+ ]
291
+ );
292
+ });
293
+ };
294
+ const renderFilterRows = (isOptimizeMode, cols) => {
295
+ const $xeGrid = $xeTable.xeGrid;
296
+ const $xeGantt = $xeTable.xeGantt;
297
+ const { fixedType } = props;
298
+ const { showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign } = tableProps;
299
+ const { overflowX, currColFlag } = tableReactData;
300
+ const { fullColumnIdData, currentCol } = tableInternalData;
301
+ const headerTooltipOpts = computeHeaderTooltipOpts.value;
302
+ const cellOpts = computeCellOpts.value;
303
+ const defaultRowHeight = computeDefaultRowHeight.value;
304
+ const headerCellOpts = computeHeaderCellOpts.value;
305
+ const floatingFilterOpts = computeFloatingFilterOpts.value;
306
+ const rendererOpts = computeRendererOpts.value;
307
+ const { cellClassName } = floatingFilterOpts;
308
+ const currCellHeight = (0, import_util.getCalcHeight)(headerCellOpts.height) || defaultRowHeight;
309
+ return cols.map((column, $columnIndex) => {
310
+ const { type, showHeaderOverflow, headerAlign, align, filters, editRender, cellRender, floatingFilters, filterRender, slots } = column;
311
+ const colid = column.id;
312
+ const colRest = fullColumnIdData[colid] || {};
313
+ const renderOpts = editRender || cellRender;
314
+ const flSlot = slots ? slots.floatingFilter || slots["floating-filter"] : null;
315
+ const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
316
+ const flCompConf = (0, import_utils.isEnableConf)(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer.get(filterRender.name) : null;
317
+ const rtFloatingFilter = flCompConf ? flCompConf.renderTableFloatingFilter : null;
318
+ const fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
319
+ const isPadding = import_xe_utils.default.isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding;
320
+ const headOverflow = import_xe_utils.default.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
321
+ const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : "") || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : "") || allAlign;
322
+ const showEllipsis = headOverflow === "ellipsis";
323
+ const showTitle = headOverflow === "title";
324
+ const showTooltip = headOverflow === true ? headerTooltipOpts.mode === "tooltip" : headOverflow === "tooltip";
325
+ const hasEllipsis = showTitle || showTooltip || showEllipsis;
326
+ let hasFilter = false;
327
+ let firstFilterOption = null;
328
+ if (filters) {
329
+ firstFilterOption = filters[0];
330
+ hasFilter = filters.some((item) => item.checked);
331
+ }
332
+ const columnIndex = colRest.index;
333
+ const _columnIndex = colRest._index;
334
+ const cellParams = {
335
+ $table: $xeTable,
336
+ $grid: $xeGrid,
337
+ $gantt: $xeGantt,
338
+ column,
339
+ columnIndex,
340
+ $columnIndex,
341
+ _columnIndex,
342
+ option: firstFilterOption,
343
+ fixed: fixedType,
344
+ source: sourceType,
345
+ type: renderType,
346
+ isHidden: fixedHiddenColumn,
347
+ hasFilter
348
+ };
349
+ const thAttrs = {
350
+ colid
351
+ };
352
+ const isLastColumn = $columnIndex === cols.length - 1;
353
+ const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
354
+ const tcStyle = {};
355
+ if (hasEllipsis) {
356
+ tcStyle.height = `${currCellHeight}px`;
357
+ } else {
358
+ tcStyle.minHeight = `${currCellHeight}px`;
359
+ }
360
+ return (0, import_vue.h)(
361
+ "th",
362
+ {
363
+ class: [
364
+ "vxe-table--column vxe-header--column is--floating-filters",
365
+ colid,
366
+ fixedHiddenColumn ? "fixed--hidden" : "fixed--visible",
367
+ {
368
+ [`col--${headAlign}`]: headAlign,
369
+ [`col--${type}`]: type,
370
+ "col--last": isLastColumn,
371
+ "col--fixed": column.fixed,
372
+ "col--ellipsis": hasEllipsis,
373
+ "fixed--width": !isAutoCellWidth,
374
+ "is--padding": isPadding,
375
+ "is--sortable": column.sortable,
376
+ "col--current": currColFlag && currentCol === column
377
+ }
378
+ ],
379
+ key: colid,
380
+ ...thAttrs
381
+ },
382
+ [
383
+ (0, import_vue.h)(
384
+ "div",
385
+ {
386
+ class: [
387
+ "vxe-cell",
388
+ "" + (cellClassName || ""),
389
+ {
390
+ "c--title": showTitle,
391
+ "c--tooltip": showTooltip,
392
+ "c--ellipsis": showEllipsis
393
+ }
394
+ ],
395
+ style: tcStyle
396
+ },
397
+ isOptimizeMode && fixedHiddenColumn && !floatingFilters ? [] : [
398
+ (0, import_vue.h)(
399
+ "div",
400
+ {
401
+ colid,
402
+ class: "vxe-cell--wrapper vxe-header-cell--wrapper"
403
+ },
404
+ flSlot ? $xeTable.callSlot(flSlot, cellParams) : rtFloatingFilter && firstFilterOption ? (0, import_vn.getSlotVNs)(rtFloatingFilter(filterRender, cellParams)) : []
405
+ )
406
+ ]
407
+ )
408
+ ]
409
+ );
410
+ });
411
+ };
412
+ const renderHeads = (isGroup, isOptimizeMode, headerGroups, renderColumnList) => {
413
+ const { fixedType } = props;
414
+ const { headerRowClassName, headerRowStyle } = tableProps;
415
+ const floatingFilterOpts = computeFloatingFilterOpts.value;
416
+ const rowVNs = headerGroups.map((cols, _rowIndex) => {
417
+ const params = { $table: $xeTable, rowIndex: _rowIndex, _rowIndex, $rowIndex: _rowIndex, fixed: fixedType, type: renderType };
418
+ return (0, import_vue.h)(
419
+ "tr",
420
+ {
421
+ key: _rowIndex,
422
+ class: ["vxe-header--row", headerRowClassName ? import_xe_utils.default.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName : ""],
423
+ style: headerRowStyle ? import_xe_utils.default.isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle : null
424
+ },
425
+ renderRows(isGroup, isOptimizeMode, headerGroups, _rowIndex, cols)
426
+ );
427
+ });
428
+ if (floatingFilterOpts.enabled) {
429
+ rowVNs.push(
256
430
  (0, import_vue.h)(
257
- "div",
431
+ "tr",
258
432
  {
259
- class: [
260
- "vxe-cell",
261
- {
262
- "c--title": showTitle,
263
- "c--tooltip": showTooltip,
264
- "c--ellipsis": showEllipsis
265
- }
266
- ],
267
- style: tcStyle
433
+ key: "ff",
434
+ class: ["vxe-header--row is--floating-filters", "" + (floatingFilterOpts.rowClassName || "")]
268
435
  },
269
- isVNPreEmptyStatus || isOptimizeMode && fixedHiddenColumn ? [] : [
270
- (0, import_vue.h)(
271
- "div",
272
- {
273
- colid,
274
- class: "vxe-cell--wrapper vxe-header-cell--wrapper"
275
- },
276
- column.renderHeader(cellParams)
277
- )
278
- ]
279
- ),
280
- /**
281
- * 列宽拖动
282
- */
283
- !fixedHiddenColumn && showResizable && (!showCustomHeader || isLastRow) ? (0, import_vue.h)("div", {
284
- class: "vxe-cell--col-resizable",
285
- onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
286
- onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
287
- }) : renderEmptyElement($xeTable)
288
- ]
289
- );
290
- });
291
- };
292
- const renderFilterRows = (isOptimizeMode, cols) => {
293
- const $xeGrid = $xeTable.xeGrid;
294
- const $xeGantt = $xeTable.xeGantt;
295
- const { fixedType } = props;
296
- const { showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign } = tableProps;
297
- const { overflowX, currColFlag } = tableReactData;
298
- const { fullColumnIdData, currentCol } = tableInternalData;
299
- const headerTooltipOpts = computeHeaderTooltipOpts.value;
300
- const cellOpts = computeCellOpts.value;
301
- const defaultRowHeight = computeDefaultRowHeight.value;
302
- const headerCellOpts = computeHeaderCellOpts.value;
303
- const floatingFilterOpts = computeFloatingFilterOpts.value;
304
- const rendererOpts = computeRendererOpts.value;
305
- const { cellClassName } = floatingFilterOpts;
306
- const currCellHeight = (0, import_util.getCalcHeight)(headerCellOpts.height) || defaultRowHeight;
307
- return cols.map((column, $columnIndex) => {
308
- const { type, showHeaderOverflow, headerAlign, align, filters, editRender, cellRender, floatingFilters, filterRender, slots } = column;
309
- const colid = column.id;
310
- const colRest = fullColumnIdData[colid] || {};
311
- const renderOpts = editRender || cellRender;
312
- const flSlot = slots ? slots.floatingFilter || slots["floating-filter"] : null;
313
- const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
314
- const flCompConf = (0, import_utils.isEnableConf)(filterRender) && filterRender.name ? rendererOpts[filterRender.name] || renderer.get(filterRender.name) : null;
315
- const rtFloatingFilter = flCompConf ? flCompConf.renderTableFloatingFilter : null;
316
- const fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
317
- const isPadding = import_xe_utils.default.isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding;
318
- const headOverflow = import_xe_utils.default.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
319
- const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : "") || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : "") || allAlign;
320
- const showEllipsis = headOverflow === "ellipsis";
321
- const showTitle = headOverflow === "title";
322
- const showTooltip = headOverflow === true ? headerTooltipOpts.mode === "tooltip" : headOverflow === "tooltip";
323
- const hasEllipsis = showTitle || showTooltip || showEllipsis;
324
- let hasFilter = false;
325
- let firstFilterOption = null;
326
- if (filters) {
327
- firstFilterOption = filters[0];
328
- hasFilter = filters.some((item) => item.checked);
436
+ renderFilterRows(isOptimizeMode, renderColumnList)
437
+ )
438
+ );
329
439
  }
330
- const columnIndex = colRest.index;
331
- const _columnIndex = colRest._index;
332
- const cellParams = {
333
- $table: $xeTable,
334
- $grid: $xeGrid,
335
- $gantt: $xeGantt,
336
- column,
337
- columnIndex,
338
- $columnIndex,
339
- _columnIndex,
340
- option: firstFilterOption,
341
- fixed: fixedType,
342
- source: sourceType,
343
- type: renderType,
344
- isHidden: fixedHiddenColumn,
345
- hasFilter
346
- };
347
- const thAttrs = {
348
- colid
349
- };
350
- const isLastColumn = $columnIndex === cols.length - 1;
351
- const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
352
- const tcStyle = {};
353
- if (hasEllipsis) {
354
- tcStyle.height = `${currCellHeight}px`;
440
+ return rowVNs;
441
+ };
442
+ const renderVN = () => {
443
+ const { fixedType, fixedColumn, tableColumn } = props;
444
+ const { mouseConfig } = tableProps;
445
+ const { isGroup, isColLoading, overflowX, scrollXLoad, dragCol } = tableReactData;
446
+ const { visibleColumn, fullColumnIdData } = tableInternalData;
447
+ const mouseOpts = computeMouseOpts.value;
448
+ const isHeaderRenderOptimize = computeIsHeaderRenderOptimize.value;
449
+ let renderHeaderList = headerColumn.value || [];
450
+ let renderColumnList = tableColumn;
451
+ const isOptimizeMode = isHeaderRenderOptimize;
452
+ if (isGroup) {
453
+ renderColumnList = visibleColumn;
355
454
  } else {
356
- tcStyle.minHeight = `${currCellHeight}px`;
455
+ if (!isOptimizeMode || !isColLoading && (fixedType || !overflowX)) {
456
+ renderColumnList = visibleColumn;
457
+ }
458
+ if (fixedType) {
459
+ if (isOptimizeMode) {
460
+ renderColumnList = fixedColumn || [];
461
+ }
462
+ }
463
+ renderHeaderList = [renderColumnList];
464
+ }
465
+ if (!fixedType && !isGroup) {
466
+ if (scrollXLoad && dragCol) {
467
+ if (renderColumnList.length > 2) {
468
+ const dCowRest = fullColumnIdData[dragCol.id];
469
+ if (dCowRest) {
470
+ const dcIndex = dCowRest._index;
471
+ const firstCol = renderColumnList[0];
472
+ const lastCol = renderColumnList[renderColumnList.length - 1];
473
+ const firstColRest = fullColumnIdData[firstCol.id];
474
+ const lastColRest = fullColumnIdData[lastCol.id];
475
+ if (firstColRest && lastColRest) {
476
+ const fcIndex = firstColRest._index;
477
+ const lcIndex = lastColRest._index;
478
+ if (dcIndex < fcIndex) {
479
+ renderColumnList = [dragCol].concat(renderColumnList);
480
+ renderHeaderList = [[dragCol].concat(renderHeaderList[0])].concat(renderHeaderList.slice(1));
481
+ } else if (dcIndex > lcIndex) {
482
+ renderColumnList = renderColumnList.concat([dragCol]);
483
+ renderHeaderList = [renderHeaderList[0].concat([dragCol])].concat(renderHeaderList.slice(1));
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
357
489
  }
358
490
  return (0, import_vue.h)(
359
- "th",
491
+ "div",
360
492
  {
361
- class: [
362
- "vxe-table--column vxe-header--column is--floating-filters",
363
- colid,
364
- fixedHiddenColumn ? "fixed--hidden" : "fixed--visible",
365
- {
366
- [`col--${headAlign}`]: headAlign,
367
- [`col--${type}`]: type,
368
- "col--last": isLastColumn,
369
- "col--fixed": column.fixed,
370
- "col--ellipsis": hasEllipsis,
371
- "fixed--width": !isAutoCellWidth,
372
- "is--padding": isPadding,
373
- "is--sortable": column.sortable,
374
- "col--current": currColFlag && currentCol === column
375
- }
376
- ],
377
- key: colid,
378
- ...thAttrs
493
+ ref: refElem,
494
+ class: ["vxe-table--header-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
495
+ xid: xID
379
496
  },
380
497
  [
381
498
  (0, import_vue.h)(
382
499
  "div",
383
500
  {
384
- class: [
385
- "vxe-cell",
386
- "" + (cellClassName || ""),
387
- {
388
- "c--title": showTitle,
389
- "c--tooltip": showTooltip,
390
- "c--ellipsis": showEllipsis
391
- }
392
- ],
393
- style: tcStyle
501
+ ref: refHeaderScroll,
502
+ class: "vxe-table--header-inner-wrapper",
503
+ onScroll(evnt) {
504
+ $xeTable.triggerHeaderScrollEvent(evnt, fixedType);
505
+ }
394
506
  },
395
- isOptimizeMode && fixedHiddenColumn && !floatingFilters ? [] : [
507
+ [
508
+ fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
509
+ ref: refHeaderXSpace,
510
+ class: "vxe-body--x-space"
511
+ }),
396
512
  (0, import_vue.h)(
513
+ "table",
514
+ {
515
+ ref: refHeaderTable,
516
+ class: "vxe-table--header",
517
+ xid: xID,
518
+ cellspacing: 0,
519
+ cellpadding: 0,
520
+ border: 0,
521
+ xvm: isOptimizeMode ? "1" : null
522
+ },
523
+ [
524
+ /**
525
+ * 列宽
526
+ */
527
+ (0, import_vue.h)(
528
+ "colgroup",
529
+ {
530
+ ref: refHeaderColgroup
531
+ },
532
+ renderColumnList.map((column, $columnIndex) => {
533
+ return (0, import_vue.h)("col", {
534
+ name: column.id,
535
+ key: $columnIndex,
536
+ style: {
537
+ width: `${column.renderWidth}px`
538
+ }
539
+ });
540
+ })
541
+ ),
542
+ /**
543
+ * 头部
544
+ */
545
+ (0, import_vue.h)(
546
+ "thead",
547
+ {
548
+ ref: refHeaderTHead
549
+ },
550
+ renderHeads(isGroup, isOptimizeMode, renderHeaderList, renderColumnList)
551
+ )
552
+ ]
553
+ ),
554
+ (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, import_vue.h)(
397
555
  "div",
398
556
  {
399
- colid,
400
- class: "vxe-cell--wrapper vxe-header-cell--wrapper"
557
+ class: "vxe-table--cell-area",
558
+ xid: xID
401
559
  },
402
- flSlot ? $xeTable.callSlot(flSlot, cellParams) : rtFloatingFilter && firstFilterOption ? (0, import_vn.getSlotVNs)(rtFloatingFilter(filterRender, cellParams)) : []
403
- )
560
+ [
561
+ (0, import_vue.h)("span", {
562
+ class: "vxe-table--cell-main-area"
563
+ }),
564
+ (0, import_vue.h)("span", {
565
+ class: "vxe-table--cell-clip-area"
566
+ }),
567
+ (0, import_vue.h)("span", {
568
+ class: "vxe-table--cell-extend-area"
569
+ }),
570
+ (0, import_vue.h)("span", {
571
+ class: "vxe-table--cell-multi-area"
572
+ }),
573
+ (0, import_vue.h)("span", {
574
+ class: "vxe-table--cell-active-area"
575
+ }),
576
+ (0, import_vue.h)("span", {
577
+ class: "vxe-table--cell-col-status-area"
578
+ })
579
+ ]
580
+ ) : renderEmptyElement($xeTable)
404
581
  ]
405
582
  )
406
583
  ]
407
584
  );
585
+ };
586
+ (0, import_vue.watch)(() => props.tableColumn, uploadColumn);
587
+ (0, import_vue.onMounted)(() => {
588
+ (0, import_vue.nextTick)(() => {
589
+ const { fixedType } = props;
590
+ const { internalData } = $xeTable;
591
+ const { elemStore } = internalData;
592
+ const prefix = `${fixedType || "main"}-header-`;
593
+ elemStore[`${prefix}wrapper`] = refElem;
594
+ elemStore[`${prefix}scroll`] = refHeaderScroll;
595
+ elemStore[`${prefix}table`] = refHeaderTable;
596
+ elemStore[`${prefix}colgroup`] = refHeaderColgroup;
597
+ elemStore[`${prefix}list`] = refHeaderTHead;
598
+ elemStore[`${prefix}xSpace`] = refHeaderXSpace;
599
+ elemStore[`${prefix}repair`] = refHeaderBorderRepair;
600
+ uploadColumn();
601
+ });
408
602
  });
409
- };
410
- const renderHeads = (isGroup, isOptimizeMode, headerGroups, renderColumnList) => {
411
- const { fixedType } = props;
412
- const { headerRowClassName, headerRowStyle } = tableProps;
413
- const floatingFilterOpts = computeFloatingFilterOpts.value;
414
- const rowVNs = headerGroups.map((cols, _rowIndex) => {
415
- const params = { $table: $xeTable, rowIndex: _rowIndex, _rowIndex, $rowIndex: _rowIndex, fixed: fixedType, type: renderType };
416
- return (0, import_vue.h)(
417
- "tr",
418
- {
419
- key: _rowIndex,
420
- class: ["vxe-header--row", headerRowClassName ? import_xe_utils.default.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName : ""],
421
- style: headerRowStyle ? import_xe_utils.default.isFunction(headerRowStyle) ? headerRowStyle(params) : headerRowStyle : null
422
- },
423
- renderRows(isGroup, isOptimizeMode, headerGroups, _rowIndex, cols)
424
- );
425
- });
426
- if (floatingFilterOpts.enabled) {
427
- rowVNs.push(
428
- (0, import_vue.h)(
429
- "tr",
430
- {
431
- key: "ff",
432
- class: ["vxe-header--row is--floating-filters", "" + (floatingFilterOpts.rowClassName || "")]
433
- },
434
- renderFilterRows(isOptimizeMode, renderColumnList)
435
- )
436
- );
437
- }
438
- return rowVNs;
439
- };
440
- const renderVN = () => {
441
- const { fixedType, fixedColumn, tableColumn } = props;
442
- const { mouseConfig } = tableProps;
443
- const { isGroup, isColLoading, overflowX, scrollXLoad, dragCol } = tableReactData;
444
- const { visibleColumn, fullColumnIdData } = tableInternalData;
445
- const mouseOpts = computeMouseOpts.value;
446
- const isHeaderRenderOptimize = computeIsHeaderRenderOptimize.value;
447
- let renderHeaderList = headerColumn.value || [];
448
- let renderColumnList = tableColumn;
449
- const isOptimizeMode = isHeaderRenderOptimize;
450
- if (isGroup) {
451
- renderColumnList = visibleColumn;
452
- } else {
453
- if (!isOptimizeMode || !isColLoading && (fixedType || !overflowX)) {
454
- renderColumnList = visibleColumn;
455
- }
456
- if (fixedType) {
457
- if (isOptimizeMode) {
458
- renderColumnList = fixedColumn || [];
459
- }
460
- }
461
- renderHeaderList = [renderColumnList];
462
- }
463
- if (!fixedType && !isGroup) {
464
- if (scrollXLoad && dragCol) {
465
- if (renderColumnList.length > 2) {
466
- const dCowRest = fullColumnIdData[dragCol.id];
467
- if (dCowRest) {
468
- const dcIndex = dCowRest._index;
469
- const firstCol = renderColumnList[0];
470
- const lastCol = renderColumnList[renderColumnList.length - 1];
471
- const firstColRest = fullColumnIdData[firstCol.id];
472
- const lastColRest = fullColumnIdData[lastCol.id];
473
- if (firstColRest && lastColRest) {
474
- const fcIndex = firstColRest._index;
475
- const lcIndex = lastColRest._index;
476
- if (dcIndex < fcIndex) {
477
- renderColumnList = [dragCol].concat(renderColumnList);
478
- renderHeaderList = [[dragCol].concat(renderHeaderList[0])].concat(renderHeaderList.slice(1));
479
- } else if (dcIndex > lcIndex) {
480
- renderColumnList = renderColumnList.concat([dragCol]);
481
- renderHeaderList = [renderHeaderList[0].concat([dragCol])].concat(renderHeaderList.slice(1));
482
- }
483
- }
484
- }
485
- }
486
- }
487
- }
488
- return (0, import_vue.h)(
489
- "div",
490
- {
491
- ref: refElem,
492
- class: ["vxe-table--header-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
493
- xid: xID
494
- },
495
- [
496
- (0, import_vue.h)(
497
- "div",
498
- {
499
- ref: refHeaderScroll,
500
- class: "vxe-table--header-inner-wrapper",
501
- onScroll(evnt) {
502
- $xeTable.triggerHeaderScrollEvent(evnt, fixedType);
503
- }
504
- },
505
- [
506
- fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
507
- ref: refHeaderXSpace,
508
- class: "vxe-body--x-space"
509
- }),
510
- (0, import_vue.h)(
511
- "table",
512
- {
513
- ref: refHeaderTable,
514
- class: "vxe-table--header",
515
- xid: xID,
516
- cellspacing: 0,
517
- cellpadding: 0,
518
- border: 0,
519
- xvm: isOptimizeMode ? "1" : null
520
- },
521
- [
522
- /**
523
- * 列宽
524
- */
525
- (0, import_vue.h)(
526
- "colgroup",
527
- {
528
- ref: refHeaderColgroup
529
- },
530
- renderColumnList.map((column, $columnIndex) => {
531
- return (0, import_vue.h)("col", {
532
- name: column.id,
533
- key: $columnIndex,
534
- style: {
535
- width: `${column.renderWidth}px`
536
- }
537
- });
538
- })
539
- ),
540
- /**
541
- * 头部
542
- */
543
- (0, import_vue.h)(
544
- "thead",
545
- {
546
- ref: refHeaderTHead
547
- },
548
- renderHeads(isGroup, isOptimizeMode, renderHeaderList, renderColumnList)
549
- )
550
- ]
551
- ),
552
- (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, import_vue.h)(
553
- "div",
554
- {
555
- class: "vxe-table--cell-area",
556
- xid: xID
557
- },
558
- [
559
- (0, import_vue.h)("span", {
560
- class: "vxe-table--cell-main-area"
561
- }),
562
- (0, import_vue.h)("span", {
563
- class: "vxe-table--cell-clip-area"
564
- }),
565
- (0, import_vue.h)("span", {
566
- class: "vxe-table--cell-extend-area"
567
- }),
568
- (0, import_vue.h)("span", {
569
- class: "vxe-table--cell-multi-area"
570
- }),
571
- (0, import_vue.h)("span", {
572
- class: "vxe-table--cell-active-area"
573
- }),
574
- (0, import_vue.h)("span", {
575
- class: "vxe-table--cell-col-status-area"
576
- })
577
- ]
578
- ) : renderEmptyElement($xeTable)
579
- ]
580
- )
581
- ]
582
- );
583
- };
584
- (0, import_vue.watch)(() => props.tableColumn, uploadColumn);
585
- (0, import_vue.onMounted)(() => {
586
- (0, import_vue.nextTick)(() => {
603
+ (0, import_vue.onUnmounted)(() => {
587
604
  const { fixedType } = props;
588
605
  const { internalData } = $xeTable;
589
606
  const { elemStore } = internalData;
590
607
  const prefix = `${fixedType || "main"}-header-`;
591
- elemStore[`${prefix}wrapper`] = refElem;
592
- elemStore[`${prefix}scroll`] = refHeaderScroll;
593
- elemStore[`${prefix}table`] = refHeaderTable;
594
- elemStore[`${prefix}colgroup`] = refHeaderColgroup;
595
- elemStore[`${prefix}list`] = refHeaderTHead;
596
- elemStore[`${prefix}xSpace`] = refHeaderXSpace;
597
- elemStore[`${prefix}repair`] = refHeaderBorderRepair;
598
- uploadColumn();
608
+ elemStore[`${prefix}wrapper`] = null;
609
+ elemStore[`${prefix}scroll`] = null;
610
+ elemStore[`${prefix}table`] = null;
611
+ elemStore[`${prefix}colgroup`] = null;
612
+ elemStore[`${prefix}list`] = null;
613
+ elemStore[`${prefix}xSpace`] = null;
614
+ elemStore[`${prefix}repair`] = null;
599
615
  });
600
- });
601
- (0, import_vue.onUnmounted)(() => {
602
- const { fixedType } = props;
603
- const { internalData } = $xeTable;
604
- const { elemStore } = internalData;
605
- const prefix = `${fixedType || "main"}-header-`;
606
- elemStore[`${prefix}wrapper`] = null;
607
- elemStore[`${prefix}scroll`] = null;
608
- elemStore[`${prefix}table`] = null;
609
- elemStore[`${prefix}colgroup`] = null;
610
- elemStore[`${prefix}list`] = null;
611
- elemStore[`${prefix}xSpace`] = null;
612
- elemStore[`${prefix}repair`] = null;
613
- });
614
- return renderVN;
615
- }
616
- });
616
+ return renderVN;
617
+ }
618
+ })
619
+ );