vxe-table 4.23.12 → 4.23.14

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 (215) hide show
  1. package/dist/all.esm.js +4789 -4773
  2. package/dist/all.esm.min.js +3 -3
  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 +126 -126
  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 +20 -20
  9. package/es/grid/src/grid.js +10 -10
  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 +118 -118
  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/emits.d.ts +1 -1
  24. package/es/table/src/emits.js +2 -2
  25. package/es/table/src/footer.js +341 -338
  26. package/es/table/src/group.d.ts +3 -3
  27. package/es/table/src/header.js +539 -536
  28. package/es/table/src/props.d.ts +2 -2
  29. package/es/table/src/props.js +2 -2
  30. package/es/table/src/table.d.ts +19 -19
  31. package/es/table/src/table.js +15 -10
  32. package/es/table/src/util.d.ts +1 -1
  33. package/es/toolbar/index.d.ts +18 -18
  34. package/es/toolbar/src/toolbar.d.ts +3 -3
  35. package/es/ui/index.js +1 -1
  36. package/es/ui/src/log.js +1 -1
  37. package/es/ui/src/vn.d.ts +1 -1
  38. package/lib/colgroup/index.d.ts +760 -0
  39. package/lib/column/index.d.ts +760 -0
  40. package/lib/components.d.ts +13 -0
  41. package/lib/grid/index.d.ts +2824 -0
  42. package/lib/grid/src/emits.d.ts +2 -0
  43. package/lib/grid/src/emits.js +2 -2
  44. package/lib/grid/src/grid.d.ts +556 -0
  45. package/lib/grid/src/grid.js +6 -6
  46. package/lib/grid/src/props.d.ts +200 -0
  47. package/lib/grid/src/props.js +3 -3
  48. package/lib/index.common.js +1 -0
  49. package/lib/index.d.ts +3 -0
  50. package/lib/index.js +1 -0
  51. package/lib/index.umd.js +4789 -4773
  52. package/lib/index.umd.min.js +3 -3
  53. package/lib/locale/ar-EG.umd.d.ts +908 -0
  54. package/lib/locale/de-DE.umd.d.ts +908 -0
  55. package/lib/locale/en-US.umd.d.ts +908 -0
  56. package/lib/locale/es-ES.umd.d.ts +908 -0
  57. package/lib/locale/fr-FR.umd.d.ts +908 -0
  58. package/lib/locale/hu-HU.umd.d.ts +908 -0
  59. package/lib/locale/hy-AM.umd.d.ts +908 -0
  60. package/lib/locale/id-ID.umd.d.ts +908 -0
  61. package/lib/locale/it-IT.umd.d.ts +908 -0
  62. package/lib/locale/ja-JP.umd.d.ts +908 -0
  63. package/lib/locale/ko-KR.umd.d.ts +908 -0
  64. package/lib/locale/lang/ar-EG.d.ts +908 -0
  65. package/lib/locale/lang/ar-EG.umd.d.ts +908 -0
  66. package/lib/locale/lang/de-DE.d.ts +908 -0
  67. package/lib/locale/lang/de-DE.umd.d.ts +908 -0
  68. package/lib/locale/lang/en-US.d.ts +908 -0
  69. package/lib/locale/lang/en-US.umd.d.ts +908 -0
  70. package/lib/locale/lang/es-ES.d.ts +908 -0
  71. package/lib/locale/lang/es-ES.umd.d.ts +908 -0
  72. package/lib/locale/lang/fr-FR.d.ts +908 -0
  73. package/lib/locale/lang/fr-FR.umd.d.ts +908 -0
  74. package/lib/locale/lang/hu-HU.d.ts +908 -0
  75. package/lib/locale/lang/hu-HU.umd.d.ts +908 -0
  76. package/lib/locale/lang/hy-AM.d.ts +908 -0
  77. package/lib/locale/lang/hy-AM.umd.d.ts +908 -0
  78. package/lib/locale/lang/id-ID.d.ts +908 -0
  79. package/lib/locale/lang/id-ID.umd.d.ts +908 -0
  80. package/lib/locale/lang/it-IT.d.ts +908 -0
  81. package/lib/locale/lang/it-IT.umd.d.ts +908 -0
  82. package/lib/locale/lang/ja-JP.d.ts +908 -0
  83. package/lib/locale/lang/ja-JP.umd.d.ts +908 -0
  84. package/lib/locale/lang/ko-KR.d.ts +908 -0
  85. package/lib/locale/lang/ko-KR.umd.d.ts +908 -0
  86. package/lib/locale/lang/ms-MY.d.ts +908 -0
  87. package/lib/locale/lang/ms-MY.umd.d.ts +908 -0
  88. package/lib/locale/lang/nb-NO.d.ts +908 -0
  89. package/lib/locale/lang/nb-NO.umd.d.ts +908 -0
  90. package/lib/locale/lang/pt-BR.d.ts +908 -0
  91. package/lib/locale/lang/pt-BR.umd.d.ts +908 -0
  92. package/lib/locale/lang/ru-RU.d.ts +908 -0
  93. package/lib/locale/lang/ru-RU.umd.d.ts +908 -0
  94. package/lib/locale/lang/th-TH.d.ts +908 -0
  95. package/lib/locale/lang/th-TH.umd.d.ts +908 -0
  96. package/lib/locale/lang/ug-CN.d.ts +908 -0
  97. package/lib/locale/lang/ug-CN.umd.d.ts +908 -0
  98. package/lib/locale/lang/uk-UA.d.ts +908 -0
  99. package/lib/locale/lang/uk-UA.umd.d.ts +908 -0
  100. package/lib/locale/lang/uz-UZ.d.ts +908 -0
  101. package/lib/locale/lang/uz-UZ.umd.d.ts +908 -0
  102. package/lib/locale/lang/vi-VN.d.ts +908 -0
  103. package/lib/locale/lang/vi-VN.umd.d.ts +908 -0
  104. package/lib/locale/lang/zh-CHT.d.ts +908 -0
  105. package/lib/locale/lang/zh-CHT.umd.d.ts +908 -0
  106. package/lib/locale/lang/zh-CN.d.ts +908 -0
  107. package/lib/locale/lang/zh-CN.umd.d.ts +908 -0
  108. package/lib/locale/lang/zh-HK.d.ts +908 -0
  109. package/lib/locale/lang/zh-HK.umd.d.ts +908 -0
  110. package/lib/locale/lang/zh-MO.d.ts +908 -0
  111. package/lib/locale/lang/zh-MO.umd.d.ts +908 -0
  112. package/lib/locale/lang/zh-TC.d.ts +908 -0
  113. package/lib/locale/lang/zh-TC.umd.d.ts +908 -0
  114. package/lib/locale/lang/zh-TW.d.ts +908 -0
  115. package/lib/locale/lang/zh-TW.umd.d.ts +908 -0
  116. package/lib/locale/ms-MY.umd.d.ts +908 -0
  117. package/lib/locale/nb-NO.umd.d.ts +908 -0
  118. package/lib/locale/pt-BR.umd.d.ts +908 -0
  119. package/lib/locale/ru-RU.umd.d.ts +908 -0
  120. package/lib/locale/th-TH.umd.d.ts +908 -0
  121. package/lib/locale/ug-CN.umd.d.ts +908 -0
  122. package/lib/locale/uk-UA.umd.d.ts +908 -0
  123. package/lib/locale/uz-UZ.umd.d.ts +908 -0
  124. package/lib/locale/vi-VN.umd.d.ts +908 -0
  125. package/lib/locale/zh-CHT.umd.d.ts +908 -0
  126. package/lib/locale/zh-CN.umd.d.ts +908 -0
  127. package/lib/locale/zh-HK.umd.d.ts +908 -0
  128. package/lib/locale/zh-MO.umd.d.ts +908 -0
  129. package/lib/locale/zh-TC.umd.d.ts +908 -0
  130. package/lib/locale/zh-TW.umd.d.ts +908 -0
  131. package/lib/table/index.d.ts +2672 -0
  132. package/lib/table/module/custom/hook.d.ts +1 -0
  133. package/lib/table/module/custom/panel.d.ts +17 -0
  134. package/lib/table/module/custom/panel.js +1588 -1585
  135. package/lib/table/module/edit/hook.d.ts +1 -0
  136. package/lib/table/module/export/export-panel.d.ts +27 -0
  137. package/lib/table/module/export/export-panel.js +587 -584
  138. package/lib/table/module/export/hook.d.ts +1 -0
  139. package/lib/table/module/export/import-panel.d.ts +27 -0
  140. package/lib/table/module/export/import-panel.js +258 -255
  141. package/lib/table/module/export/util.d.ts +5 -0
  142. package/lib/table/module/filter/hook.d.ts +1 -0
  143. package/lib/table/module/filter/hook.js +1 -15
  144. package/lib/table/module/filter/panel.d.ts +16 -0
  145. package/lib/table/module/filter/panel.js +281 -278
  146. package/lib/table/module/keyboard/hook.d.ts +1 -0
  147. package/lib/table/module/menu/hook.d.ts +1 -0
  148. package/lib/table/module/menu/panel.d.ts +2 -0
  149. package/lib/table/module/menu/panel.js +225 -222
  150. package/lib/table/module/validator/hook.d.ts +1 -0
  151. package/lib/table/render/index.d.ts +1 -0
  152. package/lib/table/src/body.d.ts +24 -0
  153. package/lib/table/src/body.js +895 -892
  154. package/lib/table/src/cell.d.ts +192 -0
  155. package/lib/table/src/column.d.ts +263 -0
  156. package/lib/table/src/columnInfo.d.ts +13 -0
  157. package/lib/table/src/emits.d.ts +2 -0
  158. package/lib/table/src/emits.js +2 -2
  159. package/lib/table/src/footer.d.ts +45 -0
  160. package/lib/table/src/footer.js +341 -338
  161. package/lib/table/src/group.d.ts +178 -0
  162. package/lib/table/src/header.d.ts +26 -0
  163. package/lib/table/src/header.js +539 -536
  164. package/lib/table/src/props.d.ts +238 -0
  165. package/lib/table/src/props.js +2 -2
  166. package/lib/table/src/store.d.ts +6 -0
  167. package/lib/table/src/table.d.ts +539 -0
  168. package/lib/table/src/table.js +13 -8
  169. package/lib/table/src/use/cell-view.d.ts +10 -0
  170. package/lib/table/src/use/index.d.ts +1 -0
  171. package/lib/table/src/util.d.ts +74 -0
  172. package/lib/toolbar/index.d.ts +340 -0
  173. package/lib/toolbar/src/toolbar.d.ts +75 -0
  174. package/lib/ui/index.d.ts +85 -0
  175. package/lib/ui/index.js +1 -1
  176. package/lib/ui/src/anime.d.ts +10 -0
  177. package/lib/ui/src/comp.d.ts +2 -0
  178. package/lib/ui/src/dom.d.ts +80 -0
  179. package/lib/ui/src/log.d.ts +6 -0
  180. package/lib/ui/src/log.js +1 -1
  181. package/lib/ui/src/utils.d.ts +23 -0
  182. package/lib/ui/src/vn.d.ts +7 -0
  183. package/lib/v-x-e-table/index.d.ts +2 -0
  184. package/lib/vxe-colgroup/index.d.ts +3 -0
  185. package/lib/vxe-column/index.d.ts +3 -0
  186. package/lib/vxe-grid/index.d.ts +3 -0
  187. package/lib/vxe-table/index.d.ts +3 -0
  188. package/lib/vxe-toolbar/index.d.ts +3 -0
  189. package/lib/vxe-ui/index.d.ts +3 -0
  190. package/package.json +7 -7
  191. package/packages/grid/src/emits.ts +2 -2
  192. package/packages/grid/src/grid.ts +8 -8
  193. package/packages/grid/src/props.ts +3 -3
  194. package/packages/index.ts +2 -2
  195. package/packages/table/module/custom/panel.ts +2 -2
  196. package/packages/table/module/export/export-panel.ts +2 -2
  197. package/packages/table/module/export/import-panel.ts +2 -2
  198. package/packages/table/module/filter/hook.ts +1 -15
  199. package/packages/table/module/filter/panel.ts +2 -2
  200. package/packages/table/module/menu/panel.ts +2 -2
  201. package/packages/table/src/body.ts +2 -2
  202. package/packages/table/src/emits.ts +1 -1
  203. package/packages/table/src/footer.ts +2 -2
  204. package/packages/table/src/header.ts +2 -2
  205. package/packages/table/src/props.ts +1 -1
  206. package/packages/table/src/table.ts +21 -33
  207. /package/dist/{iconfont.1793090564415.ttf → iconfont.1793683456086.ttf} +0 -0
  208. /package/dist/{iconfont.1793090564415.woff → iconfont.1793683456086.woff} +0 -0
  209. /package/dist/{iconfont.1793090564415.woff2 → iconfont.1793683456086.woff2} +0 -0
  210. /package/es/{iconfont.1793090564415.ttf → iconfont.1793683456086.ttf} +0 -0
  211. /package/es/{iconfont.1793090564415.woff → iconfont.1793683456086.woff} +0 -0
  212. /package/es/{iconfont.1793090564415.woff2 → iconfont.1793683456086.woff2} +0 -0
  213. /package/lib/{iconfont.1793090564415.ttf → iconfont.1793683456086.ttf} +0 -0
  214. /package/lib/{iconfont.1793090564415.woff → iconfont.1793683456086.woff} +0 -0
  215. /package/lib/{iconfont.1793090564415.woff2 → iconfont.1793683456086.woff2} +0 -0
