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,6 +1,6 @@
1
1
  import { CreateElement, VNode, PropType } from 'vue'
2
2
  import { defineVxeComponent } from '../../../ui/src/comp'
3
- import { VxeUI } from '../../../ui'
3
+ import { VxeUI } from '@vxe-ui/core'
4
4
  import { formatText, hasEnableConf } from '../../../ui/src/utils'
5
5
  import { getTpImg, addClass, removeClass, hasControlKey } from '../../../ui/src/dom'
6
6
  import { createComponentLog } from '../../../ui/src/log'
@@ -13,7 +13,7 @@ const { errLog } = createComponentLog('table')
13
13
 
14
14
  const { getI18n, getIcon, renderEmptyElement } = VxeUI
15
15
 
16
- function showDropTip ($xeTableCustomPanel: VxeTableCustomPanelConstructor, evnt: DragEvent | MouseEvent, optEl: HTMLElement | null, showLine: boolean, dragPos: string) {
16
+ function showDropTip($xeTableCustomPanel: VxeTableCustomPanelConstructor, evnt: DragEvent | MouseEvent, optEl: HTMLElement | null, showLine: boolean, dragPos: string) {
17
17
  const customPanelInternalData = $xeTableCustomPanel.internalData
18
18
 
19
19
  const bodyWrapperElem = $xeTableCustomPanel.$refs.refBodyWrapperElem as HTMLDivElement
@@ -57,7 +57,7 @@ function showDropTip ($xeTableCustomPanel: VxeTableCustomPanelConstructor, evnt:
57
57
  }
58
58
  }
59
59
 
60
- function hideDropTip ($xeTableCustomPanel: VxeTableCustomPanelConstructor) {
60
+ function hideDropTip($xeTableCustomPanel: VxeTableCustomPanelConstructor) {
61
61
  const dragTipEl = $xeTableCustomPanel.$refs.refDragTipElem as HTMLDivElement
62
62
  const dragLineEl = $xeTableCustomPanel.$refs.refDragLineElem as HTMLDivElement
63
63
  if (dragTipEl) {
@@ -73,10 +73,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
73
73
  props: {
74
74
  customStore: {
75
75
  type: Object as PropType<VxeTableDefines.VxeTableCustomStoreObj>,
76
- default: () => ({} as VxeTableDefines.VxeTableCustomStoreObj)
76
+ default: () => ({}) as VxeTableDefines.VxeTableCustomStoreObj
77
77
  }
78
78
  },
79
- provide () {
79
+ provide() {
80
80
  const $xeTableCustomPanel = this
81
81
 
82
82
  return {
@@ -88,7 +88,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
88
88
  default: null
89
89
  }
90
90
  },
91
- data () {
91
+ data() {
92
92
  const reactData: TableCustomPanelReactData = {
93
93
  dragCol: null,
94
94
  dragGroupField: null,
@@ -114,7 +114,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
114
114
  $xeTable(): VxeTableConstructor & VxeTablePrivateMethods
115
115
  })
116
116
  },
117
- created () {
117
+ created() {
118
118
  const $xeTableCustomPanel = this
119
119
 
120
120
  const VxeUIModalComponent = VxeUI.getComponent('VxeModal')
@@ -128,10 +128,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
128
128
 
129
129
  const { customOpts } = $xeTable
130
130
  const { mode } = customOpts
131
- if (!VxeUIModalComponent && (mode === 'modal')) {
131
+ if (!VxeUIModalComponent && mode === 'modal') {
132
132
  errLog('vxe.error.reqComp', ['vxe-modal'])
133
133
  }
134
- if (!VxeUIDrawerComponent && (mode === 'drawer')) {
134
+ if (!VxeUIDrawerComponent && mode === 'drawer') {
135
135
  errLog('vxe.error.reqComp', ['vxe-drawer'])
136
136
  }
137
137
  if (!VxeUIButtonComponent) {
@@ -146,7 +146,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
146
146
  })
147
147
  },
148
148
  methods: {
149
- handleWrapperMouseenterEvent (evnt: any) {
149
+ handleWrapperMouseenterEvent(evnt: any) {
150
150
  const $xeTableCustomPanel = this
151
151
  const props = $xeTableCustomPanel
152
152
  const $xeTable = $xeTableCustomPanel.$xeTable
@@ -155,7 +155,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
155
155
  customStore.activeWrapper = true
156
156
  $xeTable.customOpenEvent(evnt)
157
157
  },
158
- handleWrapperMouseleaveEvent (evnt: any) {
158
+ handleWrapperMouseleaveEvent(evnt: any) {
159
159
  const $xeTableCustomPanel = this
160
160
  const $xeTable = $xeTableCustomPanel.$xeTable
161
161
  const props = $xeTableCustomPanel
@@ -168,10 +168,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
168
168
  }
169
169
  }, 300)
170
170
  },
171
- getStoreData () {
171
+ getStoreData() {
172
172
  return {}
173
173
  },
174
- confirmCustomEvent ({ $event }: VxeButtonDefines.ClickEventParams) {
174
+ confirmCustomEvent({ $event }: VxeButtonDefines.ClickEventParams) {
175
175
  const $xeTableCustomPanel = this
176
176
  const $xeTable = $xeTableCustomPanel.$xeTable
177
177
  const tableReactData = $xeTable as unknown as TableReactData
@@ -184,7 +184,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
184
184
  $xeTable.emitCustomEvent('close', $event)
185
185
  $xeTable.dispatchEvent('custom-close', {}, $event)
186
186
  },
187
- cancelCloseEvent ({ $event }: VxeButtonDefines.ClickEventParams) {
187
+ cancelCloseEvent({ $event }: VxeButtonDefines.ClickEventParams) {
188
188
  const $xeTableCustomPanel = this
189
189
  const $xeTable = $xeTableCustomPanel.$xeTable
190
190
 
@@ -192,7 +192,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
192
192
  $xeTable.emitCustomEvent('close', $event)
193
193
  $xeTable.dispatchEvent('custom-close', {}, $event)
194
194
  },
195
- cancelCustomEvent ({ $event }: VxeButtonDefines.ClickEventParams) {
195
+ cancelCustomEvent({ $event }: VxeButtonDefines.ClickEventParams) {
196
196
  const $xeTableCustomPanel = this
197
197
  const $xeTable = $xeTableCustomPanel.$xeTable
198
198
 
@@ -203,7 +203,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
203
203
  $xeTable.emitCustomEvent('close', $event)
204
204
  $xeTable.dispatchEvent('custom-close', {}, $event)
205
205
  },
206
- handleResetCustomEvent (evnt: Event) {
206
+ handleResetCustomEvent(evnt: Event) {
207
207
  const $xeTableCustomPanel = this
208
208
  const $xeTable = $xeTableCustomPanel.$xeTable
209
209
 
@@ -214,28 +214,30 @@ export default /* define-vxe-component start */ defineVxeComponent({
214
214
  $xeTable.emitCustomEvent('close', evnt)
215
215
  $xeTable.dispatchEvent('custom-close', {}, evnt)
216
216
  },
217
- resetCustomEvent (evnt: Event) {
217
+ resetCustomEvent(evnt: Event) {
218
218
  if (VxeUI.modal) {
219
- VxeUI.modal.confirm({
220
- content: getI18n('vxe.custom.cstmConfirmRestore'),
221
- className: 'vxe-table--ignore-clear',
222
- escClosable: true
223
- }).then(type => {
224
- if (type === 'confirm') {
225
- this.handleResetCustomEvent(evnt)
226
- }
227
- })
219
+ VxeUI.modal
220
+ .confirm({
221
+ content: getI18n('vxe.custom.cstmConfirmRestore'),
222
+ className: 'vxe-table--ignore-clear',
223
+ escClosable: true
224
+ })
225
+ .then((type) => {
226
+ if (type === 'confirm') {
227
+ this.handleResetCustomEvent(evnt)
228
+ }
229
+ })
228
230
  } else {
229
231
  this.handleResetCustomEvent(evnt)
230
232
  }
231
233
  },
232
- handleOptionCheck (column: VxeTableDefines.ColumnInfo) {
234
+ handleOptionCheck(column: VxeTableDefines.ColumnInfo) {
233
235
  const $xeTableCustomPanel = this
234
236
  const $xeTable = $xeTableCustomPanel.$xeTable
235
237
  const tableReactData = $xeTable as unknown as TableReactData
236
238
 
237
239
  const { customColumnList } = tableReactData
238
- const matchObj = XEUtils.findTree(customColumnList, item => item === column)
240
+ const matchObj = XEUtils.findTree(customColumnList, (item) => item === column)
239
241
  if (matchObj && matchObj.parent) {
240
242
  const { parent: parentItem } = matchObj
241
243
  if (parentItem.children && parentItem.children.length) {
@@ -245,7 +247,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
245
247
  }
246
248
  }
247
249
  },
248
- changeCheckboxOption (column: VxeTableDefines.ColumnInfo, evnt: MouseEvent) {
250
+ changeCheckboxOption(column: VxeTableDefines.ColumnInfo, evnt: MouseEvent) {
249
251
  const $xeTableCustomPanel = this
250
252
  const $xeTable = $xeTableCustomPanel.$xeTable
251
253
  const tableReactData = $xeTable as unknown as TableReactData
@@ -271,7 +273,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
271
273
  $xeTable.checkCustomStatus()
272
274
  $xeTable.dispatchEvent('custom-visible-change', { column, checked: isChecked }, evnt)
273
275
  },
274
- changeColumnWidth (column: VxeTableDefines.ColumnInfo) {
276
+ changeColumnWidth(column: VxeTableDefines.ColumnInfo) {
275
277
  const $xeTableCustomPanel = this
276
278
  const $xeTable = $xeTableCustomPanel.$xeTable
277
279
  const tableReactData = $xeTable as unknown as TableReactData
@@ -287,7 +289,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
287
289
  }
288
290
  }
289
291
  },
290
- changeFixedOption (column: VxeTableDefines.ColumnInfo, colFixed: VxeColumnPropTypes.Fixed, evnt: Event) {
292
+ changeFixedOption(column: VxeTableDefines.ColumnInfo, colFixed: VxeColumnPropTypes.Fixed, evnt: Event) {
291
293
  const $xeTableCustomPanel = this
292
294
  const $xeTable = $xeTableCustomPanel.$xeTable
293
295
  const tableReactData = $xeTable as unknown as TableReactData
@@ -298,14 +300,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
298
300
  if (customOpts.immediate) {
299
301
  if (column.renderFixed === colFixed) {
300
302
  targetFixed = ''
301
- XEUtils.eachTree([column], col => {
303
+ XEUtils.eachTree([column], (col) => {
302
304
  col.fixed = ''
303
305
  col.renderFixed = ''
304
306
  })
305
307
  } else {
306
308
  if (!isMaxFixedColumn || column.renderFixed) {
307
309
  targetFixed = colFixed
308
- XEUtils.eachTree([column], col => {
310
+ XEUtils.eachTree([column], (col) => {
309
311
  col.fixed = colFixed
310
312
  col.renderFixed = colFixed
311
313
  })
@@ -317,13 +319,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
317
319
  } else {
318
320
  if (column.renderFixed === colFixed) {
319
321
  targetFixed = ''
320
- XEUtils.eachTree([column], col => {
322
+ XEUtils.eachTree([column], (col) => {
321
323
  col.renderFixed = ''
322
324
  })
323
325
  } else {
324
326
  if (!isMaxFixedColumn || column.renderFixed) {
325
327
  targetFixed = colFixed
326
- XEUtils.eachTree([column], col => {
328
+ XEUtils.eachTree([column], (col) => {
327
329
  col.renderFixed = colFixed
328
330
  })
329
331
  }
@@ -333,7 +335,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
333
335
  $xeTable.dispatchEvent('custom-fixed-change', { column, fixed: targetFixed }, evnt)
334
336
  }
335
337
  },
336
- changeAlignOption (column: VxeTableDefines.ColumnInfo, targetAlign: VxeColumnPropTypes.Align, colProperty: 'align' | 'headerAlign' | 'footerAlign', renderProperty: 'renderAlign' | 'renderHeaderAlign' | 'renderFooterAlign', eName: 'custom-align-change' | 'custom-header-align-change' | 'custom-footer-align-change', evnt: Event) {
338
+ changeAlignOption(
339
+ column: VxeTableDefines.ColumnInfo,
340
+ targetAlign: VxeColumnPropTypes.Align,
341
+ colProperty: 'align' | 'headerAlign' | 'footerAlign',
342
+ renderProperty: 'renderAlign' | 'renderHeaderAlign' | 'renderFooterAlign',
343
+ eName: 'custom-align-change' | 'custom-header-align-change' | 'custom-footer-align-change',
344
+ evnt: Event
345
+ ) {
337
346
  const $xeTableCustomPanel = this
338
347
  const $xeTable = $xeTableCustomPanel.$xeTable
339
348
  const tableReactData = $xeTable as unknown as TableReactData
@@ -350,7 +359,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
350
359
  }
351
360
  $xeTable.dispatchEvent(eName, { column, [colProperty]: targetAlign }, evnt)
352
361
  },
353
- allOptionEvent (evnt: MouseEvent) {
362
+ allOptionEvent(evnt: MouseEvent) {
354
363
  const $xeTableCustomPanel = this
355
364
  const $xeTable = $xeTableCustomPanel.$xeTable
356
365
  const tableReactData = $xeTable as unknown as TableReactData
@@ -360,7 +369,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
360
369
  $xeTable.toggleCustomAllCheckbox()
361
370
  $xeTable.dispatchEvent('custom-visible-all', { checked: isAll }, evnt)
362
371
  },
363
- updateColDropTipContent () {
372
+ updateColDropTipContent() {
364
373
  const $xeTableCustomPanel = this
365
374
  const $xeTable = $xeTableCustomPanel.$xeTable
366
375
  const customPanelReactData = $xeTableCustomPanel.reactData
@@ -380,7 +389,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
380
389
  }
381
390
  customPanelReactData.dragTipText = tipContent
382
391
  },
383
- sortMousedownEvent (evnt: MouseEvent) {
392
+ sortMousedownEvent(evnt: MouseEvent) {
384
393
  const $xeTableCustomPanel = this
385
394
  const $xeTable = $xeTableCustomPanel.$xeTable
386
395
  const customPanelReactData = $xeTableCustomPanel.reactData
@@ -398,7 +407,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
398
407
  this.updateColDropTipContent()
399
408
  addClass(trEl, 'active--drag-origin')
400
409
  },
401
- sortMouseupEvent (evnt: MouseEvent) {
410
+ sortMouseupEvent(evnt: MouseEvent) {
402
411
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor
403
412
  const customPanelReactData = $xeTableCustomPanel.reactData
404
413
 
@@ -413,7 +422,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
413
422
  customPanelReactData.dragAggFnCol = null
414
423
  removeClass(trEl, 'active--drag-origin')
415
424
  },
416
- sortDragstartEvent (evnt: DragEvent) {
425
+ sortDragstartEvent(evnt: DragEvent) {
417
426
  const $xeTableCustomPanel = this
418
427
  const $xeTable = $xeTableCustomPanel.$xeTable
419
428
  const tableReactData = $xeTable as unknown as TableReactData
@@ -430,7 +439,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
430
439
  customPanelInternalData.prevDragGroupField = null
431
440
  customPanelInternalData.prevDragAggFnColid = null
432
441
  },
433
- sortDragendEvent (evnt: DragEvent) {
442
+ sortDragendEvent(evnt: DragEvent) {
434
443
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor & TableCustomPrivateMethods
435
444
  const $xeTable = $xeTableCustomPanel.$xeTable
436
445
  const tableProps = $xeTable
@@ -464,44 +473,70 @@ export default /* define-vxe-component start */ defineVxeComponent({
464
473
  Promise.resolve(
465
474
  dragEndMethod
466
475
  ? dragEndMethod({
467
- oldColumn: dragColumn,
468
- newColumn,
469
- dragColumn,
470
- dragPos: prevDragPos as any,
471
- dragToChild: !!prevDragToChild,
472
- offsetIndex: dragOffsetIndex
473
- })
476
+ oldColumn: dragColumn,
477
+ newColumn,
478
+ dragColumn,
479
+ dragPos: prevDragPos as any,
480
+ dragToChild: !!prevDragToChild,
481
+ offsetIndex: dragOffsetIndex
482
+ })
474
483
  : true
475
- ).then((status) => {
476
- if (!status) {
477
- return
478
- }
484
+ )
485
+ .then((status) => {
486
+ if (!status) {
487
+ return
488
+ }
479
489
 
480
- let oafIndex = -1
481
- let nafIndex = -1
490
+ let oafIndex = -1
491
+ let nafIndex = -1
482
492
 
483
- const oldAllMaps: Record<string, any> = {}
484
- XEUtils.eachTree([dragColumn], column => {
485
- oldAllMaps[column.id] = column
486
- })
493
+ const oldAllMaps: Record<string, any> = {}
494
+ XEUtils.eachTree([dragColumn], (column) => {
495
+ oldAllMaps[column.id] = column
496
+ })
487
497
 
488
- let isSelfToChildStatus = false
498
+ let isSelfToChildStatus = false
489
499
 
490
- // 只有实时拖拽支持跨层级
491
- if (immediate) {
492
- if (dragColumn.parentId && newColumn.parentId) {
493
- // 子到子
500
+ // 只有实时拖拽支持跨层级
501
+ if (immediate) {
502
+ if (dragColumn.parentId && newColumn.parentId) {
503
+ // 子到子
494
504
 
495
- if (isPeerDrag && !isCrossDrag) {
496
- if (dragColumn.parentId !== newColumn.parentId) {
497
- // 非同级
498
- return
505
+ if (isPeerDrag && !isCrossDrag) {
506
+ if (dragColumn.parentId !== newColumn.parentId) {
507
+ // 非同级
508
+ return
509
+ }
510
+ } else {
511
+ if (!isCrossDrag) {
512
+ return
513
+ }
514
+
515
+ if (oldAllMaps[newColumn.id]) {
516
+ isSelfToChildStatus = true
517
+ if (!(isCrossDrag && isSelfToChildDrag)) {
518
+ if (VxeUI.modal) {
519
+ VxeUI.modal.message({
520
+ status: 'error',
521
+ content: getI18n('vxe.error.treeDragChild')
522
+ })
523
+ }
524
+ return
525
+ }
526
+ }
499
527
  }
500
- } else {
528
+ } else if (dragColumn.parentId) {
529
+ // 子到根
530
+
501
531
  if (!isCrossDrag) {
502
532
  return
503
533
  }
534
+ } else if (newColumn.parentId) {
535
+ // 根到子
504
536
 
537
+ if (!isCrossDrag) {
538
+ return
539
+ }
505
540
  if (oldAllMaps[newColumn.id]) {
506
541
  isSelfToChildStatus = true
507
542
  if (!(isCrossDrag && isSelfToChildDrag)) {
@@ -514,119 +549,94 @@ export default /* define-vxe-component start */ defineVxeComponent({
514
549
  return
515
550
  }
516
551
  }
552
+ } else {
553
+ // 根到根
517
554
  }
518
- } else if (dragColumn.parentId) {
519
- // 子到根
520
555
 
521
- if (!isCrossDrag) {
522
- return
523
- }
524
- } else if (newColumn.parentId) {
525
- // 根到子
556
+ const oldewMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], (item) => item.id === dragColumn.id)
526
557
 
527
- if (!isCrossDrag) {
528
- return
529
- }
530
- if (oldAllMaps[newColumn.id]) {
531
- isSelfToChildStatus = true
532
- if (!(isCrossDrag && isSelfToChildDrag)) {
533
- if (VxeUI.modal) {
534
- VxeUI.modal.message({
535
- status: 'error',
536
- content: getI18n('vxe.error.treeDragChild')
537
- })
558
+ // 改变层级
559
+ if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
560
+ if (oldewMatchRest) {
561
+ const { items: oCols, index: oIndex } = oldewMatchRest
562
+ const childList = dragColumn.children || []
563
+ childList.forEach((column) => {
564
+ column.parentId = dragColumn.parentId
565
+ })
566
+ oCols.splice(oIndex, 1, ...childList)
567
+ dragColumn.children = []
568
+ }
569
+ } else {
570
+ if (oldewMatchRest) {
571
+ const { items: oCols, index: oIndex, parent: oParent } = oldewMatchRest
572
+ oCols.splice(oIndex, 1)
573
+ if (!oParent) {
574
+ oafIndex = oIndex
538
575
  }
539
- return
540
576
  }
541
577
  }
542
- } else {
543
- // 根到根
544
- }
545
-
546
- const oldewMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], item => item.id === dragColumn.id)
547
578
 
548
- // 改变层级
549
- if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
550
- if (oldewMatchRest) {
551
- const { items: oCols, index: oIndex } = oldewMatchRest
552
- const childList = dragColumn.children || []
553
- childList.forEach(column => {
554
- column.parentId = dragColumn.parentId
555
- })
556
- oCols.splice(oIndex, 1, ...childList)
557
- dragColumn.children = []
558
- }
559
- } else {
560
- if (oldewMatchRest) {
561
- const { items: oCols, index: oIndex, parent: oParent } = oldewMatchRest
562
- oCols.splice(oIndex, 1)
563
- if (!oParent) {
564
- oafIndex = oIndex
579
+ const newMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], (item) => item.id === newColumn.id)
580
+ if (newMatchRest) {
581
+ const { items: nCols, index: nIndex, parent: nParent } = newMatchRest
582
+ // 转子级
583
+ if (isCrossDrag && isToChildDrag && prevDragToChild) {
584
+ dragColumn.parentId = newColumn.id
585
+ newColumn.children = (newColumn.children || []).concat([dragColumn])
586
+ } else {
587
+ dragColumn.parentId = newColumn.parentId
588
+ nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn)
589
+ }
590
+ if (!nParent) {
591
+ nafIndex = nIndex
565
592
  }
566
593
  }
594
+
595
+ XEUtils.eachTree(collectColumn, (column, index, items, path, parentItem) => {
596
+ if (!parentItem) {
597
+ const sortIndex = index + 1
598
+ column.renderSortNumber = sortIndex
599
+ }
600
+ })
601
+ } else {
602
+ oafIndex = XEUtils.findIndexOf(customColumnList, (item) => item.id === dragColumn.id)
603
+ customColumnList.splice(oafIndex, 1)
604
+
605
+ nafIndex = XEUtils.findIndexOf(customColumnList, (item) => item.id === newColumn.id)
606
+ customColumnList.splice(nafIndex + dragOffsetIndex, 0, dragColumn)
567
607
  }
568
608
 
569
- const newMatchRest = XEUtils.findTree(collectColumn as VxeTableDefines.ColumnInfo[], item => item.id === newColumn.id)
570
- if (newMatchRest) {
571
- const { items: nCols, index: nIndex, parent: nParent } = newMatchRest
572
- // 转子级
573
- if ((isCrossDrag && isToChildDrag) && prevDragToChild) {
574
- dragColumn.parentId = newColumn.id
575
- newColumn.children = (newColumn.children || []).concat([dragColumn])
576
- } else {
577
- dragColumn.parentId = newColumn.parentId
578
- nCols.splice(nIndex + dragOffsetIndex, 0, dragColumn)
609
+ if (hasEnableConf(mouseConfig, mouseOpts)) {
610
+ if ($xeTable.clearSelected) {
611
+ $xeTable.clearSelected()
579
612
  }
580
- if (!nParent) {
581
- nafIndex = nIndex
613
+ if ($xeTable.clearCellAreas) {
614
+ $xeTable.clearCellAreas()
615
+ $xeTable.clearCopyCellArea()
582
616
  }
583
617
  }
584
618
 
585
- XEUtils.eachTree(collectColumn, (column, index, items, path, parentItem) => {
586
- if (!parentItem) {
587
- const sortIndex = index + 1
588
- column.renderSortNumber = sortIndex
619
+ const csParams = {
620
+ oldColumn: dragColumn,
621
+ newColumn,
622
+ dragColumn,
623
+ dragPos: prevDragPos,
624
+ offsetIndex: dragOffsetIndex,
625
+ _index: {
626
+ newIndex: nafIndex,
627
+ oldIndex: oafIndex
589
628
  }
590
- })
591
- } else {
592
- oafIndex = XEUtils.findIndexOf(customColumnList, item => item.id === dragColumn.id)
593
- customColumnList.splice(oafIndex, 1)
594
-
595
- nafIndex = XEUtils.findIndexOf(customColumnList, item => item.id === newColumn.id)
596
- customColumnList.splice(nafIndex + dragOffsetIndex, 0, dragColumn)
597
- }
598
-
599
- if (hasEnableConf(mouseConfig, mouseOpts)) {
600
- if ($xeTable.clearSelected) {
601
- $xeTable.clearSelected()
602
- }
603
- if ($xeTable.clearCellAreas) {
604
- $xeTable.clearCellAreas()
605
- $xeTable.clearCopyCellArea()
606
629
  }
607
- }
630
+ $xeTable.dispatchEvent('custom-sort-change', csParams, evnt)
631
+ $xeTable.dispatchEvent('column-dragend', csParams, evnt)
608
632
 
609
- const csParams = {
610
- oldColumn: dragColumn,
611
- newColumn,
612
- dragColumn,
613
- dragPos: prevDragPos,
614
- offsetIndex: dragOffsetIndex,
615
- _index: {
616
- newIndex: nafIndex,
617
- oldIndex: oafIndex
633
+ if (immediate) {
634
+ tableReactData.customColumnList = collectColumn.slice(0)
635
+ $xeTable.handleColDragSwapColumn()
618
636
  }
619
- }
620
- $xeTable.dispatchEvent('custom-sort-change', csParams, evnt)
621
- $xeTable.dispatchEvent('column-dragend', csParams, evnt)
622
-
623
- if (immediate) {
624
- tableReactData.customColumnList = collectColumn.slice(0)
625
- $xeTable.handleColDragSwapColumn()
626
- }
627
- $xeTableCustomPanel.clearDragAnimateStatus()
628
- }).catch(() => {
629
- })
637
+ $xeTableCustomPanel.clearDragAnimateStatus()
638
+ })
639
+ .catch(() => {})
630
640
  }
631
641
  }
632
642
 
@@ -641,7 +651,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
641
651
  removeClass(trEl, 'active--drag-target')
642
652
  removeClass(trEl, 'active--drag-origin')
643
653
  },
644
- sortDragoverEvent (evnt: DragEvent) {
654
+ sortDragoverEvent(evnt: DragEvent) {
645
655
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor
646
656
  const $xeTable = $xeTableCustomPanel.$xeTable
647
657
  const customPanelReactData = $xeTableCustomPanel.reactData
@@ -675,13 +685,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
675
685
  showDropTip($xeTableCustomPanel, evnt, optEl, false, dragPos)
676
686
  return
677
687
  }
678
- customPanelInternalData.prevDragToChild = !!((isCrossDrag && isToChildDrag) && isControlKey && immediate)
688
+ customPanelInternalData.prevDragToChild = !!(isCrossDrag && isToChildDrag && isControlKey && immediate)
679
689
  customPanelInternalData.prevDragCol = column
680
690
  customPanelInternalData.prevDragPos = dragPos
681
691
  showDropTip($xeTableCustomPanel, evnt, optEl, true, dragPos)
682
692
  }
683
693
  },
684
- clearDragAnimateStatus () {
694
+ clearDragAnimateStatus() {
685
695
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor & TableCustomPrivateMethods
686
696
  const $xeTable = $xeTableCustomPanel.$xeTable
687
697
  const customPanelInternalData = $xeTableCustomPanel.internalData
@@ -692,13 +702,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
692
702
  customPanelInternalData.customDragTime = undefined
693
703
  }, 350)
694
704
  },
695
- sortMoveUpEvent (evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
705
+ sortMoveUpEvent(evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
696
706
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor & TableCustomPrivateMethods
697
707
  const $xeTable = $xeTableCustomPanel.$xeTable
698
708
  const tableReactData = $xeTable as unknown as TableReactData
699
709
 
700
710
  const { customColumnList } = tableReactData
701
- const matchObj = XEUtils.findTree(customColumnList, item => item === column)
711
+ const matchObj = XEUtils.findTree(customColumnList, (item) => item === column)
702
712
  if (matchObj) {
703
713
  const { item, items, index } = matchObj
704
714
  if (index > 0) {
@@ -711,13 +721,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
711
721
  }
712
722
  }
713
723
  },
714
- sortMoveDnEvent (evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
724
+ sortMoveDnEvent(evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
715
725
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor & TableCustomPrivateMethods
716
726
  const $xeTable = $xeTableCustomPanel.$xeTable
717
727
  const tableReactData = $xeTable as unknown as TableReactData
718
728
 
719
729
  const { customColumnList } = tableReactData
720
- const matchObj = XEUtils.findTree(customColumnList, item => item === column)
730
+ const matchObj = XEUtils.findTree(customColumnList, (item) => item === column)
721
731
  if (matchObj) {
722
732
  const { item, items, index } = matchObj
723
733
  if (index < items.length - 1) {
@@ -730,13 +740,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
730
740
  }
731
741
  }
732
742
  },
733
- sortMoveTopEvent (evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
743
+ sortMoveTopEvent(evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
734
744
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor & TableCustomPrivateMethods
735
745
  const $xeTable = $xeTableCustomPanel.$xeTable
736
746
  const tableReactData = $xeTable as unknown as TableReactData
737
747
 
738
748
  const { customColumnList } = tableReactData
739
- const matchObj = XEUtils.findTree(customColumnList, item => item === column)
749
+ const matchObj = XEUtils.findTree(customColumnList, (item) => item === column)
740
750
  if (matchObj) {
741
751
  const { item, items, index, parent: parentItem } = matchObj
742
752
  if (parentItem || index > 0) {
@@ -750,13 +760,13 @@ export default /* define-vxe-component start */ defineVxeComponent({
750
760
  }
751
761
  }
752
762
  },
753
- sortMoveBottomEvent (evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
763
+ sortMoveBottomEvent(evntParame: VxeButtonDefines.ClickEventParams, column: VxeTableDefines.ColumnInfo) {
754
764
  const $xeTableCustomPanel = this as unknown as VxeTableCustomPanelConstructor & TableCustomPrivateMethods
755
765
  const $xeTable = $xeTableCustomPanel.$xeTable
756
766
  const tableReactData = $xeTable as unknown as TableReactData
757
767
 
758
768
  const { customColumnList } = tableReactData
759
- const matchObj = XEUtils.findTree(customColumnList, item => item === column)
769
+ const matchObj = XEUtils.findTree(customColumnList, (item) => item === column)
760
770
  if (matchObj) {
761
771
  const { item, items, index, parent: parentItem } = matchObj
762
772
  if (parentItem || index < items.length - 1) {
@@ -771,7 +781,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
771
781
  }
772
782
  },
773
783
 
774
- renderDragTip (h: CreateElement) {
784
+ renderDragTip(h: CreateElement) {
775
785
  const $xeTableCustomPanel = this
776
786
  const $xeTable = $xeTableCustomPanel.$xeTable
777
787
  const customPanelReactData = $xeTableCustomPanel.reactData
@@ -781,44 +791,63 @@ export default /* define-vxe-component start */ defineVxeComponent({
781
791
  return h('div', {}, [
782
792
  h('div', {
783
793
  ref: 'refDragLineElem',
784
- class: ['vxe-table-custom-popup--drag-line', {
785
- 'is--guides': columnDragOpts.showGuidesStatus
786
- }]
794
+ class: [
795
+ 'vxe-table-custom-popup--drag-line',
796
+ {
797
+ 'is--guides': columnDragOpts.showGuidesStatus
798
+ }
799
+ ]
787
800
  }),
788
- h('div', {
789
- ref: 'refDragTipElem',
790
- class: 'vxe-table-custom-popup--drag-tip'
791
- }, [
792
- h('div', {
793
- class: 'vxe-table-custom-popup--drag-tip-wrapper'
794
- }, [
795
- h('div', {
796
- class: 'vxe-table-custom-popup--drag-tip-status'
797
- }, [
798
- h('span', {
799
- class: ['vxe-table-custom-popup--drag-tip-normal-status', getIcon().TABLE_DRAG_STATUS_ROW]
800
- }),
801
- h('span', {
802
- class: ['vxe-table-custom-popup--drag-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
803
- }),
804
- h('span', {
805
- class: ['vxe-table-custom-popup--drag-tip-group-status', getIcon().TABLE_DRAG_STATUS_AGG_GROUP]
806
- }),
807
- h('span', {
808
- class: ['vxe-table-custom-popup--drag-tip-values-status', getIcon().TABLE_DRAG_STATUS_AGG_VALUES]
809
- }),
810
- h('span', {
811
- class: ['vxe-table-custom-popup--drag-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
812
- })
813
- ]),
814
- h('div', {
815
- class: 'vxe-table-custom-popup--drag-tip-content'
816
- }, `${dragTipText || ''}`)
817
- ])
818
- ])
801
+ h(
802
+ 'div',
803
+ {
804
+ ref: 'refDragTipElem',
805
+ class: 'vxe-table-custom-popup--drag-tip'
806
+ },
807
+ [
808
+ h(
809
+ 'div',
810
+ {
811
+ class: 'vxe-table-custom-popup--drag-tip-wrapper'
812
+ },
813
+ [
814
+ h(
815
+ 'div',
816
+ {
817
+ class: 'vxe-table-custom-popup--drag-tip-status'
818
+ },
819
+ [
820
+ h('span', {
821
+ class: ['vxe-table-custom-popup--drag-tip-normal-status', getIcon().TABLE_DRAG_STATUS_ROW]
822
+ }),
823
+ h('span', {
824
+ class: ['vxe-table-custom-popup--drag-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
825
+ }),
826
+ h('span', {
827
+ class: ['vxe-table-custom-popup--drag-tip-group-status', getIcon().TABLE_DRAG_STATUS_AGG_GROUP]
828
+ }),
829
+ h('span', {
830
+ class: ['vxe-table-custom-popup--drag-tip-values-status', getIcon().TABLE_DRAG_STATUS_AGG_VALUES]
831
+ }),
832
+ h('span', {
833
+ class: ['vxe-table-custom-popup--drag-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
834
+ })
835
+ ]
836
+ ),
837
+ h(
838
+ 'div',
839
+ {
840
+ class: 'vxe-table-custom-popup--drag-tip-content'
841
+ },
842
+ `${dragTipText || ''}`
843
+ )
844
+ ]
845
+ )
846
+ ]
847
+ )
819
848
  ])
820
849
  },
821
- renderSimplePanel (h: CreateElement) {
850
+ renderSimplePanel(h: CreateElement) {
822
851
  const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
823
852
 
824
853
  const $xeTableCustomPanel = this
@@ -875,347 +904,458 @@ export default /* define-vxe-component start */ defineVxeComponent({
875
904
  const isHidden = !isChecked
876
905
  const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1
877
906
  colVNs.push(
878
- h('li', {
879
- key: column.id,
880
- attrs: {
881
- colid: column.id
882
- },
883
- class: ['vxe-table-custom--option', `level--${column.level}`, {
884
- 'is--hidden': isDisabled || isHidden,
885
- 'is--group': isColGroup
886
- }],
887
- on: {
888
- dragstart: $xeTableCustomPanel.sortDragstartEvent,
889
- dragend: $xeTableCustomPanel.sortDragendEvent,
890
- dragover: $xeTableCustomPanel.sortDragoverEvent
891
- }
892
- }, [
893
- allowVisible
894
- ? h('div', {
895
- class: ['vxe-table-custom--checkbox-option', {
896
- 'is--checked': isChecked,
897
- 'is--indeterminate': isIndeterminate,
898
- 'is--disabled': isDisabled
899
- }],
900
- attrs: {
901
- title: getI18n('vxe.custom.setting.colVisible')
902
- },
903
- on: {
904
- click: (evnt: MouseEvent) => {
905
- if (!isDisabled) {
906
- $xeTableCustomPanel.changeCheckboxOption(column, evnt)
907
- }
908
- }
907
+ h(
908
+ 'li',
909
+ {
910
+ key: column.id,
911
+ attrs: {
912
+ colid: column.id
913
+ },
914
+ class: [
915
+ 'vxe-table-custom--option',
916
+ `level--${column.level}`,
917
+ {
918
+ 'is--hidden': isDisabled || isHidden,
919
+ 'is--group': isColGroup
909
920
  }
910
- }, [
911
- h('span', {
912
- class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
913
- })
914
- ])
915
- : renderEmptyElement($xeTable),
916
- h('div', {
917
- class: 'vxe-table-custom--name-option'
918
- }, [
919
- (allowSort && showSortDragButton) || (allowGroup || allowValues)
920
- ? (
921
- showSortBtn || ((allowGroup || allowValues) && !isColGroup)
922
- ? h('div', {
923
- class: 'vxe-table-custom--sort-option'
924
- }, [
925
- h('span', {
926
- class: ['vxe-table-custom--sort-btn', {
927
- 'is--disabled': isHidden
928
- }],
929
- attrs: {
930
- title: getI18n('vxe.custom.setting.sortHelpTip')
931
- },
932
- on: isHidden
933
- ? {}
934
- : {
935
- mousedown: $xeTableCustomPanel.sortMousedownEvent,
936
- mouseup: $xeTableCustomPanel.sortMouseupEvent
937
- }
938
- }, [
939
- h('i', {
940
- class: getIcon().TABLE_CUSTOM_SORT
941
- })
942
- ])
943
- ])
944
- : renderEmptyElement($xeTable)
945
- )
946
- : renderEmptyElement($xeTable),
947
- column.type === 'html'
948
- ? h('div', {
949
- key: '1',
950
- class: 'vxe-table-custom--checkbox-label',
951
- domProps: {
952
- innerHTML: colTitle
953
- }
954
- })
955
- : h('div', {
956
- key: '0',
957
- class: 'vxe-table-custom--checkbox-label',
958
- attrs: {
959
- title: colTitle
960
- }
961
- }, colTitle)
962
- ]),
963
- showSortBtn && (showSortMoveButton || showSortPutButton)
964
- ? h('div', {
965
- class: 'vxe-table-custom--move-btn-option'
966
- }, VxeUIButtonComponent
967
- ? [
968
- showSortMoveButton
969
- ? h(VxeUIButtonComponent, {
970
- props: {
971
- mode: 'text',
972
- icon: 'vxe-icon-arrows-up',
973
- title: getI18n('vxe.custom.setting.moveUpTitle'),
974
- disabled: index <= 0
975
- },
976
- on: {
977
- click (evntParame: VxeButtonDefines.ClickEventParams) {
978
- $xeTableCustomPanel.sortMoveUpEvent(evntParame, column)
979
- }
980
- }
981
- })
982
- : renderEmptyElement($xeTable),
983
- showSortMoveButton
984
- ? h(VxeUIButtonComponent, {
985
- props: {
986
- mode: 'text',
987
- icon: 'vxe-icon-arrows-down',
988
- title: getI18n('vxe.custom.setting.moveDnTitle'),
989
- disabled: index >= items.length - 1
990
- },
991
- on: {
992
- click (evntParame: VxeButtonDefines.ClickEventParams) {
993
- $xeTableCustomPanel.sortMoveDnEvent(evntParame, column)
994
- }
995
- }
996
- })
997
- : renderEmptyElement($xeTable),
998
- showSortPutButton && !parentItem
999
- ? h(VxeUIButtonComponent, {
1000
- props: {
1001
- mode: 'text',
1002
- icon: 'vxe-icon-top',
1003
- title: getI18n('vxe.custom.setting.putTopTitle'),
1004
- disabled: index <= 0
1005
- },
1006
- on: {
1007
- click (evntParame: VxeButtonDefines.ClickEventParams) {
1008
- $xeTableCustomPanel.sortMoveTopEvent(evntParame, column)
1009
- }
1010
- }
1011
- })
1012
- : renderEmptyElement($xeTable),
1013
- showSortPutButton && !parentItem
1014
- ? h(VxeUIButtonComponent, {
1015
- props: {
1016
- mode: 'text',
1017
- icon: 'vxe-icon-bottom',
1018
- title: getI18n('vxe.custom.setting.putBottomTitle'),
1019
- disabled: index >= items.length - 1
1020
- },
1021
- on: {
1022
- click (evntParame: VxeButtonDefines.ClickEventParams) {
1023
- $xeTableCustomPanel.sortMoveBottomEvent(evntParame, column)
1024
- }
1025
- }
1026
- })
1027
- : renderEmptyElement($xeTable)
1028
- ]
1029
- : [])
1030
- : renderEmptyElement($xeTable),
1031
- !parentItem && allowFixed
1032
- ? h('div', {
1033
- class: 'vxe-table-custom--fixed-option'
1034
- }, VxeUIButtonComponent
1035
- ? [
1036
- h(VxeUIButtonComponent, {
1037
- props: {
1038
- mode: 'text',
1039
- icon: column.renderFixed === 'left' ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
1040
- status: column.renderFixed === 'left' ? 'primary' : '',
1041
- disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
1042
- title: getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft')
1043
- },
1044
- on: {
1045
- click: ({ $event }: VxeButtonDefines.ClickEventParams) => {
1046
- $xeTableCustomPanel.changeFixedOption(column, 'left', $event)
921
+ ],
922
+ on: {
923
+ dragstart: $xeTableCustomPanel.sortDragstartEvent,
924
+ dragend: $xeTableCustomPanel.sortDragendEvent,
925
+ dragover: $xeTableCustomPanel.sortDragoverEvent
926
+ }
927
+ },
928
+ [
929
+ allowVisible
930
+ ? h(
931
+ 'div',
932
+ {
933
+ class: [
934
+ 'vxe-table-custom--checkbox-option',
935
+ {
936
+ 'is--checked': isChecked,
937
+ 'is--indeterminate': isIndeterminate,
938
+ 'is--disabled': isDisabled
1047
939
  }
1048
- }
1049
- }),
1050
- h(VxeUIButtonComponent, {
1051
- props: {
1052
- mode: 'text',
1053
- icon: column.renderFixed === 'right' ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
1054
- status: column.renderFixed === 'right' ? 'primary' : '',
1055
- disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
1056
- title: getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight')
940
+ ],
941
+ attrs: {
942
+ title: getI18n('vxe.custom.setting.colVisible')
1057
943
  },
1058
944
  on: {
1059
- click: ({ $event }: VxeButtonDefines.ClickEventParams) => {
1060
- $xeTableCustomPanel.changeFixedOption(column, 'right', $event)
945
+ click: (evnt: MouseEvent) => {
946
+ if (!isDisabled) {
947
+ $xeTableCustomPanel.changeCheckboxOption(column, evnt)
948
+ }
1061
949
  }
1062
950
  }
1063
- })
1064
- ]
1065
- : [])
1066
- : renderEmptyElement($xeTable)
1067
- ])
1068
- )
1069
- }
1070
- })
1071
- return h('div', {
1072
- ref: 'refElem',
1073
- key: 'simple',
1074
- class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
1075
- [`size--${vSize}`]: vSize,
1076
- 'is--active': customStore.visible
1077
- }],
1078
- style: defPopupStyle
1079
- }, customStore.visible
1080
- ? [
1081
- h('div', {
1082
- ref: 'refBodyWrapperElem',
1083
- class: 'vxe-table-custom-simple--body-wrapper'
1084
- }, [
1085
- !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel
1086
- ? h($xeTable.getPivotTableAggregateSimplePanel(), {
1087
- props: {
1088
- customStore
1089
- }
1090
- })
1091
- : renderEmptyElement($xeTable),
1092
- h('div', {
1093
- ref: 'refCustomBodyElem',
1094
- class: 'vxe-table-custom--handle-wrapper'
1095
- }, [
1096
- h('div', {
1097
- class: 'vxe-table-custom--header'
1098
- }, headerSlot
1099
- ? $xeTable.callSlot(headerSlot, params, h)
1100
- : [
1101
- h('ul', {
1102
- class: 'vxe-table-custom--panel-list'
1103
- }, [
1104
- h('li', {
1105
- class: 'vxe-table-custom--option'
1106
- }, [
1107
- allowVisible
1108
- ? h('div', {
1109
- class: ['vxe-table-custom--checkbox-option', {
1110
- 'is--checked': isAllChecked,
1111
- 'is--indeterminate': isAllIndeterminate
1112
- }],
1113
- attrs: {
1114
- title: getI18n('vxe.table.allTitle')
1115
- },
1116
- on: {
1117
- click: $xeTableCustomPanel.allOptionEvent
1118
- }
1119
- }, [
1120
- h('span', {
1121
- class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
1122
- }),
1123
- h('span', {
1124
- class: 'vxe-checkbox--label'
1125
- }, getI18n('vxe.toolbar.customAll'))
1126
- ])
1127
- : h('span', {
1128
- class: 'vxe-checkbox--label'
1129
- }, getI18n('vxe.table.customTitle'))
1130
- ])
1131
- ])
1132
- ]),
1133
- h('div', {
1134
- class: 'vxe-table-custom--body'
1135
- }, [
1136
- topSlot
1137
- ? h('div', {
1138
- class: 'vxe-table-custom--panel-top'
1139
- }, $xeTable.callSlot(topSlot, params, h))
1140
- : renderEmptyElement($xeTable),
1141
- defaultSlot
1142
- ? h('div', {
1143
- class: 'vxe-table-custom--panel-body'
1144
- }, $xeTable.callSlot(defaultSlot, params, h))
1145
- : h('transition-group', {
1146
- class: 'vxe-table-custom--panel-list',
1147
- props: {
1148
- name: isCustomDragStatus ? 'vxe-table-custom--list' : '',
1149
- tag: 'ul'
1150
951
  },
1151
- on: customWrapperOns
1152
- }, colVNs),
1153
- bottomSlot
1154
- ? h('div', {
1155
- class: 'vxe-table-custom--panel-bottom'
1156
- }, $xeTable.callSlot(bottomSlot, params, h))
1157
- : renderEmptyElement($xeTable)
1158
- ]),
1159
- customOpts.showFooter
1160
- ? h('div', {
1161
- class: 'vxe-table-custom--footer'
1162
- }, footerSlot
1163
- ? $xeTable.callSlot(footerSlot, params, h)
1164
- : [
1165
- h('div', {
1166
- class: 'vxe-table-custom--footer-buttons'
1167
- }, [
1168
- h(VxeUIButtonComponent, {
1169
- props: {
1170
- mode: 'text',
1171
- content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
1172
- disabled: !isCustomStatus
952
+ [
953
+ h('span', {
954
+ class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
955
+ })
956
+ ]
957
+ )
958
+ : renderEmptyElement($xeTable),
959
+ h(
960
+ 'div',
961
+ {
962
+ class: 'vxe-table-custom--name-option'
963
+ },
964
+ [
965
+ (allowSort && showSortDragButton) || allowGroup || allowValues
966
+ ? showSortBtn || ((allowGroup || allowValues) && !isColGroup)
967
+ ? h(
968
+ 'div',
969
+ {
970
+ class: 'vxe-table-custom--sort-option'
1173
971
  },
1174
- on: {
1175
- click: $xeTableCustomPanel.resetCustomEvent
972
+ [
973
+ h(
974
+ 'span',
975
+ {
976
+ class: [
977
+ 'vxe-table-custom--sort-btn',
978
+ {
979
+ 'is--disabled': isHidden
980
+ }
981
+ ],
982
+ attrs: {
983
+ title: getI18n('vxe.custom.setting.sortHelpTip')
984
+ },
985
+ on: isHidden
986
+ ? {}
987
+ : {
988
+ mousedown: $xeTableCustomPanel.sortMousedownEvent,
989
+ mouseup: $xeTableCustomPanel.sortMouseupEvent
990
+ }
991
+ },
992
+ [
993
+ h('i', {
994
+ class: getIcon().TABLE_CUSTOM_SORT
995
+ })
996
+ ]
997
+ )
998
+ ]
999
+ )
1000
+ : renderEmptyElement($xeTable)
1001
+ : renderEmptyElement($xeTable),
1002
+ column.type === 'html'
1003
+ ? h('div', {
1004
+ key: '1',
1005
+ class: 'vxe-table-custom--checkbox-label',
1006
+ domProps: {
1007
+ innerHTML: colTitle
1008
+ }
1009
+ })
1010
+ : h(
1011
+ 'div',
1012
+ {
1013
+ key: '0',
1014
+ class: 'vxe-table-custom--checkbox-label',
1015
+ attrs: {
1016
+ title: colTitle
1176
1017
  }
1177
- }),
1178
- immediate
1179
- ? h(VxeUIButtonComponent, {
1180
- props: {
1181
- mode: 'text',
1182
- content: customOpts.closeButtonText || getI18n('vxe.table.customClose')
1183
- },
1184
- on: {
1185
- click: $xeTableCustomPanel.cancelCloseEvent
1186
- }
1187
- })
1188
- : h(VxeUIButtonComponent, {
1018
+ },
1019
+ colTitle
1020
+ )
1021
+ ]
1022
+ ),
1023
+ showSortBtn && (showSortMoveButton || showSortPutButton)
1024
+ ? h(
1025
+ 'div',
1026
+ {
1027
+ class: 'vxe-table-custom--move-btn-option'
1028
+ },
1029
+ VxeUIButtonComponent
1030
+ ? [
1031
+ showSortMoveButton
1032
+ ? h(VxeUIButtonComponent, {
1033
+ props: {
1034
+ mode: 'text',
1035
+ icon: 'vxe-icon-arrows-up',
1036
+ title: getI18n('vxe.custom.setting.moveUpTitle'),
1037
+ disabled: index <= 0
1038
+ },
1039
+ on: {
1040
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1041
+ $xeTableCustomPanel.sortMoveUpEvent(evntParame, column)
1042
+ }
1043
+ }
1044
+ })
1045
+ : renderEmptyElement($xeTable),
1046
+ showSortMoveButton
1047
+ ? h(VxeUIButtonComponent, {
1048
+ props: {
1049
+ mode: 'text',
1050
+ icon: 'vxe-icon-arrows-down',
1051
+ title: getI18n('vxe.custom.setting.moveDnTitle'),
1052
+ disabled: index >= items.length - 1
1053
+ },
1054
+ on: {
1055
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1056
+ $xeTableCustomPanel.sortMoveDnEvent(evntParame, column)
1057
+ }
1058
+ }
1059
+ })
1060
+ : renderEmptyElement($xeTable),
1061
+ showSortPutButton && !parentItem
1062
+ ? h(VxeUIButtonComponent, {
1063
+ props: {
1064
+ mode: 'text',
1065
+ icon: 'vxe-icon-top',
1066
+ title: getI18n('vxe.custom.setting.putTopTitle'),
1067
+ disabled: index <= 0
1068
+ },
1069
+ on: {
1070
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1071
+ $xeTableCustomPanel.sortMoveTopEvent(evntParame, column)
1072
+ }
1073
+ }
1074
+ })
1075
+ : renderEmptyElement($xeTable),
1076
+ showSortPutButton && !parentItem
1077
+ ? h(VxeUIButtonComponent, {
1078
+ props: {
1079
+ mode: 'text',
1080
+ icon: 'vxe-icon-bottom',
1081
+ title: getI18n('vxe.custom.setting.putBottomTitle'),
1082
+ disabled: index >= items.length - 1
1083
+ },
1084
+ on: {
1085
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1086
+ $xeTableCustomPanel.sortMoveBottomEvent(evntParame, column)
1087
+ }
1088
+ }
1089
+ })
1090
+ : renderEmptyElement($xeTable)
1091
+ ]
1092
+ : []
1093
+ )
1094
+ : renderEmptyElement($xeTable),
1095
+ !parentItem && allowFixed
1096
+ ? h(
1097
+ 'div',
1098
+ {
1099
+ class: 'vxe-table-custom--fixed-option'
1100
+ },
1101
+ VxeUIButtonComponent
1102
+ ? [
1103
+ h(VxeUIButtonComponent, {
1189
1104
  props: {
1190
1105
  mode: 'text',
1191
- content: customOpts.resetButtonText || getI18n('vxe.table.customCancel')
1106
+ icon: column.renderFixed === 'left' ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
1107
+ status: column.renderFixed === 'left' ? 'primary' : '',
1108
+ disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
1109
+ title: getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft')
1192
1110
  },
1193
1111
  on: {
1194
- click: $xeTableCustomPanel.cancelCustomEvent
1112
+ click: ({ $event }: VxeButtonDefines.ClickEventParams) => {
1113
+ $xeTableCustomPanel.changeFixedOption(column, 'left', $event)
1114
+ }
1195
1115
  }
1196
1116
  }),
1197
- immediate
1198
- ? renderEmptyElement($xeTable)
1199
- : h(VxeUIButtonComponent, {
1117
+ h(VxeUIButtonComponent, {
1200
1118
  props: {
1201
1119
  mode: 'text',
1202
- status: 'primary',
1203
- content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm')
1120
+ icon: column.renderFixed === 'right' ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
1121
+ status: column.renderFixed === 'right' ? 'primary' : '',
1122
+ disabled: isHidden || (isMaxFixedColumn && !column.renderFixed),
1123
+ title: getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight')
1204
1124
  },
1205
1125
  on: {
1206
- click: $xeTableCustomPanel.confirmCustomEvent
1126
+ click: ({ $event }: VxeButtonDefines.ClickEventParams) => {
1127
+ $xeTableCustomPanel.changeFixedOption(column, 'right', $event)
1128
+ }
1207
1129
  }
1208
1130
  })
1209
- ])
1210
- ])
1211
- : null
1212
- ]),
1213
- $xeTableCustomPanel.renderDragTip(h)
1214
- ])
1215
- ]
1216
- : [])
1131
+ ]
1132
+ : []
1133
+ )
1134
+ : renderEmptyElement($xeTable)
1135
+ ]
1136
+ )
1137
+ )
1138
+ }
1139
+ })
1140
+ return h(
1141
+ 'div',
1142
+ {
1143
+ ref: 'refElem',
1144
+ key: 'simple',
1145
+ class: [
1146
+ 'vxe-table-custom-wrapper',
1147
+ `placement--${placement}`,
1148
+ {
1149
+ [`size--${vSize}`]: vSize,
1150
+ 'is--active': customStore.visible
1151
+ }
1152
+ ],
1153
+ style: defPopupStyle
1154
+ },
1155
+ customStore.visible
1156
+ ? [
1157
+ h(
1158
+ 'div',
1159
+ {
1160
+ ref: 'refBodyWrapperElem',
1161
+ class: 'vxe-table-custom-simple--body-wrapper'
1162
+ },
1163
+ [
1164
+ !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel
1165
+ ? h($xeTable.getPivotTableAggregateSimplePanel(), {
1166
+ props: {
1167
+ customStore
1168
+ }
1169
+ })
1170
+ : renderEmptyElement($xeTable),
1171
+ h(
1172
+ 'div',
1173
+ {
1174
+ ref: 'refCustomBodyElem',
1175
+ class: 'vxe-table-custom--handle-wrapper'
1176
+ },
1177
+ [
1178
+ h(
1179
+ 'div',
1180
+ {
1181
+ class: 'vxe-table-custom--header'
1182
+ },
1183
+ headerSlot
1184
+ ? $xeTable.callSlot(headerSlot, params, h)
1185
+ : [
1186
+ h(
1187
+ 'ul',
1188
+ {
1189
+ class: 'vxe-table-custom--panel-list'
1190
+ },
1191
+ [
1192
+ h(
1193
+ 'li',
1194
+ {
1195
+ class: 'vxe-table-custom--option'
1196
+ },
1197
+ [
1198
+ allowVisible
1199
+ ? h(
1200
+ 'div',
1201
+ {
1202
+ class: [
1203
+ 'vxe-table-custom--checkbox-option',
1204
+ {
1205
+ 'is--checked': isAllChecked,
1206
+ 'is--indeterminate': isAllIndeterminate
1207
+ }
1208
+ ],
1209
+ attrs: {
1210
+ title: getI18n('vxe.table.allTitle')
1211
+ },
1212
+ on: {
1213
+ click: $xeTableCustomPanel.allOptionEvent
1214
+ }
1215
+ },
1216
+ [
1217
+ h('span', {
1218
+ class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1219
+ }),
1220
+ h(
1221
+ 'span',
1222
+ {
1223
+ class: 'vxe-checkbox--label'
1224
+ },
1225
+ getI18n('vxe.toolbar.customAll')
1226
+ )
1227
+ ]
1228
+ )
1229
+ : h(
1230
+ 'span',
1231
+ {
1232
+ class: 'vxe-checkbox--label'
1233
+ },
1234
+ getI18n('vxe.table.customTitle')
1235
+ )
1236
+ ]
1237
+ )
1238
+ ]
1239
+ )
1240
+ ]
1241
+ ),
1242
+ h(
1243
+ 'div',
1244
+ {
1245
+ class: 'vxe-table-custom--body'
1246
+ },
1247
+ [
1248
+ topSlot
1249
+ ? h(
1250
+ 'div',
1251
+ {
1252
+ class: 'vxe-table-custom--panel-top'
1253
+ },
1254
+ $xeTable.callSlot(topSlot, params, h)
1255
+ )
1256
+ : renderEmptyElement($xeTable),
1257
+ defaultSlot
1258
+ ? h(
1259
+ 'div',
1260
+ {
1261
+ class: 'vxe-table-custom--panel-body'
1262
+ },
1263
+ $xeTable.callSlot(defaultSlot, params, h)
1264
+ )
1265
+ : h(
1266
+ 'transition-group',
1267
+ {
1268
+ class: 'vxe-table-custom--panel-list',
1269
+ props: {
1270
+ name: isCustomDragStatus ? 'vxe-table-custom--list' : '',
1271
+ tag: 'ul'
1272
+ },
1273
+ on: customWrapperOns
1274
+ },
1275
+ colVNs
1276
+ ),
1277
+ bottomSlot
1278
+ ? h(
1279
+ 'div',
1280
+ {
1281
+ class: 'vxe-table-custom--panel-bottom'
1282
+ },
1283
+ $xeTable.callSlot(bottomSlot, params, h)
1284
+ )
1285
+ : renderEmptyElement($xeTable)
1286
+ ]
1287
+ ),
1288
+ customOpts.showFooter
1289
+ ? h(
1290
+ 'div',
1291
+ {
1292
+ class: 'vxe-table-custom--footer'
1293
+ },
1294
+ footerSlot
1295
+ ? $xeTable.callSlot(footerSlot, params, h)
1296
+ : [
1297
+ h(
1298
+ 'div',
1299
+ {
1300
+ class: 'vxe-table-custom--footer-buttons'
1301
+ },
1302
+ [
1303
+ h(VxeUIButtonComponent, {
1304
+ props: {
1305
+ mode: 'text',
1306
+ content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
1307
+ disabled: !isCustomStatus
1308
+ },
1309
+ on: {
1310
+ click: $xeTableCustomPanel.resetCustomEvent
1311
+ }
1312
+ }),
1313
+ immediate
1314
+ ? h(VxeUIButtonComponent, {
1315
+ props: {
1316
+ mode: 'text',
1317
+ content: customOpts.closeButtonText || getI18n('vxe.table.customClose')
1318
+ },
1319
+ on: {
1320
+ click: $xeTableCustomPanel.cancelCloseEvent
1321
+ }
1322
+ })
1323
+ : h(VxeUIButtonComponent, {
1324
+ props: {
1325
+ mode: 'text',
1326
+ content: customOpts.resetButtonText || getI18n('vxe.table.customCancel')
1327
+ },
1328
+ on: {
1329
+ click: $xeTableCustomPanel.cancelCustomEvent
1330
+ }
1331
+ }),
1332
+ immediate
1333
+ ? renderEmptyElement($xeTable)
1334
+ : h(VxeUIButtonComponent, {
1335
+ props: {
1336
+ mode: 'text',
1337
+ status: 'primary',
1338
+ content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm')
1339
+ },
1340
+ on: {
1341
+ click: $xeTableCustomPanel.confirmCustomEvent
1342
+ }
1343
+ })
1344
+ ]
1345
+ )
1346
+ ]
1347
+ )
1348
+ : null
1349
+ ]
1350
+ ),
1351
+ $xeTableCustomPanel.renderDragTip(h)
1352
+ ]
1353
+ )
1354
+ ]
1355
+ : []
1356
+ )
1217
1357
  },
1218
- renderPopupBodys (h: CreateElement) {
1358
+ renderPopupBodys(h: CreateElement) {
1219
1359
  const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
1220
1360
  const VxeUINumberInputComponent = VxeUI.getComponent('VxeNumberInput')
1221
1361
  const VxeUIRadioGroupComponent = VxeUI.getComponent('VxeRadioGroup')
@@ -1279,168 +1419,199 @@ export default /* define-vxe-component start */ defineVxeComponent({
1279
1419
  const tdVNs: VNode[] = []
1280
1420
  if (allowVisible) {
1281
1421
  tdVNs.push(
1282
- h('td', {
1283
- key: 'av',
1284
- class: 'vxe-table-custom-popup--column-td col--visible'
1285
- }, [
1286
- h('div', {
1287
- class: ['vxe-table-custom--checkbox-option', {
1288
- 'is--checked': isChecked,
1289
- 'is--indeterminate': isIndeterminate,
1290
- 'is--disabled': isDisabled
1291
- }],
1292
- attrs: {
1293
- title: getI18n('vxe.custom.setting.colVisible')
1294
- },
1295
- on: {
1296
- click: (evnt: MouseEvent) => {
1297
- if (!isDisabled) {
1298
- $xeTableCustomPanel.changeCheckboxOption(column, evnt)
1422
+ h(
1423
+ 'td',
1424
+ {
1425
+ key: 'av',
1426
+ class: 'vxe-table-custom-popup--column-td col--visible'
1427
+ },
1428
+ [
1429
+ h(
1430
+ 'div',
1431
+ {
1432
+ class: [
1433
+ 'vxe-table-custom--checkbox-option',
1434
+ {
1435
+ 'is--checked': isChecked,
1436
+ 'is--indeterminate': isIndeterminate,
1437
+ 'is--disabled': isDisabled
1438
+ }
1439
+ ],
1440
+ attrs: {
1441
+ title: getI18n('vxe.custom.setting.colVisible')
1442
+ },
1443
+ on: {
1444
+ click: (evnt: MouseEvent) => {
1445
+ if (!isDisabled) {
1446
+ $xeTableCustomPanel.changeCheckboxOption(column, evnt)
1447
+ }
1448
+ }
1299
1449
  }
1300
- }
1301
- }
1302
- }, [
1303
- h('span', {
1304
- class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
1305
- })
1306
- ])
1307
- ])
1450
+ },
1451
+ [
1452
+ h('span', {
1453
+ class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1454
+ })
1455
+ ]
1456
+ )
1457
+ ]
1458
+ )
1308
1459
  )
1309
1460
  }
1310
1461
  tdVNs.push(
1311
- h('td', {
1312
- key: 'at',
1313
- class: 'vxe-table-custom-popup--column-td col--name'
1314
- }, [
1315
- h('div', {
1316
- class: 'vxe-table-custom-popup--name'
1317
- }, [
1318
- (allowSort && showSortDragButton) || (allowGroup || allowValues)
1319
- ? (
1320
- showSortBtn || ((allowGroup || allowValues) && !isColGroup)
1321
- ? h('div', {
1322
- class: ['vxe-table-custom-popup--column-sort-btn', {
1323
- 'is--disabled': isHidden
1324
- }],
1325
- attrs: {
1326
- title: getI18n('vxe.custom.setting.sortHelpTip')
1327
- },
1328
- on: (isHidden
1329
- ? {}
1330
- : {
1331
- mousedown: $xeTableCustomPanel.sortMousedownEvent,
1332
- mouseup: $xeTableCustomPanel.sortMouseupEvent
1462
+ h(
1463
+ 'td',
1464
+ {
1465
+ key: 'at',
1466
+ class: 'vxe-table-custom-popup--column-td col--name'
1467
+ },
1468
+ [
1469
+ h(
1470
+ 'div',
1471
+ {
1472
+ class: 'vxe-table-custom-popup--name'
1473
+ },
1474
+ [
1475
+ (allowSort && showSortDragButton) || allowGroup || allowValues
1476
+ ? showSortBtn || ((allowGroup || allowValues) && !isColGroup)
1477
+ ? h(
1478
+ 'div',
1479
+ {
1480
+ class: [
1481
+ 'vxe-table-custom-popup--column-sort-btn',
1482
+ {
1483
+ 'is--disabled': isHidden
1484
+ }
1485
+ ],
1486
+ attrs: {
1487
+ title: getI18n('vxe.custom.setting.sortHelpTip')
1488
+ },
1489
+ on: isHidden
1490
+ ? {}
1491
+ : {
1492
+ mousedown: $xeTableCustomPanel.sortMousedownEvent,
1493
+ mouseup: $xeTableCustomPanel.sortMouseupEvent
1494
+ }
1495
+ },
1496
+ [
1497
+ h('i', {
1498
+ class: getIcon().TABLE_CUSTOM_SORT
1333
1499
  })
1334
- }, [
1335
- h('i', {
1336
- class: getIcon().TABLE_CUSTOM_SORT
1337
- })
1338
- ])
1500
+ ]
1501
+ )
1339
1502
  : h('div', {
1340
- class: 'vxe-table-custom-popup--column-sort-placeholder'
1341
- })
1342
- )
1343
- : renderEmptyElement($xeTable),
1344
- column.type === 'html'
1345
- ? h('div', {
1346
- key: '1',
1347
- class: 'vxe-table-custom-popup--title',
1348
- domProps: {
1349
- innerHTML: colTitle
1350
- }
1351
- })
1352
- : h('div', {
1353
- key: '0',
1354
- class: 'vxe-table-custom-popup--title',
1355
- attrs: {
1356
- title: colTitle
1357
- }
1358
- }, colTitle),
1359
- showSortBtn && (showSortMoveButton || showSortPutButton)
1360
- ? h('div', {
1361
- class: 'vxe-table-custom-popup--move-btn'
1362
- }, VxeUIButtonComponent
1363
- ? [
1364
- showSortMoveButton
1365
- ? h(VxeUIButtonComponent, {
1366
- props: {
1367
- mode: 'text',
1368
- icon: 'vxe-icon-arrows-up',
1369
- title: getI18n('vxe.custom.setting.moveUpTitle'),
1370
- disabled: index <= 0
1371
- },
1372
- on: {
1373
- click (evntParame: VxeButtonDefines.ClickEventParams) {
1374
- $xeTableCustomPanel.sortMoveUpEvent(evntParame, column)
1375
- }
1376
- }
1377
- })
1378
- : renderEmptyElement($xeTable),
1379
- showSortMoveButton
1380
- ? h(VxeUIButtonComponent, {
1381
- props: {
1382
- mode: 'text',
1383
- icon: 'vxe-icon-arrows-down',
1384
- title: getI18n('vxe.custom.setting.moveDnTitle'),
1385
- disabled: index >= items.length - 1
1386
- },
1387
- on: {
1388
- click (evntParame: VxeButtonDefines.ClickEventParams) {
1389
- $xeTableCustomPanel.sortMoveDnEvent(evntParame, column)
1390
- }
1391
- }
1392
- })
1393
- : renderEmptyElement($xeTable),
1394
- showSortPutButton && !parentItem
1395
- ? h(VxeUIButtonComponent, {
1396
- props: {
1397
- mode: 'text',
1398
- icon: 'vxe-icon-top',
1399
- title: getI18n('vxe.custom.setting.putTopTitle'),
1400
- disabled: index <= 0
1401
- },
1402
- on: {
1403
- click (evntParame: VxeButtonDefines.ClickEventParams) {
1404
- $xeTableCustomPanel.sortMoveTopEvent(evntParame, column)
1405
- }
1406
- }
1503
+ class: 'vxe-table-custom-popup--column-sort-placeholder'
1407
1504
  })
1408
- : renderEmptyElement($xeTable),
1409
- showSortPutButton && !parentItem
1410
- ? h(VxeUIButtonComponent, {
1411
- props: {
1412
- mode: 'text',
1413
- icon: 'vxe-icon-bottom',
1414
- title: getI18n('vxe.custom.setting.putBottomTitle'),
1415
- disabled: index >= items.length - 1
1416
- },
1417
- on: {
1418
- click (evntParame: VxeButtonDefines.ClickEventParams) {
1419
- $xeTableCustomPanel.sortMoveBottomEvent(evntParame, column)
1420
- }
1505
+ : renderEmptyElement($xeTable),
1506
+ column.type === 'html'
1507
+ ? h('div', {
1508
+ key: '1',
1509
+ class: 'vxe-table-custom-popup--title',
1510
+ domProps: {
1511
+ innerHTML: colTitle
1512
+ }
1513
+ })
1514
+ : h(
1515
+ 'div',
1516
+ {
1517
+ key: '0',
1518
+ class: 'vxe-table-custom-popup--title',
1519
+ attrs: {
1520
+ title: colTitle
1421
1521
  }
1422
- })
1423
- : renderEmptyElement($xeTable)
1424
- ]
1425
- : [])
1426
- : renderEmptyElement($xeTable)
1427
- ])
1428
- ])
1522
+ },
1523
+ colTitle
1524
+ ),
1525
+ showSortBtn && (showSortMoveButton || showSortPutButton)
1526
+ ? h(
1527
+ 'div',
1528
+ {
1529
+ class: 'vxe-table-custom-popup--move-btn'
1530
+ },
1531
+ VxeUIButtonComponent
1532
+ ? [
1533
+ showSortMoveButton
1534
+ ? h(VxeUIButtonComponent, {
1535
+ props: {
1536
+ mode: 'text',
1537
+ icon: 'vxe-icon-arrows-up',
1538
+ title: getI18n('vxe.custom.setting.moveUpTitle'),
1539
+ disabled: index <= 0
1540
+ },
1541
+ on: {
1542
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1543
+ $xeTableCustomPanel.sortMoveUpEvent(evntParame, column)
1544
+ }
1545
+ }
1546
+ })
1547
+ : renderEmptyElement($xeTable),
1548
+ showSortMoveButton
1549
+ ? h(VxeUIButtonComponent, {
1550
+ props: {
1551
+ mode: 'text',
1552
+ icon: 'vxe-icon-arrows-down',
1553
+ title: getI18n('vxe.custom.setting.moveDnTitle'),
1554
+ disabled: index >= items.length - 1
1555
+ },
1556
+ on: {
1557
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1558
+ $xeTableCustomPanel.sortMoveDnEvent(evntParame, column)
1559
+ }
1560
+ }
1561
+ })
1562
+ : renderEmptyElement($xeTable),
1563
+ showSortPutButton && !parentItem
1564
+ ? h(VxeUIButtonComponent, {
1565
+ props: {
1566
+ mode: 'text',
1567
+ icon: 'vxe-icon-top',
1568
+ title: getI18n('vxe.custom.setting.putTopTitle'),
1569
+ disabled: index <= 0
1570
+ },
1571
+ on: {
1572
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1573
+ $xeTableCustomPanel.sortMoveTopEvent(evntParame, column)
1574
+ }
1575
+ }
1576
+ })
1577
+ : renderEmptyElement($xeTable),
1578
+ showSortPutButton && !parentItem
1579
+ ? h(VxeUIButtonComponent, {
1580
+ props: {
1581
+ mode: 'text',
1582
+ icon: 'vxe-icon-bottom',
1583
+ title: getI18n('vxe.custom.setting.putBottomTitle'),
1584
+ disabled: index >= items.length - 1
1585
+ },
1586
+ on: {
1587
+ click(evntParame: VxeButtonDefines.ClickEventParams) {
1588
+ $xeTableCustomPanel.sortMoveBottomEvent(evntParame, column)
1589
+ }
1590
+ }
1591
+ })
1592
+ : renderEmptyElement($xeTable)
1593
+ ]
1594
+ : []
1595
+ )
1596
+ : renderEmptyElement($xeTable)
1597
+ ]
1598
+ )
1599
+ ]
1600
+ )
1429
1601
  )
1430
1602
  if (allowResizable) {
1431
1603
  tdVNs.push(
1432
- h('td', {
1433
- key: 'aw',
1434
- class: 'vxe-table-custom-popup--column-td col--resizable'
1435
- }, [
1436
- (
1437
- (column.children && column.children.length) ||
1438
- !(XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable))
1439
- )
1440
- ? h('span', '-')
1441
- : (
1442
- VxeUINumberInputComponent
1443
- ? h(VxeUINumberInputComponent, {
1604
+ h(
1605
+ 'td',
1606
+ {
1607
+ key: 'aw',
1608
+ class: 'vxe-table-custom-popup--column-td col--resizable'
1609
+ },
1610
+ [
1611
+ (column.children && column.children.length) || !(XEUtils.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable)
1612
+ ? h('span', '-')
1613
+ : VxeUINumberInputComponent
1614
+ ? h(VxeUINumberInputComponent, {
1444
1615
  props: {
1445
1616
  type: 'integer',
1446
1617
  immediate: false,
@@ -1450,28 +1621,31 @@ export default /* define-vxe-component start */ defineVxeComponent({
1450
1621
  max: customMaxWidth || 9999
1451
1622
  },
1452
1623
  on: {
1453
- modelValue (value: any) {
1624
+ modelValue(value: any) {
1454
1625
  const width = Math.max(0, Number(value))
1455
1626
  column.renderResizeWidth = width
1456
1627
  },
1457
- change () {
1628
+ change() {
1458
1629
  $xeTableCustomPanel.changeColumnWidth(column)
1459
1630
  }
1460
1631
  }
1461
1632
  })
1462
- : renderEmptyElement($xeTable)
1463
- )
1464
- ])
1633
+ : renderEmptyElement($xeTable)
1634
+ ]
1635
+ )
1465
1636
  )
1466
1637
  }
1467
1638
  if (allowFixed) {
1468
1639
  tdVNs.push(
1469
- h('td', {
1470
- key: 'af',
1471
- class: 'vxe-table-custom-popup--column-td col--fixed'
1472
- }, parentItem
1473
- ? [h('span', '-')]
1474
- : (VxeUIRadioGroupComponent
1640
+ h(
1641
+ 'td',
1642
+ {
1643
+ key: 'af',
1644
+ class: 'vxe-table-custom-popup--column-td col--fixed'
1645
+ },
1646
+ parentItem
1647
+ ? [h('span', '-')]
1648
+ : VxeUIRadioGroupComponent
1475
1649
  ? [
1476
1650
  h(VxeUIButtonComponent, {
1477
1651
  props: {
@@ -1501,45 +1675,49 @@ export default /* define-vxe-component start */ defineVxeComponent({
1501
1675
  })
1502
1676
  ]
1503
1677
  : []
1504
- )
1505
1678
  )
1506
1679
  )
1507
1680
  }
1508
1681
  if (allowAlign) {
1509
1682
  tdVNs.push(
1510
- h('td', {
1511
- key: 'aa',
1512
- class: 'vxe-table-custom-popup--column-td col--align'
1513
- }, VxeUIRadioGroupComponent
1514
- ? [
1515
- h(VxeUIRadioGroupComponent, {
1516
- props: {
1517
- value: column.renderAlign || 'left',
1518
- type: 'button',
1519
- strict: false,
1520
- disabled: isHidden,
1521
- options: alignList
1522
- },
1523
- on: {
1524
- change ({ value, $event }: VxeRadioGroupDefines.ChangeEventParams) {
1525
- $xeTableCustomPanel.changeAlignOption(column, value, 'align', 'renderAlign', 'custom-align-change', $event)
1683
+ h(
1684
+ 'td',
1685
+ {
1686
+ key: 'aa',
1687
+ class: 'vxe-table-custom-popup--column-td col--align'
1688
+ },
1689
+ VxeUIRadioGroupComponent
1690
+ ? [
1691
+ h(VxeUIRadioGroupComponent, {
1692
+ props: {
1693
+ value: column.renderAlign || 'left',
1694
+ type: 'button',
1695
+ strict: false,
1696
+ disabled: isHidden,
1697
+ options: alignList
1698
+ },
1699
+ on: {
1700
+ change({ value, $event }: VxeRadioGroupDefines.ChangeEventParams) {
1701
+ $xeTableCustomPanel.changeAlignOption(column, value, 'align', 'renderAlign', 'custom-align-change', $event)
1702
+ }
1526
1703
  }
1527
- }
1528
- })
1529
- ]
1530
- : []
1531
-
1704
+ })
1705
+ ]
1706
+ : []
1532
1707
  )
1533
1708
  )
1534
1709
  }
1535
1710
  if (allowHeaderAlign) {
1536
1711
  tdVNs.push(
1537
- h('td', {
1538
- key: 'aha',
1539
- class: 'vxe-table-custom-popup--column-td col--header-align'
1540
- }, isColGroup
1541
- ? [h('span', '-')]
1542
- : (VxeUIRadioGroupComponent
1712
+ h(
1713
+ 'td',
1714
+ {
1715
+ key: 'aha',
1716
+ class: 'vxe-table-custom-popup--column-td col--header-align'
1717
+ },
1718
+ isColGroup
1719
+ ? [h('span', '-')]
1720
+ : VxeUIRadioGroupComponent
1543
1721
  ? [
1544
1722
  h(VxeUIRadioGroupComponent, {
1545
1723
  props: {
@@ -1550,25 +1728,27 @@ export default /* define-vxe-component start */ defineVxeComponent({
1550
1728
  options: alignList
1551
1729
  },
1552
1730
  on: {
1553
- change ({ value, $event }: VxeRadioGroupDefines.ChangeEventParams) {
1731
+ change({ value, $event }: VxeRadioGroupDefines.ChangeEventParams) {
1554
1732
  $xeTableCustomPanel.changeAlignOption(column, value, 'headerAlign', 'renderHeaderAlign', 'custom-header-align-change', $event)
1555
1733
  }
1556
1734
  }
1557
1735
  })
1558
1736
  ]
1559
1737
  : []
1560
- )
1561
1738
  )
1562
1739
  )
1563
1740
  }
1564
1741
  if (allowFooterAlign) {
1565
1742
  tdVNs.push(
1566
- h('td', {
1567
- key: 'afa',
1568
- class: 'vxe-table-custom-popup--column-td col--footer-align'
1569
- }, isColGroup
1570
- ? [h('span', '-')]
1571
- : (VxeUIRadioGroupComponent
1743
+ h(
1744
+ 'td',
1745
+ {
1746
+ key: 'afa',
1747
+ class: 'vxe-table-custom-popup--column-td col--footer-align'
1748
+ },
1749
+ isColGroup
1750
+ ? [h('span', '-')]
1751
+ : VxeUIRadioGroupComponent
1572
1752
  ? [
1573
1753
  h(VxeUIRadioGroupComponent, {
1574
1754
  props: {
@@ -1579,39 +1759,45 @@ export default /* define-vxe-component start */ defineVxeComponent({
1579
1759
  options: alignList
1580
1760
  },
1581
1761
  on: {
1582
- change ({ value, $event }: VxeRadioGroupDefines.ChangeEventParams) {
1762
+ change({ value, $event }: VxeRadioGroupDefines.ChangeEventParams) {
1583
1763
  $xeTableCustomPanel.changeAlignOption(column, value, 'footerAlign', 'renderFooterAlign', 'custom-footer-align-change', $event)
1584
1764
  }
1585
1765
  }
1586
1766
  })
1587
1767
  ]
1588
1768
  : []
1589
- )
1590
1769
  )
1591
1770
  )
1592
1771
  }
1593
1772
 
1594
1773
  trVNs.push(
1595
- h('tr', {
1596
- key: column.id,
1597
- attrs: {
1598
- colid: column.id
1774
+ h(
1775
+ 'tr',
1776
+ {
1777
+ key: column.id,
1778
+ attrs: {
1779
+ colid: column.id
1780
+ },
1781
+ class: [
1782
+ `vxe-table-custom-popup--row level--${column.level}`,
1783
+ {
1784
+ 'is--group': isColGroup
1785
+ }
1786
+ ],
1787
+ on: {
1788
+ dragstart: $xeTableCustomPanel.sortDragstartEvent,
1789
+ dragend: $xeTableCustomPanel.sortDragendEvent,
1790
+ dragover: $xeTableCustomPanel.sortDragoverEvent
1791
+ }
1599
1792
  },
1600
- class: [`vxe-table-custom-popup--row level--${column.level}`, {
1601
- 'is--group': isColGroup
1602
- }],
1603
- on: {
1604
- dragstart: $xeTableCustomPanel.sortDragstartEvent,
1605
- dragend: $xeTableCustomPanel.sortDragendEvent,
1606
- dragover: $xeTableCustomPanel.sortDragoverEvent
1607
- }
1608
- }, tdVNs)
1793
+ tdVNs
1794
+ )
1609
1795
  )
1610
1796
  }
1611
1797
  })
1612
1798
  return trVNs
1613
1799
  },
1614
- renderPopupPanel (h: CreateElement) {
1800
+ renderPopupPanel(h: CreateElement) {
1615
1801
  const VxeUIModalComponent = VxeUI.getComponent('VxeModal')
1616
1802
  const VxeUIDrawerComponent = VxeUI.getComponent('VxeDrawer')
1617
1803
  const VxeUIButtonComponent = VxeUI.getComponent('VxeButton')
@@ -1666,30 +1852,41 @@ export default /* define-vxe-component start */ defineVxeComponent({
1666
1852
  })
1667
1853
  )
1668
1854
  headVNs.push(
1669
- h('th', {
1670
- key: 'av',
1671
- class: 'vxe-table-custom-popup--column-th col--checkbox'
1672
- }, [
1673
- h('div', {
1674
- class: ['vxe-table-custom--checkbox-option', {
1675
- 'is--checked': isAllChecked,
1676
- 'is--indeterminate': isAllIndeterminate
1677
- }],
1678
- attrs: {
1679
- title: getI18n('vxe.table.allTitle')
1680
- },
1681
- on: {
1682
- click: $xeTableCustomPanel.allOptionEvent
1683
- }
1684
- }, [
1685
- h('span', {
1686
- class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : (isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED)]
1687
- })
1688
- // h('span', {
1689
- // class: 'vxe-checkbox--label'
1690
- // }, getI18n('vxe.toolbar.customAll'))
1691
- ])
1692
- ])
1855
+ h(
1856
+ 'th',
1857
+ {
1858
+ key: 'av',
1859
+ class: 'vxe-table-custom-popup--column-th col--checkbox'
1860
+ },
1861
+ [
1862
+ h(
1863
+ 'div',
1864
+ {
1865
+ class: [
1866
+ 'vxe-table-custom--checkbox-option',
1867
+ {
1868
+ 'is--checked': isAllChecked,
1869
+ 'is--indeterminate': isAllIndeterminate
1870
+ }
1871
+ ],
1872
+ attrs: {
1873
+ title: getI18n('vxe.table.allTitle')
1874
+ },
1875
+ on: {
1876
+ click: $xeTableCustomPanel.allOptionEvent
1877
+ }
1878
+ },
1879
+ [
1880
+ h('span', {
1881
+ class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1882
+ })
1883
+ // h('span', {
1884
+ // class: 'vxe-checkbox--label'
1885
+ // }, getI18n('vxe.toolbar.customAll'))
1886
+ ]
1887
+ )
1888
+ ]
1889
+ )
1693
1890
  )
1694
1891
  }
1695
1892
  colVNs.push(
@@ -1699,10 +1896,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
1699
1896
  })
1700
1897
  )
1701
1898
  headVNs.push(
1702
- h('th', {
1703
- key: 'at',
1704
- class: 'vxe-table-custom-popup--column-th col--title'
1705
- }, getI18n('vxe.custom.setting.colTitle'))
1899
+ h(
1900
+ 'th',
1901
+ {
1902
+ key: 'at',
1903
+ class: 'vxe-table-custom-popup--column-th col--title'
1904
+ },
1905
+ getI18n('vxe.custom.setting.colTitle')
1906
+ )
1706
1907
  )
1707
1908
  if (allowResizable) {
1708
1909
  colVNs.push(
@@ -1712,10 +1913,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
1712
1913
  })
1713
1914
  )
1714
1915
  headVNs.push(
1715
- h('th', {
1716
- key: 'aw',
1717
- class: 'vxe-table-custom-popup--column-th col--width'
1718
- }, getI18n('vxe.custom.setting.colResizable'))
1916
+ h(
1917
+ 'th',
1918
+ {
1919
+ key: 'aw',
1920
+ class: 'vxe-table-custom-popup--column-th col--width'
1921
+ },
1922
+ getI18n('vxe.custom.setting.colResizable')
1923
+ )
1719
1924
  )
1720
1925
  }
1721
1926
  if (allowFixed) {
@@ -1726,10 +1931,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
1726
1931
  })
1727
1932
  )
1728
1933
  headVNs.push(
1729
- h('th', {
1730
- key: 'af',
1731
- class: 'vxe-table-custom-popup--column-th col--fixed'
1732
- }, getI18n(`vxe.custom.setting.${maxFixedSize ? 'colFixedMax' : 'colFixed'}`, [maxFixedSize]))
1934
+ h(
1935
+ 'th',
1936
+ {
1937
+ key: 'af',
1938
+ class: 'vxe-table-custom-popup--column-th col--fixed'
1939
+ },
1940
+ getI18n(`vxe.custom.setting.${maxFixedSize ? 'colFixedMax' : 'colFixed'}`, [maxFixedSize])
1941
+ )
1733
1942
  )
1734
1943
  }
1735
1944
  if (allowAlign) {
@@ -1740,10 +1949,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
1740
1949
  })
1741
1950
  )
1742
1951
  headVNs.push(
1743
- h('th', {
1744
- key: 'aa',
1745
- class: 'vxe-table-custom-popup--column-th col--align'
1746
- }, getI18n('vxe.custom.setting.colAlign'))
1952
+ h(
1953
+ 'th',
1954
+ {
1955
+ key: 'aa',
1956
+ class: 'vxe-table-custom-popup--column-th col--align'
1957
+ },
1958
+ getI18n('vxe.custom.setting.colAlign')
1959
+ )
1747
1960
  )
1748
1961
  }
1749
1962
  if (allowHeaderAlign) {
@@ -1754,10 +1967,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
1754
1967
  })
1755
1968
  )
1756
1969
  headVNs.push(
1757
- h('th', {
1758
- key: 'aha',
1759
- class: 'vxe-table-custom-popup--column-th col--header-align'
1760
- }, getI18n('vxe.custom.setting.colHeadAlign'))
1970
+ h(
1971
+ 'th',
1972
+ {
1973
+ key: 'aha',
1974
+ class: 'vxe-table-custom-popup--column-th col--header-align'
1975
+ },
1976
+ getI18n('vxe.custom.setting.colHeadAlign')
1977
+ )
1761
1978
  )
1762
1979
  }
1763
1980
  if (allowFooterAlign) {
@@ -1768,119 +1985,153 @@ export default /* define-vxe-component start */ defineVxeComponent({
1768
1985
  })
1769
1986
  )
1770
1987
  headVNs.push(
1771
- h('th', {
1772
- key: 'afa',
1773
- class: 'vxe-table-custom-popup--column-th col--footer-align'
1774
- }, getI18n('vxe.custom.setting.colFootAlign'))
1988
+ h(
1989
+ 'th',
1990
+ {
1991
+ key: 'afa',
1992
+ class: 'vxe-table-custom-popup--column-th col--footer-align'
1993
+ },
1994
+ getI18n('vxe.custom.setting.colFootAlign')
1995
+ )
1775
1996
  )
1776
1997
  }
1777
1998
 
1778
1999
  const scopedSlots: Record<string, any> = {
1779
2000
  default: () => {
1780
- return h('div', {
1781
- ref: 'refBodyWrapperElem',
1782
- class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`, {
1783
- [`size--${vSize}`]: vSize
1784
- }],
1785
- style: panePopupStyle
1786
- }, defaultSlot
1787
- ? $xeTable.callSlot(defaultSlot, params, h)
1788
- : [
1789
- !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1790
- ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1791
- props: {
1792
- customStore
1793
- }
1794
- })
1795
- : renderEmptyElement($xeTable),
1796
- h('div', {
1797
- ref: 'refCustomBodyElem',
1798
- class: 'vxe-table-custom-popup--handle-wrapper'
1799
- }, [
1800
- topSlot
1801
- ? h('div', {
1802
- class: 'vxe-table-custom-popup--table-top'
1803
- }, $xeTable.callSlot(topSlot, params, h))
1804
- : renderEmptyElement($xeTable),
1805
- h('div', {
1806
- class: 'vxe-table-custom-popup--table-wrapper'
1807
- }, [
1808
- h('table', {}, [
1809
- h('colgroup', {}, colVNs),
1810
- h('thead', {}, [
1811
- h('tr', {}, headVNs)
1812
- ]),
1813
- h('transition-group', {
1814
- class: 'vxe-table-custom--panel-list',
2001
+ return h(
2002
+ 'div',
2003
+ {
2004
+ ref: 'refBodyWrapperElem',
2005
+ class: [
2006
+ 'vxe-table-custom-popup--body-wrapper',
2007
+ `agg-layout--${aggPlacement}`,
2008
+ {
2009
+ [`size--${vSize}`]: vSize
2010
+ }
2011
+ ],
2012
+ style: panePopupStyle
2013
+ },
2014
+ defaultSlot
2015
+ ? $xeTable.callSlot(defaultSlot, params, h)
2016
+ : [
2017
+ !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
2018
+ ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1815
2019
  props: {
1816
- tag: 'tbody',
1817
- name: 'vxe-table-custom--list'
2020
+ customStore
1818
2021
  }
1819
- }, $xeTableCustomPanel.renderPopupBodys(h))
1820
- ])
1821
- ]),
1822
- bottomSlot
1823
- ? h('div', {
1824
- class: 'vxe-table-custom-popup--table-bottom'
1825
- }, $xeTable.callSlot(bottomSlot, params, h))
2022
+ })
1826
2023
  : renderEmptyElement($xeTable),
1827
- $xeTableCustomPanel.renderDragTip(h)
1828
- ]),
1829
- isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
1830
- ? h($xeTable.getPivotTableAggregatePopupPanel(), {
1831
- props: {
1832
- customStore
1833
- }
1834
- })
1835
- : renderEmptyElement($xeTable)
1836
- ])
2024
+ h(
2025
+ 'div',
2026
+ {
2027
+ ref: 'refCustomBodyElem',
2028
+ class: 'vxe-table-custom-popup--handle-wrapper'
2029
+ },
2030
+ [
2031
+ topSlot
2032
+ ? h(
2033
+ 'div',
2034
+ {
2035
+ class: 'vxe-table-custom-popup--table-top'
2036
+ },
2037
+ $xeTable.callSlot(topSlot, params, h)
2038
+ )
2039
+ : renderEmptyElement($xeTable),
2040
+ h(
2041
+ 'div',
2042
+ {
2043
+ class: 'vxe-table-custom-popup--table-wrapper'
2044
+ },
2045
+ [
2046
+ h('table', {}, [
2047
+ h('colgroup', {}, colVNs),
2048
+ h('thead', {}, [h('tr', {}, headVNs)]),
2049
+ h(
2050
+ 'transition-group',
2051
+ {
2052
+ class: 'vxe-table-custom--panel-list',
2053
+ props: {
2054
+ tag: 'tbody',
2055
+ name: 'vxe-table-custom--list'
2056
+ }
2057
+ },
2058
+ $xeTableCustomPanel.renderPopupBodys(h)
2059
+ )
2060
+ ])
2061
+ ]
2062
+ ),
2063
+ bottomSlot
2064
+ ? h(
2065
+ 'div',
2066
+ {
2067
+ class: 'vxe-table-custom-popup--table-bottom'
2068
+ },
2069
+ $xeTable.callSlot(bottomSlot, params, h)
2070
+ )
2071
+ : renderEmptyElement($xeTable),
2072
+ $xeTableCustomPanel.renderDragTip(h)
2073
+ ]
2074
+ ),
2075
+ isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel
2076
+ ? h($xeTable.getPivotTableAggregatePopupPanel(), {
2077
+ props: {
2078
+ customStore
2079
+ }
2080
+ })
2081
+ : renderEmptyElement($xeTable)
2082
+ ]
2083
+ )
1837
2084
  },
1838
2085
  footer: () => {
1839
2086
  if (footerSlot) {
1840
2087
  return $xeTable.callSlot(footerSlot, params, h)
1841
2088
  }
1842
- return h('div', {
1843
- class: 'vxe-table-custom-popup--footer'
1844
- }, [
1845
- h(VxeUIButtonComponent, {
1846
- props: {
1847
- content: customOpts.resetButtonText || getI18n('vxe.custom.cstmRestore'),
1848
- disabled: !isCustomStatus
1849
- },
1850
- on: {
1851
- click: $xeTableCustomPanel.resetCustomEvent
1852
- }
1853
- }),
1854
- immediate
1855
- ? h(VxeUIButtonComponent, {
1856
- props: {
1857
- status: 'primary',
1858
- content: customOpts.resetButtonText || getI18n('vxe.table.customClose')
1859
- },
1860
- on: {
1861
- click: $xeTableCustomPanel.cancelCloseEvent
1862
- }
1863
- })
1864
- : h(VxeUIButtonComponent, {
2089
+ return h(
2090
+ 'div',
2091
+ {
2092
+ class: 'vxe-table-custom-popup--footer'
2093
+ },
2094
+ [
2095
+ h(VxeUIButtonComponent, {
1865
2096
  props: {
1866
- content: customOpts.resetButtonText || getI18n('vxe.custom.cstmCancel')
2097
+ content: customOpts.resetButtonText || getI18n('vxe.custom.cstmRestore'),
2098
+ disabled: !isCustomStatus
1867
2099
  },
1868
2100
  on: {
1869
- click: $xeTableCustomPanel.cancelCustomEvent
2101
+ click: $xeTableCustomPanel.resetCustomEvent
1870
2102
  }
1871
2103
  }),
1872
- immediate
1873
- ? renderEmptyElement($xeTable)
1874
- : h(VxeUIButtonComponent, {
1875
- props: {
1876
- status: 'primary',
1877
- content: customOpts.confirmButtonText || getI18n('vxe.custom.cstmConfirm')
1878
- },
1879
- on: {
1880
- click: $xeTableCustomPanel.confirmCustomEvent
1881
- }
1882
- })
1883
- ])
2104
+ immediate
2105
+ ? h(VxeUIButtonComponent, {
2106
+ props: {
2107
+ status: 'primary',
2108
+ content: customOpts.resetButtonText || getI18n('vxe.table.customClose')
2109
+ },
2110
+ on: {
2111
+ click: $xeTableCustomPanel.cancelCloseEvent
2112
+ }
2113
+ })
2114
+ : h(VxeUIButtonComponent, {
2115
+ props: {
2116
+ content: customOpts.resetButtonText || getI18n('vxe.custom.cstmCancel')
2117
+ },
2118
+ on: {
2119
+ click: $xeTableCustomPanel.cancelCustomEvent
2120
+ }
2121
+ }),
2122
+ immediate
2123
+ ? renderEmptyElement($xeTable)
2124
+ : h(VxeUIButtonComponent, {
2125
+ props: {
2126
+ status: 'primary',
2127
+ content: customOpts.confirmButtonText || getI18n('vxe.custom.cstmConfirm')
2128
+ },
2129
+ on: {
2130
+ click: $xeTableCustomPanel.confirmCustomEvent
2131
+ }
2132
+ })
2133
+ ]
2134
+ )
1884
2135
  }
1885
2136
  }
1886
2137
  if (headerSlot) {
@@ -1889,61 +2140,61 @@ export default /* define-vxe-component start */ defineVxeComponent({
1889
2140
  if (mode === 'drawer') {
1890
2141
  return VxeUIDrawerComponent
1891
2142
  ? h(VxeUIDrawerComponent, {
1892
- key: 'drawer',
2143
+ key: 'drawer',
2144
+ props: {
2145
+ className: ['vxe-table-custom-drawer-wrapper', 'vxe-table--ignore-clear', drawerOpts.className || ''].join(' '),
2146
+ value: customStore.visible,
2147
+ title: drawerOpts.title || getI18n('vxe.custom.cstmTitle'),
2148
+ width: drawerOpts.width || Math.min(880, Math.floor(document.documentElement.clientWidth * 0.6)),
2149
+ position: drawerOpts.position,
2150
+ resize: !!drawerOpts.resize,
2151
+ escClosable: !!drawerOpts.escClosable,
2152
+ maskClosable: !!drawerOpts.maskClosable,
2153
+ destroyOnClose: true,
2154
+ showFooter: true
2155
+ },
2156
+ on: {
2157
+ input(value: any) {
2158
+ customStore.visible = value
2159
+ }
2160
+ },
2161
+ scopedSlots
2162
+ })
2163
+ : renderEmptyElement($xeTableCustomPanel)
2164
+ }
2165
+ return VxeUIModalComponent
2166
+ ? h(VxeUIModalComponent, {
2167
+ key: 'modal',
1893
2168
  props: {
1894
- className: ['vxe-table-custom-drawer-wrapper', 'vxe-table--ignore-clear', drawerOpts.className || ''].join(' '),
2169
+ className: ['vxe-table-custom-modal-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
1895
2170
  value: customStore.visible,
1896
- title: drawerOpts.title || getI18n('vxe.custom.cstmTitle'),
1897
- width: drawerOpts.width || Math.min(880, Math.floor(document.documentElement.clientWidth * 0.6)),
1898
- position: drawerOpts.position,
1899
- resize: !!drawerOpts.resize,
1900
- escClosable: !!drawerOpts.escClosable,
1901
- maskClosable: !!drawerOpts.maskClosable,
2171
+ title: modalOpts.title || getI18n('vxe.custom.cstmTitle'),
2172
+ width: modalOpts.width || Math.min(1000, document.documentElement.clientWidth),
2173
+ minWidth: modalOpts.minWidth || 800,
2174
+ height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
2175
+ minHeight: modalOpts.minHeight || 400,
2176
+ showZoom: modalOpts.showZoom,
2177
+ showMaximize: modalOpts.showMaximize,
2178
+ showMinimize: modalOpts.showMinimize,
2179
+ mask: modalOpts.mask,
2180
+ lockView: modalOpts.lockView,
2181
+ resize: modalOpts.resize,
2182
+ transfer: modalOpts.transfer,
2183
+ escClosable: !!modalOpts.escClosable,
2184
+ maskClosable: !!modalOpts.maskClosable,
1902
2185
  destroyOnClose: true,
1903
2186
  showFooter: true
1904
2187
  },
1905
2188
  on: {
1906
- input (value: any) {
2189
+ input(value: any) {
1907
2190
  customStore.visible = value
1908
2191
  }
1909
2192
  },
1910
2193
  scopedSlots
1911
2194
  })
1912
- : renderEmptyElement($xeTableCustomPanel)
1913
- }
1914
- return VxeUIModalComponent
1915
- ? h(VxeUIModalComponent, {
1916
- key: 'modal',
1917
- props: {
1918
- className: ['vxe-table-custom-modal-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
1919
- value: customStore.visible,
1920
- title: modalOpts.title || getI18n('vxe.custom.cstmTitle'),
1921
- width: modalOpts.width || Math.min(1000, document.documentElement.clientWidth),
1922
- minWidth: modalOpts.minWidth || 800,
1923
- height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
1924
- minHeight: modalOpts.minHeight || 400,
1925
- showZoom: modalOpts.showZoom,
1926
- showMaximize: modalOpts.showMaximize,
1927
- showMinimize: modalOpts.showMinimize,
1928
- mask: modalOpts.mask,
1929
- lockView: modalOpts.lockView,
1930
- resize: modalOpts.resize,
1931
- transfer: modalOpts.transfer,
1932
- escClosable: !!modalOpts.escClosable,
1933
- maskClosable: !!modalOpts.maskClosable,
1934
- destroyOnClose: true,
1935
- showFooter: true
1936
- },
1937
- on: {
1938
- input (value: any) {
1939
- customStore.visible = value
1940
- }
1941
- },
1942
- scopedSlots
1943
- })
1944
2195
  : renderEmptyElement($xeTableCustomPanel)
1945
2196
  },
1946
- renderVN (h: CreateElement) {
2197
+ renderVN(h: CreateElement) {
1947
2198
  const $xeTableCustomPanel = this
1948
2199
  const $xeTable = $xeTableCustomPanel.$xeTable
1949
2200
 
@@ -1954,7 +2205,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
1954
2205
  return $xeTableCustomPanel.renderSimplePanel(h)
1955
2206
  }
1956
2207
  },
1957
- render (h: CreateElement) {
2208
+ render(h: CreateElement) {
1958
2209
  return (this as any).renderVN(h)
1959
2210
  }
1960
2211
  }) /* define-vxe-component end */