vxe-table 4.23.4 → 4.23.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (483) hide show
  1. package/dist/all.esm.js +32459 -33908
  2. package/dist/style.css +4501 -1
  3. package/dist/style.mini.css +1 -0
  4. package/es/colgroup/index.d.ts +760 -0
  5. package/es/colgroup/index.js +16 -13
  6. package/es/column/index.d.ts +760 -0
  7. package/es/column/index.js +16 -13
  8. package/es/components.d.ts +9 -0
  9. package/es/components.js +29 -29
  10. package/es/grid/index.d.ts +2824 -0
  11. package/es/grid/index.js +14 -9
  12. package/es/grid/src/emits.d.ts +2 -0
  13. package/es/grid/src/emits.js +18 -15
  14. package/es/grid/src/grid.d.ts +556 -0
  15. package/es/grid/src/grid.js +1695 -1758
  16. package/es/grid/src/props.d.ts +200 -0
  17. package/es/grid/src/props.js +19 -6
  18. package/es/{vxe-grid/style.min.css → grid/style.mini.css} +1 -1
  19. package/es/index.d.ts +3 -0
  20. package/es/index.esm.js +6 -3
  21. package/es/index.js +6 -0
  22. package/es/locale/lang/ar-EG.d.ts +908 -2
  23. package/es/locale/lang/ar-EG.js +906 -903
  24. package/es/locale/lang/de-DE.d.ts +908 -2
  25. package/es/locale/lang/de-DE.js +906 -903
  26. package/es/locale/lang/en-US.d.ts +908 -2
  27. package/es/locale/lang/en-US.js +906 -903
  28. package/es/locale/lang/es-ES.d.ts +908 -2
  29. package/es/locale/lang/es-ES.js +906 -903
  30. package/es/locale/lang/fr-FR.d.ts +908 -2
  31. package/es/locale/lang/fr-FR.js +906 -903
  32. package/es/locale/lang/hu-HU.d.ts +908 -2
  33. package/es/locale/lang/hu-HU.js +906 -903
  34. package/es/locale/lang/hy-AM.d.ts +908 -2
  35. package/es/locale/lang/hy-AM.js +906 -903
  36. package/es/locale/lang/id-ID.d.ts +908 -2
  37. package/es/locale/lang/id-ID.js +906 -903
  38. package/es/locale/lang/it-IT.d.ts +908 -2
  39. package/es/locale/lang/it-IT.js +906 -903
  40. package/es/locale/lang/ja-JP.d.ts +908 -2
  41. package/es/locale/lang/ja-JP.js +906 -903
  42. package/es/locale/lang/ko-KR.d.ts +908 -2
  43. package/es/locale/lang/ko-KR.js +906 -903
  44. package/es/locale/lang/ms-MY.d.ts +908 -2
  45. package/es/locale/lang/ms-MY.js +906 -903
  46. package/es/locale/lang/nb-NO.d.ts +908 -2
  47. package/es/locale/lang/nb-NO.js +906 -903
  48. package/es/locale/lang/pt-BR.d.ts +908 -2
  49. package/es/locale/lang/pt-BR.js +906 -903
  50. package/es/locale/lang/ru-RU.d.ts +908 -2
  51. package/es/locale/lang/ru-RU.js +906 -903
  52. package/es/locale/lang/th-TH.d.ts +908 -2
  53. package/es/locale/lang/th-TH.js +906 -903
  54. package/es/locale/lang/ug-CN.d.ts +908 -2
  55. package/es/locale/lang/ug-CN.js +906 -903
  56. package/es/locale/lang/uk-UA.d.ts +908 -2
  57. package/es/locale/lang/uk-UA.js +906 -903
  58. package/es/locale/lang/uz-UZ.d.ts +908 -2
  59. package/es/locale/lang/uz-UZ.js +906 -903
  60. package/es/locale/lang/vi-VN.d.ts +908 -2
  61. package/es/locale/lang/vi-VN.js +906 -903
  62. package/es/locale/lang/zh-CHT.d.ts +908 -2
  63. package/es/locale/lang/zh-CHT.js +906 -903
  64. package/es/locale/lang/zh-CN.d.ts +908 -2
  65. package/es/locale/lang/zh-CN.js +906 -903
  66. package/es/locale/lang/zh-HK.d.ts +908 -2
  67. package/es/locale/lang/zh-HK.js +910 -2
  68. package/es/locale/lang/zh-MO.d.ts +908 -2
  69. package/es/locale/lang/zh-MO.js +910 -2
  70. package/es/locale/lang/zh-TC.d.ts +908 -0
  71. package/es/locale/lang/zh-TC.js +910 -2
  72. package/es/locale/lang/zh-TW.d.ts +908 -2
  73. package/es/locale/lang/zh-TW.js +910 -2
  74. package/es/table/index.d.ts +2672 -0
  75. package/es/table/index.js +16 -11
  76. package/es/table/module/custom/hook.d.ts +1 -0
  77. package/es/table/module/custom/hook.js +462 -483
  78. package/es/table/module/custom/panel.d.ts +17 -0
  79. package/es/table/module/custom/panel.js +1482 -1559
  80. package/es/table/module/edit/hook.d.ts +1 -0
  81. package/es/table/module/edit/hook.js +1008 -1078
  82. package/es/table/module/export/export-panel.d.ts +27 -0
  83. package/es/table/module/export/export-panel.js +523 -575
  84. package/es/table/module/export/hook.d.ts +1 -0
  85. package/es/table/module/export/hook.js +1805 -1884
  86. package/es/table/module/export/import-panel.d.ts +27 -0
  87. package/es/table/module/export/import-panel.js +244 -252
  88. package/es/table/module/export/util.d.ts +5 -0
  89. package/es/table/module/export/util.js +20 -17
  90. package/es/table/module/filter/hook.d.ts +1 -0
  91. package/es/table/module/filter/hook.js +472 -487
  92. package/es/table/module/filter/panel.d.ts +16 -0
  93. package/es/table/module/filter/panel.js +251 -275
  94. package/es/table/module/keyboard/hook.d.ts +1 -0
  95. package/es/table/module/keyboard/hook.js +445 -497
  96. package/es/table/module/menu/hook.d.ts +1 -0
  97. package/es/table/module/menu/hook.js +295 -315
  98. package/es/table/module/menu/panel.d.ts +2 -0
  99. package/es/table/module/menu/panel.js +164 -183
  100. package/es/table/module/validator/hook.d.ts +1 -0
  101. package/es/table/module/validator/hook.js +522 -571
  102. package/es/table/render/index.d.ts +1 -0
  103. package/es/table/render/index.js +1402 -1362
  104. package/es/table/src/body.d.ts +24 -0
  105. package/es/table/src/body.js +850 -865
  106. package/es/table/src/cell.d.ts +192 -0
  107. package/es/table/src/cell.js +1209 -1207
  108. package/es/table/src/column.d.ts +263 -0
  109. package/es/table/src/column.js +178 -174
  110. package/es/table/src/columnInfo.d.ts +13 -0
  111. package/es/table/src/columnInfo.js +202 -196
  112. package/es/table/src/emits.d.ts +2 -0
  113. package/es/table/src/emits.js +126 -119
  114. package/es/table/src/footer.d.ts +45 -0
  115. package/es/table/src/footer.js +336 -340
  116. package/es/table/src/group.d.ts +178 -0
  117. package/es/table/src/group.js +49 -46
  118. package/es/table/src/header.d.ts +26 -0
  119. package/es/table/src/header.js +517 -519
  120. package/es/table/src/props.d.ts +238 -0
  121. package/es/table/src/props.js +331 -328
  122. package/es/table/src/store.d.ts +6 -0
  123. package/es/table/src/store.js +9 -6
  124. package/es/table/src/table.d.ts +539 -0
  125. package/es/table/src/table.js +14064 -15041
  126. package/es/table/src/use/cell-view.d.ts +10 -0
  127. package/es/table/src/use/cell-view.js +36 -33
  128. package/es/table/src/use/index.d.ts +1 -0
  129. package/es/table/src/use/index.js +1 -1
  130. package/es/table/src/util.d.ts +74 -0
  131. package/es/table/src/util.js +1038 -1026
  132. package/es/table/style.css +1 -1
  133. package/es/table/style.mini.css +1 -0
  134. package/es/toolbar/index.d.ts +340 -0
  135. package/es/toolbar/index.js +14 -9
  136. package/es/toolbar/src/toolbar.d.ts +75 -0
  137. package/es/toolbar/src/toolbar.js +605 -613
  138. package/es/toolbar/{style.min.css → style.mini.css} +1 -1
  139. package/es/ui/index.d.ts +86 -0
  140. package/es/ui/index.js +457 -501
  141. package/es/ui/src/anime.d.ts +10 -0
  142. package/es/ui/src/anime.js +40 -40
  143. package/es/ui/src/comp.d.ts +2 -0
  144. package/es/ui/src/comp.js +5 -2
  145. package/es/ui/src/dom.d.ts +80 -0
  146. package/es/ui/src/dom.js +377 -380
  147. package/es/ui/src/log.d.ts +6 -0
  148. package/es/ui/src/log.js +18 -13
  149. package/es/ui/src/utils.d.ts +23 -0
  150. package/es/ui/src/utils.js +57 -53
  151. package/es/ui/src/vn.d.ts +7 -0
  152. package/es/ui/src/vn.js +49 -42
  153. package/es/v-x-e-table/index.d.ts +3 -0
  154. package/es/v-x-e-table/index.js +6 -3
  155. package/es/vxe-colgroup/index.d.ts +3 -0
  156. package/es/vxe-colgroup/index.js +6 -3
  157. package/es/vxe-column/index.d.ts +3 -0
  158. package/es/vxe-column/index.js +6 -3
  159. package/es/vxe-grid/index.d.ts +3 -0
  160. package/es/vxe-grid/index.js +6 -3
  161. package/{lib/grid/style/style.min.css → es/vxe-grid/style.mini.css} +1 -1
  162. package/es/vxe-table/index.d.ts +3 -0
  163. package/es/vxe-table/index.js +6 -3
  164. package/es/vxe-table/style.css +1 -1
  165. package/es/vxe-table/style.mini.css +1 -0
  166. package/es/vxe-toolbar/index.d.ts +3 -0
  167. package/es/vxe-toolbar/index.js +6 -3
  168. package/es/vxe-toolbar/{style.min.css → style.mini.css} +1 -1
  169. package/es/vxe-ui/index.d.ts +3 -0
  170. package/es/vxe-ui/index.js +6 -3
  171. package/lib/colgroup/index.js +44 -18
  172. package/lib/colgroup/style/index.js +1 -1
  173. package/lib/column/index.js +44 -18
  174. package/lib/column/style/index.js +1 -1
  175. package/lib/components.js +58 -92
  176. package/lib/grid/index.js +42 -14
  177. package/lib/grid/src/emits.js +37 -6
  178. package/lib/grid/src/grid.js +850 -1195
  179. package/lib/grid/src/props.js +27 -11
  180. package/lib/grid/style/index.js +1 -1
  181. package/lib/{vxe-grid/style/style.min.css → grid/style/style.mini.css} +1 -1
  182. package/lib/iconfont.1792977622800.ttf +0 -0
  183. package/lib/iconfont.1792977622800.woff +0 -0
  184. package/lib/iconfont.1792977622800.woff2 +0 -0
  185. package/lib/index.common.js +35 -19
  186. package/lib/index.js +37 -0
  187. package/lib/index.umd.js +30586 -24322
  188. package/lib/index.umd.min.js +3 -1
  189. package/lib/locale/ar-EG.umd.js +948 -0
  190. package/lib/locale/de-DE.umd.js +948 -0
  191. package/lib/locale/en-US.umd.js +948 -0
  192. package/lib/locale/es-ES.umd.js +948 -0
  193. package/lib/locale/fr-FR.umd.js +948 -0
  194. package/lib/locale/hu-HU.umd.js +948 -0
  195. package/lib/locale/hy-AM.umd.js +948 -0
  196. package/lib/locale/id-ID.umd.js +948 -0
  197. package/lib/locale/it-IT.umd.js +948 -0
  198. package/lib/locale/ja-JP.umd.js +948 -0
  199. package/lib/locale/ko-KR.umd.js +948 -0
  200. package/lib/locale/lang/ar-EG.js +681 -664
  201. package/lib/locale/lang/ar-EG.umd.js +913 -892
  202. package/lib/locale/lang/de-DE.js +681 -664
  203. package/lib/locale/lang/de-DE.umd.js +913 -892
  204. package/lib/locale/lang/en-US.js +678 -661
  205. package/lib/locale/lang/en-US.umd.js +913 -892
  206. package/lib/locale/lang/es-ES.js +681 -664
  207. package/lib/locale/lang/es-ES.umd.js +913 -892
  208. package/lib/locale/lang/fr-FR.js +654 -637
  209. package/lib/locale/lang/fr-FR.umd.js +913 -892
  210. package/lib/locale/lang/hu-HU.js +681 -664
  211. package/lib/locale/lang/hu-HU.umd.js +913 -892
  212. package/lib/locale/lang/hy-AM.js +681 -664
  213. package/lib/locale/lang/hy-AM.umd.js +913 -892
  214. package/lib/locale/lang/id-ID.js +681 -664
  215. package/lib/locale/lang/id-ID.umd.js +913 -892
  216. package/lib/locale/lang/it-IT.js +661 -644
  217. package/lib/locale/lang/it-IT.umd.js +912 -891
  218. package/lib/locale/lang/ja-JP.js +710 -693
  219. package/lib/locale/lang/ja-JP.umd.js +913 -892
  220. package/lib/locale/lang/ko-KR.js +681 -664
  221. package/lib/locale/lang/ko-KR.umd.js +913 -892
  222. package/lib/locale/lang/ms-MY.js +681 -664
  223. package/lib/locale/lang/ms-MY.umd.js +913 -892
  224. package/lib/locale/lang/nb-NO.js +681 -664
  225. package/lib/locale/lang/nb-NO.umd.js +913 -892
  226. package/lib/locale/lang/pt-BR.js +681 -664
  227. package/lib/locale/lang/pt-BR.umd.js +913 -892
  228. package/lib/locale/lang/ru-RU.js +690 -673
  229. package/lib/locale/lang/ru-RU.umd.js +913 -892
  230. package/lib/locale/lang/th-TH.js +681 -664
  231. package/lib/locale/lang/th-TH.umd.js +913 -892
  232. package/lib/locale/lang/ug-CN.js +681 -664
  233. package/lib/locale/lang/ug-CN.umd.js +913 -892
  234. package/lib/locale/lang/uk-UA.js +674 -657
  235. package/lib/locale/lang/uk-UA.umd.js +913 -892
  236. package/lib/locale/lang/uz-UZ.js +583 -566
  237. package/lib/locale/lang/uz-UZ.umd.js +908 -887
  238. package/lib/locale/lang/vi-VN.js +681 -664
  239. package/lib/locale/lang/vi-VN.umd.js +913 -892
  240. package/lib/locale/lang/zh-CHT.js +681 -664
  241. package/lib/locale/lang/zh-CHT.umd.js +913 -892
  242. package/lib/locale/lang/zh-CN.js +681 -664
  243. package/lib/locale/lang/zh-CN.umd.js +913 -892
  244. package/lib/locale/lang/zh-HK.js +928 -7
  245. package/lib/locale/lang/zh-HK.umd.js +945 -20
  246. package/lib/locale/lang/zh-MO.js +928 -7
  247. package/lib/locale/lang/zh-MO.umd.js +945 -20
  248. package/lib/locale/lang/zh-TC.js +928 -7
  249. package/lib/locale/lang/zh-TC.umd.js +948 -0
  250. package/lib/locale/lang/zh-TW.js +928 -7
  251. package/lib/locale/lang/zh-TW.umd.js +945 -20
  252. package/lib/locale/ms-MY.umd.js +948 -0
  253. package/lib/locale/nb-NO.umd.js +948 -0
  254. package/lib/locale/pt-BR.umd.js +948 -0
  255. package/lib/locale/ru-RU.umd.js +948 -0
  256. package/lib/locale/th-TH.umd.js +948 -0
  257. package/lib/locale/ug-CN.umd.js +948 -0
  258. package/lib/locale/uk-UA.umd.js +948 -0
  259. package/lib/locale/uz-UZ.umd.js +948 -0
  260. package/lib/locale/vi-VN.umd.js +948 -0
  261. package/lib/locale/zh-CHT.umd.js +948 -0
  262. package/lib/locale/zh-CN.umd.js +948 -0
  263. package/lib/locale/zh-HK.umd.js +948 -0
  264. package/lib/locale/zh-MO.umd.js +948 -0
  265. package/lib/locale/zh-TC.umd.js +948 -0
  266. package/lib/locale/zh-TW.umd.js +948 -0
  267. package/lib/style.css +4501 -1
  268. package/lib/style.mini.css +1 -0
  269. package/lib/table/index.js +45 -17
  270. package/lib/table/module/custom/hook.js +132 -252
  271. package/lib/table/module/custom/panel.js +919 -970
  272. package/lib/table/module/edit/hook.js +250 -620
  273. package/lib/table/module/export/export-panel.js +390 -347
  274. package/lib/table/module/export/hook.js +745 -1179
  275. package/lib/table/module/export/import-panel.js +170 -136
  276. package/lib/table/module/export/util.js +37 -14
  277. package/lib/table/module/filter/hook.js +127 -227
  278. package/lib/table/module/filter/panel.js +177 -208
  279. package/lib/table/module/keyboard/hook.js +93 -172
  280. package/lib/table/module/menu/hook.js +86 -165
  281. package/lib/table/module/menu/panel.js +176 -141
  282. package/lib/table/module/validator/hook.js +164 -271
  283. package/lib/table/render/index.js +700 -1147
  284. package/lib/table/src/body.js +426 -559
  285. package/lib/table/src/cell.js +619 -987
  286. package/lib/table/src/column.js +55 -30
  287. package/lib/table/src/columnInfo.js +88 -110
  288. package/lib/table/src/emits.js +145 -13
  289. package/lib/table/src/footer.js +181 -240
  290. package/lib/table/src/group.js +56 -34
  291. package/lib/table/src/header.js +292 -367
  292. package/lib/table/src/props.js +27 -12
  293. package/lib/table/src/store.js +25 -9
  294. package/lib/table/src/table.js +14179 -1019
  295. package/lib/table/src/use/cell-view.js +47 -37
  296. package/lib/table/src/use/index.js +17 -15
  297. package/lib/table/src/util.js +236 -337
  298. package/lib/table/style/index.js +1 -1
  299. package/lib/table/style/style.css +1 -1
  300. package/lib/table/style/style.mini.css +1 -0
  301. package/lib/toolbar/index.js +42 -14
  302. package/lib/toolbar/src/toolbar.js +271 -379
  303. package/lib/toolbar/style/index.js +1 -1
  304. package/lib/toolbar/style/{style.min.css → style.mini.css} +1 -1
  305. package/lib/ui/index.js +153 -195
  306. package/lib/ui/src/anime.js +49 -29
  307. package/lib/ui/src/comp.js +23 -6
  308. package/lib/ui/src/dom.js +114 -147
  309. package/lib/ui/src/log.js +34 -18
  310. package/lib/ui/src/utils.js +57 -45
  311. package/lib/ui/src/vn.js +60 -34
  312. package/lib/ui/style/index.js +1 -1
  313. package/lib/v-x-e-table/index.js +35 -19
  314. package/lib/vxe-colgroup/index.js +35 -19
  315. package/lib/vxe-colgroup/style/index.js +1 -1
  316. package/lib/vxe-column/index.js +35 -19
  317. package/lib/vxe-column/style/index.js +1 -1
  318. package/lib/vxe-grid/index.js +35 -19
  319. package/lib/vxe-grid/style/index.js +1 -1
  320. package/{es/grid/style.min.css → lib/vxe-grid/style/style.mini.css} +1 -1
  321. package/lib/vxe-table/index.js +35 -19
  322. package/lib/vxe-table/style/index.js +1 -1
  323. package/lib/vxe-table/style/style.css +1 -1
  324. package/lib/vxe-table/style/style.mini.css +1 -0
  325. package/lib/vxe-toolbar/index.js +35 -19
  326. package/lib/vxe-toolbar/style/index.js +1 -1
  327. package/lib/vxe-toolbar/style/{style.min.css → style.mini.css} +1 -1
  328. package/lib/vxe-ui/index.js +35 -19
  329. package/lib/vxe-ui/style/index.js +1 -1
  330. package/package.json +8 -4
  331. package/packages/locale/lang/zh-HK.ts +907 -3
  332. package/packages/locale/lang/zh-MO.ts +907 -3
  333. package/packages/locale/lang/zh-TC.ts +907 -3
  334. package/packages/locale/lang/zh-TW.ts +907 -3
  335. package/packages/table/module/edit/hook.ts +2 -2
  336. package/packages/table/src/table.ts +64 -28
  337. package/packages/ui/index.ts +1 -28
  338. package/dist/style.min.css +0 -1
  339. package/es/index.css +0 -1
  340. package/es/index.min.css +0 -1
  341. package/es/style.css +0 -1
  342. package/es/style.min.css +0 -1
  343. package/es/table/style.min.css +0 -1
  344. package/es/vxe-table/style.min.css +0 -1
  345. package/es/vxe-v-x-e-table/index.js +0 -3
  346. package/lib/colgroup/index.min.js +0 -1
  347. package/lib/column/index.min.js +0 -1
  348. package/lib/components.min.js +0 -1
  349. package/lib/grid/index.min.js +0 -1
  350. package/lib/grid/src/emits.min.js +0 -1
  351. package/lib/grid/src/grid.min.js +0 -1
  352. package/lib/grid/src/props.min.js +0 -1
  353. package/lib/index.css +0 -1
  354. package/lib/index.min.css +0 -1
  355. package/lib/locale/lang/ar-EG.d.ts +0 -2
  356. package/lib/locale/lang/ar-EG.min.js +0 -1
  357. package/lib/locale/lang/de-DE.d.ts +0 -2
  358. package/lib/locale/lang/de-DE.min.js +0 -1
  359. package/lib/locale/lang/en-US.d.ts +0 -2
  360. package/lib/locale/lang/en-US.min.js +0 -1
  361. package/lib/locale/lang/es-ES.d.ts +0 -2
  362. package/lib/locale/lang/es-ES.min.js +0 -1
  363. package/lib/locale/lang/fr-FR.d.ts +0 -2
  364. package/lib/locale/lang/fr-FR.min.js +0 -1
  365. package/lib/locale/lang/hu-HU.d.ts +0 -2
  366. package/lib/locale/lang/hu-HU.min.js +0 -1
  367. package/lib/locale/lang/hy-AM.d.ts +0 -2
  368. package/lib/locale/lang/hy-AM.min.js +0 -1
  369. package/lib/locale/lang/id-ID.d.ts +0 -2
  370. package/lib/locale/lang/id-ID.min.js +0 -1
  371. package/lib/locale/lang/it-IT.d.ts +0 -2
  372. package/lib/locale/lang/it-IT.min.js +0 -1
  373. package/lib/locale/lang/ja-JP.d.ts +0 -2
  374. package/lib/locale/lang/ja-JP.min.js +0 -1
  375. package/lib/locale/lang/ko-KR.d.ts +0 -2
  376. package/lib/locale/lang/ko-KR.min.js +0 -1
  377. package/lib/locale/lang/ms-MY.d.ts +0 -2
  378. package/lib/locale/lang/ms-MY.min.js +0 -1
  379. package/lib/locale/lang/nb-NO.d.ts +0 -2
  380. package/lib/locale/lang/nb-NO.min.js +0 -1
  381. package/lib/locale/lang/pt-BR.d.ts +0 -2
  382. package/lib/locale/lang/pt-BR.min.js +0 -1
  383. package/lib/locale/lang/ru-RU.d.ts +0 -2
  384. package/lib/locale/lang/ru-RU.min.js +0 -1
  385. package/lib/locale/lang/th-TH.d.ts +0 -2
  386. package/lib/locale/lang/th-TH.min.js +0 -1
  387. package/lib/locale/lang/ug-CN.d.ts +0 -2
  388. package/lib/locale/lang/ug-CN.min.js +0 -1
  389. package/lib/locale/lang/uk-UA.d.ts +0 -2
  390. package/lib/locale/lang/uk-UA.min.js +0 -1
  391. package/lib/locale/lang/uz-UZ.d.ts +0 -2
  392. package/lib/locale/lang/uz-UZ.min.js +0 -1
  393. package/lib/locale/lang/vi-VN.d.ts +0 -2
  394. package/lib/locale/lang/vi-VN.min.js +0 -1
  395. package/lib/locale/lang/zh-CHT.d.ts +0 -2
  396. package/lib/locale/lang/zh-CHT.min.js +0 -1
  397. package/lib/locale/lang/zh-CN.d.ts +0 -2
  398. package/lib/locale/lang/zh-CN.min.js +0 -1
  399. package/lib/locale/lang/zh-HK.d.ts +0 -2
  400. package/lib/locale/lang/zh-HK.min.js +0 -1
  401. package/lib/locale/lang/zh-MO.d.ts +0 -2
  402. package/lib/locale/lang/zh-MO.min.js +0 -1
  403. package/lib/locale/lang/zh-TC.min.js +0 -1
  404. package/lib/locale/lang/zh-TW.d.ts +0 -2
  405. package/lib/locale/lang/zh-TW.min.js +0 -1
  406. package/lib/style.min.css +0 -1
  407. package/lib/table/index.min.js +0 -1
  408. package/lib/table/module/custom/hook.min.js +0 -1
  409. package/lib/table/module/custom/panel.min.js +0 -1
  410. package/lib/table/module/edit/hook.min.js +0 -1
  411. package/lib/table/module/export/export-panel.min.js +0 -1
  412. package/lib/table/module/export/hook.min.js +0 -1
  413. package/lib/table/module/export/import-panel.min.js +0 -1
  414. package/lib/table/module/export/util.min.js +0 -1
  415. package/lib/table/module/filter/hook.min.js +0 -1
  416. package/lib/table/module/filter/panel.min.js +0 -1
  417. package/lib/table/module/keyboard/hook.min.js +0 -1
  418. package/lib/table/module/menu/hook.min.js +0 -1
  419. package/lib/table/module/menu/panel.min.js +0 -1
  420. package/lib/table/module/validator/hook.min.js +0 -1
  421. package/lib/table/render/index.min.js +0 -1
  422. package/lib/table/src/body.min.js +0 -1
  423. package/lib/table/src/cell.min.js +0 -1
  424. package/lib/table/src/column.min.js +0 -1
  425. package/lib/table/src/columnInfo.min.js +0 -1
  426. package/lib/table/src/emits.min.js +0 -1
  427. package/lib/table/src/footer.min.js +0 -1
  428. package/lib/table/src/group.min.js +0 -1
  429. package/lib/table/src/header.min.js +0 -1
  430. package/lib/table/src/props.min.js +0 -1
  431. package/lib/table/src/store.min.js +0 -1
  432. package/lib/table/src/table.min.js +0 -1
  433. package/lib/table/src/use/cell-view.min.js +0 -1
  434. package/lib/table/src/use/index.min.js +0 -1
  435. package/lib/table/src/util.min.js +0 -1
  436. package/lib/table/style/style.min.css +0 -1
  437. package/lib/toolbar/index.min.js +0 -1
  438. package/lib/toolbar/src/toolbar.min.js +0 -1
  439. package/lib/ui/index.min.js +0 -1
  440. package/lib/ui/src/anime.min.js +0 -1
  441. package/lib/ui/src/comp.min.js +0 -1
  442. package/lib/ui/src/dom.min.js +0 -1
  443. package/lib/ui/src/log.min.js +0 -1
  444. package/lib/ui/src/utils.min.js +0 -1
  445. package/lib/ui/src/vn.min.js +0 -1
  446. package/lib/ui/style/style.min.css +0 -0
  447. package/lib/v-x-e-table/index.min.js +0 -1
  448. package/lib/v-x-e-table/style/index.js +0 -1
  449. package/lib/v-x-e-table/style/style.css +0 -0
  450. package/lib/v-x-e-table/style/style.min.css +0 -0
  451. package/lib/vxe-colgroup/index.min.js +0 -1
  452. package/lib/vxe-colgroup/style/style.min.css +0 -0
  453. package/lib/vxe-column/index.min.js +0 -1
  454. package/lib/vxe-column/style/style.min.css +0 -0
  455. package/lib/vxe-grid/index.min.js +0 -1
  456. package/lib/vxe-table/index.min.js +0 -1
  457. package/lib/vxe-table/style/style.min.css +0 -1
  458. package/lib/vxe-toolbar/index.min.js +0 -1
  459. package/lib/vxe-ui/index.min.js +0 -1
  460. package/lib/vxe-ui/style/style.min.css +0 -0
  461. package/lib/vxe-v-x-e-table/index.js +0 -21
  462. package/lib/vxe-v-x-e-table/index.min.js +0 -1
  463. package/lib/vxe-v-x-e-table/style/index.js +0 -1
  464. package/lib/vxe-v-x-e-table/style/style.css +0 -0
  465. package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
  466. /package/{es/iconfont.1792740941484.ttf → dist/iconfont.1792977622800.ttf} +0 -0
  467. /package/{es/iconfont.1792740941484.woff → dist/iconfont.1792977622800.woff} +0 -0
  468. /package/{es/iconfont.1792740941484.woff2 → dist/iconfont.1792977622800.woff2} +0 -0
  469. /package/es/colgroup/{style.min.css → style.mini.css} +0 -0
  470. /package/es/column/{style.min.css → style.mini.css} +0 -0
  471. /package/{lib/iconfont.1792740941484.ttf → es/iconfont.1792977622800.ttf} +0 -0
  472. /package/{lib/iconfont.1792740941484.woff → es/iconfont.1792977622800.woff} +0 -0
  473. /package/{lib/iconfont.1792740941484.woff2 → es/iconfont.1792977622800.woff2} +0 -0
  474. /package/es/ui/{style.min.css → style.mini.css} +0 -0
  475. /package/es/{v-x-e-table/style.css → vxe-colgroup/style.mini.css} +0 -0
  476. /package/es/{v-x-e-table/style.min.css → vxe-column/style.mini.css} +0 -0
  477. /package/es/{vxe-colgroup/style.min.css → vxe-ui/style.mini.css} +0 -0
  478. /package/{es/vxe-column/style.min.css → lib/colgroup/style/style.mini.css} +0 -0
  479. /package/{es/vxe-ui/style.min.css → lib/column/style/style.mini.css} +0 -0
  480. /package/{es/vxe-v-x-e-table/style.css → lib/ui/style/style.mini.css} +0 -0
  481. /package/{es/vxe-v-x-e-table/style.min.css → lib/vxe-colgroup/style/style.mini.css} +0 -0
  482. /package/lib/{colgroup/style/style.min.css → vxe-column/style/style.mini.css} +0 -0
  483. /package/lib/{column/style/style.min.css → vxe-ui/style/style.mini.css} +0 -0