@@ -42,250 +42,268 @@ var import_vn = require("../../ui/src/vn");
42
42
  const { getI18n, renderer, renderEmptyElement } = import_core.VxeUI;
43
43
  const sourceType = "table";
44
44
  const renderType = "body";
45
- var body_default = (0, import_comp.defineVxeComponent)({
46
- name: "VxeTableBody",
47
- props: {
48
- tableData: Array,
49
- tableColumn: Array,
50
- fixedColumn: Array,
51
- fixedType: {
52
- type: String,
53
- default: ""
54
- }
55
- },
56
- setup(props) {
57
- const $xeTable = (0, import_vue.inject)("$xeTable", {});
58
- const { xID, props: tableProps, context: tableContext, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
59
- const {
60
- computeEditOpts,
61
- computeMouseOpts,
62
- computeCellOffsetWidth,
63
- computeAreaOpts,
64
- computeDefaultRowHeight,
65
- computeEmptyOpts,
66
- computeTooltipOpts,
67
- computeRadioOpts,
68
- computeExpandOpts,
69
- computeTreeOpts,
70
- computeCheckboxOpts,
71
- computeCellOpts,
72
- computeValidOpts,
73
- computeRowOpts,
74
- computeColumnOpts,
75
- computeRowDragOpts,
76
- computeResizableOpts,
77
- computeVirtualXOpts,
78
- computeVirtualYOpts,
79
- computeIsBodyRenderOptimize,
80
- computeRendererOpts
81
- } = $xeTable.getComputeMaps();
82
- const refElem = (0, import_vue.ref)();
83
- const refBodyScroll = (0, import_vue.ref)();
84
- const refBodyTable = (0, import_vue.ref)();
85
- const refBodyColgroup = (0, import_vue.ref)();
86
- const refBodyTBody = (0, import_vue.ref)();
87
- const refBodyXSpace = (0, import_vue.ref)();
88
- const refBodyYSpace = (0, import_vue.ref)();
89
- const refBodyEmptyBlock = (0, import_vue.ref)();
90
- const isVMScrollProcess = () => {
91
- const { delayHover } = tableProps;
92
- const { isDragResize } = tableReactData;
93
- const { lastSTime } = tableInternalData;
94
- return !!(isDragResize || lastSTime && Date.now() < lastSTime + delayHover);
95
- };
96
- const renderLine = (rowid, params, cellHeight) => {
97
- const { column } = params;
98
- const { treeConfig } = tableProps;
99
- const cellOpts = computeCellOpts.value;
100
- const rowOpts = computeRowOpts.value;
101
- const defaultRowHeight = computeDefaultRowHeight.value;
102
- const treeOpts = computeTreeOpts.value;
103
- const { slots, treeNode } = column;
104
- const { fullAllDataRowIdData } = tableInternalData;
105
- if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
106
- if (slots && slots.line) {
107
- return $xeTable.callSlot(slots.line, params);
45
+ var body_default = (
46
+ /* define-vxe-component start */
47
+ (0, import_comp.defineVxeComponent)({
48
+ name: "VxeTableBody",
49
+ props: {
50
+ tableData: Array,
51
+ tableColumn: Array,
52
+ fixedColumn: Array,
53
+ fixedType: {
54
+ type: String,
55
+ default: ""
56
+ }
57
+ },
58
+ setup(props) {
59
+ const $xeTable = (0, import_vue.inject)("$xeTable", {});
60
+ const { xID, props: tableProps, context: tableContext, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
61
+ const {
62
+ computeEditOpts,
63
+ computeMouseOpts,
64
+ computeCellOffsetWidth,
65
+ computeAreaOpts,
66
+ computeDefaultRowHeight,
67
+ computeEmptyOpts,
68
+ computeTooltipOpts,
69
+ computeRadioOpts,
70
+ computeExpandOpts,
71
+ computeTreeOpts,
72
+ computeCheckboxOpts,
73
+ computeCellOpts,
74
+ computeValidOpts,
75
+ computeRowOpts,
76
+ computeColumnOpts,
77
+ computeRowDragOpts,
78
+ computeResizableOpts,
79
+ computeVirtualXOpts,
80
+ computeVirtualYOpts,
81
+ computeIsBodyRenderOptimize,
82
+ computeRendererOpts
83
+ } = $xeTable.getComputeMaps();
84
+ const refElem = (0, import_vue.ref)();
85
+ const refBodyScroll = (0, import_vue.ref)();
86
+ const refBodyTable = (0, import_vue.ref)();
87
+ const refBodyColgroup = (0, import_vue.ref)();
88
+ const refBodyTBody = (0, import_vue.ref)();
89
+ const refBodyXSpace = (0, import_vue.ref)();
90
+ const refBodyYSpace = (0, import_vue.ref)();
91
+ const refBodyEmptyBlock = (0, import_vue.ref)();
92
+ const isVMScrollProcess = () => {
93
+ const { delayHover } = tableProps;
94
+ const { isDragResize } = tableReactData;
95
+ const { lastSTime } = tableInternalData;
96
+ return !!(isDragResize || lastSTime && Date.now() < lastSTime + delayHover);
97
+ };
98
+ const renderLine = (rowid, params, cellHeight) => {
99
+ const { column } = params;
100
+ const { treeConfig } = tableProps;
101
+ const cellOpts = computeCellOpts.value;
102
+ const rowOpts = computeRowOpts.value;
103
+ const defaultRowHeight = computeDefaultRowHeight.value;
104
+ const treeOpts = computeTreeOpts.value;
105
+ const { slots, treeNode } = column;
106
+ const { fullAllDataRowIdData } = tableInternalData;
107
+ if (treeConfig && treeNode && (treeOpts.showLine || treeOpts.line)) {
108
+ if (slots && slots.line) {
109
+ return $xeTable.callSlot(slots.line, params);
110
+ }
111
+ const rowRest = fullAllDataRowIdData[rowid];
112
+ let rLevel = 0;
113
+ let prevRow = null;
114
+ let parentRow = null;
115
+ let lineHeight = "";
116
+ if (rowRest) {
117
+ rLevel = rowRest.level;
118
+ prevRow = rowRest.items[rowRest.treeIndex - 1];
119
+ parentRow = rowRest.parent;
120
+ }
121
+ if (!rLevel && !treeOpts.showRootLine) {
122
+ return [];
123
+ }
124
+ if (prevRow) {
125
+ const prevRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, prevRow)] || {};
126
+ lineHeight = `${prevRowRest.lineHeight || 0}px`;
127
+ } else if (rLevel && parentRow) {
128
+ const parentRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, parentRow)] || {};
129
+ lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + (0, import_util.getCellRestHeight)(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
130
+ }
131
+ return [
132
+ (0, import_vue.h)(
133
+ "div",
134
+ {
135
+ key: "tl",
136
+ class: "vxe-tree--line-wrapper"
137
+ },
138
+ [
139
+ (0, import_vue.h)("div", {
140
+ class: "vxe-tree--line",
141
+ style: {
142
+ height: lineHeight,
143
+ bottom: `-${Math.floor(cellHeight / 2)}px`,
144
+ left: `calc(${rLevel * treeOpts.indent}px + 1em)`
145
+ }
146
+ })
147
+ ]
148
+ )
149
+ ];
108
150
  }
109
- const rowRest = fullAllDataRowIdData[rowid];
110
- let rLevel = 0;
111
- let prevRow = null;
112
- let parentRow = null;
113
- let lineHeight = "";
114
- if (rowRest) {
115
- rLevel = rowRest.level;
116
- prevRow = rowRest.items[rowRest.treeIndex - 1];
117
- parentRow = rowRest.parent;
151
+ return [];
152
+ };
153
+ const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
154
+ const $xeGrid = $xeTable.xeGrid;
155
+ const $xeGantt = $xeTable.xeGantt;
156
+ const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
157
+ const { tableData, tableColumn, dragRow, overflowX, overflowY, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps, currColFlag } = tableReactData;
158
+ const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps, currentCol } = tableInternalData;
159
+ const cellOpts = computeCellOpts.value;
160
+ const validOpts = computeValidOpts.value;
161
+ const checkboxOpts = computeCheckboxOpts.value;
162
+ const editOpts = computeEditOpts.value;
163
+ const tooltipOpts = computeTooltipOpts.value;
164
+ const resizableOpts = computeResizableOpts.value;
165
+ const virtualXOpts = computeVirtualXOpts.value;
166
+ const virtualYOpts = computeVirtualYOpts.value;
167
+ const rendererOpts = computeRendererOpts.value;
168
+ const { isAllColumnDrag, isAllRowDrag } = resizableOpts;
169
+ const rowOpts = computeRowOpts.value;
170
+ const rowDragOpts = computeRowDragOpts.value;
171
+ const defaultRowHeight = computeDefaultRowHeight.value;
172
+ const customCellHeight = calcCellHeightFlag ? cellOpts.height || rowOpts.height : 0;
173
+ const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = rowDragOpts;
174
+ const columnOpts = computeColumnOpts.value;
175
+ const mouseOpts = computeMouseOpts.value;
176
+ const areaOpts = computeAreaOpts.value;
177
+ const cellOffsetWidth = computeCellOffsetWidth.value;
178
+ const { selectCellToRow } = areaOpts;
179
+ const { field, type, cellRender, editRender, align, showOverflow, className, treeNode, rowResize, padding, verticalAlign, slots } = column;
180
+ const { verticalAlign: allVerticalAlign, minHeight, maxHeight } = cellOpts;
181
+ const { actived } = editStore;
182
+ const rowRest = fullAllDataRowIdData[rowid] || {};
183
+ const colid = column.id;
184
+ const colRest = fullColumnIdData[colid] || {};
185
+ const renderOpts = editRender || cellRender;
186
+ const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
187
+ const compCellClassName = compConf ? compConf.tableCellClassName || compConf.cellClassName : null;
188
+ const compCellStyle = compConf ? compConf.tableCellStyle || compConf.cellStyle : "";
189
+ const showAllTip = tooltipOpts.showAll;
190
+ const columnIndex = colRest.index;
191
+ const _columnIndex = colRest._index;
192
+ const isEdit = (0, import_utils.isEnableConf)(editRender);
193
+ const resizeHeight = resizeHeightFlag ? rowRest.resizeHeight : 0;
194
+ let fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
195
+ const cellPadding = (0, import_utils.getDefaultConfig)(padding, allPadding === null ? cellOpts.padding : allPadding);
196
+ const isAllCellPadding = cellPadding === true;
197
+ const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
198
+ const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
199
+ const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
200
+ const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
201
+ const cellOverflow = (0, import_utils.getDefaultConfig)(showOverflow, allShowOverflow);
202
+ const showEllipsis = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "ellipsis";
203
+ const showTitle = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "title";
204
+ const showTooltip = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "tooltip";
205
+ const hasEllipsis = isAllOverflow || showTitle || showTooltip || showEllipsis;
206
+ const showResizable = import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
207
+ const isCsHeight = !!customCellHeight;
208
+ const isRsHeight = resizeHeight > 0;
209
+ let isDirty;
210
+ const tdOns = {};
211
+ const cellAlign = align || (compConf ? compConf.tableCellAlign : "") || allAlign;
212
+ const cellVerticalAlign = import_xe_utils.default.eqNull(verticalAlign) ? allVerticalAlign : verticalAlign;
213
+ const errorValidItem = validErrorMaps[`${rowid}:${colid}`];
214
+ const showValidTip = editRules && validOpts.showErrorMessage && (validOpts.message === "default" ? height || tableData.length > 1 : validOpts.message === "inline");
215
+ const tdAttrs = { colid };
216
+ const cellParams = {
217
+ $table: $xeTable,
218
+ $grid: $xeGrid,
219
+ $gantt: $xeGantt,
220
+ isEdit: false,
221
+ seq,
222
+ rowid,
223
+ row,
224
+ rowIndex,
225
+ $rowIndex,
226
+ _rowIndex,
227
+ column,
228
+ columnIndex,
229
+ $columnIndex,
230
+ _columnIndex,
231
+ fixed: fixedType,
232
+ source: sourceType,
233
+ type: renderType,
234
+ isHidden: !!fixedHiddenColumn,
235
+ level: rowLevel,
236
+ visibleData: afterFullData,
237
+ data: tableData,
238
+ items
239
+ };
240
+ let isRowDragCell = false;
241
+ let isDisabledDrag = false;
242
+ if (rowOpts.drag) {
243
+ isRowDragCell = rowDragOpts.trigger === "row" || column.dragSort && rowDragOpts.trigger === "cell";
118
244
  }
119
- if (!rLevel && !treeOpts.showRootLine) {
120
- return [];
245
+ if (isRowDragCell) {
246
+ isDisabledDrag = !!(dragDisabledMethod && dragDisabledMethod(cellParams));
121
247
  }
122
- if (prevRow) {
123
- const prevRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, prevRow)] || {};
124
- lineHeight = `${prevRowRest.lineHeight || 0}px`;
125
- } else if (rLevel && parentRow) {
126
- const parentRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, parentRow)] || {};
127
- lineHeight = `calc(-1em + ${Math.floor(cellHeight / 2 + (0, import_util.getCellRestHeight)(parentRowRest, cellOpts, rowOpts, defaultRowHeight) / 2)}px)`;
248
+ if (showTitle || showTooltip || showAllTip || tooltipConfig) {
249
+ tdOns.onMouseover = (evnt) => {
250
+ if (!isVMScrollProcess()) {
251
+ if (showTitle) {
252
+ (0, import_dom.updateCellTitle)(evnt.currentTarget, column);
253
+ } else if (showTooltip || showAllTip) {
254
+ $xeTable.triggerBodyTooltipEvent(evnt, cellParams);
255
+ }
256
+ }
257
+ $xeTable.dispatchEvent("cell-mouseenter", Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
258
+ };
128
259
  }
129
- return [
130
- (0, import_vue.h)(
131
- "div",
132
- {
133
- key: "tl",
134
- class: "vxe-tree--line-wrapper"
135
- },
136
- [
137
- (0, import_vue.h)("div", {
138
- class: "vxe-tree--line",
139
- style: {
140
- height: lineHeight,
141
- bottom: `-${Math.floor(cellHeight / 2)}px`,
142
- left: `calc(${rLevel * treeOpts.indent}px + 1em)`
143
- }
144
- })
145
- ]
146
- )
147
- ];
148
- }
149
- return [];
150
- };
151
- const renderTdColumn = (seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, columns, items) => {
152
- const $xeGrid = $xeTable.xeGrid;
153
- const $xeGantt = $xeTable.xeGantt;
154
- const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps;
155
- const { tableData, tableColumn, dragRow, overflowX, overflowY, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps, currColFlag } = tableReactData;
156
- const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps, currentCol } = tableInternalData;
157
- const cellOpts = computeCellOpts.value;
158
- const validOpts = computeValidOpts.value;
159
- const checkboxOpts = computeCheckboxOpts.value;
160
- const editOpts = computeEditOpts.value;
161
- const tooltipOpts = computeTooltipOpts.value;
162
- const resizableOpts = computeResizableOpts.value;
163
- const virtualXOpts = computeVirtualXOpts.value;
164
- const virtualYOpts = computeVirtualYOpts.value;
165
- const rendererOpts = computeRendererOpts.value;
166
- const { isAllColumnDrag, isAllRowDrag } = resizableOpts;
167
- const rowOpts = computeRowOpts.value;
168
- const rowDragOpts = computeRowDragOpts.value;
169
- const defaultRowHeight = computeDefaultRowHeight.value;
170
- const customCellHeight = calcCellHeightFlag ? cellOpts.height || rowOpts.height : 0;
171
- const { disabledMethod: dragDisabledMethod, isCrossDrag, isPeerDrag } = rowDragOpts;
172
- const columnOpts = computeColumnOpts.value;
173
- const mouseOpts = computeMouseOpts.value;
174
- const areaOpts = computeAreaOpts.value;
175
- const cellOffsetWidth = computeCellOffsetWidth.value;
176
- const { selectCellToRow } = areaOpts;
177
- const { field, type, cellRender, editRender, align, showOverflow, className, treeNode, rowResize, padding, verticalAlign, slots } = column;
178
- const { verticalAlign: allVerticalAlign, minHeight, maxHeight } = cellOpts;
179
- const { actived } = editStore;
180
- const rowRest = fullAllDataRowIdData[rowid] || {};
181
- const colid = column.id;
182
- const colRest = fullColumnIdData[colid] || {};
183
- const renderOpts = editRender || cellRender;
184
- const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
185
- const compCellClassName = compConf ? compConf.tableCellClassName || compConf.cellClassName : null;
186
- const compCellStyle = compConf ? compConf.tableCellStyle || compConf.cellStyle : "";
187
- const showAllTip = tooltipOpts.showAll;
188
- const columnIndex = colRest.index;
189
- const _columnIndex = colRest._index;
190
- const isEdit = (0, import_utils.isEnableConf)(editRender);
191
- const resizeHeight = resizeHeightFlag ? rowRest.resizeHeight : 0;
192
- let fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
193
- const cellPadding = (0, import_utils.getDefaultConfig)(padding, allPadding === null ? cellOpts.padding : allPadding);
194
- const isAllCellPadding = cellPadding === true;
195
- const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
196
- const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
197
- const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
198
- const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
199
- const cellOverflow = (0, import_utils.getDefaultConfig)(showOverflow, allShowOverflow);
200
- const showEllipsis = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "ellipsis";
201
- const showTitle = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "title";
202
- const showTooltip = (cellOverflow === true ? tooltipOpts.mode : cellOverflow) === "tooltip";
203
- const hasEllipsis = isAllOverflow || showTitle || showTooltip || showEllipsis;
204
- const showResizable = import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
205
- const isCsHeight = !!customCellHeight;
206
- const isRsHeight = resizeHeight > 0;
207
- let isDirty;
208
- const tdOns = {};
209
- const cellAlign = align || (compConf ? compConf.tableCellAlign : "") || allAlign;
210
- const cellVerticalAlign = import_xe_utils.default.eqNull(verticalAlign) ? allVerticalAlign : verticalAlign;
211
- const errorValidItem = validErrorMaps[`${rowid}:${colid}`];
212
- const showValidTip = editRules && validOpts.showErrorMessage && (validOpts.message === "default" ? height || tableData.length > 1 : validOpts.message === "inline");
213
- const tdAttrs = { colid };
214
- const cellParams = {
215
- $table: $xeTable,
216
- $grid: $xeGrid,
217
- $gantt: $xeGantt,
218
- isEdit: false,
219
- seq,
220
- rowid,
221
- row,
222
- rowIndex,
223
- $rowIndex,
224
- _rowIndex,
225
- column,
226
- columnIndex,
227
- $columnIndex,
228
- _columnIndex,
229
- fixed: fixedType,
230
- source: sourceType,
231
- type: renderType,
232
- isHidden: !!fixedHiddenColumn,
233
- level: rowLevel,
234
- visibleData: afterFullData,
235
- data: tableData,
236
- items
237
- };
238
- let isRowDragCell = false;
239
- let isDisabledDrag = false;
240
- if (rowOpts.drag) {
241
- isRowDragCell = rowDragOpts.trigger === "row" || column.dragSort && rowDragOpts.trigger === "cell";
242
- }
243
- if (isRowDragCell) {
244
- isDisabledDrag = !!(dragDisabledMethod && dragDisabledMethod(cellParams));
245
- }
246
- if (showTitle || showTooltip || showAllTip || tooltipConfig) {
247
- tdOns.onMouseover = (evnt) => {
248
- if (!isVMScrollProcess()) {
249
- if (showTitle) {
250
- (0, import_dom.updateCellTitle)(evnt.currentTarget, column);
251
- } else if (showTooltip || showAllTip) {
252
- $xeTable.triggerBodyTooltipEvent(evnt, cellParams);
260
+ if (showTooltip || showAllTip || tooltipConfig) {
261
+ tdOns.onMouseleave = (evnt) => {
262
+ if (!isVMScrollProcess()) {
263
+ if (showTooltip || showAllTip) {
264
+ $xeTable.handleTargetLeaveEvent(evnt);
265
+ }
253
266
  }
254
- }
255
- $xeTable.dispatchEvent("cell-mouseenter", Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
267
+ $xeTable.dispatchEvent("cell-mouseleave", Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
268
+ };
269
+ }
270
+ if (isRowDragCell || checkboxOpts.range || (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts)) {
271
+ tdOns.onMousedown = (evnt) => {
272
+ $xeTable.triggerCellMousedownEvent(evnt, cellParams);
273
+ };
274
+ }
275
+ if (isRowDragCell) {
276
+ tdOns.onMouseup = $xeTable.triggerCellMouseupEvent;
277
+ }
278
+ tdOns.onClick = (evnt) => {
279
+ $xeTable.triggerCellClickEvent(evnt, cellParams);
256
280
  };
257
- }
258
- if (showTooltip || showAllTip || tooltipConfig) {
259
- tdOns.onMouseleave = (evnt) => {
260
- if (!isVMScrollProcess()) {
261
- if (showTooltip || showAllTip) {
262
- $xeTable.handleTargetLeaveEvent(evnt);
281
+ tdOns.onDblclick = (evnt) => {
282
+ $xeTable.triggerCellDblclickEvent(evnt, cellParams);
283
+ };
284
+ let isMergeCell = false;
285
+ let mergeColspan = 1;
286
+ let mergeRowspan = 1;
287
+ if (mergeBodyFlag && mergeBodyList.length) {
288
+ const spanRest = mergeBodyCellMaps[`${_rowIndex}:${_columnIndex}`];
289
+ if (spanRest) {
290
+ const { rowspan, colspan } = spanRest;
291
+ if (!rowspan || !colspan) {
292
+ return renderEmptyElement($xeTable);
293
+ }
294
+ if (rowspan > 1) {
295
+ isMergeCell = true;
296
+ mergeRowspan = rowspan;
297
+ tdAttrs.rowspan = rowspan;
298
+ }
299
+ if (colspan > 1) {
300
+ isMergeCell = true;
301
+ mergeColspan = colspan;
302
+ tdAttrs.colspan = colspan;
263
303
  }
264
304
  }
265
- $xeTable.dispatchEvent("cell-mouseleave", Object.assign({ cell: evnt.currentTarget }, cellParams), evnt);
266
- };
267
- }
268
- if (isRowDragCell || checkboxOpts.range || (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts)) {
269
- tdOns.onMousedown = (evnt) => {
270
- $xeTable.triggerCellMousedownEvent(evnt, cellParams);
271
- };
272
- }
273
- if (isRowDragCell) {
274
- tdOns.onMouseup = $xeTable.triggerCellMouseupEvent;
275
- }
276
- tdOns.onClick = (evnt) => {
277
- $xeTable.triggerCellClickEvent(evnt, cellParams);
278
- };
279
- tdOns.onDblclick = (evnt) => {
280
- $xeTable.triggerCellDblclickEvent(evnt, cellParams);
281
- };
282
- let isMergeCell = false;
283
- let mergeColspan = 1;
284
- let mergeRowspan = 1;
285
- if (mergeBodyFlag && mergeBodyList.length) {
286
- const spanRest = mergeBodyCellMaps[`${_rowIndex}:${_columnIndex}`];
287
- if (spanRest) {
288
- const { rowspan, colspan } = spanRest;
305
+ } else if (spanMethod) {
306
+ const { rowspan = 1, colspan = 1 } = spanMethod(cellParams) || {};
289
307
  if (!rowspan || !colspan) {
290
308
  return renderEmptyElement($xeTable);
291
309
  }
@@ -300,115 +318,65 @@ var body_default = (0, import_comp.defineVxeComponent)({
300
318
  tdAttrs.colspan = colspan;
301
319
  }
302
320
  }
303
- } else if (spanMethod) {
304
- const { rowspan = 1, colspan = 1 } = spanMethod(cellParams) || {};
305
- if (!rowspan || !colspan) {
306
- return renderEmptyElement($xeTable);
307
- }
308
- if (rowspan > 1) {
309
- isMergeCell = true;
310
- mergeRowspan = rowspan;
311
- tdAttrs.rowspan = rowspan;
312
- }
313
- if (colspan > 1) {
314
- isMergeCell = true;
315
- mergeColspan = colspan;
316
- tdAttrs.colspan = colspan;
321
+ if (fixedHiddenColumn && isMergeCell) {
322
+ if (tdAttrs.colspan > 1 || tdAttrs.rowspan > 1) {
323
+ fixedHiddenColumn = false;
324
+ }
317
325
  }
318
- }
319
- if (fixedHiddenColumn && isMergeCell) {
320
- if (tdAttrs.colspan > 1 || tdAttrs.rowspan > 1) {
321
- fixedHiddenColumn = false;
326
+ if (!fixedHiddenColumn && editConfig && (editOpts.showStatus || editOpts.showUpdateStatus) && keepUpdateFieldMaps[field]) {
327
+ isDirty = $xeTable.isUpdateByRow(row, field);
322
328
  }
323
- }
324
- if (!fixedHiddenColumn && editConfig && (editOpts.showStatus || editOpts.showUpdateStatus) && keepUpdateFieldMaps[field]) {
325
- isDirty = $xeTable.isUpdateByRow(row, field);
326
- }
327
- const isVNAutoHeight = !hasEllipsis && (scrollYLoad || scrollXLoad);
328
- let cellHeight = (0, import_util.getCellRestHeight)(rowRest, cellOpts, rowOpts, defaultRowHeight);
329
- const isLastColumn = $columnIndex === columns.length - 1;
330
- const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
331
- let isVNPreEmptyStatus = false;
332
- if (!isMergeCell) {
333
- if (!dragRow || (0, import_util.getRowid)($xeTable, dragRow) !== rowid) {
334
- if (overflowY && scrollYLoad && tableData.length > 16 && !treeConfig && !virtualYOpts.immediate && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
335
- isVNPreEmptyStatus = true;
336
- } else if (overflowX && scrollXLoad && tableColumn.length > 10 && !virtualXOpts.immediate && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
337
- isVNPreEmptyStatus = true;
329
+ const isVNAutoHeight = !hasEllipsis && (scrollYLoad || scrollXLoad);
330
+ let cellHeight = (0, import_util.getCellRestHeight)(rowRest, cellOpts, rowOpts, defaultRowHeight);
331
+ const isLastColumn = $columnIndex === columns.length - 1;
332
+ const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
333
+ let isVNPreEmptyStatus = false;
334
+ if (!isMergeCell) {
335
+ if (!dragRow || (0, import_util.getRowid)($xeTable, dragRow) !== rowid) {
336
+ if (overflowY && scrollYLoad && tableData.length > 16 && !treeConfig && !virtualYOpts.immediate && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
337
+ isVNPreEmptyStatus = true;
338
+ } else if (overflowX && scrollXLoad && tableColumn.length > 10 && !virtualXOpts.immediate && !column.fixed && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
339
+ isVNPreEmptyStatus = true;
340
+ }
338
341
  }
339
342
  }
340
- }
341
- if (mergeRowspan > 1) {
342
- const mEndRow = afterFullData[_rowIndex + mergeRowspan - 1];
343
- if (mEndRow) {
344
- const meRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, mEndRow)];
345
- if (meRowRest) {
346
- cellHeight += meRowRest.oTop + (0, import_util.getCellRestHeight)(meRowRest, cellOpts, rowOpts, defaultRowHeight) - rowRest.oTop - (0, import_util.getCellRestHeight)(rowRest, cellOpts, rowOpts, defaultRowHeight);
343
+ if (mergeRowspan > 1) {
344
+ const mEndRow = afterFullData[_rowIndex + mergeRowspan - 1];
345
+ if (mEndRow) {
346
+ const meRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, mEndRow)];
347
+ if (meRowRest) {
348
+ cellHeight += meRowRest.oTop + (0, import_util.getCellRestHeight)(meRowRest, cellOpts, rowOpts, defaultRowHeight) - rowRest.oTop - (0, import_util.getCellRestHeight)(rowRest, cellOpts, rowOpts, defaultRowHeight);
349
+ }
347
350
  }
348
351
  }
349
- }
350
- const tcStyle = {};
351
- if (maxHeight) {
352
- tcStyle.maxHeight = maxHeight + "px";
353
- }
354
- if (hasEllipsis && resizeWidthFlag) {
355
- let mergeColWidth = 0;
356
- if (mergeColspan > 1) {
357
- for (let index = 1; index < mergeColspan; index++) {
358
- const nextColumn = visibleColumn[columnIndex + index];
359
- if (nextColumn) {
360
- mergeColWidth += nextColumn.renderWidth;
352
+ const tcStyle = {};
353
+ if (maxHeight) {
354
+ tcStyle.maxHeight = maxHeight + "px";
355
+ }
356
+ if (hasEllipsis && resizeWidthFlag) {
357
+ let mergeColWidth = 0;
358
+ if (mergeColspan > 1) {
359
+ for (let index = 1; index < mergeColspan; index++) {
360
+ const nextColumn = visibleColumn[columnIndex + index];
361
+ if (nextColumn) {
362
+ mergeColWidth += nextColumn.renderWidth;
363
+ }
361
364
  }
362
365
  }
366
+ tcStyle.width = column.renderWidth + mergeColWidth - cellOffsetWidth + "px";
363
367
  }
364
- tcStyle.width = column.renderWidth + mergeColWidth - cellOffsetWidth + "px";
365
- }
366
- if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
367
- tcStyle.height = cellHeight + "px";
368
- } else {
369
- tcStyle.minHeight = cellHeight + "px";
370
- }
371
- if (minHeight) {
372
- tcStyle.minHeight = minHeight + "px";
373
- }
374
- const tdVNs = [];
375
- if (fixedHiddenColumn && isAllOverflow) {
376
- tdVNs.push(
377
- (0, import_vue.h)("div", {
378
- key: "tc",
379
- class: [
380
- "vxe-cell",
381
- {
382
- "c--title": showTitle,
383
- "c--tooltip": showTooltip,
384
- "c--ellipsis": showEllipsis
385
- }
386
- ],
387
- style: tcStyle
388
- })
389
- );
390
- } else {
391
- if (treeConfig) {
392
- tdVNs.push(...renderLine(rowid, cellParams, cellHeight));
368
+ if (scrollYLoad || scrollXLoad || hasEllipsis || isCsHeight || isRsHeight) {
369
+ tcStyle.height = cellHeight + "px";
370
+ } else {
371
+ tcStyle.minHeight = cellHeight + "px";
393
372
  }
394
- const clVNs = [];
395
- if (!isVNPreEmptyStatus) {
396
- clVNs.push(
397
- (0, import_vue.h)(
398
- "div",
399
- {
400
- colid,
401
- rowid,
402
- class: "vxe-cell--wrapper vxe-body-cell--wrapper"
403
- },
404
- column.renderCell(cellParams)
405
- )
406
- );
373
+ if (minHeight) {
374
+ tcStyle.minHeight = minHeight + "px";
407
375
  }
408
- tdVNs.push(
409
- (0, import_vue.h)(
410
- "div",
411
- {
376
+ const tdVNs = [];
377
+ if (fixedHiddenColumn && isAllOverflow) {
378
+ tdVNs.push(
379
+ (0, import_vue.h)("div", {
412
380
  key: "tc",
413
381
  class: [
414
382
  "vxe-cell",
@@ -418,349 +386,76 @@ var body_default = (0, import_comp.defineVxeComponent)({
418
386
  "c--ellipsis": showEllipsis
419
387
  }
420
388
  ],
421
- style: tcStyle,
422
- title: showTitle ? $xeTable.getCellLabel(row, column) : null
423
- },
424
- clVNs
425
- )
426
- );
427
- if (showValidTip && errorValidItem) {
428
- const errRule = errorValidItem.rule;
429
- const validSlot = slots ? slots.valid : null;
430
- const validParams = { ...cellParams, ...errorValidItem, rule: errorValidItem };
431
- tdVNs.push(
432
- (0, import_vue.h)(
433
- "div",
434
- {
435
- key: "tcv",
436
- class: ["vxe-cell--valid-error-tip", (0, import_dom.getPropClass)(validOpts.className, validParams)],
437
- style: errRule && errRule.maxWidth ? {
438
- width: errRule.maxWidth + "px"
439
- } : null
440
- },
441
- [
442
- (0, import_vue.h)(
443
- "div",
444
- {
445
- class: `vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${validOpts.theme || "normal"}`
446
- },
447
- [
448
- validSlot ? $xeTable.callSlot(validSlot, validParams) : [
449
- (0, import_vue.h)(
450
- "span",
451
- {
452
- class: "vxe-cell--valid-error-msg"
453
- },
454
- errorValidItem.content
455
- )
456
- ]
457
- ]
458
- )
459
- ]
460
- )
389
+ style: tcStyle
390
+ })
461
391
  );
462
- }
463
- }
464
- let showAreaRowStatus = false;
465
- if ((0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area && !_columnIndex && selectCellToRow) {
466
- showAreaRowStatus = true;
467
- }
468
- if (!fixedHiddenColumn && showResizable && isAllColumnDrag) {
469
- tdVNs.push(
470
- (0, import_vue.h)("div", {
471
- key: "tcc",
472
- class: [
473
- "vxe-cell--col-resizable",
474
- {
475
- "is--line": !border || border === "none"
476
- }
477
- ],
478
- onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
479
- onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
480
- })
481
- );
482
- }
483
- if ((rowResize || isAllRowDrag) && rowOpts.resizable) {
484
- tdVNs.push(
485
- (0, import_vue.h)("div", {
486
- key: "tcr",
487
- class: "vxe-cell--row-resizable",
488
- onMousedown: (evnt) => $xeTable.handleRowResizeMousedownEvent(evnt, cellParams),
489
- onDblclick: (evnt) => $xeTable.handleRowResizeDblclickEvent(evnt, cellParams)
490
- })
491
- );
492
- }
493
- return (0, import_vue.h)(
494
- "td",
495
- {
496
- class: [
497
- "vxe-table--column vxe-body--column",
498
- colid,
499
- cellVerticalAlign ? `col--vertical-${cellVerticalAlign}` : "",
500
- cellAlign ? `col--${cellAlign}` : "",
501
- type ? `col--${type}` : "",
502
- {
503
- "col--last": isLastColumn,
504
- "col--tree-node": treeNode,
505
- "col--edit": isEdit,
506
- "col--ellipsis": hasEllipsis,
507
- "col--cs-height": isCsHeight,
508
- "col--rs-height": isRsHeight,
509
- "col--to-row": showAreaRowStatus,
510
- "col--auto-height": isVNAutoHeight,
511
- "col--max-height": maxHeight,
512
- "fixed--width": !isAutoCellWidth,
513
- "fixed--hidden": fixedHiddenColumn,
514
- "is--pg-top": isCellPaddingTop,
515
- "is--pg-bottom": isCellPaddingBottom,
516
- "is--pg-left": isCellPaddingLeft,
517
- "is--pg-right": isCellPaddingRight,
518
- "is--progress": fixedHiddenColumn && isAllOverflow || isVNPreEmptyStatus,
519
- "is--drag-cell": isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
520
- "is--drag-disabled": isDisabledDrag,
521
- "col--dirty": isDirty,
522
- "col--active": editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === "row"),
523
- "col--valid-error": !!errorValidItem,
524
- "show--valid-bg": errorValidItem && validOpts.showErrorBackground,
525
- "col--current": currColFlag && currentCol === column
526
- },
527
- (0, import_dom.getPropClass)(compCellClassName, cellParams),
528
- (0, import_dom.getPropClass)(className, cellParams),
529
- (0, import_dom.getPropClass)(allCellClassName, cellParams)
530
- ],
531
- key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
532
- ...tdAttrs,
533
- style: Object.assign({}, import_xe_utils.default.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, import_xe_utils.default.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
534
- ...tdOns
535
- },
536
- isOptimizeMode && fixedHiddenColumn ? [] : tdVNs
537
- );
538
- };
539
- const renderRows = (fixedType, isOptimizeMode, tableData, tableColumn) => {
540
- const $xeGrid = $xeTable.xeGrid;
541
- const $xeGantt = $xeTable.xeGantt;
542
- const { stripe, rowKey, highlightHoverRow, rowClassName, rowStyle, editConfig, treeConfig } = tableProps;
543
- const { hasFixedColumn, treeExpandedFlag, scrollYLoad, isAllOverflow, rowExpandedFlag, expandColumn, selectRadioRow, pendingRowFlag, rowExpandHeightFlag, isRowGroupStatus } = tableReactData;
544
- const { fullAllDataRowIdData, fullColumnIdData, treeExpandedMaps, pendingRowMaps, rowExpandedMaps, currentRow } = tableInternalData;
545
- const checkboxOpts = computeCheckboxOpts.value;
546
- const radioOpts = computeRadioOpts.value;
547
- const treeOpts = computeTreeOpts.value;
548
- const editOpts = computeEditOpts.value;
549
- const rowOpts = computeRowOpts.value;
550
- const columnOpts = computeColumnOpts.value;
551
- const { transform, seqMode } = treeOpts;
552
- const childrenField = treeOpts.children || treeOpts.childrenField;
553
- const rows = [];
554
- const { handleGetRowId } = (0, import_util.createHandleGetRowId)($xeTable);
555
- const isDeepRow = treeConfig || isRowGroupStatus;
556
- tableData.forEach((row, $rowIndex) => {
557
- const rowid = handleGetRowId(row);
558
- const rowRest = fullAllDataRowIdData[rowid] || {};
559
- let rowIndex = $rowIndex;
560
- let rowLevel = 0;
561
- let seq = -1;
562
- let _rowIndex = -1;
563
- const hasRowGroupAggregate = isRowGroupStatus && row.isAggregate;
564
- const trOn = {};
565
- if (rowOpts.isHover || highlightHoverRow) {
566
- trOn.onMouseover = (evnt) => {
567
- if (isVMScrollProcess()) {
568
- return;
569
- }
570
- $xeTable.triggerHoverEvent(evnt, { row, rowIndex });
571
- };
572
- trOn.onMouseleave = () => {
573
- if (isVMScrollProcess()) {
574
- return;
575
- }
576
- $xeTable.clearHoverRow();
577
- };
578
- }
579
- if (rowRest) {
580
- rowIndex = rowRest.index;
581
- _rowIndex = rowRest._index;
582
- rowLevel = rowRest.level;
583
- seq = rowRest.seq;
584
- if (hasRowGroupAggregate || treeConfig && transform && seqMode === "increasing") {
585
- seq = rowRest._index + 1;
586
- } else if (treeConfig && seqMode === "fixed") {
587
- seq = rowRest._tIndex + 1;
392
+ } else {
393
+ if (treeConfig) {
394
+ tdVNs.push(...renderLine(rowid, cellParams, cellHeight));
588
395
  }
589
- }
590
- const params = {
591
- $table: $xeTable,
592
- seq,
593
- rowid,
594
- fixed: fixedType,
595
- type: renderType,
596
- level: rowLevel,
597
- row,
598
- rowIndex,
599
- $rowIndex,
600
- _rowIndex
601
- };
602
- const isExpandRow = expandColumn && !!rowExpandedFlag && !!rowExpandedMaps[rowid];
603
- let isExpandTree = false;
604
- let rowChildren = [];
605
- let isNewRow = false;
606
- if (editConfig) {
607
- isNewRow = $xeTable.isInsertByRow(row);
608
- }
609
- if (treeConfig && !scrollYLoad && !transform) {
610
- rowChildren = row[childrenField];
611
- isExpandTree = !!treeExpandedFlag && rowChildren && rowChildren.length > 0 && !!treeExpandedMaps[rowid];
612
- }
613
- if (rowOpts.drag && !isRowGroupStatus && (!treeConfig || transform)) {
614
- trOn.onDragstart = $xeTable.handleRowDragDragstartEvent;
615
- trOn.onDragend = $xeTable.handleRowDragDragendEvent;
616
- trOn.onDragover = $xeTable.handleRowDragDragoverEvent;
617
- }
618
- const trClass = [
619
- "vxe-body--row",
620
- isDeepRow ? `row--level-${rowLevel}` : "",
621
- {
622
- "row--stripe": stripe && (_rowIndex + 1) % 2 === 0,
623
- "is--new": isNewRow,
624
- "is--expand-row": isExpandRow,
625
- "is--expand-tree": isExpandTree,
626
- "row--new": isNewRow && (editOpts.showStatus || editOpts.showInsertStatus),
627
- "row--radio": radioOpts.highlight && $xeTable.eqRow(selectRadioRow, row),
628
- "row--checked": checkboxOpts.highlight && $xeTable.isCheckedByCheckboxRow(row),
629
- "row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid],
630
- "row--group": hasRowGroupAggregate,
631
- "row--current": currentRow && rowid === (0, import_util.getRowid)($xeTable, currentRow)
632
- },
633
- (0, import_dom.getPropClass)(rowClassName, params)
634
- ];
635
- const tdVNs = tableColumn.map((column, $columnIndex) => {
636
- return renderTdColumn(seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
637
- });
638
- rows.push(
639
- (0, import_vue.h)(
640
- "tr",
641
- {
642
- class: trClass,
643
- rowid,
644
- style: rowStyle ? import_xe_utils.default.isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
645
- key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || isRowGroupStatus || treeConfig ? rowid : $rowIndex,
646
- ...trOn
647
- },
648
- tdVNs
649
- )
650
- );
651
- if (isExpandRow) {
652
- const expandOpts = computeExpandOpts.value;
653
- const { height: expandHeight, padding, mode: expandMode } = expandOpts;
654
- if (expandMode === "fixed") {
655
- const currExpHeight = rowRest.expandHeight;
656
- let expHeight = 0;
657
- if (rowExpandHeightFlag) {
658
- if (currExpHeight || expandHeight) {
659
- expHeight = (currExpHeight || expandHeight || 0) + 1;
660
- }
661
- }
662
- rows.push(
396
+ const clVNs = [];
397
+ if (!isVNPreEmptyStatus) {
398
+ clVNs.push(
663
399
  (0, import_vue.h)(
664
- "tr",
400
+ "div",
665
401
  {
666
- class: "vxe-body--row-expanded-place",
667
- key: `expand_${rowid}`,
668
- rowid
402
+ colid,
403
+ rowid,
404
+ class: "vxe-cell--wrapper vxe-body-cell--wrapper"
669
405
  },
670
- [
671
- (0, import_vue.h)("td", {
672
- class: "vxe-body--row-expanded-place-column",
673
- colspan: tableColumn.length,
674
- style: {
675
- height: `${expHeight}px`
676
- }
677
- })
678
- ]
406
+ column.renderCell(cellParams)
679
407
  )
680
408
  );
681
- } else {
682
- const cellStyle = {};
683
- if (expandHeight) {
684
- cellStyle.height = `${expandHeight}px`;
685
- }
686
- if (treeConfig) {
687
- cellStyle.paddingLeft = `${rowLevel * treeOpts.indent + 30}px`;
688
- }
689
- const { showOverflow } = expandColumn || {};
690
- const colid = expandColumn.id;
691
- const colRest = fullColumnIdData[colid] || {};
692
- const hasEllipsis = import_xe_utils.default.eqNull(showOverflow) ? isAllOverflow : showOverflow;
693
- let columnIndex = -1;
694
- let $columnIndex = -1;
695
- let _columnIndex = -1;
696
- if (colRest) {
697
- columnIndex = colRest.index;
698
- $columnIndex = colRest.$index;
699
- _columnIndex = colRest._index;
700
- }
701
- const expandParams = {
702
- $table: $xeTable,
703
- $grid: $xeGrid,
704
- $gantt: $xeGantt,
705
- seq,
706
- column: expandColumn,
707
- columnIndex,
708
- $columnIndex,
709
- _columnIndex,
710
- fixed: fixedType,
711
- source: sourceType,
712
- type: renderType,
713
- level: rowLevel,
714
- row,
715
- rowid,
716
- rowIndex,
717
- $rowIndex,
718
- _rowIndex,
719
- isHidden: false,
720
- isEdit: false,
721
- visibleData: [],
722
- data: [],
723
- items: []
724
- };
725
- rows.push(
409
+ }
410
+ tdVNs.push(
411
+ (0, import_vue.h)(
412
+ "div",
413
+ {
414
+ key: "tc",
415
+ class: [
416
+ "vxe-cell",
417
+ {
418
+ "c--title": showTitle,
419
+ "c--tooltip": showTooltip,
420
+ "c--ellipsis": showEllipsis
421
+ }
422
+ ],
423
+ style: tcStyle,
424
+ title: showTitle ? $xeTable.getCellLabel(row, column) : null
425
+ },
426
+ clVNs
427
+ )
428
+ );
429
+ if (showValidTip && errorValidItem) {
430
+ const errRule = errorValidItem.rule;
431
+ const validSlot = slots ? slots.valid : null;
432
+ const validParams = { ...cellParams, ...errorValidItem, rule: errorValidItem };
433
+ tdVNs.push(
726
434
  (0, import_vue.h)(
727
- "tr",
435
+ "div",
728
436
  {
729
- class: [
730
- "vxe-body--expanded-row",
731
- {
732
- "is--padding": padding
733
- }
734
- ],
735
- key: `expand_${rowid}`
437
+ key: "tcv",
438
+ class: ["vxe-cell--valid-error-tip", (0, import_dom.getPropClass)(validOpts.className, validParams)],
439
+ style: errRule && errRule.maxWidth ? {
440
+ width: errRule.maxWidth + "px"
441
+ } : null
736
442
  },
737
443
  [
738
444
  (0, import_vue.h)(
739
- "td",
445
+ "div",
740
446
  {
741
- class: [
742
- "vxe-body--expanded-column",
743
- {
744
- "fixed--hidden": fixedType && !hasFixedColumn,
745
- "col--ellipsis": hasEllipsis
746
- }
747
- ],
748
- colspan: tableColumn.length
447
+ class: `vxe-cell--valid-error-wrapper vxe-cell--valid-error-theme-${validOpts.theme || "normal"}`
749
448
  },
750
449
  [
751
- (0, import_vue.h)(
752
- "div",
753
- {
754
- class: [
755
- "vxe-body--expanded-cell",
756
- {
757
- "is--ellipsis": expandHeight
758
- }
759
- ],
760
- style: cellStyle
761
- },
762
- [expandColumn.renderData(expandParams)]
763
- )
450
+ validSlot ? $xeTable.callSlot(validSlot, validParams) : [
451
+ (0, import_vue.h)(
452
+ "span",
453
+ {
454
+ class: "vxe-cell--valid-error-msg"
455
+ },
456
+ errorValidItem.content
457
+ )
458
+ ]
764
459
  ]
765
460
  )
766
461
  ]
@@ -768,253 +463,561 @@ var body_default = (0, import_comp.defineVxeComponent)({
768
463
  );
769
464
  }
770
465
  }
771
- if (isExpandTree) {
772
- rows.push(...renderRows(fixedType, isOptimizeMode, rowChildren, tableColumn));
466
+ let showAreaRowStatus = false;
467
+ if ((0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area && !_columnIndex && selectCellToRow) {
468
+ showAreaRowStatus = true;
469
+ }
470
+ if (!fixedHiddenColumn && showResizable && isAllColumnDrag) {
471
+ tdVNs.push(
472
+ (0, import_vue.h)("div", {
473
+ key: "tcc",
474
+ class: [
475
+ "vxe-cell--col-resizable",
476
+ {
477
+ "is--line": !border || border === "none"
478
+ }
479
+ ],
480
+ onMousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
481
+ onDblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
482
+ })
483
+ );
773
484
  }
485
+ if ((rowResize || isAllRowDrag) && rowOpts.resizable) {
486
+ tdVNs.push(
487
+ (0, import_vue.h)("div", {
488
+ key: "tcr",
489
+ class: "vxe-cell--row-resizable",
490
+ onMousedown: (evnt) => $xeTable.handleRowResizeMousedownEvent(evnt, cellParams),
491
+ onDblclick: (evnt) => $xeTable.handleRowResizeDblclickEvent(evnt, cellParams)
492
+ })
493
+ );
494
+ }
495
+ return (0, import_vue.h)(
496
+ "td",
497
+ {
498
+ class: [
499
+ "vxe-table--column vxe-body--column",
500
+ colid,
501
+ cellVerticalAlign ? `col--vertical-${cellVerticalAlign}` : "",
502
+ cellAlign ? `col--${cellAlign}` : "",
503
+ type ? `col--${type}` : "",
504
+ {
505
+ "col--last": isLastColumn,
506
+ "col--tree-node": treeNode,
507
+ "col--edit": isEdit,
508
+ "col--ellipsis": hasEllipsis,
509
+ "col--cs-height": isCsHeight,
510
+ "col--rs-height": isRsHeight,
511
+ "col--to-row": showAreaRowStatus,
512
+ "col--auto-height": isVNAutoHeight,
513
+ "col--max-height": maxHeight,
514
+ "fixed--width": !isAutoCellWidth,
515
+ "fixed--hidden": fixedHiddenColumn,
516
+ "is--pg-top": isCellPaddingTop,
517
+ "is--pg-bottom": isCellPaddingBottom,
518
+ "is--pg-left": isCellPaddingLeft,
519
+ "is--pg-right": isCellPaddingRight,
520
+ "is--progress": fixedHiddenColumn && isAllOverflow || isVNPreEmptyStatus,
521
+ "is--drag-cell": isRowDragCell && (isCrossDrag || isPeerDrag || !rowLevel),
522
+ "is--drag-disabled": isDisabledDrag,
523
+ "col--dirty": isDirty,
524
+ "col--active": editConfig && isEdit && actived.row === row && (actived.column === column || editOpts.mode === "row"),
525
+ "col--valid-error": !!errorValidItem,
526
+ "show--valid-bg": errorValidItem && validOpts.showErrorBackground,
527
+ "col--current": currColFlag && currentCol === column
528
+ },
529
+ (0, import_dom.getPropClass)(compCellClassName, cellParams),
530
+ (0, import_dom.getPropClass)(className, cellParams),
531
+ (0, import_dom.getPropClass)(allCellClassName, cellParams)
532
+ ],
533
+ key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? colid : $columnIndex,
534
+ ...tdAttrs,
535
+ style: Object.assign({}, import_xe_utils.default.isFunction(compCellStyle) ? compCellStyle(cellParams) : compCellStyle, import_xe_utils.default.isFunction(cellStyle) ? cellStyle(cellParams) : cellStyle),
536
+ ...tdOns
537
+ },
538
+ isOptimizeMode && fixedHiddenColumn ? [] : tdVNs
539
+ );
540
+ };
541
+ const renderRows = (fixedType, isOptimizeMode, tableData, tableColumn) => {
542
+ const $xeGrid = $xeTable.xeGrid;
543
+ const $xeGantt = $xeTable.xeGantt;
544
+ const { stripe, rowKey, highlightHoverRow, rowClassName, rowStyle, editConfig, treeConfig } = tableProps;
545
+ const { hasFixedColumn, treeExpandedFlag, scrollYLoad, isAllOverflow, rowExpandedFlag, expandColumn, selectRadioRow, pendingRowFlag, rowExpandHeightFlag, isRowGroupStatus } = tableReactData;
546
+ const { fullAllDataRowIdData, fullColumnIdData, treeExpandedMaps, pendingRowMaps, rowExpandedMaps, currentRow } = tableInternalData;
547
+ const checkboxOpts = computeCheckboxOpts.value;
548
+ const radioOpts = computeRadioOpts.value;
549
+ const treeOpts = computeTreeOpts.value;
550
+ const editOpts = computeEditOpts.value;
551
+ const rowOpts = computeRowOpts.value;
552
+ const columnOpts = computeColumnOpts.value;
553
+ const { transform, seqMode } = treeOpts;
554
+ const childrenField = treeOpts.children || treeOpts.childrenField;
555
+ const rows = [];
556
+ const { handleGetRowId } = (0, import_util.createHandleGetRowId)($xeTable);
557
+ const isDeepRow = treeConfig || isRowGroupStatus;
558
+ tableData.forEach((row, $rowIndex) => {
559
+ const rowid = handleGetRowId(row);
560
+ const rowRest = fullAllDataRowIdData[rowid] || {};
561
+ let rowIndex = $rowIndex;
562
+ let rowLevel = 0;
563
+ let seq = -1;
564
+ let _rowIndex = -1;
565
+ const hasRowGroupAggregate = isRowGroupStatus && row.isAggregate;
566
+ const trOn = {};
567
+ if (rowOpts.isHover || highlightHoverRow) {
568
+ trOn.onMouseover = (evnt) => {
569
+ if (isVMScrollProcess()) {
570
+ return;
571
+ }
572
+ $xeTable.triggerHoverEvent(evnt, { row, rowIndex });
573
+ };
574
+ trOn.onMouseleave = () => {
575
+ if (isVMScrollProcess()) {
576
+ return;
577
+ }
578
+ $xeTable.clearHoverRow();
579
+ };
580
+ }
581
+ if (rowRest) {
582
+ rowIndex = rowRest.index;
583
+ _rowIndex = rowRest._index;
584
+ rowLevel = rowRest.level;
585
+ seq = rowRest.seq;
586
+ if (hasRowGroupAggregate || treeConfig && transform && seqMode === "increasing") {
587
+ seq = rowRest._index + 1;
588
+ } else if (treeConfig && seqMode === "fixed") {
589
+ seq = rowRest._tIndex + 1;
590
+ }
591
+ }
592
+ const params = {
593
+ $table: $xeTable,
594
+ seq,
595
+ rowid,
596
+ fixed: fixedType,
597
+ type: renderType,
598
+ level: rowLevel,
599
+ row,
600
+ rowIndex,
601
+ $rowIndex,
602
+ _rowIndex
603
+ };
604
+ const isExpandRow = expandColumn && !!rowExpandedFlag && !!rowExpandedMaps[rowid];
605
+ let isExpandTree = false;
606
+ let rowChildren = [];
607
+ let isNewRow = false;
608
+ if (editConfig) {
609
+ isNewRow = $xeTable.isInsertByRow(row);
610
+ }
611
+ if (treeConfig && !scrollYLoad && !transform) {
612
+ rowChildren = row[childrenField];
613
+ isExpandTree = !!treeExpandedFlag && rowChildren && rowChildren.length > 0 && !!treeExpandedMaps[rowid];
614
+ }
615
+ if (rowOpts.drag && !isRowGroupStatus && (!treeConfig || transform)) {
616
+ trOn.onDragstart = $xeTable.handleRowDragDragstartEvent;
617
+ trOn.onDragend = $xeTable.handleRowDragDragendEvent;
618
+ trOn.onDragover = $xeTable.handleRowDragDragoverEvent;
619
+ }
620
+ const trClass = [
621
+ "vxe-body--row",
622
+ isDeepRow ? `row--level-${rowLevel}` : "",
623
+ {
624
+ "row--stripe": stripe && (_rowIndex + 1) % 2 === 0,
625
+ "is--new": isNewRow,
626
+ "is--expand-row": isExpandRow,
627
+ "is--expand-tree": isExpandTree,
628
+ "row--new": isNewRow && (editOpts.showStatus || editOpts.showInsertStatus),
629
+ "row--radio": radioOpts.highlight && $xeTable.eqRow(selectRadioRow, row),
630
+ "row--checked": checkboxOpts.highlight && $xeTable.isCheckedByCheckboxRow(row),
631
+ "row--pending": !!pendingRowFlag && !!pendingRowMaps[rowid],
632
+ "row--group": hasRowGroupAggregate,
633
+ "row--current": currentRow && rowid === (0, import_util.getRowid)($xeTable, currentRow)
634
+ },
635
+ (0, import_dom.getPropClass)(rowClassName, params)
636
+ ];
637
+ const tdVNs = tableColumn.map((column, $columnIndex) => {
638
+ return renderTdColumn(seq, rowid, fixedType, isOptimizeMode, rowLevel, row, rowIndex, $rowIndex, _rowIndex, column, $columnIndex, tableColumn, tableData);
639
+ });
640
+ rows.push(
641
+ (0, import_vue.h)(
642
+ "tr",
643
+ {
644
+ class: trClass,
645
+ rowid,
646
+ style: rowStyle ? import_xe_utils.default.isFunction(rowStyle) ? rowStyle(params) : rowStyle : null,
647
+ key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || isRowGroupStatus || treeConfig ? rowid : $rowIndex,
648
+ ...trOn
649
+ },
650
+ tdVNs
651
+ )
652
+ );
653
+ if (isExpandRow) {
654
+ const expandOpts = computeExpandOpts.value;
655
+ const { height: expandHeight, padding, mode: expandMode } = expandOpts;
656
+ if (expandMode === "fixed") {
657
+ const currExpHeight = rowRest.expandHeight;
658
+ let expHeight = 0;
659
+ if (rowExpandHeightFlag) {
660
+ if (currExpHeight || expandHeight) {
661
+ expHeight = (currExpHeight || expandHeight || 0) + 1;
662
+ }
663
+ }
664
+ rows.push(
665
+ (0, import_vue.h)(
666
+ "tr",
667
+ {
668
+ class: "vxe-body--row-expanded-place",
669
+ key: `expand_${rowid}`,
670
+ rowid
671
+ },
672
+ [
673
+ (0, import_vue.h)("td", {
674
+ class: "vxe-body--row-expanded-place-column",
675
+ colspan: tableColumn.length,
676
+ style: {
677
+ height: `${expHeight}px`
678
+ }
679
+ })
680
+ ]
681
+ )
682
+ );
683
+ } else {
684
+ const cellStyle = {};
685
+ if (expandHeight) {
686
+ cellStyle.height = `${expandHeight}px`;
687
+ }
688
+ if (treeConfig) {
689
+ cellStyle.paddingLeft = `${rowLevel * treeOpts.indent + 30}px`;
690
+ }
691
+ const { showOverflow } = expandColumn || {};
692
+ const colid = expandColumn.id;
693
+ const colRest = fullColumnIdData[colid] || {};
694
+ const hasEllipsis = import_xe_utils.default.eqNull(showOverflow) ? isAllOverflow : showOverflow;
695
+ let columnIndex = -1;
696
+ let $columnIndex = -1;
697
+ let _columnIndex = -1;
698
+ if (colRest) {
699
+ columnIndex = colRest.index;
700
+ $columnIndex = colRest.$index;
701
+ _columnIndex = colRest._index;
702
+ }
703
+ const expandParams = {
704
+ $table: $xeTable,
705
+ $grid: $xeGrid,
706
+ $gantt: $xeGantt,
707
+ seq,
708
+ column: expandColumn,
709
+ columnIndex,
710
+ $columnIndex,
711
+ _columnIndex,
712
+ fixed: fixedType,
713
+ source: sourceType,
714
+ type: renderType,
715
+ level: rowLevel,
716
+ row,
717
+ rowid,
718
+ rowIndex,
719
+ $rowIndex,
720
+ _rowIndex,
721
+ isHidden: false,
722
+ isEdit: false,
723
+ visibleData: [],
724
+ data: [],
725
+ items: []
726
+ };
727
+ rows.push(
728
+ (0, import_vue.h)(
729
+ "tr",
730
+ {
731
+ class: [
732
+ "vxe-body--expanded-row",
733
+ {
734
+ "is--padding": padding
735
+ }
736
+ ],
737
+ key: `expand_${rowid}`
738
+ },
739
+ [
740
+ (0, import_vue.h)(
741
+ "td",
742
+ {
743
+ class: [
744
+ "vxe-body--expanded-column",
745
+ {
746
+ "fixed--hidden": fixedType && !hasFixedColumn,
747
+ "col--ellipsis": hasEllipsis
748
+ }
749
+ ],
750
+ colspan: tableColumn.length
751
+ },
752
+ [
753
+ (0, import_vue.h)(
754
+ "div",
755
+ {
756
+ class: [
757
+ "vxe-body--expanded-cell",
758
+ {
759
+ "is--ellipsis": expandHeight
760
+ }
761
+ ],
762
+ style: cellStyle
763
+ },
764
+ [expandColumn.renderData(expandParams)]
765
+ )
766
+ ]
767
+ )
768
+ ]
769
+ )
770
+ );
771
+ }
772
+ }
773
+ if (isExpandTree) {
774
+ rows.push(...renderRows(fixedType, isOptimizeMode, rowChildren, tableColumn));
775
+ }
776
+ });
777
+ return rows;
778
+ };
779
+ (0, import_vue.onMounted)(() => {
780
+ (0, import_vue.nextTick)(() => {
781
+ const { fixedType } = props;
782
+ const { elemStore } = tableInternalData;
783
+ const prefix = `${fixedType || "main"}-body-`;
784
+ elemStore[`${prefix}wrapper`] = refElem;
785
+ elemStore[`${prefix}scroll`] = refBodyScroll;
786
+ elemStore[`${prefix}table`] = refBodyTable;
787
+ elemStore[`${prefix}colgroup`] = refBodyColgroup;
788
+ elemStore[`${prefix}list`] = refBodyTBody;
789
+ elemStore[`${prefix}xSpace`] = refBodyXSpace;
790
+ elemStore[`${prefix}ySpace`] = refBodyYSpace;
791
+ elemStore[`${prefix}emptyBlock`] = refBodyEmptyBlock;
792
+ });
774
793
  });
775
- return rows;
776
- };
777
- (0, import_vue.onMounted)(() => {
778
- (0, import_vue.nextTick)(() => {
794
+ (0, import_vue.onUnmounted)(() => {
779
795
  const { fixedType } = props;
780
796
  const { elemStore } = tableInternalData;
781
797
  const prefix = `${fixedType || "main"}-body-`;
782
- elemStore[`${prefix}wrapper`] = refElem;
783
- elemStore[`${prefix}scroll`] = refBodyScroll;
784
- elemStore[`${prefix}table`] = refBodyTable;
785
- elemStore[`${prefix}colgroup`] = refBodyColgroup;
786
- elemStore[`${prefix}list`] = refBodyTBody;
787
- elemStore[`${prefix}xSpace`] = refBodyXSpace;
788
- elemStore[`${prefix}ySpace`] = refBodyYSpace;
789
- elemStore[`${prefix}emptyBlock`] = refBodyEmptyBlock;
798
+ elemStore[`${prefix}wrapper`] = null;
799
+ elemStore[`${prefix}scroll`] = null;
800
+ elemStore[`${prefix}table`] = null;
801
+ elemStore[`${prefix}colgroup`] = null;
802
+ elemStore[`${prefix}list`] = null;
803
+ elemStore[`${prefix}xSpace`] = null;
804
+ elemStore[`${prefix}ySpace`] = null;
805
+ elemStore[`${prefix}emptyBlock`] = null;
790
806
  });
791
- });
792
- (0, import_vue.onUnmounted)(() => {
793
- const { fixedType } = props;
794
- const { elemStore } = tableInternalData;
795
- const prefix = `${fixedType || "main"}-body-`;
796
- elemStore[`${prefix}wrapper`] = null;
797
- elemStore[`${prefix}scroll`] = null;
798
- elemStore[`${prefix}table`] = null;
799
- elemStore[`${prefix}colgroup`] = null;
800
- elemStore[`${prefix}list`] = null;
801
- elemStore[`${prefix}xSpace`] = null;
802
- elemStore[`${prefix}ySpace`] = null;
803
- elemStore[`${prefix}emptyBlock`] = null;
804
- });
805
- const renderVN = () => {
806
- const { slots } = tableContext;
807
- const $xeGrid = $xeTable.xeGrid;
808
- const $xeGantt = $xeTable.xeGantt;
809
- const { fixedColumn, fixedType, tableColumn } = props;
810
- const { mouseConfig } = tableProps;
811
- const { isGroup, tableData, isColLoading, overflowX, scrollXLoad, scrollYLoad, dragRow, dragCol } = tableReactData;
812
- const { visibleColumn, fullAllDataRowIdData, fullColumnIdData } = tableInternalData;
813
- const emptyOpts = computeEmptyOpts.value;
814
- const mouseOpts = computeMouseOpts.value;
815
- const isBodyRenderOptimize = computeIsBodyRenderOptimize.value;
816
- let renderDataList = tableData;
817
- let renderColumnList = tableColumn;
818
- const isOptimizeMode = isBodyRenderOptimize;
819
- if (!isColLoading && (fixedType || !overflowX)) {
820
- renderColumnList = visibleColumn;
821
- }
822
- if (fixedType) {
823
- if (isOptimizeMode) {
824
- renderColumnList = fixedColumn || [];
807
+ const renderVN = () => {
808
+ const { slots } = tableContext;
809
+ const $xeGrid = $xeTable.xeGrid;
810
+ const $xeGantt = $xeTable.xeGantt;
811
+ const { fixedColumn, fixedType, tableColumn } = props;
812
+ const { mouseConfig } = tableProps;
813
+ const { isGroup, tableData, isColLoading, overflowX, scrollXLoad, scrollYLoad, dragRow, dragCol } = tableReactData;
814
+ const { visibleColumn, fullAllDataRowIdData, fullColumnIdData } = tableInternalData;
815
+ const emptyOpts = computeEmptyOpts.value;
816
+ const mouseOpts = computeMouseOpts.value;
817
+ const isBodyRenderOptimize = computeIsBodyRenderOptimize.value;
818
+ let renderDataList = tableData;
819
+ let renderColumnList = tableColumn;
820
+ const isOptimizeMode = isBodyRenderOptimize;
821
+ if (!isColLoading && (fixedType || !overflowX)) {
822
+ renderColumnList = visibleColumn;
825
823
  }
826
- }
827
- if (scrollYLoad && dragRow) {
828
- if (renderDataList.length > 2) {
829
- const dRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, dragRow)];
830
- if (dRowRest) {
831
- const drIndex = dRowRest._index;
832
- const firstRow = renderDataList[0];
833
- const lastRow = renderDataList[renderDataList.length - 1];
834
- const firstRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, firstRow)];
835
- const lastRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, lastRow)];
836
- if (firstRowRest && lastRowRest) {
837
- const frIndex = firstRowRest._index;
838
- const lrIndex = lastRowRest._index;
839
- if (drIndex < frIndex) {
840
- renderDataList = [dragRow].concat(renderDataList);
841
- } else if (drIndex > lrIndex) {
842
- renderDataList = renderDataList.concat([dragRow]);
824
+ if (fixedType) {
825
+ if (isOptimizeMode) {
826
+ renderColumnList = fixedColumn || [];
827
+ }
828
+ }
829
+ if (scrollYLoad && dragRow) {
830
+ if (renderDataList.length > 2) {
831
+ const dRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, dragRow)];
832
+ if (dRowRest) {
833
+ const drIndex = dRowRest._index;
834
+ const firstRow = renderDataList[0];
835
+ const lastRow = renderDataList[renderDataList.length - 1];
836
+ const firstRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, firstRow)];
837
+ const lastRowRest = fullAllDataRowIdData[(0, import_util.getRowid)($xeTable, lastRow)];
838
+ if (firstRowRest && lastRowRest) {
839
+ const frIndex = firstRowRest._index;
840
+ const lrIndex = lastRowRest._index;
841
+ if (drIndex < frIndex) {
842
+ renderDataList = [dragRow].concat(renderDataList);
843
+ } else if (drIndex > lrIndex) {
844
+ renderDataList = renderDataList.concat([dragRow]);
845
+ }
843
846
  }
844
847
  }
845
848
  }
846
849
  }
847
- }
848
- if (!fixedType && !isGroup) {
849
- if (scrollXLoad && dragCol) {
850
- if (renderColumnList.length > 2) {
851
- const dCowRest = fullColumnIdData[dragCol.id];
852
- if (dCowRest) {
853
- const dcIndex = dCowRest._index;
854
- const firstCol = renderColumnList[0];
855
- const lastCol = renderColumnList[renderColumnList.length - 1];
856
- const firstColRest = fullColumnIdData[firstCol.id];
857
- const lastColRest = fullColumnIdData[lastCol.id];
858
- if (firstColRest && lastColRest) {
859
- const fcIndex = firstColRest._index;
860
- const lcIndex = lastColRest._index;
861
- if (dcIndex < fcIndex) {
862
- renderColumnList = [dragCol].concat(renderColumnList);
863
- } else if (dcIndex > lcIndex) {
864
- renderColumnList = renderColumnList.concat([dragCol]);
850
+ if (!fixedType && !isGroup) {
851
+ if (scrollXLoad && dragCol) {
852
+ if (renderColumnList.length > 2) {
853
+ const dCowRest = fullColumnIdData[dragCol.id];
854
+ if (dCowRest) {
855
+ const dcIndex = dCowRest._index;
856
+ const firstCol = renderColumnList[0];
857
+ const lastCol = renderColumnList[renderColumnList.length - 1];
858
+ const firstColRest = fullColumnIdData[firstCol.id];
859
+ const lastColRest = fullColumnIdData[lastCol.id];
860
+ if (firstColRest && lastColRest) {
861
+ const fcIndex = firstColRest._index;
862
+ const lcIndex = lastColRest._index;
863
+ if (dcIndex < fcIndex) {
864
+ renderColumnList = [dragCol].concat(renderColumnList);
865
+ } else if (dcIndex > lcIndex) {
866
+ renderColumnList = renderColumnList.concat([dragCol]);
867
+ }
865
868
  }
866
869
  }
867
870
  }
868
871
  }
869
872
  }
870
- }
871
- let emptyContent;
872
- const emptySlot = slots ? slots.empty : null;
873
- const emptyParams = { $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt };
874
- if (emptySlot) {
875
- emptyContent = $xeTable.callSlot(emptySlot, emptyParams);
876
- } else {
877
- const rendererOpts = computeRendererOpts.value;
878
- const compConf = emptyOpts.name ? rendererOpts[emptyOpts.name] || renderer.get(emptyOpts.name) : null;
879
- const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
880
- if (rtEmptyView) {
881
- emptyContent = (0, import_vn.getSlotVNs)(rtEmptyView(emptyOpts, emptyParams));
873
+ let emptyContent;
874
+ const emptySlot = slots ? slots.empty : null;
875
+ const emptyParams = { $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt };
876
+ if (emptySlot) {
877
+ emptyContent = $xeTable.callSlot(emptySlot, emptyParams);
882
878
  } else {
883
- emptyContent = tableProps.emptyText || getI18n("vxe.table.emptyText");
879
+ const rendererOpts = computeRendererOpts.value;
880
+ const compConf = emptyOpts.name ? rendererOpts[emptyOpts.name] || renderer.get(emptyOpts.name) : null;
881
+ const rtEmptyView = compConf ? compConf.renderTableEmpty || compConf.renderTableEmptyView || compConf.renderEmpty : null;
882
+ if (rtEmptyView) {
883
+ emptyContent = (0, import_vn.getSlotVNs)(rtEmptyView(emptyOpts, emptyParams));
884
+ } else {
885
+ emptyContent = tableProps.emptyText || getI18n("vxe.table.emptyText");
886
+ }
884
887
  }
885
- }
886
- return (0, import_vue.h)(
887
- "div",
888
- {
889
- ref: refElem,
890
- class: ["vxe-table--body-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
891
- xid: xID
892
- },
893
- [
894
- (0, import_vue.h)(
895
- "div",
896
- {
897
- ref: refBodyScroll,
898
- class: "vxe-table--body-inner-wrapper",
899
- onScroll(evnt) {
900
- $xeTable.triggerBodyScrollEvent(evnt, fixedType);
901
- }
902
- },
903
- [
904
- fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
905
- ref: refBodyXSpace,
906
- class: "vxe-body--x-space"
907
- }),
908
- (0, import_vue.h)("div", {
909
- ref: refBodyYSpace,
910
- class: "vxe-body--y-space"
911
- }),
912
- (0, import_vue.h)(
913
- "table",
914
- {
915
- ref: refBodyTable,
916
- class: "vxe-table--body",
917
- xid: xID,
918
- cellspacing: 0,
919
- cellpadding: 0,
920
- border: 0,
921
- xvm: isOptimizeMode ? "1" : null
922
- },
923
- [
924
- /**
925
- * 列宽
926
- */
927
- (0, import_vue.h)(
928
- "colgroup",
929
- {
930
- ref: refBodyColgroup
931
- },
932
- renderColumnList.map((column, $columnIndex) => {
933
- return (0, import_vue.h)("col", {
934
- name: column.id,
935
- key: $columnIndex,
936
- style: {
937
- width: `${column.renderWidth}px`
938
- }
939
- });
940
- })
941
- ),
942
- /**
943
- * 内容
944
- */
945
- (0, import_vue.h)(
946
- "tbody",
947
- {
948
- ref: refBodyTBody
949
- },
950
- renderRows(fixedType, isOptimizeMode, renderDataList, renderColumnList)
951
- )
952
- ]
953
- ),
954
- (0, import_vue.h)("div", {
955
- class: "vxe-table--checkbox-range"
956
- }),
957
- (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, import_vue.h)(
958
- "div",
959
- {
960
- class: "vxe-table--cell-area",
961
- xid: xID
962
- },
963
- [
964
- (0, import_vue.h)(
965
- "span",
966
- {
967
- class: "vxe-table--cell-main-area"
968
- },
969
- mouseOpts.extension ? [
970
- (0, import_vue.h)("span", {
971
- class: "vxe-table--cell-main-area-btn",
972
- onMousedown(evnt) {
973
- if ($xeTable.triggerCellAreaExtendMousedownEvent) {
974
- $xeTable.triggerCellAreaExtendMousedownEvent(evnt, { $table: $xeTable, fixed: fixedType, type: renderType });
888
+ return (0, import_vue.h)(
889
+ "div",
890
+ {
891
+ ref: refElem,
892
+ class: ["vxe-table--body-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
893
+ xid: xID
894
+ },
895
+ [
896
+ (0, import_vue.h)(
897
+ "div",
898
+ {
899
+ ref: refBodyScroll,
900
+ class: "vxe-table--body-inner-wrapper",
901
+ onScroll(evnt) {
902
+ $xeTable.triggerBodyScrollEvent(evnt, fixedType);
903
+ }
904
+ },
905
+ [
906
+ fixedType ? renderEmptyElement($xeTable) : (0, import_vue.h)("div", {
907
+ ref: refBodyXSpace,
908
+ class: "vxe-body--x-space"
909
+ }),
910
+ (0, import_vue.h)("div", {
911
+ ref: refBodyYSpace,
912
+ class: "vxe-body--y-space"
913
+ }),
914
+ (0, import_vue.h)(
915
+ "table",
916
+ {
917
+ ref: refBodyTable,
918
+ class: "vxe-table--body",
919
+ xid: xID,
920
+ cellspacing: 0,
921
+ cellpadding: 0,
922
+ border: 0,
923
+ xvm: isOptimizeMode ? "1" : null
924
+ },
925
+ [
926
+ /**
927
+ * 列宽
928
+ */
929
+ (0, import_vue.h)(
930
+ "colgroup",
931
+ {
932
+ ref: refBodyColgroup
933
+ },
934
+ renderColumnList.map((column, $columnIndex) => {
935
+ return (0, import_vue.h)("col", {
936
+ name: column.id,
937
+ key: $columnIndex,
938
+ style: {
939
+ width: `${column.renderWidth}px`
975
940
  }
976
- }
941
+ });
977
942
  })
978
- ] : []
979
- ),
980
- (0, import_vue.h)("span", {
981
- class: "vxe-table--cell-clip-area"
982
- }),
983
- (0, import_vue.h)("span", {
984
- class: "vxe-table--cell-extend-area"
985
- }),
986
- (0, import_vue.h)("span", {
987
- class: "vxe-table--cell-multi-area"
988
- }),
989
- (0, import_vue.h)("span", {
990
- class: "vxe-table--cell-active-area"
991
- }),
992
- (0, import_vue.h)("span", {
993
- class: "vxe-table--cell-row-status-area"
994
- })
995
- ]
996
- ) : renderEmptyElement($xeTable),
997
- !fixedType ? (0, import_vue.h)(
998
- "div",
999
- {
1000
- class: "vxe-table--empty-block",
1001
- ref: refBodyEmptyBlock
1002
- },
1003
- [
1004
- (0, import_vue.h)(
1005
- "div",
1006
- {
1007
- class: "vxe-table--empty-content"
1008
- },
1009
- emptyContent
1010
- )
1011
- ]
1012
- ) : renderEmptyElement($xeTable)
1013
- ]
1014
- )
1015
- ]
1016
- );
1017
- };
1018
- return renderVN;
1019
- }
1020
- });
943
+ ),
944
+ /**
945
+ * 内容
946
+ */
947
+ (0, import_vue.h)(
948
+ "tbody",
949
+ {
950
+ ref: refBodyTBody
951
+ },
952
+ renderRows(fixedType, isOptimizeMode, renderDataList, renderColumnList)
953
+ )
954
+ ]
955
+ ),
956
+ (0, import_vue.h)("div", {
957
+ class: "vxe-table--checkbox-range"
958
+ }),
959
+ (0, import_utils.hasEnableConf)(mouseConfig, mouseOpts) && mouseOpts.area ? (0, import_vue.h)(
960
+ "div",
961
+ {
962
+ class: "vxe-table--cell-area",
963
+ xid: xID
964
+ },
965
+ [
966
+ (0, import_vue.h)(
967
+ "span",
968
+ {
969
+ class: "vxe-table--cell-main-area"
970
+ },
971
+ mouseOpts.extension ? [
972
+ (0, import_vue.h)("span", {
973
+ class: "vxe-table--cell-main-area-btn",
974
+ onMousedown(evnt) {
975
+ if ($xeTable.triggerCellAreaExtendMousedownEvent) {
976
+ $xeTable.triggerCellAreaExtendMousedownEvent(evnt, { $table: $xeTable, fixed: fixedType, type: renderType });
977
+ }
978
+ }
979
+ })
980
+ ] : []
981
+ ),
982
+ (0, import_vue.h)("span", {
983
+ class: "vxe-table--cell-clip-area"
984
+ }),
985
+ (0, import_vue.h)("span", {
986
+ class: "vxe-table--cell-extend-area"
987
+ }),
988
+ (0, import_vue.h)("span", {
989
+ class: "vxe-table--cell-multi-area"
990
+ }),
991
+ (0, import_vue.h)("span", {
992
+ class: "vxe-table--cell-active-area"
993
+ }),
994
+ (0, import_vue.h)("span", {
995
+ class: "vxe-table--cell-row-status-area"
996
+ })
997
+ ]
998
+ ) : renderEmptyElement($xeTable),
999
+ !fixedType ? (0, import_vue.h)(
1000
+ "div",
1001
+ {
1002
+ class: "vxe-table--empty-block",
1003
+ ref: refBodyEmptyBlock
1004
+ },
1005
+ [
1006
+ (0, import_vue.h)(
1007
+ "div",
1008
+ {
1009
+ class: "vxe-table--empty-content"
1010
+ },
1011
+ emptyContent
1012
+ )
1013
+ ]
1014
+ ) : renderEmptyElement($xeTable)
1015
+ ]
1016
+ )
1017
+ ]
1018
+ );
1019
+ };
1020
+ return renderVN;
1021
+ }
1022
+ })
1023
+ );