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