vxe-table 4.23.4 → 4.23.6

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