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,374 +1,408 @@
1
- import XEUtils from 'xe-utils';
2
- import { VxeUI } from '../../ui';
3
- import { defineVxeComponent } from '../../ui/src/comp';
4
- import { getClass, getDefaultConfig } from '../../ui/src/utils';
5
- import { updateCellTitle } from '../../ui/src/dom';
6
- import { getCalcHeight } from './util';
7
- const sourceType = 'table';
8
- const renderType = 'footer';
1
+ import XEUtils from "xe-utils";
2
+ import { VxeUI } from "@vxe-ui/core";
3
+ import { getClass, getDefaultConfig } from "../../ui/src/utils";
4
+ import { updateCellTitle } from "../../ui/src/dom";
5
+ import { getCalcHeight } from "./util";
6
+ const sourceType = "table";
7
+ const renderType = "footer";
9
8
  const { renderer, renderEmptyElement } = VxeUI;
10
9
  function renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData, row, $rowIndex, _rowIndex) {
11
- const props = _vm;
12
- const $xeTable = _vm.$parent;
13
- const tableProps = $xeTable;
14
- const tableReactData = $xeTable;
15
- const tableInternalData = $xeTable;
16
- const $xeGrid = $xeTable.$xeGrid;
17
- const $xeGantt = $xeTable.$xeGantt;
18
- const { fixedType } = props;
19
- const { resizable: allResizable, border, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, footerSpanMethod, align: allAlign, columnKey, showFooterOverflow: allColumnFooterOverflow } = tableProps;
20
- const { scrollXLoad, scrollYLoad, overflowX, mergeFootFlag, currColFlag } = tableReactData;
21
- const { fullColumnIdData, mergeFooterList, mergeFooterCellMaps, scrollXStore, currentCol } = tableInternalData;
22
- const virtualXOpts = $xeTable.computeVirtualXOpts;
23
- const footerTooltipOpts = $xeTable.computeFooterTooltipOpts;
24
- const resizableOpts = $xeTable.resizableOpts;
25
- const { isAllColumnDrag } = resizableOpts;
26
- const columnOpts = $xeTable.computeColumnOpts;
27
- const defaultRowHeight = $xeTable.computeDefaultRowHeight;
28
- const cellOpts = $xeTable.computeCellOpts;
29
- const footerCellOpts = $xeTable.computeFooterCellOpts;
30
- const currCellHeight = getCalcHeight(footerCellOpts.height) || defaultRowHeight;
31
- const rendererOpts = $xeTable.computeRendererOpts;
32
- return tableColumn.map((column, $columnIndex) => {
33
- const { type, showFooterOverflow, footerAlign, align, footerClassName, editRender, cellRender } = column;
34
- const colid = column.id;
35
- const colRest = fullColumnIdData[colid] || {};
36
- const renderOpts = editRender || cellRender;
37
- const compConf = renderOpts && renderOpts.name ? (rendererOpts[renderOpts.name] || renderer.get(renderOpts.name)) : null;
38
- const showAllTip = footerTooltipOpts.showAll;
39
- const fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
40
- const cellPadding = getDefaultConfig(footerCellOpts.padding, cellOpts.padding);
41
- const isAllCellPadding = cellPadding === true;
42
- const isCellPaddingTop = cellPadding ? (isAllCellPadding || cellPadding.top !== false) : false;
43
- const isCellPaddingBottom = cellPadding ? (isAllCellPadding || cellPadding.bottom !== false) : false;
44
- const isCellPaddingLeft = cellPadding ? (isAllCellPadding || cellPadding.left !== false) : false;
45
- const isCellPaddingRight = cellPadding ? (isAllCellPadding || cellPadding.right !== false) : false;
46
- const footOverflow = getDefaultConfig(showFooterOverflow, allColumnFooterOverflow);
47
- const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign;
48
- const showEllipsis = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'ellipsis';
49
- const showTitle = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'title';
50
- const showTooltip = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'tooltip';
51
- const hasEllipsis = showTitle || showTooltip || showEllipsis;
52
- const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable));
53
- const attrs = { colid };
54
- const tfOns = {};
55
- const columnIndex = colRest.index;
56
- const _columnIndex = colRest._index;
57
- const itemIndex = _columnIndex;
58
- const cellParams = {
59
- source: sourceType,
60
- $table: $xeTable,
61
- $grid: $xeGrid,
62
- $gantt: $xeGantt,
63
- row,
64
- rowIndex: _rowIndex,
65
- _rowIndex,
66
- $rowIndex,
67
- column,
68
- columnIndex,
69
- $columnIndex,
70
- _columnIndex,
71
- itemIndex,
72
- items: row,
73
- fixed: fixedType,
74
- type: renderType,
75
- data: footerTableData
76
- };
77
- if (showTitle || showTooltip || showAllTip) {
78
- tfOns.mouseenter = (evnt) => {
79
- if (showTitle) {
80
- updateCellTitle(evnt.currentTarget, column);
81
- }
82
- else if (showTooltip || showAllTip) {
83
- $xeTable.triggerFooterTooltipEvent(evnt, cellParams);
84
- }
85
- };
10
+ const props = _vm;
11
+ const $xeTable = _vm.$parent;
12
+ const tableProps = $xeTable;
13
+ const tableReactData = $xeTable;
14
+ const tableInternalData = $xeTable;
15
+ const $xeGrid = $xeTable.$xeGrid;
16
+ const $xeGantt = $xeTable.$xeGantt;
17
+ const { fixedType } = props;
18
+ const { resizable: allResizable, border, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, footerSpanMethod, align: allAlign, columnKey, showFooterOverflow: allColumnFooterOverflow } = tableProps;
19
+ const { scrollXLoad, scrollYLoad, overflowX, mergeFootFlag, currColFlag } = tableReactData;
20
+ const { fullColumnIdData, mergeFooterList, mergeFooterCellMaps, scrollXStore, currentCol } = tableInternalData;
21
+ const virtualXOpts = $xeTable.computeVirtualXOpts;
22
+ const footerTooltipOpts = $xeTable.computeFooterTooltipOpts;
23
+ const resizableOpts = $xeTable.resizableOpts;
24
+ const { isAllColumnDrag } = resizableOpts;
25
+ const columnOpts = $xeTable.computeColumnOpts;
26
+ const defaultRowHeight = $xeTable.computeDefaultRowHeight;
27
+ const cellOpts = $xeTable.computeCellOpts;
28
+ const footerCellOpts = $xeTable.computeFooterCellOpts;
29
+ const currCellHeight = getCalcHeight(footerCellOpts.height) || defaultRowHeight;
30
+ const rendererOpts = $xeTable.computeRendererOpts;
31
+ return tableColumn.map((column, $columnIndex) => {
32
+ const { type, showFooterOverflow, footerAlign, align, footerClassName, editRender, cellRender } = column;
33
+ const colid = column.id;
34
+ const colRest = fullColumnIdData[colid] || {};
35
+ const renderOpts = editRender || cellRender;
36
+ const compConf = renderOpts && renderOpts.name ? rendererOpts[renderOpts.name] || renderer.get(renderOpts.name) : null;
37
+ const showAllTip = footerTooltipOpts.showAll;
38
+ const fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed);
39
+ const cellPadding = getDefaultConfig(footerCellOpts.padding, cellOpts.padding);
40
+ const isAllCellPadding = cellPadding === true;
41
+ const isCellPaddingTop = cellPadding ? isAllCellPadding || cellPadding.top !== false : false;
42
+ const isCellPaddingBottom = cellPadding ? isAllCellPadding || cellPadding.bottom !== false : false;
43
+ const isCellPaddingLeft = cellPadding ? isAllCellPadding || cellPadding.left !== false : false;
44
+ const isCellPaddingRight = cellPadding ? isAllCellPadding || cellPadding.right !== false : false;
45
+ const footOverflow = getDefaultConfig(showFooterOverflow, allColumnFooterOverflow);
46
+ const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : "") || allFooterAlign || align || (compConf ? compConf.tableCellAlign : "") || allAlign;
47
+ const showEllipsis = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === "ellipsis";
48
+ const showTitle = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === "title";
49
+ const showTooltip = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === "tooltip";
50
+ const hasEllipsis = showTitle || showTooltip || showEllipsis;
51
+ const showResizable = XEUtils.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable;
52
+ const attrs = { colid };
53
+ const tfOns = {};
54
+ const columnIndex = colRest.index;
55
+ const _columnIndex = colRest._index;
56
+ const itemIndex = _columnIndex;
57
+ const cellParams = {
58
+ source: sourceType,
59
+ $table: $xeTable,
60
+ $grid: $xeGrid,
61
+ $gantt: $xeGantt,
62
+ row,
63
+ rowIndex: _rowIndex,
64
+ _rowIndex,
65
+ $rowIndex,
66
+ column,
67
+ columnIndex,
68
+ $columnIndex,
69
+ _columnIndex,
70
+ itemIndex,
71
+ items: row,
72
+ fixed: fixedType,
73
+ type: renderType,
74
+ data: footerTableData
75
+ };
76
+ if (showTitle || showTooltip || showAllTip) {
77
+ tfOns.mouseenter = (evnt) => {
78
+ if (showTitle) {
79
+ updateCellTitle(evnt.currentTarget, column);
80
+ } else if (showTooltip || showAllTip) {
81
+ $xeTable.triggerFooterTooltipEvent(evnt, cellParams);
86
82
  }
83
+ };
84
+ }
85
+ if (showTooltip || showAllTip) {
86
+ tfOns.mouseleave = (evnt) => {
87
87
  if (showTooltip || showAllTip) {
88
- tfOns.mouseleave = (evnt) => {
89
- if (showTooltip || showAllTip) {
90
- $xeTable.handleTargetLeaveEvent(evnt);
91
- }
92
- };
93
- }
94
- tfOns.click = (evnt) => {
95
- $xeTable.triggerFooterCellClickEvent(evnt, cellParams);
96
- };
97
- tfOns.dblclick = (evnt) => {
98
- $xeTable.triggerFooterCellDblclickEvent(evnt, cellParams);
99
- };
100
- let isMergeCell = false;
101
- // 合并行或列
102
- if (mergeFootFlag && mergeFooterList.length) {
103
- const spanRest = mergeFooterCellMaps[`${_rowIndex}:${_columnIndex}`];
104
- if (spanRest) {
105
- const { rowspan, colspan } = spanRest;
106
- if (!rowspan || !colspan) {
107
- return null;
108
- }
109
- if (rowspan > 1) {
110
- isMergeCell = true;
111
- attrs.rowspan = rowspan;
112
- }
113
- if (colspan > 1) {
114
- isMergeCell = true;
115
- attrs.colspan = colspan;
116
- }
117
- }
88
+ $xeTable.handleTargetLeaveEvent(evnt);
118
89
  }
119
- else if (footerSpanMethod) {
120
- // 自定义合并方法
121
- const { rowspan = 1, colspan = 1 } = footerSpanMethod(cellParams) || {};
122
- if (!rowspan || !colspan) {
123
- return null;
124
- }
125
- if (rowspan > 1) {
126
- attrs.rowspan = rowspan;
127
- }
128
- if (colspan > 1) {
129
- attrs.colspan = colspan;
130
- }
131
- }
132
- const isLastColumn = $columnIndex === tableColumn.length - 1;
133
- const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto');
134
- let isVNPreEmptyStatus = false;
135
- if (isOptimizeMode && overflowX && !isMergeCell) {
136
- if (scrollXLoad && tableColumn.length > 10 && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
137
- isVNPreEmptyStatus = true;
138
- }
90
+ };
91
+ }
92
+ tfOns.click = (evnt) => {
93
+ $xeTable.triggerFooterCellClickEvent(evnt, cellParams);
94
+ };
95
+ tfOns.dblclick = (evnt) => {
96
+ $xeTable.triggerFooterCellDblclickEvent(evnt, cellParams);
97
+ };
98
+ let isMergeCell = false;
99
+ if (mergeFootFlag && mergeFooterList.length) {
100
+ const spanRest = mergeFooterCellMaps[`${_rowIndex}:${_columnIndex}`];
101
+ if (spanRest) {
102
+ const { rowspan, colspan } = spanRest;
103
+ if (!rowspan || !colspan) {
104
+ return null;
139
105
  }
140
- const tcStyle = {};
141
- if (hasEllipsis) {
142
- tcStyle.height = `${currCellHeight}px`;
106
+ if (rowspan > 1) {
107
+ isMergeCell = true;
108
+ attrs.rowspan = rowspan;
143
109
  }
144
- else {
145
- tcStyle.minHeight = `${currCellHeight}px`;
110
+ if (colspan > 1) {
111
+ isMergeCell = true;
112
+ attrs.colspan = colspan;
146
113
  }
147
- return h('td', {
148
- class: ['vxe-table--column vxe-footer--column', column.id, {
149
- [`col--${footAlign}`]: footAlign,
150
- [`col--${type}`]: type,
151
- 'col--last': isLastColumn,
152
- 'fixed--width': !isAutoCellWidth,
153
- 'fixed--hidden': fixedHiddenColumn,
154
- 'is--pg-top': isCellPaddingTop,
155
- 'is--pg-bottom': isCellPaddingBottom,
156
- 'is--pg-left': isCellPaddingLeft,
157
- 'is--pg-right': isCellPaddingRight,
158
- 'col--ellipsis': hasEllipsis,
159
- 'col--current': currColFlag && currentCol === column
160
- }, getClass(footerClassName, cellParams), getClass(footerCellClassName, cellParams)],
161
- attrs,
162
- style: footerCellStyle ? (XEUtils.isFunction(footerCellStyle) ? footerCellStyle(cellParams) : footerCellStyle) : undefined,
163
- on: tfOns,
164
- key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag ? column.id : $columnIndex
165
- }, [
166
- h('div', {
167
- class: ['vxe-cell', {
168
- 'c--title': showTitle,
169
- 'c--tooltip': showTooltip,
170
- 'c--ellipsis': showEllipsis
171
- }],
172
- style: tcStyle
173
- }, isVNPreEmptyStatus
174
- ? []
175
- : [
176
- h('div', {
177
- attrs: {
178
- colid
179
- },
180
- class: 'vxe-cell--wrapper vxe-footer-cell--wrapper'
181
- }, column.renderFooter(h, cellParams))
182
- ]),
183
- /**
184
- * 列宽拖动
185
- */
186
- !fixedHiddenColumn && showResizable && isAllColumnDrag
187
- ? h('div', {
188
- class: ['vxe-cell--col-resizable', {
189
- 'is--line': !border || border === 'none'
190
- }],
191
- on: {
192
- mousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
193
- dblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
194
- }
195
- })
196
- : renderEmptyElement($xeTable)
197
- ]);
198
- });
199
- }
200
- function renderHeads(h, _vm, isOptimizeMode, renderColumnList) {
201
- const props = _vm;
202
- const $xeTable = _vm.$parent;
203
- const tableProps = $xeTable;
204
- const { fixedType, footerTableData } = props;
205
- const { footerRowClassName, footerRowStyle } = tableProps;
206
- return footerTableData.map((row, _rowIndex) => {
207
- const $rowIndex = _rowIndex;
208
- const rowParams = { $table: $xeTable, row, rowIndex: _rowIndex, _rowIndex, $rowIndex, fixed: fixedType, type: renderType };
209
- return h('tr', {
210
- key: _rowIndex,
114
+ }
115
+ } else if (footerSpanMethod) {
116
+ const { rowspan = 1, colspan = 1 } = footerSpanMethod(cellParams) || {};
117
+ if (!rowspan || !colspan) {
118
+ return null;
119
+ }
120
+ if (rowspan > 1) {
121
+ attrs.rowspan = rowspan;
122
+ }
123
+ if (colspan > 1) {
124
+ attrs.colspan = colspan;
125
+ }
126
+ }
127
+ const isLastColumn = $columnIndex === tableColumn.length - 1;
128
+ const isAutoCellWidth = !column.resizeWidth && (column.minWidth === "auto" || column.width === "auto");
129
+ let isVNPreEmptyStatus = false;
130
+ if (isOptimizeMode && overflowX && !isMergeCell) {
131
+ if (scrollXLoad && tableColumn.length > 10 && !column.fixed && !virtualXOpts.immediate && (_columnIndex < scrollXStore.visibleStartIndex - scrollXStore.preloadSize || _columnIndex > scrollXStore.visibleEndIndex + scrollXStore.preloadSize)) {
132
+ isVNPreEmptyStatus = true;
133
+ }
134
+ }
135
+ const tcStyle = {};
136
+ if (hasEllipsis) {
137
+ tcStyle.height = `${currCellHeight}px`;
138
+ } else {
139
+ tcStyle.minHeight = `${currCellHeight}px`;
140
+ }
141
+ return h(
142
+ "td",
143
+ {
144
+ class: [
145
+ "vxe-table--column vxe-footer--column",
146
+ column.id,
147
+ {
148
+ [`col--${footAlign}`]: footAlign,
149
+ [`col--${type}`]: type,
150
+ "col--last": isLastColumn,
151
+ "fixed--width": !isAutoCellWidth,
152
+ "fixed--hidden": fixedHiddenColumn,
153
+ "is--pg-top": isCellPaddingTop,
154
+ "is--pg-bottom": isCellPaddingBottom,
155
+ "is--pg-left": isCellPaddingLeft,
156
+ "is--pg-right": isCellPaddingRight,
157
+ "col--ellipsis": hasEllipsis,
158
+ "col--current": currColFlag && currentCol === column
159
+ },
160
+ getClass(footerClassName, cellParams),
161
+ getClass(footerCellClassName, cellParams)
162
+ ],
163
+ attrs,
164
+ style: footerCellStyle ? XEUtils.isFunction(footerCellStyle) ? footerCellStyle(cellParams) : footerCellStyle : void 0,
165
+ on: tfOns,
166
+ key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag ? column.id : $columnIndex
167
+ },
168
+ [
169
+ h(
170
+ "div",
171
+ {
211
172
  class: [
212
- 'vxe-footer--row',
213
- footerRowClassName ? XEUtils.isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''
173
+ "vxe-cell",
174
+ {
175
+ "c--title": showTitle,
176
+ "c--tooltip": showTooltip,
177
+ "c--ellipsis": showEllipsis
178
+ }
214
179
  ],
215
- style: footerRowStyle ? (XEUtils.isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle) : undefined
216
- }, renderRows(h, _vm, isOptimizeMode, renderColumnList, footerTableData, row, _rowIndex, _rowIndex));
217
- });
180
+ style: tcStyle
181
+ },
182
+ isVNPreEmptyStatus ? [] : [
183
+ h(
184
+ "div",
185
+ {
186
+ attrs: {
187
+ colid
188
+ },
189
+ class: "vxe-cell--wrapper vxe-footer-cell--wrapper"
190
+ },
191
+ column.renderFooter(h, cellParams)
192
+ )
193
+ ]
194
+ ),
195
+ /**
196
+ * 列宽拖动
197
+ */
198
+ !fixedHiddenColumn && showResizable && isAllColumnDrag ? h("div", {
199
+ class: [
200
+ "vxe-cell--col-resizable",
201
+ {
202
+ "is--line": !border || border === "none"
203
+ }
204
+ ],
205
+ on: {
206
+ mousedown: (evnt) => $xeTable.handleColResizeMousedownEvent(evnt, fixedType, cellParams),
207
+ dblclick: (evnt) => $xeTable.handleColResizeDblclickEvent(evnt, cellParams)
208
+ }
209
+ }) : renderEmptyElement($xeTable)
210
+ ]
211
+ );
212
+ });
218
213
  }