@@ -1,26 +1,46 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var panel_exports = {};
30
+ __export(panel_exports, {
31
+ createInternalData: () => createInternalData,
32
+ default: () => panel_default
5
33
  });
6
- exports.createInternalData = createInternalData;
7
- exports.default = void 0;
8
- var _vue = require("vue");
9
- var _comp = require("../../../ui/src/comp");
10
- var _ui = require("../../../ui");
11
- var _utils = require("../../../ui/src/utils");
12
- var _dom = require("../../../ui/src/dom");
13
- var _log = require("../../../ui/src/log");
14
- var _xeUtils = _interopRequireDefault(require("xe-utils"));
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
- const {
17
- errLog
18
- } = (0, _log.createComponentLog)('table');
19
- const {
20
- getI18n,
21
- getIcon,
22
- renderEmptyElement
23
- } = _ui.VxeUI;
34
+ module.exports = __toCommonJS(panel_exports);
35
+ var import_vue = require("vue");
36
+ var import_comp = require("../../../ui/src/comp");
37
+ var import_ui = require("../../../ui");
38
+ var import_utils = require("../../../ui/src/utils");
39
+ var import_dom = require("../../../ui/src/dom");
40
+ var import_log = require("../../../ui/src/log");
41
+ var import_xe_utils = __toESM(require("xe-utils"));
42
+ const { errLog } = (0, import_log.createComponentLog)("table");
43
+ const { getI18n, getIcon, renderEmptyElement } = import_ui.VxeUI;
24
44
  function createInternalData() {
25
45
  return {
26
46
  // teleportTo: undefined,
@@ -32,8 +52,8 @@ function createInternalData() {
32
52
  // customDragTime: null
33
53
  };
34
54
  }
35
- var _default = exports.default = (0, _comp.defineVxeComponent)({
36
- name: 'TableCustomPanel',
55
+ var panel_default = (0, import_comp.defineVxeComponent)({
56
+ name: "TableCustomPanel",
37
57
  props: {
38
58
  customStore: {
39
59
  type: Object,
@@ -41,38 +61,25 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
41
61
  }
42
62
  },
43
63
  setup(props, context) {
44
- const xID = _xeUtils.default.uniqueId();
45
- const VxeUIModalComponent = _ui.VxeUI.getComponent('VxeModal');
46
- const VxeUIDrawerComponent = _ui.VxeUI.getComponent('VxeDrawer');
47
- const VxeUIButtonComponent = _ui.VxeUI.getComponent('VxeButton');
48
- const VxeUINumberInputComponent = _ui.VxeUI.getComponent('VxeNumberInput');
49
- const VxeUIRadioGroupComponent = _ui.VxeUI.getComponent('VxeRadioGroup');
50
- const $xeTable = (0, _vue.inject)('$xeTable', {});
51
- const {
52
- props: tableProps,
53
- reactData: tableReactData,
54
- internalData: tableInternalData
55
- } = $xeTable;
56
- const {
57
- computeSize,
58
- computeCustomOpts,
59
- computeMouseOpts,
60
- computeColumnDragOpts,
61
- computeColumnOpts,
62
- computeIsMaxFixedColumn,
63
- computeResizableOpts,
64
- computeAggregateOpts
65
- } = $xeTable.getComputeMaps();
66
- const refElem = (0, _vue.ref)();
67
- const refBodyWrapperElem = (0, _vue.ref)();
68
- const refCustomBodyElem = (0, _vue.ref)();
69
- const refDragLineElem = (0, _vue.ref)();
70
- const refDragTipElem = (0, _vue.ref)();
71
- const customPanelReactData = (0, _vue.reactive)({
64
+ const xID = import_xe_utils.default.uniqueId();
65
+ const VxeUIModalComponent = import_ui.VxeUI.getComponent("VxeModal");
66
+ const VxeUIDrawerComponent = import_ui.VxeUI.getComponent("VxeDrawer");
67
+ const VxeUIButtonComponent = import_ui.VxeUI.getComponent("VxeButton");
68
+ const VxeUINumberInputComponent = import_ui.VxeUI.getComponent("VxeNumberInput");
69
+ const VxeUIRadioGroupComponent = import_ui.VxeUI.getComponent("VxeRadioGroup");
70
+ const $xeTable = (0, import_vue.inject)("$xeTable", {});
71
+ const { props: tableProps, reactData: tableReactData, internalData: tableInternalData } = $xeTable;
72
+ const { computeSize, computeCustomOpts, computeMouseOpts, computeColumnDragOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts, computeAggregateOpts } = $xeTable.getComputeMaps();
73
+ const refElem = (0, import_vue.ref)();
74
+ const refBodyWrapperElem = (0, import_vue.ref)();
75
+ const refCustomBodyElem = (0, import_vue.ref)();
76
+ const refDragLineElem = (0, import_vue.ref)();
77
+ const refDragTipElem = (0, import_vue.ref)();
78
+ const customPanelReactData = (0, import_vue.reactive)({
72
79
  dragCol: null,
73
80
  dragGroupField: null,
74
81
  dragAggFnCol: null,
75
- dragTipText: ''
82
+ dragTipText: ""
76
83
  });
77
84
  let customPanelInternalData = createInternalData();
78
85
  const refMaps = {
@@ -83,17 +90,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
83
90
  refDragTipElem
84
91
  };
85
92
  const computeMaps = {};
86
- const handleWrapperMouseenterEvent = evnt => {
87
- const {
88
- customStore
89
- } = props;
93
+ const handleWrapperMouseenterEvent = (evnt) => {
94
+ const { customStore } = props;
90
95
  customStore.activeWrapper = true;
91
96
  $xeTable.customOpenEvent(evnt);
92
97
  };
93
- const handleWrapperMouseleaveEvent = evnt => {
94
- const {
95
- customStore
96
- } = props;
98
+ const handleWrapperMouseleaveEvent = (evnt) => {
99
+ const { customStore } = props;
97
100
  customStore.activeWrapper = false;
98
101
  setTimeout(() => {
99
102
  if (!customStore.activeBtn && !customStore.activeWrapper) {
@@ -101,52 +104,44 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
101
104
  }
102
105
  }, 300);
103
106
  };
104
- const confirmCustomEvent = ({
105
- $event
106
- }) => {
107
+ const confirmCustomEvent = ({ $event }) => {
107
108
  tableReactData.isCustomStatus = true;
108
109
  $xeTable.saveCustom();
109
110
  $xeTable.closeCustom();
110
- $xeTable.emitCustomEvent('confirm', $event);
111
- $xeTable.dispatchEvent('custom-confirm', {}, $event);
112
- $xeTable.emitCustomEvent('close', $event);
113
- $xeTable.dispatchEvent('custom-close', {}, $event);
111
+ $xeTable.emitCustomEvent("confirm", $event);
112
+ $xeTable.dispatchEvent("custom-confirm", {}, $event);
113
+ $xeTable.emitCustomEvent("close", $event);
114
+ $xeTable.dispatchEvent("custom-close", {}, $event);
114
115
  };
115
- const cancelCloseEvent = ({
116
- $event
117
- }) => {
116
+ const cancelCloseEvent = ({ $event }) => {
118
117
  $xeTable.closeCustom();
119
- $xeTable.emitCustomEvent('close', $event);
120
- $xeTable.dispatchEvent('custom-close', {}, $event);
118
+ $xeTable.emitCustomEvent("close", $event);
119
+ $xeTable.dispatchEvent("custom-close", {}, $event);
121
120
  };
122
- const cancelCustomEvent = ({
123
- $event
124
- }) => {
121
+ const cancelCustomEvent = ({ $event }) => {
125
122
  $xeTable.cancelCustom();
126
123
  $xeTable.closeCustom();
127
- $xeTable.emitCustomEvent('cancel', $event);
128
- $xeTable.dispatchEvent('custom-cancel', {}, $event);
129
- $xeTable.emitCustomEvent('close', $event);
130
- $xeTable.dispatchEvent('custom-close', {}, $event);
124
+ $xeTable.emitCustomEvent("cancel", $event);
125
+ $xeTable.dispatchEvent("custom-cancel", {}, $event);
126
+ $xeTable.emitCustomEvent("close", $event);
127
+ $xeTable.dispatchEvent("custom-close", {}, $event);
131
128
  };
132
- const handleResetCustomEvent = evnt => {
129
+ const handleResetCustomEvent = (evnt) => {
133
130
  $xeTable.resetCustom(true);
134
131
  $xeTable.closeCustom();
135
- $xeTable.emitCustomEvent('reset', evnt);
136
- $xeTable.dispatchEvent('custom-reset', {}, evnt);
137
- $xeTable.emitCustomEvent('close', evnt);
138
- $xeTable.dispatchEvent('custom-close', {}, evnt);
132
+ $xeTable.emitCustomEvent("reset", evnt);
133
+ $xeTable.dispatchEvent("custom-reset", {}, evnt);
134
+ $xeTable.emitCustomEvent("close", evnt);
135
+ $xeTable.dispatchEvent("custom-close", {}, evnt);
139
136
  };
140
- const resetCustomEvent = ({
141
- $event
142
- }) => {
143
- if (_ui.VxeUI.modal) {
144
- _ui.VxeUI.modal.confirm({
145
- content: getI18n('vxe.custom.cstmConfirmRestore'),
146
- className: 'vxe-table--ignore-clear',
137
+ const resetCustomEvent = ({ $event }) => {
138
+ if (import_ui.VxeUI.modal) {
139
+ import_ui.VxeUI.modal.confirm({
140
+ content: getI18n("vxe.custom.cstmConfirmRestore"),
141
+ className: "vxe-table--ignore-clear",
147
142
  escClosable: true
148
- }).then(type => {
149
- if (type === 'confirm') {
143
+ }).then((type) => {
144
+ if (type === "confirm") {
150
145
  handleResetCustomEvent($event);
151
146
  }
152
147
  });
@@ -154,18 +149,14 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
154
149
  handleResetCustomEvent($event);
155
150
  }
156
151
  };
157
- const handleOptionCheck = column => {
158
- const {
159
- customColumnList
160
- } = tableReactData;
161
- const matchObj = _xeUtils.default.findTree(customColumnList, item => item === column);
152
+ const handleOptionCheck = (column) => {
153
+ const { customColumnList } = tableReactData;
154
+ const matchObj = import_xe_utils.default.findTree(customColumnList, (item) => item === column);
162
155
  if (matchObj && matchObj.parent) {
163
- const {
164
- parent: parentItem
165
- } = matchObj;
156
+ const { parent: parentItem } = matchObj;
166
157
  if (parentItem.children && parentItem.children.length) {
167
- parentItem.renderVisible = parentItem.children.every(column => column.renderVisible);
168
- parentItem.halfVisible = !parentItem.renderVisible && parentItem.children.some(column => column.renderVisible || column.halfVisible);
158
+ parentItem.renderVisible = parentItem.children.every((column2) => column2.renderVisible);
159
+ parentItem.halfVisible = !parentItem.renderVisible && parentItem.children.some((column2) => column2.renderVisible || column2.halfVisible);
169
160
  handleOptionCheck(parentItem);
170
161
  }
171
162
  }
@@ -174,28 +165,25 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
174
165
  const isChecked = !column.renderVisible;
175
166
  const customOpts = computeCustomOpts.value;
176
167
  if (customOpts.immediate) {
177
- _xeUtils.default.eachTree([column], item => {
168
+ import_xe_utils.default.eachTree([column], (item) => {
178
169
  item.visible = isChecked;
179
170
  item.renderVisible = isChecked;
180
171
  item.halfVisible = false;
181
172
  });
182
173
  tableReactData.isCustomStatus = true;
183
174
  $xeTable.handleCustom();
184
- $xeTable.saveCustomStore('update:visible');
175
+ $xeTable.saveCustomStore("update:visible");
185
176
  } else {
186
- _xeUtils.default.eachTree([column], item => {
177
+ import_xe_utils.default.eachTree([column], (item) => {
187
178
  item.renderVisible = isChecked;
188
179
  item.halfVisible = false;
189
180
  });
190
181
  }
191
182
  handleOptionCheck(column);
192
183
  $xeTable.checkCustomStatus();
193
- $xeTable.dispatchEvent('custom-visible-change', {
194
- column,
195
- checked: isChecked
196
- }, evnt);
184
+ $xeTable.dispatchEvent("custom-visible-change", { column, checked: isChecked }, evnt);
197
185
  };
198
- const changeColumnWidth = column => {
186
+ const changeColumnWidth = (column) => {
199
187
  const customOpts = computeCustomOpts.value;
200
188
  if (customOpts.immediate) {
201
189
  if (column.renderResizeWidth !== column.renderWidth) {
@@ -203,7 +191,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
203
191
  column.renderWidth = column.renderResizeWidth;
204
192
  tableReactData.isCustomStatus = true;
205
193
  $xeTable.handleCustom();
206
- $xeTable.saveCustomStore('update:width');
194
+ $xeTable.saveCustomStore("update:width");
207
195
  }
208
196
  }
209
197
  };
@@ -213,15 +201,15 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
213
201
  let targetFixed = null;
214
202
  if (customOpts.immediate) {
215
203
  if (column.renderFixed === colFixed) {
216
- targetFixed = '';
217
- _xeUtils.default.eachTree([column], col => {
218
- col.fixed = '';
219
- col.renderFixed = '';
204
+ targetFixed = "";
205
+ import_xe_utils.default.eachTree([column], (col) => {
206
+ col.fixed = "";
207
+ col.renderFixed = "";
220
208
  });
221
209
  } else {
222
210
  if (!isMaxFixedColumn || column.renderFixed) {
223
211
  targetFixed = colFixed;
224
- _xeUtils.default.eachTree([column], col => {
212
+ import_xe_utils.default.eachTree([column], (col) => {
225
213
  col.fixed = colFixed;
226
214
  col.renderFixed = colFixed;
227
215
  });
@@ -229,27 +217,24 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
229
217
  }
230
218
  tableReactData.isCustomStatus = true;
231
219
  $xeTable.handleCustom();
232
- $xeTable.saveCustomStore('update:fixed');
220
+ $xeTable.saveCustomStore("update:fixed");
233
221
  } else {
234
222
  if (column.renderFixed === colFixed) {
235
- targetFixed = '';
236
- _xeUtils.default.eachTree([column], col => {
237
- col.renderFixed = '';
223
+ targetFixed = "";
224
+ import_xe_utils.default.eachTree([column], (col) => {
225
+ col.renderFixed = "";
238
226
  });
239
227
  } else {
240
228
  if (!isMaxFixedColumn || column.renderFixed) {
241
229
  targetFixed = colFixed;
242
- _xeUtils.default.eachTree([column], col => {
230
+ import_xe_utils.default.eachTree([column], (col) => {
243
231
  col.renderFixed = colFixed;
244
232
  });
245
233
  }
246
234
  }
247
235
  }
248
236
  if (targetFixed !== null) {
249
- $xeTable.dispatchEvent('custom-fixed-change', {
250
- column,
251
- fixed: targetFixed
252
- }, evnt);
237
+ $xeTable.dispatchEvent("custom-fixed-change", { column, fixed: targetFixed }, evnt);
253
238
  }
254
239
  };
255
240
  const changeAlignOption = (column, targetAlign, colProperty, renderProperty, eName, evnt) => {
@@ -263,20 +248,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
263
248
  } else {
264
249
  column[renderProperty] = targetAlign;
265
250
  }
266
- $xeTable.dispatchEvent(eName, {
267
- column,
268
- [colProperty]: targetAlign
269
- }, evnt);
251
+ $xeTable.dispatchEvent(eName, { column, [colProperty]: targetAlign }, evnt);
270
252
  };
271
- const allOptionEvent = evnt => {
272
- const {
273
- customStore
274
- } = tableReactData;
253
+ const allOptionEvent = (evnt) => {
254
+ const { customStore } = tableReactData;
275
255
  const isAll = !customStore.isAll;
276
256
  $xeTable.toggleCustomAllCheckbox();
277
- $xeTable.dispatchEvent('custom-visible-all', {
278
- checked: isAll
279
- }, evnt);
257
+ $xeTable.dispatchEvent("custom-visible-all", { checked: isAll }, evnt);
280
258
  };
281
259
  const showDropTip = (evnt, optEl, showLine, dragPos) => {
282
260
  const bodyWrapperElem = refBodyWrapperElem.value;
@@ -287,9 +265,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
287
265
  if (!customBodyElem) {
288
266
  return;
289
267
  }
290
- const {
291
- prevDragToChild
292
- } = customPanelInternalData;
268
+ const { prevDragToChild } = customPanelInternalData;
293
269
  const bodyWrapperRect = bodyWrapperElem.getBoundingClientRect();
294
270
  const customBodyRect = customBodyElem.getBoundingClientRect();
295
271
  const dragLineEl = refDragLineElem.value;
@@ -297,47 +273,43 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
297
273
  if (dragLineEl) {
298
274
  if (showLine) {
299
275
  const optRect = optEl.getBoundingClientRect();
300
- dragLineEl.style.display = 'block';
276
+ dragLineEl.style.display = "block";
301
277
  dragLineEl.style.left = `${Math.max(0, customBodyRect.x - bodyWrapperRect.x)}px`;
302
278
  dragLineEl.style.top = `${Math.max(1, optRect.y + bodyWrapperElem.scrollTop - bodyWrapperRect.y)}px`;
303
279
  dragLineEl.style.height = `${optRect.height}px`;
304
280
  dragLineEl.style.width = `${optRect.width}px`;
305
- dragLineEl.setAttribute('drag-pos', dragPos);
306
- dragLineEl.setAttribute('drag-to-child', prevDragToChild ? 'y' : 'n');
281
+ dragLineEl.setAttribute("drag-pos", dragPos);
282
+ dragLineEl.setAttribute("drag-to-child", prevDragToChild ? "y" : "n");
307
283
  } else {
308
- dragLineEl.style.display = '';
284
+ dragLineEl.style.display = "";
309
285
  }
310
286
  }
311
287
  } else {
312
288
  if (dragLineEl) {
313
- dragLineEl.style.display = 'node';
289
+ dragLineEl.style.display = "node";
314
290
  }
315
291
  }
316
292
  const dragTipEl = refDragTipElem.value;
317
293
  if (dragTipEl) {
318
- dragTipEl.style.display = 'block';
294
+ dragTipEl.style.display = "block";
319
295
  dragTipEl.style.top = `${Math.min(bodyWrapperElem.clientHeight + bodyWrapperElem.scrollTop - dragTipEl.clientHeight, evnt.clientY + bodyWrapperElem.scrollTop - bodyWrapperRect.y)}px`;
320
296
  dragTipEl.style.left = `${Math.min(bodyWrapperElem.clientWidth + bodyWrapperElem.scrollLeft - dragTipEl.clientWidth, evnt.clientX + bodyWrapperElem.scrollLeft - bodyWrapperRect.x)}px`;
321
- dragTipEl.setAttribute('drag-status', showLine ? prevDragToChild ? 'sub' : 'normal' : 'disabled');
297
+ dragTipEl.setAttribute("drag-status", showLine ? prevDragToChild ? "sub" : "normal" : "disabled");
322
298
  }
323
299
  };
324
300
  const updateColDropTipContent = () => {
325
- const {
326
- dragCol
327
- } = customPanelReactData;
301
+ const { dragCol } = customPanelReactData;
328
302
  const columnDragOpts = computeColumnDragOpts.value;
329
- const {
330
- tooltipMethod
331
- } = columnDragOpts;
332
- let tipContent = '';
303
+ const { tooltipMethod } = columnDragOpts;
304
+ let tipContent = "";
333
305
  if (tooltipMethod) {
334
306
  const dtParams = {
335
307
  $table: $xeTable,
336
308
  column: dragCol
337
309
  };
338
- tipContent = `${tooltipMethod(dtParams) || ''}`;
310
+ tipContent = `${tooltipMethod(dtParams) || ""}`;
339
311
  } else {
340
- tipContent = getI18n('vxe.custom.cstmDragTarget', [dragCol && dragCol.type !== 'html' ? dragCol.getTitle() : '']);
312
+ tipContent = getI18n("vxe.custom.cstmDragTarget", [dragCol && dragCol.type !== "html" ? dragCol.getTitle() : ""]);
341
313
  }
342
314
  customPanelReactData.dragTipText = tipContent;
343
315
  };
@@ -345,27 +317,27 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
345
317
  const dragTipEl = refDragTipElem.value;
346
318
  const dragLineEl = refDragLineElem.value;
347
319
  if (dragTipEl) {
348
- dragTipEl.style.display = '';
320
+ dragTipEl.style.display = "";
349
321
  }
350
322
  if (dragLineEl) {
351
- dragLineEl.style.display = '';
323
+ dragLineEl.style.display = "";
352
324
  }
353
325
  };
354
- const sortMousedownEvent = evnt => {
326
+ const sortMousedownEvent = (evnt) => {
355
327
  const btnEl = evnt.currentTarget;
356
328
  const cellEl = btnEl.parentElement;
357
329
  const tdEl = cellEl.parentElement;
358
330
  const trEl = tdEl.parentElement;
359
- const colid = trEl.getAttribute('colid');
331
+ const colid = trEl.getAttribute("colid");
360
332
  const column = $xeTable.getColumnById(colid);
361
333
  trEl.draggable = true;
362
334
  customPanelReactData.dragCol = column;
363
335
  customPanelReactData.dragGroupField = null;
364
336
  customPanelReactData.dragAggFnCol = null;
365
337
  updateColDropTipContent();
366
- (0, _dom.addClass)(trEl, 'active--drag-origin');
338
+ (0, import_dom.addClass)(trEl, "active--drag-origin");
367
339
  };
368
- const sortMouseupEvent = evnt => {
340
+ const sortMouseupEvent = (evnt) => {
369
341
  const btnEl = evnt.currentTarget;
370
342
  const cellEl = btnEl.parentElement;
371
343
  const tdEl = cellEl.parentElement;
@@ -375,14 +347,12 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
375
347
  customPanelReactData.dragCol = null;
376
348
  customPanelReactData.dragGroupField = null;
377
349
  customPanelReactData.dragAggFnCol = null;
378
- (0, _dom.removeClass)(trEl, 'active--drag-origin');
350
+ (0, import_dom.removeClass)(trEl, "active--drag-origin");
379
351
  };
380
- const sortDragstartEvent = evnt => {
381
- const {
382
- customDragTime
383
- } = customPanelInternalData;
352
+ const sortDragstartEvent = (evnt) => {
353
+ const { customDragTime } = customPanelInternalData;
384
354
  if (evnt.dataTransfer) {
385
- evnt.dataTransfer.setDragImage((0, _dom.getTpImg)(), 0, 0);
355
+ evnt.dataTransfer.setDragImage((0, import_dom.getTpImg)(), 0, 0);
386
356
  }
387
357
  if (customDragTime) {
388
358
  clearTimeout(customDragTime);
@@ -391,75 +361,51 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
391
361
  customPanelInternalData.prevDragGroupField = null;
392
362
  customPanelInternalData.prevDragAggFnColid = null;
393
363
  };
394
- const sortDragendEvent = evnt => {
395
- const {
396
- mouseConfig
397
- } = tableProps;
398
- const {
399
- customColumnList
400
- } = tableReactData;
401
- const {
402
- collectColumn
403
- } = tableInternalData;
364
+ const sortDragendEvent = (evnt) => {
365
+ const { mouseConfig } = tableProps;
366
+ const { customColumnList } = tableReactData;
367
+ const { collectColumn } = tableInternalData;
404
368
  const customOpts = computeCustomOpts.value;
405
369
  const mouseOpts = computeMouseOpts.value;
406
- const {
407
- immediate
408
- } = customOpts;
370
+ const { immediate } = customOpts;
409
371
  const trEl = evnt.currentTarget;
410
372
  const columnDragOpts = computeColumnDragOpts.value;
411
- const {
412
- isCrossDrag,
413
- isPeerDrag,
414
- isSelfToChildDrag,
415
- isToChildDrag,
416
- dragEndMethod
417
- } = columnDragOpts;
418
- const {
419
- dragCol
420
- } = customPanelReactData;
421
- const {
422
- prevDragCol,
423
- prevDragGroupField,
424
- prevDragAggFnColid,
425
- prevDragPos,
426
- prevDragToChild
427
- } = customPanelInternalData;
428
- const dragOffsetIndex = prevDragPos === 'bottom' ? 1 : 0;
373
+ const { isCrossDrag, isPeerDrag, isSelfToChildDrag, isToChildDrag, dragEndMethod } = columnDragOpts;
374
+ const { dragCol } = customPanelReactData;
375
+ const { prevDragCol, prevDragGroupField, prevDragAggFnColid, prevDragPos, prevDragToChild } = customPanelInternalData;
376
+ const dragOffsetIndex = prevDragPos === "bottom" ? 1 : 0;
429
377
  if (prevDragGroupField || prevDragAggFnColid) {
430
378
  if ($xeTable.handlePivotTableAggPanelDragendEvent) {
431
379
  $xeTable.handlePivotTableAggPanelDragendEvent(evnt);
432
380
  }
433
381
  } else if (prevDragCol && dragCol) {
434
- // 判断是否有拖动
435
382
  if (prevDragCol !== dragCol) {
436
383
  const dragColumn = dragCol;
437
384
  const newColumn = prevDragCol;
438
- Promise.resolve(dragEndMethod ? dragEndMethod({
439
- oldColumn: dragColumn,
440
- newColumn,
441
- dragColumn,
442
- dragPos: prevDragPos,
443
- dragToChild: !!prevDragToChild,
444
- offsetIndex: dragOffsetIndex
445
- }) : true).then(status => {
385
+ Promise.resolve(
386
+ dragEndMethod ? dragEndMethod({
387
+ oldColumn: dragColumn,
388
+ newColumn,
389
+ dragColumn,
390
+ dragPos: prevDragPos,
391
+ dragToChild: !!prevDragToChild,
392
+ offsetIndex: dragOffsetIndex
393
+ }) : true
394
+ ).then((status) => {
446
395
  if (!status) {
447
396
  return;
448
397
  }
449
398
  let oafIndex = -1;
450
399
  let nafIndex = -1;
451
400
  const oldAllMaps = {};
452
- _xeUtils.default.eachTree([dragColumn], column => {
401
+ import_xe_utils.default.eachTree([dragColumn], (column) => {
453
402
  oldAllMaps[column.id] = column;
454
403
  });
455
404
  let isSelfToChildStatus = false;
456
- // 只有实时拖拽支持跨层级
457
405
  if (immediate) {
458
406
  if (dragColumn.parentId && newColumn.parentId) {
459
- // 子到子
460
407
  if (isPeerDrag && !isCrossDrag) {
461
408
  if (dragColumn.parentId !== newColumn.parentId) {
462
- // 非同级
463
409
  return;
464
410
  }
465
411
  } else {
@@ -469,10 +415,10 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
469
415
  if (oldAllMaps[newColumn.id]) {
470
416
  isSelfToChildStatus = true;
471
417
  if (!(isCrossDrag && isSelfToChildDrag)) {
472
- if (_ui.VxeUI.modal) {
473
- _ui.VxeUI.modal.message({
474
- status: 'error',
475
- content: getI18n('vxe.error.treeDragChild')
418
+ if (import_ui.VxeUI.modal) {
419
+ import_ui.VxeUI.modal.message({
420
+ status: "error",
421
+ content: getI18n("vxe.error.treeDragChild")
476
422
  });
477
423
  }
478
424
  return;
@@ -480,40 +426,33 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
480
426
  }
481
427
  }
482
428
  } else if (dragColumn.parentId) {
483
- // 子到根
484
429
  if (!isCrossDrag) {
485
430
  return;
486
431
  }
487
432
  } else if (newColumn.parentId) {
488
- // 根到子
489
433
  if (!isCrossDrag) {
490
434
  return;
491
435
  }
492
436
  if (oldAllMaps[newColumn.id]) {
493
437
  isSelfToChildStatus = true;
494
438
  if (!(isCrossDrag && isSelfToChildDrag)) {
495
- if (_ui.VxeUI.modal) {
496
- _ui.VxeUI.modal.message({
497
- status: 'error',
498
- content: getI18n('vxe.error.treeDragChild')
439
+ if (import_ui.VxeUI.modal) {
440
+ import_ui.VxeUI.modal.message({
441
+ status: "error",
442
+ content: getI18n("vxe.error.treeDragChild")
499
443
  });
500
444
  }
501
445
  return;
502
446
  }
503
447
  }
504
448
  } else {
505
- // 根到根
506
449
  }
507
- const oldewMatchRest = _xeUtils.default.findTree(collectColumn, item => item.id === dragColumn.id);
508
- // 改变层级
509
- if (isSelfToChildStatus && isCrossDrag && isSelfToChildDrag) {
450
+ const oldewMatchRest = import_xe_utils.default.findTree(collectColumn, (item) => item.id === dragColumn.id);
451
+ if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
510
452
  if (oldewMatchRest) {
511
- const {
512
- items: oCols,
513
- index: oIndex
514
- } = oldewMatchRest;
453
+ const { items: oCols, index: oIndex } = oldewMatchRest;
515
454
  const childList = dragColumn.children || [];
516
- childList.forEach(column => {
455
+ childList.forEach((column) => {
517
456
  column.parentId = dragColumn.parentId;
518
457
  });
519
458
  oCols.splice(oIndex, 1, ...childList);
@@ -521,25 +460,16 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
521
460
  }
522
461
  } else {
523
462
  if (oldewMatchRest) {
524
- const {
525
- items: oCols,
526
- index: oIndex,
527
- parent: oParent
528
- } = oldewMatchRest;
463
+ const { items: oCols, index: oIndex, parent: oParent } = oldewMatchRest;
529
464
  oCols.splice(oIndex, 1);
530
465
  if (!oParent) {
531
466
  oafIndex = oIndex;
532
467
  }
533
468
  }
534
469
  }
535
- const newMatchRest = _xeUtils.default.findTree(collectColumn, item => item.id === newColumn.id);
470
+ const newMatchRest = import_xe_utils.default.findTree(collectColumn, (item) => item.id === newColumn.id);
536
471
  if (newMatchRest) {
537
- const {
538
- items: nCols,
539
- index: nIndex,
540
- parent: nParent
541
- } = newMatchRest;
542
- // 转子级
472
+ const { items: nCols, index: nIndex, parent: nParent } = newMatchRest;
543
473
  if (isCrossDrag && isToChildDrag && prevDragToChild) {
544
474
  dragColumn.parentId = newColumn.id;
545
475
  newColumn.children = (newColumn.children || []).concat([dragColumn]);
@@ -551,19 +481,19 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
551
481
  nafIndex = nIndex;
552
482
  }
553
483
  }
554
- _xeUtils.default.eachTree(collectColumn, (column, index, items, path, parentItem) => {
484
+ import_xe_utils.default.eachTree(collectColumn, (column, index, items, path, parentItem) => {
555
485
  if (!parentItem) {
556
486
  const sortIndex = index + 1;
557
487
  column.renderSortNumber = sortIndex;
558
488
  }
559
489
  });
560
490
  } else {
561
- oafIndex = _xeUtils.default.findIndexOf(customColumnList, item => item.id === dragColumn.id);
491
+ oafIndex = import_xe_utils.default.findIndexOf(customColumnList, (item) => item.id === dragColumn.id);
562
492
  customColumnList.splice(oafIndex, 1);
563
- nafIndex = _xeUtils.default.findIndexOf(customColumnList, item => item.id === newColumn.id);
493
+ nafIndex = import_xe_utils.default.findIndexOf(customColumnList, (item) => item.id === newColumn.id);
564
494
  customColumnList.splice(nafIndex + dragOffsetIndex, 0, dragColumn);
565
495
  }
566
- if ((0, _utils.hasEnableConf)(mouseConfig, mouseOpts)) {
496
+ if ((0, import_utils.hasEnableConf)(mouseConfig, mouseOpts)) {
567
497
  if ($xeTable.clearSelected) {
568
498
  $xeTable.clearSelected();
569
499
  }
@@ -583,14 +513,15 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
583
513
  oldIndex: oafIndex
584
514
  }
585
515
  };
586
- $xeTable.dispatchEvent('custom-sort-change', csParams, evnt);
587
- $xeTable.dispatchEvent('column-dragend', csParams, evnt);
516
+ $xeTable.dispatchEvent("custom-sort-change", csParams, evnt);
517
+ $xeTable.dispatchEvent("column-dragend", csParams, evnt);
588
518
  if (immediate) {
589
519
  tableReactData.customColumnList = collectColumn.slice(0);
590
520
  $xeTable.handleColDragSwapColumn();
591
521
  }
592
522
  clearDragAnimateStatus();
593
- }).catch(() => {});
523
+ }).catch(() => {
524
+ });
594
525
  }
595
526
  }
596
527
  hideDropTip();
@@ -600,37 +531,26 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
600
531
  customPanelInternalData.prevDragGroupField = null;
601
532
  customPanelInternalData.prevDragAggFnColid = null;
602
533
  trEl.draggable = false;
603
- trEl.removeAttribute('drag-pos');
604
- (0, _dom.removeClass)(trEl, 'active--drag-target');
605
- (0, _dom.removeClass)(trEl, 'active--drag-origin');
534
+ trEl.removeAttribute("drag-pos");
535
+ (0, import_dom.removeClass)(trEl, "active--drag-target");
536
+ (0, import_dom.removeClass)(trEl, "active--drag-origin");
606
537
  };
607
- const sortDragoverEvent = evnt => {
538
+ const sortDragoverEvent = (evnt) => {
608
539
  const customOpts = computeCustomOpts.value;
609
- const {
610
- showSortDragButton,
611
- allowSort,
612
- immediate
613
- } = customOpts;
540
+ const { showSortDragButton, allowSort, immediate } = customOpts;
614
541
  const columnDragOpts = computeColumnDragOpts.value;
615
- const {
616
- isCrossDrag,
617
- isPeerDrag,
618
- isToChildDrag
619
- } = columnDragOpts;
542
+ const { isCrossDrag, isPeerDrag, isToChildDrag } = columnDragOpts;
620
543
  const optEl = evnt.currentTarget;
621
- const isControlKey = (0, _dom.hasControlKey)(evnt);
622
- const colid = optEl.getAttribute('colid');
544
+ const isControlKey = (0, import_dom.hasControlKey)(evnt);
545
+ const colid = optEl.getAttribute("colid");
623
546
  const column = $xeTable.getColumnById(colid);
624
- const {
625
- dragCol
626
- } = customPanelReactData;
547
+ const { dragCol } = customPanelReactData;
627
548
  customPanelInternalData.prevDragGroupField = null;
628
549
  customPanelInternalData.prevDragAggFnColid = null;
629
- // 是否移入有效列
630
550
  if (column && (isCrossDrag || isPeerDrag || column.level === 1)) {
631
551
  evnt.preventDefault();
632
552
  const offsetY = evnt.clientY - optEl.getBoundingClientRect().y;
633
- const dragPos = offsetY < optEl.clientHeight / 2 ? 'top' : 'bottom';
553
+ const dragPos = offsetY < optEl.clientHeight / 2 ? "top" : "bottom";
634
554
  if (!dragCol || !(showSortDragButton && allowSort) || dragCol && dragCol.id === column.id || !isCrossDrag && (isPeerDrag ? dragCol.parentId !== column.parentId : column.level > 1) || !immediate && column.level > 1 || !isCrossDrag && (isPeerDrag ? dragCol.parentId !== column.parentId : dragCol.level > 1) || !immediate && dragCol.level > 1) {
635
555
  showDropTip(evnt, optEl, false, dragPos);
636
556
  return;
@@ -644,23 +564,17 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
644
564
  const clearDragAnimateStatus = () => {
645
565
  customPanelInternalData.customDragTime = setTimeout(() => {
646
566
  tableReactData.isCustomDragStatus = false;
647
- customPanelInternalData.customDragTime = undefined;
567
+ customPanelInternalData.customDragTime = void 0;
648
568
  }, 350);
649
569
  };
650
570
  const sortMoveUpEvent = (evntParame, column) => {
651
- const {
652
- customColumnList
653
- } = tableReactData;
654
- const matchObj = _xeUtils.default.findTree(customColumnList, item => item === column);
571
+ const { customColumnList } = tableReactData;
572
+ const matchObj = import_xe_utils.default.findTree(customColumnList, (item) => item === column);
655
573
  if (matchObj) {
656
- const {
657
- item,
658
- items,
659
- index
660
- } = matchObj;
574
+ const { item, items, index } = matchObj;
661
575
  if (index > 0) {
662
576
  tableReactData.isCustomDragStatus = true;
663
- (0, _vue.nextTick)(() => {
577
+ (0, import_vue.nextTick)(() => {
664
578
  items.splice(index, 1);
665
579
  items.splice(index - 1, 0, item);
666
580
  clearDragAnimateStatus();
@@ -669,19 +583,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
669
583
  }
670
584
  };
671
585
  const sortMoveDnEvent = (evntParame, column) => {
672
- const {
673
- customColumnList
674
- } = tableReactData;
675
- const matchObj = _xeUtils.default.findTree(customColumnList, item => item === column);
586
+ const { customColumnList } = tableReactData;
587
+ const matchObj = import_xe_utils.default.findTree(customColumnList, (item) => item === column);
676
588
  if (matchObj) {
677
- const {
678
- item,
679
- items,
680
- index
681
- } = matchObj;
589
+ const { item, items, index } = matchObj;
682
590
  if (index < items.length - 1) {
683
591
  tableReactData.isCustomDragStatus = true;
684
- (0, _vue.nextTick)(() => {
592
+ (0, import_vue.nextTick)(() => {
685
593
  items.splice(index, 1);
686
594
  items.splice(index + 1, 0, item);
687
595
  clearDragAnimateStatus();
@@ -690,20 +598,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
690
598
  }
691
599
  };
692
600
  const sortMoveTopEvent = (evntParame, column) => {
693
- const {
694
- customColumnList
695
- } = tableReactData;
696
- const matchObj = _xeUtils.default.findTree(customColumnList, item => item === column);
601
+ const { customColumnList } = tableReactData;
602
+ const matchObj = import_xe_utils.default.findTree(customColumnList, (item) => item === column);
697
603
  if (matchObj) {
698
- const {
699
- item,
700
- items,
701
- index,
702
- parent: parentItem
703
- } = matchObj;
604
+ const { item, items, index, parent: parentItem } = matchObj;
704
605
  if (parentItem || index > 0) {
705
606
  tableReactData.isCustomDragStatus = true;
706
- (0, _vue.nextTick)(() => {
607
+ (0, import_vue.nextTick)(() => {
707
608
  item.parentId = null;
708
609
  items.splice(index, 1);
709
610
  customColumnList.unshift(item);
@@ -713,20 +614,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
713
614
  }
714
615
  };
715
616
  const sortMoveBottomEvent = (evntParame, column) => {
716
- const {
717
- customColumnList
718
- } = tableReactData;
719
- const matchObj = _xeUtils.default.findTree(customColumnList, item => item === column);
617
+ const { customColumnList } = tableReactData;
618
+ const matchObj = import_xe_utils.default.findTree(customColumnList, (item) => item === column);
720
619
  if (matchObj) {
721
- const {
722
- item,
723
- items,
724
- index,
725
- parent: parentItem
726
- } = matchObj;
620
+ const { item, items, index, parent: parentItem } = matchObj;
727
621
  if (parentItem || index < items.length - 1) {
728
622
  tableReactData.isCustomDragStatus = true;
729
- (0, _vue.nextTick)(() => {
623
+ (0, import_vue.nextTick)(() => {
730
624
  item.parentId = null;
731
625
  items.splice(index, 1);
732
626
  customColumnList.push(item);
@@ -736,79 +630,62 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
736
630
  }
737
631
  };
738
632
  const renderDragTip = () => {
739
- const {
740
- dragTipText
741
- } = customPanelReactData;
633
+ const { dragTipText } = customPanelReactData;
742
634
  const columnDragOpts = computeColumnDragOpts.value;
743
- return (0, _vue.h)('div', {}, [(0, _vue.h)('div', {
744
- ref: refDragLineElem,
745
- class: ['vxe-table-custom-popup--drag-line', {
746
- 'is--guides': columnDragOpts.showGuidesStatus
747
- }]
748
- }), (0, _vue.h)('div', {
749
- ref: refDragTipElem,
750
- class: 'vxe-table-custom-popup--drag-tip'
751
- }, [(0, _vue.h)('div', {
752
- class: 'vxe-table-custom-popup--drag-tip-wrapper'
753
- }, [(0, _vue.h)('div', {
754
- class: 'vxe-table-custom-popup--drag-tip-status'
755
- }, [(0, _vue.h)('span', {
756
- class: ['vxe-table-custom-popup--drag-tip-normal-status', getIcon().TABLE_DRAG_STATUS_ROW]
757
- }), (0, _vue.h)('span', {
758
- class: ['vxe-table-custom-popup--drag-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
759
- }), (0, _vue.h)('span', {
760
- class: ['vxe-table-custom-popup--drag-tip-group-status', getIcon().TABLE_DRAG_STATUS_AGG_GROUP]
761
- }), (0, _vue.h)('span', {
762
- class: ['vxe-table-custom-popup--drag-tip-values-status', getIcon().TABLE_DRAG_STATUS_AGG_VALUES]
763
- }), (0, _vue.h)('span', {
764
- class: ['vxe-table-custom-popup--drag-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
765
- })]), (0, _vue.h)('div', {
766
- class: 'vxe-table-custom-popup--drag-tip-content'
767
- }, `${dragTipText || ''}`)])])]);
635
+ return (0, import_vue.h)("div", {}, [
636
+ (0, import_vue.h)("div", {
637
+ ref: refDragLineElem,
638
+ class: ["vxe-table-custom-popup--drag-line", {
639
+ "is--guides": columnDragOpts.showGuidesStatus
640
+ }]
641
+ }),
642
+ (0, import_vue.h)("div", {
643
+ ref: refDragTipElem,
644
+ class: "vxe-table-custom-popup--drag-tip"
645
+ }, [
646
+ (0, import_vue.h)("div", {
647
+ class: "vxe-table-custom-popup--drag-tip-wrapper"
648
+ }, [
649
+ (0, import_vue.h)("div", {
650
+ class: "vxe-table-custom-popup--drag-tip-status"
651
+ }, [
652
+ (0, import_vue.h)("span", {
653
+ class: ["vxe-table-custom-popup--drag-tip-normal-status", getIcon().TABLE_DRAG_STATUS_ROW]
654
+ }),
655
+ (0, import_vue.h)("span", {
656
+ class: ["vxe-table-custom-popup--drag-tip-sub-status", getIcon().TABLE_DRAG_STATUS_SUB_ROW]
657
+ }),
658
+ (0, import_vue.h)("span", {
659
+ class: ["vxe-table-custom-popup--drag-tip-group-status", getIcon().TABLE_DRAG_STATUS_AGG_GROUP]
660
+ }),
661
+ (0, import_vue.h)("span", {
662
+ class: ["vxe-table-custom-popup--drag-tip-values-status", getIcon().TABLE_DRAG_STATUS_AGG_VALUES]
663
+ }),
664
+ (0, import_vue.h)("span", {
665
+ class: ["vxe-table-custom-popup--drag-tip-disabled-status", getIcon().TABLE_DRAG_DISABLED]
666
+ })
667
+ ]),
668
+ (0, import_vue.h)("div", {
669
+ class: "vxe-table-custom-popup--drag-tip-content"
670
+ }, `${dragTipText || ""}`)
671
+ ])
672
+ ])
673
+ ]);
768
674
  };
769
675
  const renderSimplePanel = () => {
770
676
  const $xeGrid = $xeTable.xeGrid;
771
677
  const $xeGantt = $xeTable.xeGantt;
772
- const tableProps = $xeTable.props;
773
- const {
774
- customStore
775
- } = props;
776
- const {
777
- treeConfig,
778
- rowGroupConfig,
779
- aggregateConfig
780
- } = tableProps;
781
- const {
782
- isCustomStatus,
783
- customColumnList,
784
- isCustomDragStatus
785
- } = tableReactData;
678
+ const tableProps2 = $xeTable.props;
679
+ const { customStore } = props;
680
+ const { treeConfig, rowGroupConfig, aggregateConfig } = tableProps2;
681
+ const { isCustomStatus, customColumnList, isCustomDragStatus } = tableReactData;
786
682
  const customOpts = computeCustomOpts.value;
787
683
  const columnDragOpts = computeColumnDragOpts.value;
788
- const {
789
- defPopupStyle
790
- } = customStore;
791
- const {
792
- immediate,
793
- checkMethod,
794
- visibleMethod,
795
- allowVisible,
796
- allowSort,
797
- allowFixed,
798
- allowGroup,
799
- allowValues,
800
- trigger,
801
- placement,
802
- showSortDragButton,
803
- showSortMoveButton,
804
- showSortPutButton
805
- } = customOpts;
684
+ const { defPopupStyle } = customStore;
685
+ const { immediate, checkMethod, visibleMethod, allowVisible, allowSort, allowFixed, allowGroup, allowValues, trigger, placement, showSortDragButton, showSortMoveButton, showSortPutButton } = customOpts;
806
686
  const isMaxFixedColumn = computeIsMaxFixedColumn.value;
807
687
  const vSize = computeSize.value;
808
- const {
809
- isCrossDrag,
810
- isPeerDrag
811
- } = columnDragOpts;
688
+ const { isCrossDrag, isPeerDrag } = columnDragOpts;
812
689
  const slots = customOpts.slots || {};
813
690
  const headerSlot = slots.header;
814
691
  const topSlot = slots.top;
@@ -819,8 +696,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
819
696
  const customWrapperOns = {};
820
697
  const isAllChecked = customStore.isAll;
821
698
  const isAllIndeterminate = customStore.isIndeterminate;
822
- // hover 触发
823
- if (trigger === 'hover') {
699
+ if (trigger === "hover") {
824
700
  customWrapperOns.onMouseenter = handleWrapperMouseenterEvent;
825
701
  customWrapperOns.onMouseleave = handleWrapperMouseleaveEvent;
826
702
  }
@@ -833,246 +709,261 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
833
709
  isAllIndeterminate,
834
710
  isCustomStatus
835
711
  };
836
- _xeUtils.default.eachTree(customColumnList, (column, index, items, path, parentItem) => {
837
- const isVisible = visibleMethod ? visibleMethod({
838
- $table: $xeTable,
839
- column
840
- }) : true;
712
+ import_xe_utils.default.eachTree(customColumnList, (column, index, items, path, parentItem) => {
713
+ const isVisible = visibleMethod ? visibleMethod({ $table: $xeTable, column }) : true;
841
714
  if (isVisible) {
842
715
  const isChecked = column.renderVisible;
843
716
  const isIndeterminate = column.halfVisible;
844
717
  const isColGroup = column.children && column.children.length;
845
- const colTitle = (0, _utils.formatText)(column.getTitle(), 1);
846
- const isDisabled = checkMethod ? !checkMethod({
847
- $table: $xeTable,
848
- column
849
- }) : false;
718
+ const colTitle = (0, import_utils.formatText)(column.getTitle(), 1);
719
+ const isDisabled = checkMethod ? !checkMethod({ $table: $xeTable, column }) : false;
850
720
  const isHidden = !isChecked;
851
721
  const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1;
852
- colVNs.push((0, _vue.h)('li', {
853
- key: column.id,
854
- colid: column.id,
855
- class: ['vxe-table-custom--option', `level--${column.level}`, {
856
- 'is--hidden': isDisabled || isHidden,
857
- 'is--group': isColGroup
858
- }],
859
- onDragstart: sortDragstartEvent,
860
- onDragend: sortDragendEvent,
861
- onDragover: sortDragoverEvent
862
- }, [allowVisible ? (0, _vue.h)('div', {
863
- class: ['vxe-table-custom--checkbox-option', {
864
- 'is--checked': isChecked,
865
- 'is--indeterminate': isIndeterminate,
866
- 'is--disabled': isDisabled
867
- }],
868
- title: getI18n('vxe.custom.setting.colVisible'),
869
- onClick: evnt => {
870
- if (!isDisabled) {
871
- changeCheckboxOption(column, evnt);
872
- }
873
- }
874
- }, [(0, _vue.h)('span', {
875
- class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
876
- })]) : renderEmptyElement($xeTable), (0, _vue.h)('div', {
877
- class: 'vxe-table-custom--name-option'
878
- }, [allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, _vue.h)('div', {
879
- class: 'vxe-table-custom--sort-option'
880
- }, [(0, _vue.h)('span', Object.assign({
881
- class: ['vxe-table-custom--sort-btn', {
882
- 'is--disabled': isHidden
883
- }],
884
- title: getI18n('vxe.custom.setting.sortHelpTip')
885
- }, isHidden ? {} : {
886
- onMousedown: sortMousedownEvent,
887
- onMouseup: sortMouseupEvent
888
- }), [(0, _vue.h)('i', {
889
- class: getIcon().TABLE_CUSTOM_SORT
890
- })])]) : renderEmptyElement($xeTable) : renderEmptyElement($xeTable), column.type === 'html' ? (0, _vue.h)('div', {
891
- key: '1',
892
- class: 'vxe-table-custom--checkbox-label',
893
- innerHTML: colTitle
894
- }) : (0, _vue.h)('div', {
895
- key: '0',
896
- class: 'vxe-table-custom--checkbox-label'
897
- }, colTitle)]), showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, _vue.h)('div', {
898
- class: 'vxe-table-custom--move-btn-option'
899
- }, VxeUIButtonComponent ? [showSortMoveButton ? (0, _vue.h)(VxeUIButtonComponent, {
900
- mode: 'text',
901
- icon: 'vxe-icon-arrows-up',
902
- title: getI18n('vxe.custom.setting.moveUpTitle'),
903
- disabled: index <= 0,
904
- onClick(evntParame) {
905
- sortMoveUpEvent(evntParame, column);
906
- }
907
- }) : renderEmptyElement($xeTable), showSortMoveButton ? (0, _vue.h)(VxeUIButtonComponent, {
908
- mode: 'text',
909
- icon: 'vxe-icon-arrows-down',
910
- title: getI18n('vxe.custom.setting.moveDnTitle'),
911
- disabled: index >= items.length - 1,
912
- onClick(evntParame) {
913
- sortMoveDnEvent(evntParame, column);
914
- }
915
- }) : renderEmptyElement($xeTable), showSortPutButton && !parentItem ? (0, _vue.h)(VxeUIButtonComponent, {
916
- mode: 'text',
917
- icon: 'vxe-icon-top',
918
- title: getI18n('vxe.custom.setting.putTopTitle'),
919
- disabled: index <= 0,
920
- onClick(evntParame) {
921
- sortMoveTopEvent(evntParame, column);
922
- }
923
- }) : renderEmptyElement($xeTable), showSortPutButton && !parentItem ? (0, _vue.h)(VxeUIButtonComponent, {
924
- mode: 'text',
925
- icon: 'vxe-icon-bottom',
926
- title: getI18n('vxe.custom.setting.putBottomTitle'),
927
- disabled: index >= items.length - 1,
928
- onClick(evntParame) {
929
- sortMoveBottomEvent(evntParame, column);
930
- }
931
- }) : renderEmptyElement($xeTable)] : []) : renderEmptyElement($xeTable), !parentItem && allowFixed ? (0, _vue.h)('div', {
932
- class: 'vxe-table-custom--fixed-option'
933
- }, VxeUIButtonComponent ? [(0, _vue.h)(VxeUIButtonComponent, {
934
- mode: 'text',
935
- icon: column.renderFixed === 'left' ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
936
- status: column.renderFixed === 'left' ? 'primary' : '',
937
- disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
938
- title: getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft'),
939
- onClick: ({
940
- $event
941
- }) => {
942
- changeFixedOption(column, 'left', $event);
943
- }
944
- }), (0, _vue.h)(VxeUIButtonComponent, {
945
- mode: 'text',
946
- icon: column.renderFixed === 'right' ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
947
- status: column.renderFixed === 'right' ? 'primary' : '',
948
- disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
949
- title: getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight'),
950
- onClick: ({
951
- $event
952
- }) => {
953
- changeFixedOption(column, 'right', $event);
954
- }
955
- })] : []) : renderEmptyElement($xeTable)]));
722
+ colVNs.push(
723
+ (0, import_vue.h)("li", {
724
+ key: column.id,
725
+ colid: column.id,
726
+ class: ["vxe-table-custom--option", `level--${column.level}`, {
727
+ "is--hidden": isDisabled || isHidden,
728
+ "is--group": isColGroup
729
+ }],
730
+ onDragstart: sortDragstartEvent,
731
+ onDragend: sortDragendEvent,
732
+ onDragover: sortDragoverEvent
733
+ }, [
734
+ allowVisible ? (0, import_vue.h)("div", {
735
+ class: ["vxe-table-custom--checkbox-option", {
736
+ "is--checked": isChecked,
737
+ "is--indeterminate": isIndeterminate,
738
+ "is--disabled": isDisabled
739
+ }],
740
+ title: getI18n("vxe.custom.setting.colVisible"),
741
+ onClick: (evnt) => {
742
+ if (!isDisabled) {
743
+ changeCheckboxOption(column, evnt);
744
+ }
745
+ }
746
+ }, [
747
+ (0, import_vue.h)("span", {
748
+ class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
749
+ })
750
+ ]) : renderEmptyElement($xeTable),
751
+ (0, import_vue.h)("div", {
752
+ class: "vxe-table-custom--name-option"
753
+ }, [
754
+ allowSort && showSortDragButton || (allowGroup || allowValues) ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, import_vue.h)("div", {
755
+ class: "vxe-table-custom--sort-option"
756
+ }, [
757
+ (0, import_vue.h)("span", {
758
+ class: ["vxe-table-custom--sort-btn", {
759
+ "is--disabled": isHidden
760
+ }],
761
+ title: getI18n("vxe.custom.setting.sortHelpTip"),
762
+ ...isHidden ? {} : {
763
+ onMousedown: sortMousedownEvent,
764
+ onMouseup: sortMouseupEvent
765
+ }
766
+ }, [
767
+ (0, import_vue.h)("i", {
768
+ class: getIcon().TABLE_CUSTOM_SORT
769
+ })
770
+ ])
771
+ ]) : renderEmptyElement($xeTable) : renderEmptyElement($xeTable),
772
+ column.type === "html" ? (0, import_vue.h)("div", {
773
+ key: "1",
774
+ class: "vxe-table-custom--checkbox-label",
775
+ innerHTML: colTitle
776
+ }) : (0, import_vue.h)("div", {
777
+ key: "0",
778
+ class: "vxe-table-custom--checkbox-label"
779
+ }, colTitle)
780
+ ]),
781
+ showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, import_vue.h)("div", {
782
+ class: "vxe-table-custom--move-btn-option"
783
+ }, VxeUIButtonComponent ? [
784
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
785
+ mode: "text",
786
+ icon: "vxe-icon-arrows-up",
787
+ title: getI18n("vxe.custom.setting.moveUpTitle"),
788
+ disabled: index <= 0,
789
+ onClick(evntParame) {
790
+ sortMoveUpEvent(evntParame, column);
791
+ }
792
+ }) : renderEmptyElement($xeTable),
793
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
794
+ mode: "text",
795
+ icon: "vxe-icon-arrows-down",
796
+ title: getI18n("vxe.custom.setting.moveDnTitle"),
797
+ disabled: index >= items.length - 1,
798
+ onClick(evntParame) {
799
+ sortMoveDnEvent(evntParame, column);
800
+ }
801
+ }) : renderEmptyElement($xeTable),
802
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
803
+ mode: "text",
804
+ icon: "vxe-icon-top",
805
+ title: getI18n("vxe.custom.setting.putTopTitle"),
806
+ disabled: index <= 0,
807
+ onClick(evntParame) {
808
+ sortMoveTopEvent(evntParame, column);
809
+ }
810
+ }) : renderEmptyElement($xeTable),
811
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
812
+ mode: "text",
813
+ icon: "vxe-icon-bottom",
814
+ title: getI18n("vxe.custom.setting.putBottomTitle"),
815
+ disabled: index >= items.length - 1,
816
+ onClick(evntParame) {
817
+ sortMoveBottomEvent(evntParame, column);
818
+ }
819
+ }) : renderEmptyElement($xeTable)
820
+ ] : []) : renderEmptyElement($xeTable),
821
+ !parentItem && allowFixed ? (0, import_vue.h)("div", {
822
+ class: "vxe-table-custom--fixed-option"
823
+ }, VxeUIButtonComponent ? [
824
+ (0, import_vue.h)(VxeUIButtonComponent, {
825
+ mode: "text",
826
+ icon: column.renderFixed === "left" ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
827
+ status: column.renderFixed === "left" ? "primary" : "",
828
+ disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
829
+ title: getI18n(column.renderFixed === "left" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedLeft"),
830
+ onClick: ({ $event }) => {
831
+ changeFixedOption(column, "left", $event);
832
+ }
833
+ }),
834
+ (0, import_vue.h)(VxeUIButtonComponent, {
835
+ mode: "text",
836
+ icon: column.renderFixed === "right" ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
837
+ status: column.renderFixed === "right" ? "primary" : "",
838
+ disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
839
+ title: getI18n(column.renderFixed === "right" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedRight"),
840
+ onClick: ({ $event }) => {
841
+ changeFixedOption(column, "right", $event);
842
+ }
843
+ })
844
+ ] : []) : renderEmptyElement($xeTable)
845
+ ])
846
+ );
956
847
  }
957
848
  });
958
- return (0, _vue.h)('div', {
849
+ return (0, import_vue.h)("div", {
959
850
  ref: refElem,
960
- key: 'simple',
961
- class: ['vxe-table-custom-wrapper', `placement--${placement}`, {
851
+ key: "simple",
852
+ class: ["vxe-table-custom-wrapper", `placement--${placement}`, {
962
853
  [`size--${vSize}`]: vSize,
963
- 'is--active': customStore.visible
854
+ "is--active": customStore.visible
964
855
  }],
965
856
  style: defPopupStyle
966
- }, customStore.visible ? [(0, _vue.h)('div', {
967
- ref: refBodyWrapperElem,
968
- class: 'vxe-table-custom-simple--body-wrapper'
969
- }, [!treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel ? (0, _vue.h)($xeTable.getPivotTableAggregateSimplePanel(), {
970
- customStore
971
- }) : renderEmptyElement($xeTable), (0, _vue.h)('div', {
972
- ref: refCustomBodyElem,
973
- class: 'vxe-table-custom--handle-wrapper'
974
- }, [(0, _vue.h)('div', {
975
- class: 'vxe-table-custom--header'
976
- }, headerSlot ? $xeTable.callSlot(headerSlot, params) : [(0, _vue.h)('ul', {
977
- class: 'vxe-table-custom--panel-list'
978
- }, [(0, _vue.h)('li', {
979
- class: 'vxe-table-custom--option'
980
- }, [allowVisible ? (0, _vue.h)('div', {
981
- class: ['vxe-table-custom--checkbox-option', {
982
- 'is--checked': isAllChecked,
983
- 'is--indeterminate': isAllIndeterminate
984
- }],
985
- title: getI18n('vxe.table.allTitle'),
986
- onClick: allOptionEvent
987
- }, [(0, _vue.h)('span', {
988
- class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
989
- }), (0, _vue.h)('span', {
990
- class: 'vxe-checkbox--label'
991
- }, getI18n('vxe.toolbar.customAll'))]) : (0, _vue.h)('span', {
992
- class: 'vxe-checkbox--label'
993
- }, getI18n('vxe.table.customTitle'))])])]), (0, _vue.h)('div', {
994
- class: 'vxe-table-custom--body'
995
- }, [topSlot ? (0, _vue.h)('div', {
996
- class: 'vxe-table-custom--panel-top'
997
- }, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable), defaultSlot ? (0, _vue.h)('div', {
998
- class: 'vxe-table-custom--panel-body'
999
- }, $xeTable.callSlot(defaultSlot, params)) : (0, _vue.h)(_vue.TransitionGroup, Object.assign({
1000
- class: 'vxe-table-custom--panel-list',
1001
- name: isCustomDragStatus ? 'vxe-table-custom--list' : '',
1002
- tag: 'ul'
1003
- }, customWrapperOns), {
1004
- default: () => colVNs
1005
- }), bottomSlot ? (0, _vue.h)('div', {
1006
- class: 'vxe-table-custom--panel-bottom'
1007
- }, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable)]), customOpts.showFooter ? (0, _vue.h)('div', {
1008
- class: 'vxe-table-custom--footer'
1009
- }, footerSlot ? $xeTable.callSlot(footerSlot, params) : [(0, _vue.h)('div', {
1010
- class: 'vxe-table-custom--footer-buttons'
1011
- }, [VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1012
- mode: 'text',
1013
- content: customOpts.resetButtonText || getI18n('vxe.table.customRestore'),
1014
- disabled: !isCustomStatus,
1015
- onClick: resetCustomEvent
1016
- }) : renderEmptyElement($xeTable), immediate ? VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1017
- mode: 'text',
1018
- content: customOpts.closeButtonText || getI18n('vxe.table.customClose'),
1019
- onClick: cancelCloseEvent
1020
- }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1021
- mode: 'text',
1022
- content: customOpts.cancelButtonText || getI18n('vxe.table.customCancel'),
1023
- onClick: cancelCustomEvent
1024
- }) : renderEmptyElement($xeTable), immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1025
- mode: 'text',
1026
- status: 'primary',
1027
- content: customOpts.confirmButtonText || getI18n('vxe.table.customConfirm'),
1028
- onClick: confirmCustomEvent
1029
- }) : renderEmptyElement($xeTable)])]) : null]), renderDragTip()])] : []);
857
+ }, customStore.visible ? [
858
+ (0, import_vue.h)("div", {
859
+ ref: refBodyWrapperElem,
860
+ class: "vxe-table-custom-simple--body-wrapper"
861
+ }, [
862
+ !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregateSimplePanel ? (0, import_vue.h)($xeTable.getPivotTableAggregateSimplePanel(), {
863
+ customStore
864
+ }) : renderEmptyElement($xeTable),
865
+ (0, import_vue.h)("div", {
866
+ ref: refCustomBodyElem,
867
+ class: "vxe-table-custom--handle-wrapper"
868
+ }, [
869
+ (0, import_vue.h)("div", {
870
+ class: "vxe-table-custom--header"
871
+ }, headerSlot ? $xeTable.callSlot(headerSlot, params) : [
872
+ (0, import_vue.h)("ul", {
873
+ class: "vxe-table-custom--panel-list"
874
+ }, [
875
+ (0, import_vue.h)("li", {
876
+ class: "vxe-table-custom--option"
877
+ }, [
878
+ allowVisible ? (0, import_vue.h)("div", {
879
+ class: ["vxe-table-custom--checkbox-option", {
880
+ "is--checked": isAllChecked,
881
+ "is--indeterminate": isAllIndeterminate
882
+ }],
883
+ title: getI18n("vxe.table.allTitle"),
884
+ onClick: allOptionEvent
885
+ }, [
886
+ (0, import_vue.h)("span", {
887
+ class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
888
+ }),
889
+ (0, import_vue.h)("span", {
890
+ class: "vxe-checkbox--label"
891
+ }, getI18n("vxe.toolbar.customAll"))
892
+ ]) : (0, import_vue.h)("span", {
893
+ class: "vxe-checkbox--label"
894
+ }, getI18n("vxe.table.customTitle"))
895
+ ])
896
+ ])
897
+ ]),
898
+ (0, import_vue.h)("div", {
899
+ class: "vxe-table-custom--body"
900
+ }, [
901
+ topSlot ? (0, import_vue.h)("div", {
902
+ class: "vxe-table-custom--panel-top"
903
+ }, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable),
904
+ defaultSlot ? (0, import_vue.h)("div", {
905
+ class: "vxe-table-custom--panel-body"
906
+ }, $xeTable.callSlot(defaultSlot, params)) : (0, import_vue.h)(import_vue.TransitionGroup, {
907
+ class: "vxe-table-custom--panel-list",
908
+ name: isCustomDragStatus ? "vxe-table-custom--list" : "",
909
+ tag: "ul",
910
+ ...customWrapperOns
911
+ }, {
912
+ default: () => colVNs
913
+ }),
914
+ bottomSlot ? (0, import_vue.h)("div", {
915
+ class: "vxe-table-custom--panel-bottom"
916
+ }, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable)
917
+ ]),
918
+ customOpts.showFooter ? (0, import_vue.h)("div", {
919
+ class: "vxe-table-custom--footer"
920
+ }, footerSlot ? $xeTable.callSlot(footerSlot, params) : [
921
+ (0, import_vue.h)("div", {
922
+ class: "vxe-table-custom--footer-buttons"
923
+ }, [
924
+ VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
925
+ mode: "text",
926
+ content: customOpts.resetButtonText || getI18n("vxe.table.customRestore"),
927
+ disabled: !isCustomStatus,
928
+ onClick: resetCustomEvent
929
+ }) : renderEmptyElement($xeTable),
930
+ immediate ? VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
931
+ mode: "text",
932
+ content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
933
+ onClick: cancelCloseEvent
934
+ }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
935
+ mode: "text",
936
+ content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
937
+ onClick: cancelCustomEvent
938
+ }) : renderEmptyElement($xeTable),
939
+ immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
940
+ mode: "text",
941
+ status: "primary",
942
+ content: customOpts.confirmButtonText || getI18n("vxe.table.customConfirm"),
943
+ onClick: confirmCustomEvent
944
+ }) : renderEmptyElement($xeTable)
945
+ ])
946
+ ]) : null
947
+ ]),
948
+ renderDragTip()
949
+ ])
950
+ ] : []);
1030
951
  };
1031
952
  const renderPopupBodys = () => {
1032
- const {
1033
- resizable: allResizable
1034
- } = tableProps;
1035
- const {
1036
- customColumnList
1037
- } = tableReactData;
953
+ const { resizable: allResizable } = tableProps;
954
+ const { customColumnList } = tableReactData;
1038
955
  const customOpts = computeCustomOpts.value;
1039
956
  const columnDragOpts = computeColumnDragOpts.value;
1040
- const {
1041
- immediate,
1042
- showSortDragButton,
1043
- showSortMoveButton,
1044
- showSortPutButton,
1045
- allowVisible,
1046
- allowSort,
1047
- allowFixed,
1048
- allowAlign,
1049
- allowHeaderAlign,
1050
- allowFooterAlign,
1051
- allowResizable,
1052
- allowGroup,
1053
- allowValues,
1054
- checkMethod,
1055
- visibleMethod
1056
- } = customOpts;
957
+ const { immediate, showSortDragButton, showSortMoveButton, showSortPutButton, allowVisible, allowSort, allowFixed, allowAlign, allowHeaderAlign, allowFooterAlign, allowResizable, allowGroup, allowValues, checkMethod, visibleMethod } = customOpts;
1057
958
  const columnOpts = computeColumnOpts.value;
1058
959
  const resizableOpts = computeResizableOpts.value;
1059
- const {
1060
- minWidth: reMinWidth,
1061
- maxWidth: reMaxWidth
1062
- } = resizableOpts;
960
+ const { minWidth: reMinWidth, maxWidth: reMaxWidth } = resizableOpts;
1063
961
  const isMaxFixedColumn = computeIsMaxFixedColumn.value;
1064
- const {
1065
- isCrossDrag,
1066
- isPeerDrag
1067
- } = columnDragOpts;
962
+ const { isCrossDrag, isPeerDrag } = columnDragOpts;
1068
963
  const trVNs = [];
1069
- _xeUtils.default.eachTree(customColumnList, (column, index, items, path, parentItem) => {
1070
- const isVisible = visibleMethod ? visibleMethod({
1071
- $table: $xeTable,
1072
- column
1073
- }) : true;
964
+ import_xe_utils.default.eachTree(customColumnList, (column, index, items, path, parentItem) => {
965
+ const isVisible = visibleMethod ? visibleMethod({ $table: $xeTable, column }) : true;
1074
966
  if (isVisible) {
1075
- // 默认继承调整宽度
1076
967
  let customMinWidth = 0;
1077
968
  let customMaxWidth = 0;
1078
969
  if (allowResizable) {
@@ -1087,229 +978,263 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
1087
978
  $rowIndex: -1
1088
979
  };
1089
980
  if (reMinWidth) {
1090
- customMinWidth = _xeUtils.default.toNumber(_xeUtils.default.isFunction(reMinWidth) ? reMinWidth(resizeParams) : reMinWidth);
981
+ customMinWidth = import_xe_utils.default.toNumber(import_xe_utils.default.isFunction(reMinWidth) ? reMinWidth(resizeParams) : reMinWidth);
1091
982
  }
1092
983
  if (reMaxWidth) {
1093
- customMaxWidth = _xeUtils.default.toNumber(_xeUtils.default.isFunction(reMaxWidth) ? reMaxWidth(resizeParams) : reMaxWidth);
984
+ customMaxWidth = import_xe_utils.default.toNumber(import_xe_utils.default.isFunction(reMaxWidth) ? reMaxWidth(resizeParams) : reMaxWidth);
1094
985
  }
1095
986
  }
1096
987
  const isChecked = column.renderVisible;
1097
988
  const isIndeterminate = column.halfVisible;
1098
- const colTitle = (0, _utils.formatText)(column.getTitle(), 1);
989
+ const colTitle = (0, import_utils.formatText)(column.getTitle(), 1);
1099
990
  const isColGroup = column.children && column.children.length;
1100
- const isDisabled = checkMethod ? !checkMethod({
1101
- $table: $xeTable,
1102
- column
1103
- }) : false;
991
+ const isDisabled = checkMethod ? !checkMethod({ $table: $xeTable, column }) : false;
1104
992
  const isHidden = !isChecked;
1105
993
  const showSortBtn = (isCrossDrag || isPeerDrag ? immediate : false) || column.level === 1;
1106
- const alignList = [{
1107
- icon: getIcon().TABLE_CUSTOM_ALIGN_LEFT,
1108
- value: 'left',
1109
- title: getI18n('vxe.custom.setting.anLeftTitle'),
1110
- disabled: isHidden
1111
- }, {
1112
- icon: getIcon().TABLE_CUSTOM_ALIGN_CENTER,
1113
- value: 'center',
1114
- title: getI18n('vxe.custom.setting.anCenterTitle'),
1115
- disabled: isHidden
1116
- }, {
1117
- icon: getIcon().TABLE_CUSTOM_ALIGN_RIGHT,
1118
- value: 'right',
1119
- title: getI18n('vxe.custom.setting.anRightTitle'),
1120
- disabled: isHidden
1121
- }];
994
+ const alignList = [
995
+ { icon: getIcon().TABLE_CUSTOM_ALIGN_LEFT, value: "left", title: getI18n("vxe.custom.setting.anLeftTitle"), disabled: isHidden },
996
+ { icon: getIcon().TABLE_CUSTOM_ALIGN_CENTER, value: "center", title: getI18n("vxe.custom.setting.anCenterTitle"), disabled: isHidden },
997
+ { icon: getIcon().TABLE_CUSTOM_ALIGN_RIGHT, value: "right", title: getI18n("vxe.custom.setting.anRightTitle"), disabled: isHidden }
998
+ ];
1122
999
  const tdVNs = [];
1123
1000
  if (allowVisible) {
1124
- tdVNs.push((0, _vue.h)('td', {
1125
- key: 'av',
1126
- class: 'vxe-table-custom-popup--column-td col--visible'
1127
- }, [(0, _vue.h)('div', {
1128
- class: ['vxe-table-custom--checkbox-option', {
1129
- 'is--checked': isChecked,
1130
- 'is--indeterminate': isIndeterminate,
1131
- 'is--disabled': isDisabled
1132
- }],
1133
- title: getI18n('vxe.custom.setting.colVisible'),
1134
- onClick: evnt => {
1135
- if (!isDisabled) {
1136
- changeCheckboxOption(column, evnt);
1137
- }
1138
- }
1139
- }, [(0, _vue.h)('span', {
1140
- class: ['vxe-checkbox--icon', isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1141
- })])]));
1001
+ tdVNs.push(
1002
+ (0, import_vue.h)("td", {
1003
+ key: "av",
1004
+ class: "vxe-table-custom-popup--column-td col--visible"
1005
+ }, [
1006
+ (0, import_vue.h)("div", {
1007
+ class: ["vxe-table-custom--checkbox-option", {
1008
+ "is--checked": isChecked,
1009
+ "is--indeterminate": isIndeterminate,
1010
+ "is--disabled": isDisabled
1011
+ }],
1012
+ title: getI18n("vxe.custom.setting.colVisible"),
1013
+ onClick: (evnt) => {
1014
+ if (!isDisabled) {
1015
+ changeCheckboxOption(column, evnt);
1016
+ }
1017
+ }
1018
+ }, [
1019
+ (0, import_vue.h)("span", {
1020
+ class: ["vxe-checkbox--icon", isIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1021
+ })
1022
+ ])
1023
+ ])
1024
+ );
1142
1025
  }
1143
- tdVNs.push((0, _vue.h)('td', {
1144
- key: 'at',
1145
- class: 'vxe-table-custom-popup--column-td col--name'
1146
- }, [(0, _vue.h)('div', {
1147
- class: 'vxe-table-custom-popup--name'
1148
- }, [allowSort && showSortDragButton || allowGroup || allowValues ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, _vue.h)('div', Object.assign({
1149
- class: ['vxe-table-custom-popup--column-sort-btn', {
1150
- 'is--disabled': isHidden
1151
- }],
1152
- title: getI18n('vxe.custom.setting.sortHelpTip')
1153
- }, isHidden ? {} : {
1154
- onMousedown: sortMousedownEvent,
1155
- onMouseup: sortMouseupEvent
1156
- }), [(0, _vue.h)('i', {
1157
- class: getIcon().TABLE_CUSTOM_SORT
1158
- })]) : (0, _vue.h)('div', {
1159
- class: 'vxe-table-custom-popup--column-sort-placeholder'
1160
- }) : renderEmptyElement($xeTable), column.type === 'html' ? (0, _vue.h)('div', {
1161
- key: '1',
1162
- class: 'vxe-table-custom-popup--title',
1163
- innerHTML: colTitle
1164
- }) : (0, _vue.h)('div', {
1165
- key: '0',
1166
- class: 'vxe-table-custom-popup--title',
1167
- title: colTitle
1168
- }, colTitle), showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, _vue.h)('div', {
1169
- class: 'vxe-table-custom-popup--move-btn'
1170
- }, VxeUIButtonComponent ? [showSortMoveButton ? (0, _vue.h)(VxeUIButtonComponent, {
1171
- mode: 'text',
1172
- icon: 'vxe-icon-arrows-up',
1173
- title: getI18n('vxe.custom.setting.moveUpTitle'),
1174
- disabled: index <= 0,
1175
- onClick(evntParame) {
1176
- sortMoveUpEvent(evntParame, column);
1177
- }
1178
- }) : renderEmptyElement($xeTable), showSortMoveButton ? (0, _vue.h)(VxeUIButtonComponent, {
1179
- mode: 'text',
1180
- icon: 'vxe-icon-arrows-down',
1181
- title: getI18n('vxe.custom.setting.moveDnTitle'),
1182
- disabled: index >= items.length - 1,
1183
- onClick(evntParame) {
1184
- sortMoveDnEvent(evntParame, column);
1185
- }
1186
- }) : renderEmptyElement($xeTable), showSortPutButton && !parentItem ? (0, _vue.h)(VxeUIButtonComponent, {
1187
- mode: 'text',
1188
- icon: 'vxe-icon-top',
1189
- title: getI18n('vxe.custom.setting.putTopTitle'),
1190
- disabled: index <= 0,
1191
- onClick(evntParame) {
1192
- sortMoveTopEvent(evntParame, column);
1193
- }
1194
- }) : renderEmptyElement($xeTable), showSortPutButton && !parentItem ? (0, _vue.h)(VxeUIButtonComponent, {
1195
- mode: 'text',
1196
- icon: 'vxe-icon-bottom',
1197
- title: getI18n('vxe.custom.setting.putBottomTitle'),
1198
- disabled: index >= items.length - 1,
1199
- onClick(evntParame) {
1200
- sortMoveBottomEvent(evntParame, column);
1201
- }
1202
- }) : renderEmptyElement($xeTable)] : []) : renderEmptyElement($xeTable)])]));
1026
+ tdVNs.push(
1027
+ (0, import_vue.h)("td", {
1028
+ key: "at",
1029
+ class: "vxe-table-custom-popup--column-td col--name"
1030
+ }, [
1031
+ (0, import_vue.h)("div", {
1032
+ class: "vxe-table-custom-popup--name"
1033
+ }, [
1034
+ allowSort && showSortDragButton || (allowGroup || allowValues) ? showSortBtn || (allowGroup || allowValues) && !isColGroup ? (0, import_vue.h)("div", {
1035
+ class: ["vxe-table-custom-popup--column-sort-btn", {
1036
+ "is--disabled": isHidden
1037
+ }],
1038
+ title: getI18n("vxe.custom.setting.sortHelpTip"),
1039
+ ...isHidden ? {} : {
1040
+ onMousedown: sortMousedownEvent,
1041
+ onMouseup: sortMouseupEvent
1042
+ }
1043
+ }, [
1044
+ (0, import_vue.h)("i", {
1045
+ class: getIcon().TABLE_CUSTOM_SORT
1046
+ })
1047
+ ]) : (0, import_vue.h)("div", {
1048
+ class: "vxe-table-custom-popup--column-sort-placeholder"
1049
+ }) : renderEmptyElement($xeTable),
1050
+ column.type === "html" ? (0, import_vue.h)("div", {
1051
+ key: "1",
1052
+ class: "vxe-table-custom-popup--title",
1053
+ innerHTML: colTitle
1054
+ }) : (0, import_vue.h)("div", {
1055
+ key: "0",
1056
+ class: "vxe-table-custom-popup--title",
1057
+ title: colTitle
1058
+ }, colTitle),
1059
+ showSortBtn && (showSortMoveButton || showSortPutButton) ? (0, import_vue.h)("div", {
1060
+ class: "vxe-table-custom-popup--move-btn"
1061
+ }, VxeUIButtonComponent ? [
1062
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
1063
+ mode: "text",
1064
+ icon: "vxe-icon-arrows-up",
1065
+ title: getI18n("vxe.custom.setting.moveUpTitle"),
1066
+ disabled: index <= 0,
1067
+ onClick(evntParame) {
1068
+ sortMoveUpEvent(evntParame, column);
1069
+ }
1070
+ }) : renderEmptyElement($xeTable),
1071
+ showSortMoveButton ? (0, import_vue.h)(VxeUIButtonComponent, {
1072
+ mode: "text",
1073
+ icon: "vxe-icon-arrows-down",
1074
+ title: getI18n("vxe.custom.setting.moveDnTitle"),
1075
+ disabled: index >= items.length - 1,
1076
+ onClick(evntParame) {
1077
+ sortMoveDnEvent(evntParame, column);
1078
+ }
1079
+ }) : renderEmptyElement($xeTable),
1080
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
1081
+ mode: "text",
1082
+ icon: "vxe-icon-top",
1083
+ title: getI18n("vxe.custom.setting.putTopTitle"),
1084
+ disabled: index <= 0,
1085
+ onClick(evntParame) {
1086
+ sortMoveTopEvent(evntParame, column);
1087
+ }
1088
+ }) : renderEmptyElement($xeTable),
1089
+ showSortPutButton && !parentItem ? (0, import_vue.h)(VxeUIButtonComponent, {
1090
+ mode: "text",
1091
+ icon: "vxe-icon-bottom",
1092
+ title: getI18n("vxe.custom.setting.putBottomTitle"),
1093
+ disabled: index >= items.length - 1,
1094
+ onClick(evntParame) {
1095
+ sortMoveBottomEvent(evntParame, column);
1096
+ }
1097
+ }) : renderEmptyElement($xeTable)
1098
+ ] : []) : renderEmptyElement($xeTable)
1099
+ ])
1100
+ ])
1101
+ );
1203
1102
  if (allowResizable) {
1204
- tdVNs.push((0, _vue.h)('td', {
1205
- key: 'aw',
1206
- class: 'vxe-table-custom-popup--column-td col--resizable'
1207
- }, [column.children && column.children.length || !(_xeUtils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? (0, _vue.h)('span', '-') : VxeUINumberInputComponent ? (0, _vue.h)(VxeUINumberInputComponent, {
1208
- type: 'integer',
1209
- immediate: false,
1210
- disabled: isHidden,
1211
- modelValue: column.renderResizeWidth,
1212
- min: customMinWidth || 0,
1213
- max: customMaxWidth || 9999,
1214
- 'onUpdate:modelValue'(value) {
1215
- const width = Math.max(0, Number(value));
1216
- column.renderResizeWidth = width;
1217
- },
1218
- onChange() {
1219
- changeColumnWidth(column);
1220
- }
1221
- }) : renderEmptyElement($xeTable)]));
1103
+ tdVNs.push(
1104
+ (0, import_vue.h)("td", {
1105
+ key: "aw",
1106
+ class: "vxe-table-custom-popup--column-td col--resizable"
1107
+ }, [
1108
+ column.children && column.children.length || !(import_xe_utils.default.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? (0, import_vue.h)("span", "-") : VxeUINumberInputComponent ? (0, import_vue.h)(VxeUINumberInputComponent, {
1109
+ type: "integer",
1110
+ immediate: false,
1111
+ disabled: isHidden,
1112
+ modelValue: column.renderResizeWidth,
1113
+ min: customMinWidth || 0,
1114
+ max: customMaxWidth || 9999,
1115
+ "onUpdate:modelValue"(value) {
1116
+ const width = Math.max(0, Number(value));
1117
+ column.renderResizeWidth = width;
1118
+ },
1119
+ onChange() {
1120
+ changeColumnWidth(column);
1121
+ }
1122
+ }) : renderEmptyElement($xeTable)
1123
+ ])
1124
+ );
1222
1125
  }
1223
1126
  if (allowFixed) {
1224
- tdVNs.push((0, _vue.h)('td', {
1225
- key: 'af',
1226
- class: 'vxe-table-custom-popup--column-td col--fixed'
1227
- }, parentItem ? [(0, _vue.h)('span', '-')] : VxeUIRadioGroupComponent ? [(0, _vue.h)(VxeUIButtonComponent, {
1228
- icon: column.renderFixed === 'left' ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
1229
- status: column.renderFixed === 'left' ? 'primary' : '',
1230
- disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
1231
- title: getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft'),
1232
- onClick: ({
1233
- $event
1234
- }) => {
1235
- changeFixedOption(column, 'left', $event);
1236
- }
1237
- }), (0, _vue.h)(VxeUIButtonComponent, {
1238
- icon: column.renderFixed === 'right' ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
1239
- status: column.renderFixed === 'right' ? 'primary' : '',
1240
- disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
1241
- title: getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight'),
1242
- onClick: ({
1243
- $event
1244
- }) => {
1245
- changeFixedOption(column, 'right', $event);
1246
- }
1247
- })] : []));
1127
+ tdVNs.push(
1128
+ (0, import_vue.h)(
1129
+ "td",
1130
+ {
1131
+ key: "af",
1132
+ class: "vxe-table-custom-popup--column-td col--fixed"
1133
+ },
1134
+ parentItem ? [(0, import_vue.h)("span", "-")] : VxeUIRadioGroupComponent ? [
1135
+ (0, import_vue.h)(VxeUIButtonComponent, {
1136
+ icon: column.renderFixed === "left" ? getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
1137
+ status: column.renderFixed === "left" ? "primary" : "",
1138
+ disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
1139
+ title: getI18n(column.renderFixed === "left" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedLeft"),
1140
+ onClick: ({ $event }) => {
1141
+ changeFixedOption(column, "left", $event);
1142
+ }
1143
+ }),
1144
+ (0, import_vue.h)(VxeUIButtonComponent, {
1145
+ icon: column.renderFixed === "right" ? getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
1146
+ status: column.renderFixed === "right" ? "primary" : "",
1147
+ disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
1148
+ title: getI18n(column.renderFixed === "right" ? "vxe.toolbar.cancelFixed" : "vxe.toolbar.fixedRight"),
1149
+ onClick: ({ $event }) => {
1150
+ changeFixedOption(column, "right", $event);
1151
+ }
1152
+ })
1153
+ ] : []
1154
+ )
1155
+ );
1248
1156
  }
1249
1157
  if (allowAlign) {
1250
- tdVNs.push((0, _vue.h)('td', {
1251
- key: 'aa',
1252
- class: 'vxe-table-custom-popup--column-td col--align'
1253
- }, VxeUIRadioGroupComponent ? [(0, _vue.h)(VxeUIRadioGroupComponent, {
1254
- modelValue: column.renderAlign || 'left',
1255
- type: 'button',
1256
- strict: false,
1257
- disabled: isHidden,
1258
- options: alignList,
1259
- onChange({
1260
- value,
1261
- $event
1262
- }) {
1263
- changeAlignOption(column, value, 'align', 'renderAlign', 'custom-align-change', $event);
1264
- }
1265
- })] : []));
1158
+ tdVNs.push(
1159
+ (0, import_vue.h)(
1160
+ "td",
1161
+ {
1162
+ key: "aa",
1163
+ class: "vxe-table-custom-popup--column-td col--align"
1164
+ },
1165
+ VxeUIRadioGroupComponent ? [
1166
+ (0, import_vue.h)(VxeUIRadioGroupComponent, {
1167
+ modelValue: column.renderAlign || "left",
1168
+ type: "button",
1169
+ strict: false,
1170
+ disabled: isHidden,
1171
+ options: alignList,
1172
+ onChange({ value, $event }) {
1173
+ changeAlignOption(column, value, "align", "renderAlign", "custom-align-change", $event);
1174
+ }
1175
+ })
1176
+ ] : []
1177
+ )
1178
+ );
1266
1179
  }
1267
1180
  if (allowHeaderAlign) {
1268
- tdVNs.push((0, _vue.h)('td', {
1269
- key: 'aha',
1270
- class: 'vxe-table-custom-popup--column-td col--header-align'
1271
- }, isColGroup ? [(0, _vue.h)('span', '-')] : VxeUIRadioGroupComponent ? [(0, _vue.h)(VxeUIRadioGroupComponent, {
1272
- modelValue: column.renderHeaderAlign || 'left',
1273
- type: 'button',
1274
- strict: false,
1275
- disabled: isHidden,
1276
- options: alignList,
1277
- onChange({
1278
- value,
1279
- $event
1280
- }) {
1281
- changeAlignOption(column, value, 'headerAlign', 'renderHeaderAlign', 'custom-header-align-change', $event);
1282
- }
1283
- })] : []));
1181
+ tdVNs.push(
1182
+ (0, import_vue.h)(
1183
+ "td",
1184
+ {
1185
+ key: "aha",
1186
+ class: "vxe-table-custom-popup--column-td col--header-align"
1187
+ },
1188
+ isColGroup ? [(0, import_vue.h)("span", "-")] : VxeUIRadioGroupComponent ? [
1189
+ (0, import_vue.h)(VxeUIRadioGroupComponent, {
1190
+ modelValue: column.renderHeaderAlign || "left",
1191
+ type: "button",
1192
+ strict: false,
1193
+ disabled: isHidden,
1194
+ options: alignList,
1195
+ onChange({ value, $event }) {
1196
+ changeAlignOption(column, value, "headerAlign", "renderHeaderAlign", "custom-header-align-change", $event);
1197
+ }
1198
+ })
1199
+ ] : []
1200
+ )
1201
+ );
1284
1202
  }
1285
1203
  if (allowFooterAlign) {
1286
- tdVNs.push((0, _vue.h)('td', {
1287
- key: 'afa',
1288
- class: 'vxe-table-custom-popup--column-td col--footer-align'
1289
- }, isColGroup ? [(0, _vue.h)('span', '-')] : VxeUIRadioGroupComponent ? [(0, _vue.h)(VxeUIRadioGroupComponent, {
1290
- modelValue: column.renderFooterAlign || 'left',
1291
- type: 'button',
1292
- strict: false,
1293
- disabled: isHidden,
1294
- options: alignList,
1295
- onChange({
1296
- value,
1297
- $event
1298
- }) {
1299
- changeAlignOption(column, value, 'footerAlign', 'renderFooterAlign', 'custom-footer-align-change', $event);
1300
- }
1301
- })] : []));
1204
+ tdVNs.push(
1205
+ (0, import_vue.h)(
1206
+ "td",
1207
+ {
1208
+ key: "afa",
1209
+ class: "vxe-table-custom-popup--column-td col--footer-align"
1210
+ },
1211
+ isColGroup ? [(0, import_vue.h)("span", "-")] : VxeUIRadioGroupComponent ? [
1212
+ (0, import_vue.h)(VxeUIRadioGroupComponent, {
1213
+ modelValue: column.renderFooterAlign || "left",
1214
+ type: "button",
1215
+ strict: false,
1216
+ disabled: isHidden,
1217
+ options: alignList,
1218
+ onChange({ value, $event }) {
1219
+ changeAlignOption(column, value, "footerAlign", "renderFooterAlign", "custom-footer-align-change", $event);
1220
+ }
1221
+ })
1222
+ ] : []
1223
+ )
1224
+ );
1302
1225
  }
1303
- trVNs.push((0, _vue.h)('tr', {
1304
- key: column.id,
1305
- colid: column.id,
1306
- class: [`vxe-table-custom-popup--row level--${column.level}`, {
1307
- 'is--group': isColGroup
1308
- }],
1309
- onDragstart: sortDragstartEvent,
1310
- onDragend: sortDragendEvent,
1311
- onDragover: sortDragoverEvent
1312
- }, tdVNs));
1226
+ trVNs.push(
1227
+ (0, import_vue.h)("tr", {
1228
+ key: column.id,
1229
+ colid: column.id,
1230
+ class: [`vxe-table-custom-popup--row level--${column.level}`, {
1231
+ "is--group": isColGroup
1232
+ }],
1233
+ onDragstart: sortDragstartEvent,
1234
+ onDragend: sortDragendEvent,
1235
+ onDragover: sortDragoverEvent
1236
+ }, tdVNs)
1237
+ );
1313
1238
  }
1314
1239
  });
1315
1240
  return trVNs;
@@ -1317,43 +1242,17 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
1317
1242
  const renderPopupPanel = () => {
1318
1243
  const $xeGrid = $xeTable.xeGrid;
1319
1244
  const $xeGantt = $xeTable.xeGantt;
1320
- const {
1321
- customStore
1322
- } = props;
1323
- const {
1324
- treeConfig,
1325
- rowGroupConfig,
1326
- aggregateConfig
1327
- } = tableProps;
1328
- const {
1329
- isCustomStatus,
1330
- customColumnList
1331
- } = tableReactData;
1245
+ const { customStore } = props;
1246
+ const { treeConfig, rowGroupConfig, aggregateConfig } = tableProps;
1247
+ const { isCustomStatus, customColumnList } = tableReactData;
1332
1248
  const vSize = computeSize.value;
1333
1249
  const customOpts = computeCustomOpts.value;
1334
1250
  const aggregateOpts = computeAggregateOpts.value;
1335
- const {
1336
- panePopupStyle
1337
- } = customStore;
1338
- const {
1339
- placement: aggPlacement
1340
- } = aggregateOpts;
1341
- const {
1342
- mode,
1343
- immediate,
1344
- modalOptions,
1345
- drawerOptions,
1346
- allowVisible,
1347
- allowFixed,
1348
- allowAlign,
1349
- allowHeaderAlign,
1350
- allowFooterAlign,
1351
- allowResizable
1352
- } = customOpts;
1251
+ const { panePopupStyle } = customStore;
1252
+ const { placement: aggPlacement } = aggregateOpts;
1253
+ const { mode, immediate, modalOptions, drawerOptions, allowVisible, allowFixed, allowAlign, allowHeaderAlign, allowFooterAlign, allowResizable } = customOpts;
1353
1254
  const columnOpts = computeColumnOpts.value;
1354
- const {
1355
- maxFixedSize
1356
- } = columnOpts;
1255
+ const { maxFixedSize } = columnOpts;
1357
1256
  const modalOpts = Object.assign({}, modalOptions);
1358
1257
  const drawerOpts = Object.assign({}, drawerOptions);
1359
1258
  const slots = customOpts.slots || {};
@@ -1364,7 +1263,7 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
1364
1263
  const footerSlot = slots.footer;
1365
1264
  const isAllChecked = customStore.isAll;
1366
1265
  const isAllIndeterminate = customStore.isIndeterminate;
1367
- const isAggRtBmLayout = aggPlacement === 'right' || aggPlacement === 'bottom';
1266
+ const isAggRtBmLayout = aggPlacement === "right" || aggPlacement === "bottom";
1368
1267
  const params = {
1369
1268
  $table: $xeTable,
1370
1269
  $grid: $xeGrid,
@@ -1377,148 +1276,200 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
1377
1276
  const colVNs = [];
1378
1277
  const headVNs = [];
1379
1278
  if (allowVisible) {
1380
- colVNs.push((0, _vue.h)('col', {
1381
- key: 'av',
1382
- class: 'vxe-table-custom-popup--column-col col--checkbox'
1383
- }));
1384
- headVNs.push((0, _vue.h)('th', {
1385
- key: 'av',
1386
- class: 'vxe-table-custom-popup--column-th col--checkbox'
1387
- }, [(0, _vue.h)('div', {
1388
- class: ['vxe-table-custom--checkbox-option', {
1389
- 'is--checked': isAllChecked,
1390
- 'is--indeterminate': isAllIndeterminate
1391
- }],
1392
- title: getI18n('vxe.table.allTitle'),
1393
- onClick: allOptionEvent
1394
- }, [(0, _vue.h)('span', {
1395
- class: ['vxe-checkbox--icon', isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1396
- })
1397
- // h('span', {
1398
- // class: 'vxe-checkbox--label'
1399
- // }, getI18n('vxe.toolbar.customAll'))
1400
- ])]));
1279
+ colVNs.push(
1280
+ (0, import_vue.h)("col", {
1281
+ key: "av",
1282
+ class: "vxe-table-custom-popup--column-col col--checkbox"
1283
+ })
1284
+ );
1285
+ headVNs.push(
1286
+ (0, import_vue.h)("th", {
1287
+ key: "av",
1288
+ class: "vxe-table-custom-popup--column-th col--checkbox"
1289
+ }, [
1290
+ (0, import_vue.h)("div", {
1291
+ class: ["vxe-table-custom--checkbox-option", {
1292
+ "is--checked": isAllChecked,
1293
+ "is--indeterminate": isAllIndeterminate
1294
+ }],
1295
+ title: getI18n("vxe.table.allTitle"),
1296
+ onClick: allOptionEvent
1297
+ }, [
1298
+ (0, import_vue.h)("span", {
1299
+ class: ["vxe-checkbox--icon", isAllIndeterminate ? getIcon().TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? getIcon().TABLE_CHECKBOX_CHECKED : getIcon().TABLE_CHECKBOX_UNCHECKED]
1300
+ })
1301
+ // h('span', {
1302
+ // class: 'vxe-checkbox--label'
1303
+ // }, getI18n('vxe.toolbar.customAll'))
1304
+ ])
1305
+ ])
1306
+ );
1401
1307
  }
1402
- colVNs.push((0, _vue.h)('col', {
1403
- key: 'at',
1404
- class: 'vxe-table-custom-popup--column-col col--title'
1405
- }));
1406
- headVNs.push((0, _vue.h)('th', {
1407
- key: 'at',
1408
- class: 'vxe-table-custom-popup--column-th col--title'
1409
- }, getI18n('vxe.custom.setting.colTitle')));
1308
+ colVNs.push(
1309
+ (0, import_vue.h)("col", {
1310
+ key: "at",
1311
+ class: "vxe-table-custom-popup--column-col col--title"
1312
+ })
1313
+ );
1314
+ headVNs.push(
1315
+ (0, import_vue.h)("th", {
1316
+ key: "at",
1317
+ class: "vxe-table-custom-popup--column-th col--title"
1318
+ }, getI18n("vxe.custom.setting.colTitle"))
1319
+ );
1410
1320
  if (allowResizable) {
1411
- colVNs.push((0, _vue.h)('col', {
1412
- key: 'aw',
1413
- class: 'vxe-table-custom-popup--column-col col--width'
1414
- }));
1415
- headVNs.push((0, _vue.h)('th', {
1416
- key: 'aw',
1417
- class: 'vxe-table-custom-popup--column-th col--width'
1418
- }, getI18n('vxe.custom.setting.colResizable')));
1321
+ colVNs.push(
1322
+ (0, import_vue.h)("col", {
1323
+ key: "aw",
1324
+ class: "vxe-table-custom-popup--column-col col--width"
1325
+ })
1326
+ );
1327
+ headVNs.push(
1328
+ (0, import_vue.h)("th", {
1329
+ key: "aw",
1330
+ class: "vxe-table-custom-popup--column-th col--width"
1331
+ }, getI18n("vxe.custom.setting.colResizable"))
1332
+ );
1419
1333
  }
1420
1334
  if (allowFixed) {
1421
- colVNs.push((0, _vue.h)('col', {
1422
- key: 'af',
1423
- class: 'vxe-table-custom-popup--column-col col--fixed'
1424
- }));
1425
- headVNs.push((0, _vue.h)('th', {
1426
- key: 'af',
1427
- class: 'vxe-table-custom-popup--column-th col--fixed'
1428
- }, getI18n(`vxe.custom.setting.${maxFixedSize ? 'colFixedMax' : 'colFixed'}`, [maxFixedSize])));
1335
+ colVNs.push(
1336
+ (0, import_vue.h)("col", {
1337
+ key: "af",
1338
+ class: "vxe-table-custom-popup--column-col col--fixed"
1339
+ })
1340
+ );
1341
+ headVNs.push(
1342
+ (0, import_vue.h)("th", {
1343
+ key: "af",
1344
+ class: "vxe-table-custom-popup--column-th col--fixed"
1345
+ }, getI18n(`vxe.custom.setting.${maxFixedSize ? "colFixedMax" : "colFixed"}`, [maxFixedSize]))
1346
+ );
1429
1347
  }
1430
1348
  if (allowAlign) {
1431
- colVNs.push((0, _vue.h)('col', {
1432
- key: 'aa',
1433
- class: 'vxe-table-custom-popup--column-col col--align'
1434
- }));
1435
- headVNs.push((0, _vue.h)('th', {
1436
- key: 'aa',
1437
- class: 'vxe-table-custom-popup--column-th col--align'
1438
- }, getI18n('vxe.custom.setting.colAlign')));
1349
+ colVNs.push(
1350
+ (0, import_vue.h)("col", {
1351
+ key: "aa",
1352
+ class: "vxe-table-custom-popup--column-col col--align"
1353
+ })
1354
+ );
1355
+ headVNs.push(
1356
+ (0, import_vue.h)("th", {
1357
+ key: "aa",
1358
+ class: "vxe-table-custom-popup--column-th col--align"
1359
+ }, getI18n("vxe.custom.setting.colAlign"))
1360
+ );
1439
1361
  }
1440
1362
  if (allowHeaderAlign) {
1441
- colVNs.push((0, _vue.h)('col', {
1442
- key: 'aha',
1443
- class: 'vxe-table-custom-popup--column-col col--header-align'
1444
- }));
1445
- headVNs.push((0, _vue.h)('th', {
1446
- key: 'aha',
1447
- class: 'vxe-table-custom-popup--column-th col--header-align'
1448
- }, getI18n('vxe.custom.setting.colHeadAlign')));
1363
+ colVNs.push(
1364
+ (0, import_vue.h)("col", {
1365
+ key: "aha",
1366
+ class: "vxe-table-custom-popup--column-col col--header-align"
1367
+ })
1368
+ );
1369
+ headVNs.push(
1370
+ (0, import_vue.h)("th", {
1371
+ key: "aha",
1372
+ class: "vxe-table-custom-popup--column-th col--header-align"
1373
+ }, getI18n("vxe.custom.setting.colHeadAlign"))
1374
+ );
1449
1375
  }
1450
1376
  if (allowFooterAlign) {
1451
- colVNs.push((0, _vue.h)('col', {
1452
- key: 'afa',
1453
- class: 'vxe-table-custom-popup--column-col col--footer-align'
1454
- }));
1455
- headVNs.push((0, _vue.h)('th', {
1456
- key: 'afa',
1457
- class: 'vxe-table-custom-popup--column-th col--footer-align'
1458
- }, getI18n('vxe.custom.setting.colFootAlign')));
1377
+ colVNs.push(
1378
+ (0, import_vue.h)("col", {
1379
+ key: "afa",
1380
+ class: "vxe-table-custom-popup--column-col col--footer-align"
1381
+ })
1382
+ );
1383
+ headVNs.push(
1384
+ (0, import_vue.h)("th", {
1385
+ key: "afa",
1386
+ class: "vxe-table-custom-popup--column-th col--footer-align"
1387
+ }, getI18n("vxe.custom.setting.colFootAlign"))
1388
+ );
1459
1389
  }
1460
1390
  const scopedSlots = {
1461
1391
  default: () => {
1462
- return (0, _vue.h)('div', {
1392
+ return (0, import_vue.h)("div", {
1463
1393
  ref: refBodyWrapperElem,
1464
- class: ['vxe-table-custom-popup--body-wrapper', `agg-layout--${aggPlacement}`, {
1394
+ class: ["vxe-table-custom-popup--body-wrapper", `agg-layout--${aggPlacement}`, {
1465
1395
  [`size--${vSize}`]: vSize
1466
1396
  }],
1467
1397
  style: panePopupStyle
1468
- }, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [!isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, _vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1469
- customStore
1470
- }) : renderEmptyElement($xeTable), (0, _vue.h)('div', {
1471
- ref: refCustomBodyElem,
1472
- class: 'vxe-table-custom-popup--handle-wrapper'
1473
- }, [topSlot ? (0, _vue.h)('div', {
1474
- class: 'vxe-table-custom-popup--table-top'
1475
- }, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable), (0, _vue.h)('div', {
1476
- class: 'vxe-table-custom-popup--table-wrapper'
1477
- }, [(0, _vue.h)('table', {}, [(0, _vue.h)('colgroup', {}, colVNs), (0, _vue.h)('thead', {}, [(0, _vue.h)('tr', {}, headVNs)]), (0, _vue.h)(_vue.TransitionGroup, {
1478
- class: 'vxe-table-custom--panel-list',
1479
- tag: 'tbody',
1480
- name: 'vxe-table-custom--list'
1481
- }, {
1482
- default: () => renderPopupBodys()
1483
- })])]), bottomSlot ? (0, _vue.h)('div', {
1484
- class: 'vxe-table-custom-popup--table-bottom'
1485
- }, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable), renderDragTip()]), isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, _vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1486
- customStore
1487
- }) : renderEmptyElement($xeTable)]);
1398
+ }, defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
1399
+ !isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, import_vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1400
+ customStore
1401
+ }) : renderEmptyElement($xeTable),
1402
+ (0, import_vue.h)("div", {
1403
+ ref: refCustomBodyElem,
1404
+ class: "vxe-table-custom-popup--handle-wrapper"
1405
+ }, [
1406
+ topSlot ? (0, import_vue.h)("div", {
1407
+ class: "vxe-table-custom-popup--table-top"
1408
+ }, $xeTable.callSlot(topSlot, params)) : renderEmptyElement($xeTable),
1409
+ (0, import_vue.h)("div", {
1410
+ class: "vxe-table-custom-popup--table-wrapper"
1411
+ }, [
1412
+ (0, import_vue.h)("table", {}, [
1413
+ (0, import_vue.h)("colgroup", {}, colVNs),
1414
+ (0, import_vue.h)("thead", {}, [
1415
+ (0, import_vue.h)("tr", {}, headVNs)
1416
+ ]),
1417
+ (0, import_vue.h)(import_vue.TransitionGroup, {
1418
+ class: "vxe-table-custom--panel-list",
1419
+ tag: "tbody",
1420
+ name: "vxe-table-custom--list"
1421
+ }, {
1422
+ default: () => renderPopupBodys()
1423
+ })
1424
+ ])
1425
+ ]),
1426
+ bottomSlot ? (0, import_vue.h)("div", {
1427
+ class: "vxe-table-custom-popup--table-bottom"
1428
+ }, $xeTable.callSlot(bottomSlot, params)) : renderEmptyElement($xeTable),
1429
+ renderDragTip()
1430
+ ]),
1431
+ isAggRtBmLayout && !treeConfig && (aggregateConfig || rowGroupConfig) && $xeTable.getPivotTableAggregatePopupPanel ? (0, import_vue.h)($xeTable.getPivotTableAggregatePopupPanel(), {
1432
+ customStore
1433
+ }) : renderEmptyElement($xeTable)
1434
+ ]);
1488
1435
  },
1489
1436
  footer: () => {
1490
1437
  if (footerSlot) {
1491
1438
  return $xeTable.callSlot(footerSlot, params);
1492
1439
  }
1493
- return (0, _vue.h)('div', {
1494
- class: 'vxe-table-custom-popup--footer'
1495
- }, [VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1496
- content: customOpts.resetButtonText || getI18n('vxe.custom.cstmRestore'),
1497
- disabled: !isCustomStatus,
1498
- onClick: resetCustomEvent
1499
- }) : renderEmptyElement($xeTable), immediate ? VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1500
- status: 'primary',
1501
- content: customOpts.closeButtonText || getI18n('vxe.table.customClose'),
1502
- onClick: cancelCloseEvent
1503
- }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1504
- content: customOpts.cancelButtonText || getI18n('vxe.table.customCancel'),
1505
- onClick: cancelCustomEvent
1506
- }) : renderEmptyElement($xeTable), immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, _vue.h)(VxeUIButtonComponent, {
1507
- status: 'primary',
1508
- content: customOpts.confirmButtonText || getI18n('vxe.custom.cstmConfirm'),
1509
- onClick: confirmCustomEvent
1510
- }) : renderEmptyElement($xeTable)]);
1440
+ return (0, import_vue.h)("div", {
1441
+ class: "vxe-table-custom-popup--footer"
1442
+ }, [
1443
+ VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1444
+ content: customOpts.resetButtonText || getI18n("vxe.custom.cstmRestore"),
1445
+ disabled: !isCustomStatus,
1446
+ onClick: resetCustomEvent
1447
+ }) : renderEmptyElement($xeTable),
1448
+ immediate ? VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1449
+ status: "primary",
1450
+ content: customOpts.closeButtonText || getI18n("vxe.table.customClose"),
1451
+ onClick: cancelCloseEvent
1452
+ }) : renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1453
+ content: customOpts.cancelButtonText || getI18n("vxe.table.customCancel"),
1454
+ onClick: cancelCustomEvent
1455
+ }) : renderEmptyElement($xeTable),
1456
+ immediate ? renderEmptyElement($xeTable) : VxeUIButtonComponent ? (0, import_vue.h)(VxeUIButtonComponent, {
1457
+ status: "primary",
1458
+ content: customOpts.confirmButtonText || getI18n("vxe.custom.cstmConfirm"),
1459
+ onClick: confirmCustomEvent
1460
+ }) : renderEmptyElement($xeTable)
1461
+ ]);
1511
1462
  }
1512
1463
  };
1513
1464
  if (headerSlot) {
1514
1465
  scopedSlots.header = () => $xeTable.callSlot(headerSlot, params);
1515
1466
  }
1516
- if (mode === 'drawer') {
1517
- return VxeUIDrawerComponent ? (0, _vue.h)(VxeUIDrawerComponent, {
1518
- key: 'drawer',
1519
- className: ['vxe-table-custom-drawer-wrapper', 'vxe-table--ignore-clear', drawerOpts.className || ''].join(' '),
1467
+ if (mode === "drawer") {
1468
+ return VxeUIDrawerComponent ? (0, import_vue.h)(VxeUIDrawerComponent, {
1469
+ key: "drawer",
1470
+ className: ["vxe-table-custom-drawer-wrapper", "vxe-table--ignore-clear", drawerOpts.className || ""].join(" "),
1520
1471
  modelValue: customStore.visible,
1521
- title: drawerOpts.title || getI18n('vxe.custom.cstmTitle'),
1472
+ title: drawerOpts.title || getI18n("vxe.custom.cstmTitle"),
1522
1473
  width: drawerOpts.width || Math.min(880, Math.floor(document.documentElement.clientWidth * 0.6)),
1523
1474
  position: drawerOpts.position,
1524
1475
  resize: !!drawerOpts.resize,
@@ -1526,17 +1477,17 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
1526
1477
  maskClosable: !!drawerOpts.maskClosable,
1527
1478
  destroyOnClose: true,
1528
1479
  showFooter: true,
1529
- 'onUpdate:modelValue'(value) {
1480
+ "onUpdate:modelValue"(value) {
1530
1481
  customStore.visible = value;
1531
1482
  }
1532
1483
  }, scopedSlots) : renderEmptyElement($xeTable);
1533
1484
  }
1534
- return VxeUIModalComponent ? (0, _vue.h)(VxeUIModalComponent, {
1535
- key: 'modal',
1536
- className: ['vxe-table-custom-modal-wrapper', 'vxe-table--ignore-clear', modalOpts.className || ''].join(' '),
1485
+ return VxeUIModalComponent ? (0, import_vue.h)(VxeUIModalComponent, {
1486
+ key: "modal",
1487
+ className: ["vxe-table-custom-modal-wrapper", "vxe-table--ignore-clear", modalOpts.className || ""].join(" "),
1537
1488
  modelValue: customStore.visible,
1538
- title: modalOpts.title || getI18n('vxe.custom.cstmTitle'),
1539
- width: modalOpts.width || Math.min(1000, document.documentElement.clientWidth),
1489
+ title: modalOpts.title || getI18n("vxe.custom.cstmTitle"),
1490
+ width: modalOpts.width || Math.min(1e3, document.documentElement.clientWidth),
1540
1491
  minWidth: modalOpts.minWidth || 800,
1541
1492
  height: modalOpts.height || Math.min(680, document.documentElement.clientHeight),
1542
1493
  minHeight: modalOpts.minHeight || 400,
@@ -1551,37 +1502,35 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
1551
1502
  maskClosable: !!modalOpts.maskClosable,
1552
1503
  destroyOnClose: true,
1553
1504
  showFooter: true,
1554
- 'onUpdate:modelValue'(value) {
1505
+ "onUpdate:modelValue"(value) {
1555
1506
  customStore.visible = value;
1556
1507
  }
1557
1508
  }, scopedSlots) : renderEmptyElement($xeTable);
1558
1509
  };
1559
1510
  const renderVN = () => {
1560
1511
  const customOpts = computeCustomOpts.value;
1561
- if (['modal', 'drawer', 'popup'].includes(`${customOpts.mode}`)) {
1512
+ if (["modal", "drawer", "popup"].includes(`${customOpts.mode}`)) {
1562
1513
  return renderPopupPanel();
1563
1514
  }
1564
1515
  return renderSimplePanel();
1565
1516
  };
1566
- (0, _vue.nextTick)(() => {
1517
+ (0, import_vue.nextTick)(() => {
1567
1518
  const customOpts = computeCustomOpts.value;
1568
- const {
1569
- mode
1570
- } = customOpts;
1571
- if (!VxeUIModalComponent && mode === 'modal') {
1572
- errLog('vxe.error.reqComp', ['vxe-modal']);
1519
+ const { mode } = customOpts;
1520
+ if (!VxeUIModalComponent && mode === "modal") {
1521
+ errLog("vxe.error.reqComp", ["vxe-modal"]);
1573
1522
  }
1574
- if (!VxeUIDrawerComponent && mode === 'drawer') {
1575
- errLog('vxe.error.reqComp', ['vxe-drawer']);
1523
+ if (!VxeUIDrawerComponent && mode === "drawer") {
1524
+ errLog("vxe.error.reqComp", ["vxe-drawer"]);
1576
1525
  }
1577
1526
  if (!VxeUIButtonComponent) {
1578
- errLog('vxe.error.reqComp', ['vxe-button']);
1527
+ errLog("vxe.error.reqComp", ["vxe-button"]);
1579
1528
  }
1580
1529
  if (!VxeUINumberInputComponent) {
1581
- errLog('vxe.error.reqComp', ['vxe-number-input']);
1530
+ errLog("vxe.error.reqComp", ["vxe-number-input"]);
1582
1531
  }
1583
1532
  if (!VxeUIRadioGroupComponent) {
1584
- errLog('vxe.error.reqComp', ['vxe-radio-group']);
1533
+ errLog("vxe.error.reqComp", ["vxe-radio-group"]);
1585
1534
  }
1586
1535
  });
1587
1536
  const $xeTableCustomPanel = {
@@ -1595,13 +1544,13 @@ var _default = exports.default = (0, _comp.defineVxeComponent)({
1595
1544
  getComputeMaps: () => computeMaps,
1596
1545
  renderVN
1597
1546
  };
1598
- (0, _vue.onUnmounted)(() => {
1547
+ (0, import_vue.onUnmounted)(() => {
1599
1548
  customPanelInternalData = createInternalData();
1600
1549
  });
1601
- (0, _vue.provide)('$xeTableCustomPanel', $xeTableCustomPanel);
1550
+ (0, import_vue.provide)("$xeTableCustomPanel", $xeTableCustomPanel);
1602
1551
  return $xeTableCustomPanel;
1603
1552
  },
1604
1553
  render() {
1605
1554
  return this.renderVN();
1606
1555
  }
1607
- });
1556
+ });