219
- export default {
220
- name: 'VxeTableFooter',
221
- props: {
222
- footerTableData: {
223
- type: Array,
224
- default: () => []
225
- },
226
- tableColumn: {
227
- type: Array,
228
- default: () => []
229
- },
230
- fixedColumn: {
231
- type: Array,
232
- default: () => []
233
- },
234
- fixedType: {
235
- type: String,
236
- default: null
237
- }
214
+ function renderHeads(h, _vm, isOptimizeMode, renderColumnList) {
215
+ const props = _vm;
216
+ const $xeTable = _vm.$parent;
217
+ const tableProps = $xeTable;
218
+ const { fixedType, footerTableData } = props;
219
+ const { footerRowClassName, footerRowStyle } = tableProps;
220
+ return footerTableData.map((row, _rowIndex) => {
221
+ const $rowIndex = _rowIndex;
222
+ const rowParams = { $table: $xeTable, row, rowIndex: _rowIndex, _rowIndex, $rowIndex, fixed: fixedType, type: renderType };
223
+ return h(
224
+ "tr",
225
+ {
226
+ key: _rowIndex,
227
+ class: ["vxe-footer--row", footerRowClassName ? XEUtils.isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ""],
228
+ style: footerRowStyle ? XEUtils.isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle : void 0
229
+ },
230
+ renderRows(h, _vm, isOptimizeMode, renderColumnList, footerTableData, row, _rowIndex, _rowIndex)
231
+ );
232
+ });
233
+ }
234
+ var footer_default = {
235
+ name: "VxeTableFooter",
236
+ props: {
237
+ footerTableData: {
238
+ type: Array,
239
+ default: () => []
238
240
  },
239
- mounted() {
240
- const _vm = this;
241
- const props = _vm;
242
- const $xeTable = _vm.$parent;
243
- const tableInternalData = $xeTable;
244
- const { fixedType } = props;
245
- const { elemStore } = tableInternalData;
246
- const prefix = `${fixedType || 'main'}-footer-`;
247
- elemStore[`${prefix}wrapper`] = _vm.$refs.refElem;
248
- elemStore[`${prefix}scroll`] = _vm.$refs.refFooterScroll;
249
- elemStore[`${prefix}table`] = _vm.$refs.refFooterTable;
250
- elemStore[`${prefix}colgroup`] = _vm.$refs.refFooterColgroup;
251
- elemStore[`${prefix}list`] = _vm.$refs.refFooterTFoot;
252
- elemStore[`${prefix}xSpace`] = _vm.$refs.refFooterXSpace;
241
+ tableColumn: {
242
+ type: Array,
243
+ default: () => []
253
244
  },
254
- destroyed() {
255
- const _vm = this;
256
- const props = _vm;
257
- const $xeTable = _vm.$parent;
258
- const tableInternalData = $xeTable;
259
- const { fixedType } = props;
260
- const { elemStore } = tableInternalData;
261
- const prefix = `${fixedType || 'main'}-footer-`;
262
- elemStore[`${prefix}wrapper`] = null;
263
- elemStore[`${prefix}scroll`] = null;
264
- elemStore[`${prefix}table`] = null;
265
- elemStore[`${prefix}colgroup`] = null;
266
- elemStore[`${prefix}list`] = null;
267
- elemStore[`${prefix}xSpace`] = null;
245
+ fixedColumn: {
246
+ type: Array,
247
+ default: () => []
268
248
  },
269
- render(h) {
270
- const _vm = this;
271
- const props = _vm;
272
- const $xeTable = _vm.$parent;
273
- const tableReactData = $xeTable;
274
- const tableInternalData = $xeTable;
275
- const { xID } = $xeTable;
276
- const { fixedType, fixedColumn, tableColumn } = props;
277
- const { visibleColumn, fullColumnIdData } = tableInternalData;
278
- const { isGroup, isColLoading, overflowX, scrollXLoad, dragCol } = tableReactData;
279
- const isFooterRenderOptimize = $xeTable.computeIsFooterRenderOptimize;
280
- let renderColumnList = tableColumn;
281
- const isOptimizeMode = isFooterRenderOptimize;
282
- if (!isOptimizeMode || (!isColLoading && (fixedType || !overflowX))) {
283
- renderColumnList = visibleColumn;
284
- }
285
- if (fixedType) {
286
- if (isOptimizeMode) {
287
- renderColumnList = fixedColumn || [];
249
+ fixedType: {
250
+ type: String,
251
+ default: null
252
+ }
253
+ },
254
+ mounted() {
255
+ const _vm = this;
256
+ const props = _vm;
257
+ const $xeTable = _vm.$parent;
258
+ const tableInternalData = $xeTable;
259
+ const { fixedType } = props;
260
+ const { elemStore } = tableInternalData;
261
+ const prefix = `${fixedType || "main"}-footer-`;
262
+ elemStore[`${prefix}wrapper`] = _vm.$refs.refElem;
263
+ elemStore[`${prefix}scroll`] = _vm.$refs.refFooterScroll;
264
+ elemStore[`${prefix}table`] = _vm.$refs.refFooterTable;
265
+ elemStore[`${prefix}colgroup`] = _vm.$refs.refFooterColgroup;
266
+ elemStore[`${prefix}list`] = _vm.$refs.refFooterTFoot;
267
+ elemStore[`${prefix}xSpace`] = _vm.$refs.refFooterXSpace;
268
+ },
269
+ destroyed() {
270
+ const _vm = this;
271
+ const props = _vm;
272
+ const $xeTable = _vm.$parent;
273
+ const tableInternalData = $xeTable;
274
+ const { fixedType } = props;
275
+ const { elemStore } = tableInternalData;
276
+ const prefix = `${fixedType || "main"}-footer-`;
277
+ elemStore[`${prefix}wrapper`] = null;
278
+ elemStore[`${prefix}scroll`] = null;
279
+ elemStore[`${prefix}table`] = null;
280
+ elemStore[`${prefix}colgroup`] = null;
281
+ elemStore[`${prefix}list`] = null;
282
+ elemStore[`${prefix}xSpace`] = null;
283
+ },
284
+ render(h) {
285
+ const _vm = this;
286
+ const props = _vm;
287
+ const $xeTable = _vm.$parent;
288
+ const tableReactData = $xeTable;
289
+ const tableInternalData = $xeTable;
290
+ const { xID } = $xeTable;
291
+ const { fixedType, fixedColumn, tableColumn } = props;
292
+ const { visibleColumn, fullColumnIdData } = tableInternalData;
293
+ const { isGroup, isColLoading, overflowX, scrollXLoad, dragCol } = tableReactData;
294
+ const isFooterRenderOptimize = $xeTable.computeIsFooterRenderOptimize;
295
+ let renderColumnList = tableColumn;
296
+ const isOptimizeMode = isFooterRenderOptimize;
297
+ if (!isOptimizeMode || !isColLoading && (fixedType || !overflowX)) {
298
+ renderColumnList = visibleColumn;
299
+ }
300
+ if (fixedType) {
301
+ if (isOptimizeMode) {
302
+ renderColumnList = fixedColumn || [];
303
+ }
304
+ }
305
+ if (!fixedType && !isGroup) {
306
+ if (scrollXLoad && dragCol) {
307
+ if (renderColumnList.length > 2) {
308
+ const dCowRest = fullColumnIdData[dragCol.id];
309
+ if (dCowRest) {
310
+ const dcIndex = dCowRest._index;
311
+ const firstCol = renderColumnList[0];
312
+ const lastCol = renderColumnList[renderColumnList.length - 1];
313
+ const firstColRest = fullColumnIdData[firstCol.id];
314
+ const lastColRest = fullColumnIdData[lastCol.id];
315
+ if (firstColRest && lastColRest) {
316
+ const fcIndex = firstColRest._index;
317
+ const lcIndex = lastColRest._index;
318
+ if (dcIndex < fcIndex) {
319
+ renderColumnList = [dragCol].concat(renderColumnList);
320
+ } else if (dcIndex > lcIndex) {
321
+ renderColumnList = renderColumnList.concat([dragCol]);
322
+ }
288
323
  }
324
+ }
289
325
  }
290
- if (!fixedType && !isGroup) {
291
- // 列拖拽
292
- if (scrollXLoad && dragCol) {
293
- if (renderColumnList.length > 2) {
294
- const dCowRest = fullColumnIdData[dragCol.id];
295
- if (dCowRest) {
296
- const dcIndex = dCowRest._index;
297
- const firstCol = renderColumnList[0];
298
- const lastCol = renderColumnList[renderColumnList.length - 1];
299
- const firstColRest = fullColumnIdData[firstCol.id];
300
- const lastColRest = fullColumnIdData[lastCol.id];
301
- if (firstColRest && lastColRest) {
302
- const fcIndex = firstColRest._index;
303
- const lcIndex = lastColRest._index;
304
- if (dcIndex < fcIndex) {
305
- renderColumnList = [dragCol].concat(renderColumnList);
306
- }
307
- else if (dcIndex > lcIndex) {
308
- renderColumnList = renderColumnList.concat([dragCol]);
309
- }
310
- }
311
- }
312
- }
313
- }
326
+ }
327
+ }
328
+ return h(
329
+ "div",
330
+ {
331
+ ref: "refElem",
332
+ class: ["vxe-table--footer-wrapper", fixedType ? `fixed-${fixedType}--wrapper` : "body--wrapper"],
333
+ attrs: {
334
+ xid: xID
314
335
  }
315
- return h('div', {
316
- ref: 'refElem',
317
- class: ['vxe-table--footer-wrapper', fixedType ? `fixed-${fixedType}--wrapper` : 'body--wrapper'],
318
- attrs: {
319
- xid: xID
336
+ },
337
+ [
338
+ h(
339
+ "div",
340
+ {
341
+ ref: "refFooterScroll",
342
+ class: "vxe-table--footer-inner-wrapper",
343
+ on: {
344
+ scroll(evnt) {
345
+ $xeTable.triggerFooterScrollEvent(evnt, fixedType);
346
+ }
320
347
  }
321
- }, [
322
- h('div', {
323
- ref: 'refFooterScroll',
324
- class: 'vxe-table--footer-inner-wrapper',
325
- on: {
326
- scroll(evnt) {
327
- $xeTable.triggerFooterScrollEvent(evnt, fixedType);
328
- }
348
+ },
349
+ [
350
+ fixedType ? renderEmptyElement($xeTable) : h("div", {
351
+ ref: "refFooterXSpace",
352
+ class: "vxe-body--x-space"
353
+ }),
354
+ h(
355
+ "table",
356
+ {
357
+ ref: "refFooterTable",
358
+ class: "vxe-table--footer",
359
+ attrs: {
360
+ xid: xID,
361
+ cellspacing: 0,
362
+ cellpadding: 0,
363
+ border: 0,
364
+ xvm: isOptimizeMode ? "1" : null
329
365
  }
330
- }, [
331
- fixedType
332
- ? renderEmptyElement($xeTable)
333
- : h('div', {
334
- ref: 'refFooterXSpace',
335
- class: 'vxe-body--x-space'
336
- }),
337
- h('table', {
338
- ref: 'refFooterTable',
339
- class: 'vxe-table--footer',
340
- attrs: {
341
- xid: xID,
342
- cellspacing: 0,
343
- cellpadding: 0,
344
- border: 0,
345
- xvm: isOptimizeMode ? '1' : null
346
- }
347
- }, [
348
- /**
349
- * 列宽
350
- */
351
- h('colgroup', {
352
- ref: 'refFooterColgroup'
353
- }, renderColumnList.map((column, $columnIndex) => {
354
- return h('col', {
355
- attrs: {
356
- name: column.id
357
- },
358
- key: $columnIndex,
359
- style: {
360
- width: `${column.renderWidth}px`
361
- }
362
- });
363
- })),
364
- /**
365
- * 底部
366
- */
367
- h('tfoot', {
368
- ref: 'refFooterTFoot'
369
- }, renderHeads(h, _vm, isOptimizeMode, renderColumnList))
370
- ])
371
- ])
372
- ]);
373
- }
366
+ },
367
+ [
368
+ /**
369
+ * 列宽
370
+ */
371
+ h(
372
+ "colgroup",
373
+ {
374
+ ref: "refFooterColgroup"
375
+ },
376
+ renderColumnList.map((column, $columnIndex) => {
377
+ return h("col", {
378
+ attrs: {
379
+ name: column.id
380
+ },
381
+ key: $columnIndex,
382
+ style: {
383
+ width: `${column.renderWidth}px`
384
+ }
385
+ });
386
+ })
387
+ ),
388
+ /**
389
+ * 底部
390
+ */
391
+ h(
392
+ "tfoot",
393
+ {
394
+ ref: "refFooterTFoot"
395
+ },
396
+ renderHeads(h, _vm, isOptimizeMode, renderColumnList)
397
+ )
398
+ ]
399
+ )
400
+ ]
401
+ )
402
+ ]
403
+ );
404
+ }
405
+ };
406
+ export {
407
+ footer_default as default
374
408
  };