vxe-pc-ui 4.20.25 → 4.20.26

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 (626) hide show
  1. package/dist/all.esm.js +15059 -10308
  2. package/dist/style.css +1 -1
  3. package/dist/style.mini.css +1 -1
  4. package/es/alert/src/alert.js +61 -36
  5. package/es/anchor/src/anchor-link.js +39 -20
  6. package/es/anchor/src/anchor.js +74 -45
  7. package/es/avatar/src/avatar.js +47 -27
  8. package/es/backtop/src/backtop.js +65 -40
  9. package/es/badge/src/badge.js +32 -16
  10. package/es/breadcrumb/src/breadcrumb-item.js +52 -27
  11. package/es/breadcrumb/src/breadcrumb.js +11 -8
  12. package/es/button/src/button-group.js +24 -18
  13. package/es/button/src/button.js +284 -185
  14. package/es/calendar/src/calendar.js +571 -358
  15. package/es/card/src/card.js +123 -68
  16. package/es/carousel/src/carousel-item.js +14 -7
  17. package/es/carousel/src/carousel.js +174 -112
  18. package/es/cascader/src/cascader.js +526 -380
  19. package/es/checkbox/src/button.js +90 -55
  20. package/es/checkbox/src/checkbox.js +60 -40
  21. package/es/checkbox/src/group.js +34 -26
  22. package/es/collapse/src/collapse-pane.js +33 -16
  23. package/es/collapse/src/collapse.js +133 -79
  24. package/es/color-picker/src/color-picker.js +489 -350
  25. package/es/components.d.ts +3 -1
  26. package/es/components.js +3 -2
  27. package/es/context-menu/src/context-menu.js +190 -110
  28. package/es/countdown/src/countdown.js +91 -59
  29. package/es/date-panel/src/date-panel.js +760 -450
  30. package/es/date-picker/src/date-picker.js +331 -228
  31. package/es/date-range-picker/src/date-range-picker.js +366 -265
  32. package/es/divider/src/divider.js +26 -12
  33. package/es/drawer/src/drawer.js +254 -154
  34. package/es/dynamics/index.js +38 -25
  35. package/es/empty/src/empty.js +53 -29
  36. package/es/form/render/index.js +66 -41
  37. package/es/form/src/form-config-item.js +22 -16
  38. package/es/form/src/form-group.js +23 -14
  39. package/es/form/src/form-item.js +23 -17
  40. package/es/form/src/form.js +139 -95
  41. package/es/form/src/itemInfo.js +2 -1
  42. package/es/form/src/render.js +207 -127
  43. package/es/form/src/util.js +8 -4
  44. package/es/icon/src/icon.js +14 -10
  45. package/es/icon/style.css +1 -1
  46. package/es/icon/style.mini.css +1 -1
  47. package/es/icon-picker/src/icon-picker.js +250 -157
  48. package/es/image/src/group.js +26 -20
  49. package/es/image/src/image.js +33 -32
  50. package/es/image/src/preview.js +182 -122
  51. package/es/image/src/util.js +6 -3
  52. package/es/index.esm.js +9 -8
  53. package/es/index.js +9 -8
  54. package/es/input/src/input.js +820 -507
  55. package/es/layout-aside/src/layout-aside.js +54 -38
  56. package/es/layout-body/src/layout-body.js +39 -27
  57. package/es/layout-container/src/layout-container.js +16 -9
  58. package/es/layout-footer/src/layout-footer.js +16 -7
  59. package/es/layout-header/src/layout-header.js +15 -7
  60. package/es/link/src/link.js +65 -44
  61. package/es/list/src/list.js +453 -333
  62. package/es/loading/index.js +8 -5
  63. package/es/loading/src/loading.js +60 -33
  64. package/es/mention/src/mention.js +2 -1
  65. package/es/menu/src/menu.js +341 -210
  66. package/es/modal/index.js +60 -37
  67. package/es/modal/src/modal.js +303 -205
  68. package/es/notice-bar/src/notice-bar.js +64 -37
  69. package/es/number-input/src/number-input.js +249 -172
  70. package/es/pager/src/pager.js +346 -202
  71. package/es/password-input/src/password-input.js +145 -105
  72. package/es/print/src/page-break.js +2 -1
  73. package/es/print/src/print.js +184 -99
  74. package/es/pulldown/src/pulldown.js +113 -71
  75. package/es/radio/src/button.js +92 -57
  76. package/es/radio/src/group.js +33 -25
  77. package/es/radio/src/radio.js +61 -41
  78. package/es/rate/src/rate.js +48 -36
  79. package/es/result/src/result.js +67 -35
  80. package/es/row/src/col.js +30 -16
  81. package/es/row/src/row.js +21 -14
  82. package/es/scrollbar/src/scrollbar.js +177 -145
  83. package/es/segmented/src/segmented.js +93 -60
  84. package/es/select/src/optgroup.js +7 -3
  85. package/es/select/src/select.js +483 -340
  86. package/es/select/src/util.js +6 -3
  87. package/es/slider/src/slider.js +108 -80
  88. package/es/space/src/space.js +40 -23
  89. package/es/splitter/src/splitter-panel.js +50 -25
  90. package/es/splitter/src/splitter.js +219 -144
  91. package/es/steps/src/steps.js +10 -5
  92. package/es/style.css +1 -1
  93. package/es/style.mini.css +1 -1
  94. package/es/switch/src/switch.js +85 -57
  95. package/es/table-select/src/table-select.js +232 -153
  96. package/es/table-transfer/src/table-transfer.js +10 -5
  97. package/es/tabs/src/tab-pane.js +33 -16
  98. package/es/tabs/src/tabs.js +363 -230
  99. package/es/tag/src/tag.js +61 -43
  100. package/es/text/src/text.js +89 -65
  101. package/es/text-ellipsis/src/text-ellipsis.js +82 -51
  102. package/es/textarea/src/textarea.js +116 -86
  103. package/es/timeline/src/timeline-item.js +2 -1
  104. package/es/timeline/src/timeline.js +2 -1
  105. package/es/tip/src/tip.js +53 -29
  106. package/es/tooltip/src/tooltip.js +114 -74
  107. package/es/tour/src/tour.js +2 -1
  108. package/es/transfer/src/transfer.js +42 -25
  109. package/es/tree/src/tree.js +709 -492
  110. package/es/tree-select/src/tree-select.js +320 -225
  111. package/es/ui/index.d.ts +0 -1
  112. package/es/ui/index.js +46 -3
  113. package/es/ui/src/dom.js +9 -6
  114. package/es/ui/src/log.js +1 -1
  115. package/es/ui/src/utils.d.ts +1 -1
  116. package/es/upload/src/upload.js +614 -398
  117. package/es/vxe-icon/style.css +1 -1
  118. package/es/vxe-icon/style.mini.css +1 -1
  119. package/es/watermark/src/util.js +15 -12
  120. package/es/watermark/src/watermark.js +55 -25
  121. package/lib/alert/src/alert.js +62 -37
  122. package/lib/anchor/src/anchor-link.js +39 -20
  123. package/lib/anchor/src/anchor.js +75 -46
  124. package/lib/avatar/src/avatar.js +52 -32
  125. package/lib/backtop/src/backtop.js +81 -56
  126. package/lib/badge/src/badge.js +35 -19
  127. package/lib/breadcrumb/src/breadcrumb-item.js +52 -27
  128. package/lib/breadcrumb/src/breadcrumb.js +13 -10
  129. package/lib/button/src/button-group.js +27 -21
  130. package/lib/button/src/button.js +306 -207
  131. package/lib/calendar/src/calendar.js +575 -362
  132. package/lib/card/src/card.js +133 -78
  133. package/lib/carousel/src/carousel-item.js +15 -8
  134. package/lib/carousel/src/carousel.js +182 -120
  135. package/lib/cascader/src/cascader.js +555 -409
  136. package/lib/checkbox/src/button.js +93 -58
  137. package/lib/checkbox/src/checkbox.js +63 -43
  138. package/lib/checkbox/src/group.js +37 -29
  139. package/lib/collapse/src/collapse-pane.js +34 -17
  140. package/lib/collapse/src/collapse.js +139 -85
  141. package/lib/color-picker/src/color-picker.js +516 -377
  142. package/lib/components.js +3 -2
  143. package/lib/context-menu/src/context-menu.js +212 -132
  144. package/lib/countdown/src/countdown.js +95 -63
  145. package/lib/date-panel/src/date-panel.js +776 -466
  146. package/lib/date-picker/src/date-picker.js +377 -274
  147. package/lib/date-range-picker/src/date-range-picker.js +401 -300
  148. package/lib/divider/src/divider.js +31 -17
  149. package/lib/drawer/src/drawer.js +255 -155
  150. package/lib/dynamics/index.js +38 -25
  151. package/lib/empty/src/empty.js +55 -31
  152. package/lib/form/render/index.js +68 -43
  153. package/lib/form/src/form-config-item.js +24 -18
  154. package/lib/form/src/form-group.js +25 -16
  155. package/lib/form/src/form-item.js +25 -19
  156. package/lib/form/src/form.js +140 -96
  157. package/lib/form/src/itemInfo.js +4 -3
  158. package/lib/form/src/render.js +214 -134
  159. package/lib/form/src/util.js +9 -5
  160. package/lib/icon/src/icon.js +17 -13
  161. package/lib/icon/style/style.css +1 -1
  162. package/lib/icon/style/style.mini.css +1 -1
  163. package/lib/icon-picker/src/icon-picker.js +251 -158
  164. package/lib/image/src/group.js +26 -20
  165. package/lib/image/src/image.js +41 -40
  166. package/lib/image/src/preview.js +206 -146
  167. package/lib/image/src/util.js +6 -3
  168. package/lib/index.common.js +9 -8
  169. package/lib/index.js +9 -8
  170. package/lib/index.umd.js +15131 -10364
  171. package/lib/index.umd.min.js +3 -3
  172. package/lib/input/src/input.js +878 -565
  173. package/lib/layout-aside/src/layout-aside.js +61 -45
  174. package/lib/layout-body/src/layout-body.js +47 -35
  175. package/lib/layout-container/src/layout-container.js +18 -11
  176. package/lib/layout-footer/src/layout-footer.js +17 -8
  177. package/lib/layout-header/src/layout-header.js +16 -8
  178. package/lib/link/src/link.js +69 -48
  179. package/lib/list/src/list.js +456 -336
  180. package/lib/loading/index.js +8 -5
  181. package/lib/loading/src/loading.js +69 -42
  182. package/lib/mention/src/mention.js +4 -3
  183. package/lib/menu/src/menu.js +351 -220
  184. package/lib/modal/index.js +60 -37
  185. package/lib/modal/src/modal.js +306 -208
  186. package/lib/notice-bar/src/notice-bar.js +70 -43
  187. package/lib/number-input/src/number-input.js +290 -213
  188. package/lib/pager/src/pager.js +347 -203
  189. package/lib/password-input/src/password-input.js +155 -115
  190. package/lib/print/src/page-break.js +3 -2
  191. package/lib/print/src/print.js +193 -108
  192. package/lib/pulldown/src/pulldown.js +128 -86
  193. package/lib/radio/src/button.js +96 -61
  194. package/lib/radio/src/group.js +37 -29
  195. package/lib/radio/src/radio.js +65 -45
  196. package/lib/rate/src/rate.js +50 -38
  197. package/lib/result/src/result.js +68 -36
  198. package/lib/row/src/col.js +32 -18
  199. package/lib/row/src/row.js +25 -18
  200. package/lib/scrollbar/src/scrollbar.js +178 -146
  201. package/lib/segmented/src/segmented.js +97 -64
  202. package/lib/select/src/optgroup.js +7 -3
  203. package/lib/select/src/select.js +486 -343
  204. package/lib/select/src/util.js +6 -3
  205. package/lib/slider/src/slider.js +122 -94
  206. package/lib/space/src/space.js +54 -37
  207. package/lib/splitter/src/splitter-panel.js +51 -26
  208. package/lib/splitter/src/splitter.js +233 -158
  209. package/lib/steps/src/steps.js +11 -6
  210. package/lib/style.css +1 -1
  211. package/lib/style.mini.css +1 -1
  212. package/lib/switch/src/switch.js +87 -59
  213. package/lib/table-select/src/table-select.js +234 -155
  214. package/lib/table-transfer/src/table-transfer.js +12 -7
  215. package/lib/tabs/src/tab-pane.js +34 -17
  216. package/lib/tabs/src/tabs.js +365 -232
  217. package/lib/tag/src/tag.js +67 -49
  218. package/lib/text/src/text.js +100 -76
  219. package/lib/text-ellipsis/src/text-ellipsis.js +86 -55
  220. package/lib/textarea/src/textarea.js +127 -97
  221. package/lib/timeline/src/timeline-item.js +3 -2
  222. package/lib/timeline/src/timeline.js +4 -3
  223. package/lib/tip/src/tip.js +58 -34
  224. package/lib/tooltip/src/tooltip.js +116 -76
  225. package/lib/tour/src/tour.js +4 -3
  226. package/lib/transfer/src/transfer.js +44 -27
  227. package/lib/tree/src/tree.js +717 -500
  228. package/lib/tree-select/src/tree-select.js +351 -256
  229. package/lib/ui/index.js +46 -4
  230. package/lib/ui/src/dom.js +9 -6
  231. package/lib/ui/src/log.js +1 -1
  232. package/lib/upload/src/upload.js +708 -492
  233. package/lib/vxe-icon/style/style.css +1 -1
  234. package/lib/vxe-icon/style/style.mini.css +1 -1
  235. package/lib/watermark/src/util.js +15 -12
  236. package/lib/watermark/src/watermark.js +60 -30
  237. package/package.json +10 -4
  238. package/packages/alert/index.ts +16 -16
  239. package/packages/alert/src/alert.ts +148 -126
  240. package/packages/anchor/index.ts +16 -16
  241. package/packages/anchor/src/anchor-link.ts +139 -121
  242. package/packages/anchor/src/anchor.ts +266 -237
  243. package/packages/anchor/src/util.ts +23 -23
  244. package/packages/anchor-link/index.ts +16 -16
  245. package/packages/avatar/index.ts +16 -16
  246. package/packages/avatar/src/avatar.ts +166 -149
  247. package/packages/backtop/index.ts +16 -16
  248. package/packages/backtop/src/backtop.ts +337 -313
  249. package/packages/badge/index.ts +16 -16
  250. package/packages/badge/src/badge.ts +131 -118
  251. package/packages/breadcrumb/index.ts +16 -16
  252. package/packages/breadcrumb/src/breadcrumb-item.ts +129 -106
  253. package/packages/breadcrumb/src/breadcrumb.ts +94 -92
  254. package/packages/breadcrumb-item/index.ts +16 -16
  255. package/packages/button/index.ts +16 -16
  256. package/packages/button/src/button-group.ts +116 -110
  257. package/packages/button/src/button.ts +975 -855
  258. package/packages/button-group/index.ts +16 -16
  259. package/packages/calendar/index.ts +16 -16
  260. package/packages/calendar/src/calendar.ts +1566 -1352
  261. package/packages/card/index.ts +16 -16
  262. package/packages/card/src/card.ts +285 -236
  263. package/packages/carousel/index.ts +16 -16
  264. package/packages/carousel/src/carousel-item.ts +120 -102
  265. package/packages/carousel/src/carousel.ts +475 -414
  266. package/packages/carousel/src/util.ts +21 -21
  267. package/packages/carousel-item/index.ts +16 -16
  268. package/packages/cascader/index.ts +16 -16
  269. package/packages/cascader/src/cascader.ts +2074 -1896
  270. package/packages/cascader/src/util.ts +9 -9
  271. package/packages/checkbox/index.ts +16 -16
  272. package/packages/checkbox/src/button.ts +267 -221
  273. package/packages/checkbox/src/checkbox.ts +219 -199
  274. package/packages/checkbox/src/group.ts +292 -269
  275. package/packages/checkbox-button/index.ts +16 -16
  276. package/packages/checkbox-group/index.ts +16 -16
  277. package/packages/col/index.ts +16 -16
  278. package/packages/collapse/index.ts +16 -16
  279. package/packages/collapse/src/collapse-pane.ts +142 -114
  280. package/packages/collapse/src/collapse.ts +453 -384
  281. package/packages/collapse/src/util.ts +21 -21
  282. package/packages/collapse-pane/index.ts +16 -16
  283. package/packages/color-picker/index.ts +31 -31
  284. package/packages/color-picker/src/color-picker.ts +1310 -1147
  285. package/packages/color-picker/src/util.ts +436 -423
  286. package/packages/components.ts +350 -349
  287. package/packages/context-menu/index.ts +54 -54
  288. package/packages/context-menu/src/context-menu.ts +773 -681
  289. package/packages/countdown/index.ts +16 -16
  290. package/packages/countdown/src/countdown.ts +295 -262
  291. package/packages/date-panel/index.ts +16 -16
  292. package/packages/date-panel/src/date-panel.ts +2214 -1900
  293. package/packages/date-panel/src/util.ts +354 -326
  294. package/packages/date-picker/index.ts +16 -16
  295. package/packages/date-picker/src/date-picker.ts +1884 -1752
  296. package/packages/date-range-picker/index.ts +16 -16
  297. package/packages/date-range-picker/src/date-range-picker.ts +1728 -1604
  298. package/packages/divider/index.ts +16 -16
  299. package/packages/divider/src/divider.ts +105 -93
  300. package/packages/drawer/index.ts +78 -78
  301. package/packages/drawer/src/drawer.ts +920 -802
  302. package/packages/drawer/src/store.ts +3 -3
  303. package/packages/dynamics/index.ts +124 -117
  304. package/packages/empty/index.ts +16 -16
  305. package/packages/empty/src/empty.ts +124 -103
  306. package/packages/form/index.ts +16 -16
  307. package/packages/form/render/index.ts +646 -614
  308. package/packages/form/src/form-config-item.ts +85 -80
  309. package/packages/form/src/form-group.ts +96 -86
  310. package/packages/form/src/form-item.ts +181 -174
  311. package/packages/form/src/form.ts +1122 -1069
  312. package/packages/form/src/itemInfo.ts +84 -82
  313. package/packages/form/src/render.ts +470 -387
  314. package/packages/form/src/util.ts +98 -93
  315. package/packages/form-gather/index.ts +26 -26
  316. package/packages/form-group/index.ts +16 -16
  317. package/packages/form-item/index.ts +16 -16
  318. package/packages/icon/index.ts +16 -16
  319. package/packages/icon/src/icon.ts +78 -75
  320. package/packages/icon-picker/index.ts +16 -16
  321. package/packages/icon-picker/src/icon-picker.ts +922 -809
  322. package/packages/image/index.ts +16 -16
  323. package/packages/image/src/group.ts +159 -153
  324. package/packages/image/src/image.ts +298 -298
  325. package/packages/image/src/preview.ts +749 -672
  326. package/packages/image/src/util.ts +62 -59
  327. package/packages/image-group/index.ts +16 -16
  328. package/packages/image-preview/index.ts +19 -19
  329. package/packages/index.ts +20 -21
  330. package/packages/input/index.ts +16 -16
  331. package/packages/input/src/input.ts +3201 -2863
  332. package/packages/language/fr-FR.ts +15 -15
  333. package/packages/language/it-IT.ts +4 -4
  334. package/packages/language/uk-UA.ts +1 -1
  335. package/packages/language/uz-UZ.ts +13 -13
  336. package/packages/language/zh-CN.ts +907 -907
  337. package/packages/layout-aside/index.ts +16 -16
  338. package/packages/layout-aside/src/layout-aside.ts +172 -156
  339. package/packages/layout-body/index.ts +16 -16
  340. package/packages/layout-body/src/layout-body.ts +191 -181
  341. package/packages/layout-container/index.ts +16 -16
  342. package/packages/layout-container/src/layout-container.ts +108 -92
  343. package/packages/layout-footer/index.ts +16 -16
  344. package/packages/layout-footer/src/layout-footer.ts +81 -74
  345. package/packages/layout-header/index.ts +16 -16
  346. package/packages/layout-header/src/layout-header.ts +79 -73
  347. package/packages/link/index.ts +16 -16
  348. package/packages/link/src/link.ts +180 -161
  349. package/packages/list/index.ts +16 -16
  350. package/packages/list/src/list.ts +2690 -2564
  351. package/packages/list/src/store.ts +10 -10
  352. package/packages/list/src/util.ts +10 -11
  353. package/packages/loading/index.ts +39 -36
  354. package/packages/loading/src/loading.ts +179 -152
  355. package/packages/mention/index.ts +16 -16
  356. package/packages/mention/src/mention.ts +69 -71
  357. package/packages/menu/index.ts +16 -16
  358. package/packages/menu/src/menu.ts +1000 -857
  359. package/packages/modal/index.ts +164 -141
  360. package/packages/modal/src/modal.ts +1803 -1681
  361. package/packages/modal/src/store.ts +3 -3
  362. package/packages/notice-bar/index.ts +16 -16
  363. package/packages/notice-bar/src/notice-bar.ts +207 -181
  364. package/packages/number-input/index.ts +16 -16
  365. package/packages/number-input/src/number-input.ts +1322 -1242
  366. package/packages/number-input/src/util.ts +25 -25
  367. package/packages/optgroup/index.ts +16 -16
  368. package/packages/option/index.ts +16 -16
  369. package/packages/pager/index.ts +16 -16
  370. package/packages/pager/src/pager.ts +919 -775
  371. package/packages/password-input/index.ts +16 -16
  372. package/packages/password-input/src/password-input.ts +523 -482
  373. package/packages/print/index.ts +18 -18
  374. package/packages/print/src/page-break.ts +104 -92
  375. package/packages/print/src/print.ts +366 -281
  376. package/packages/print/src/util.ts +299 -304
  377. package/packages/print-page-break/index.ts +16 -16
  378. package/packages/pulldown/index.ts +16 -16
  379. package/packages/pulldown/src/pulldown.ts +505 -445
  380. package/packages/radio/index.ts +16 -16
  381. package/packages/radio/src/button.ts +290 -243
  382. package/packages/radio/src/group.ts +275 -252
  383. package/packages/radio/src/radio.ts +237 -218
  384. package/packages/radio-button/index.ts +16 -16
  385. package/packages/radio-group/index.ts +16 -16
  386. package/packages/rate/index.ts +16 -16
  387. package/packages/rate/src/rate.ts +203 -192
  388. package/packages/result/index.ts +16 -16
  389. package/packages/result/src/result.ts +141 -112
  390. package/packages/row/index.ts +16 -16
  391. package/packages/row/src/col.ts +171 -159
  392. package/packages/row/src/row.ts +143 -138
  393. package/packages/scrollbar/index.ts +16 -16
  394. package/packages/scrollbar/src/scrollbar.ts +626 -595
  395. package/packages/segmented/index.ts +16 -16
  396. package/packages/segmented/src/segmented.ts +297 -264
  397. package/packages/select/index.ts +16 -16
  398. package/packages/select/src/optgroup.ts +53 -49
  399. package/packages/select/src/option-info.ts +20 -20
  400. package/packages/select/src/option.ts +47 -47
  401. package/packages/select/src/select.ts +2390 -2214
  402. package/packages/select/src/util.ts +50 -47
  403. package/packages/slider/index.ts +16 -16
  404. package/packages/slider/src/slider.ts +547 -506
  405. package/packages/space/index.ts +16 -16
  406. package/packages/space/src/space.ts +225 -209
  407. package/packages/split/index.ts +16 -16
  408. package/packages/split-pane/index.ts +17 -17
  409. package/packages/splitter/index.ts +16 -16
  410. package/packages/splitter/src/splitter-panel.ts +199 -163
  411. package/packages/splitter/src/splitter.ts +1110 -1020
  412. package/packages/splitter/src/util.ts +21 -21
  413. package/packages/splitter-panel/index.ts +16 -16
  414. package/packages/steps/index.ts +16 -16
  415. package/packages/steps/src/steps.ts +69 -68
  416. package/packages/switch/index.ts +16 -16
  417. package/packages/switch/src/switch.ts +300 -271
  418. package/packages/tab-pane/index.ts +16 -16
  419. package/packages/table-select/index.ts +16 -16
  420. package/packages/table-select/src/table-select.ts +1103 -999
  421. package/packages/table-transfer/index.ts +16 -16
  422. package/packages/table-transfer/src/table-transfer.ts +104 -91
  423. package/packages/tabs/index.ts +16 -16
  424. package/packages/tabs/src/tab-pane.ts +132 -117
  425. package/packages/tabs/src/tabs.ts +1137 -997
  426. package/packages/tabs/src/util.ts +21 -21
  427. package/packages/tag/index.ts +16 -16
  428. package/packages/tag/src/tag.ts +204 -187
  429. package/packages/text/index.ts +16 -16
  430. package/packages/text/src/text.ts +282 -260
  431. package/packages/text-ellipsis/index.ts +16 -16
  432. package/packages/text-ellipsis/src/text-ellipsis.ts +312 -282
  433. package/packages/textarea/index.ts +16 -16
  434. package/packages/textarea/src/textarea.ts +526 -495
  435. package/packages/timeline/index.ts +16 -16
  436. package/packages/timeline/src/timeline-item.ts +65 -67
  437. package/packages/timeline/src/timeline.ts +70 -71
  438. package/packages/timeline-item/index.ts +16 -16
  439. package/packages/tip/index.ts +19 -19
  440. package/packages/tip/src/tip.ts +150 -129
  441. package/packages/tooltip/index.ts +72 -72
  442. package/packages/tooltip/src/tooltip.ts +669 -627
  443. package/packages/tour/index.ts +16 -16
  444. package/packages/tour/src/tour.ts +70 -71
  445. package/packages/transfer/index.ts +16 -16
  446. package/packages/transfer/src/transfer.ts +130 -117
  447. package/packages/tree/index.ts +16 -16
  448. package/packages/tree/src/store.ts +10 -10
  449. package/packages/tree/src/tree.ts +4077 -3852
  450. package/packages/tree/src/util.ts +51 -51
  451. package/packages/tree-select/index.ts +16 -16
  452. package/packages/tree-select/src/tree-select.ts +1217 -1094
  453. package/packages/ui/index.ts +836 -793
  454. package/packages/ui/src/anime.ts +51 -52
  455. package/packages/ui/src/comp.ts +3 -3
  456. package/packages/ui/src/dom.ts +357 -354
  457. package/packages/ui/src/log.ts +19 -19
  458. package/packages/ui/src/utils.ts +79 -79
  459. package/packages/ui/src/vn.ts +39 -39
  460. package/packages/upload/index.ts +20 -20
  461. package/packages/upload/src/upload.ts +2271 -2021
  462. package/packages/upload/src/util.ts +109 -109
  463. package/packages/watermark/index.ts +33 -33
  464. package/packages/watermark/src/util.ts +186 -180
  465. package/packages/watermark/src/watermark.ts +196 -168
  466. package/types/all.d.ts +552 -552
  467. package/types/components/alert.d.ts +83 -87
  468. package/types/components/anchor-link.d.ts +88 -91
  469. package/types/components/anchor.d.ts +97 -104
  470. package/types/components/avatar.d.ts +85 -88
  471. package/types/components/backtop.d.ts +119 -122
  472. package/types/components/badge.d.ts +77 -80
  473. package/types/components/breadcrumb-item.d.ts +77 -80
  474. package/types/components/breadcrumb.d.ts +83 -87
  475. package/types/components/button-group.d.ts +118 -120
  476. package/types/components/button.d.ts +331 -339
  477. package/types/components/calendar.d.ts +247 -264
  478. package/types/components/card.d.ts +111 -113
  479. package/types/components/carousel-item.d.ts +73 -75
  480. package/types/components/carousel.d.ts +130 -134
  481. package/types/components/cascader.d.ts +336 -386
  482. package/types/components/checkbox-button.d.ts +109 -114
  483. package/types/components/checkbox-group.d.ts +152 -154
  484. package/types/components/checkbox.d.ts +123 -128
  485. package/types/components/col.d.ts +77 -80
  486. package/types/components/colgroup.d.ts +64 -69
  487. package/types/components/collapse-pane.d.ts +86 -89
  488. package/types/components/collapse.d.ts +123 -133
  489. package/types/components/color-picker.d.ts +275 -280
  490. package/types/components/column.d.ts +834 -851
  491. package/types/components/context-menu.d.ts +282 -289
  492. package/types/components/countdown.d.ts +108 -112
  493. package/types/components/date-panel.d.ts +319 -331
  494. package/types/components/date-picker.d.ts +361 -384
  495. package/types/components/date-range-picker.d.ts +351 -371
  496. package/types/components/divider.d.ts +72 -75
  497. package/types/components/drawer.d.ts +333 -344
  498. package/types/components/empty.d.ts +75 -78
  499. package/types/components/flow-design.d.ts +73 -85
  500. package/types/components/flow-view.d.ts +73 -85
  501. package/types/components/form-design.d.ts +370 -376
  502. package/types/components/form-gather.d.ts +120 -124
  503. package/types/components/form-group.d.ts +73 -77
  504. package/types/components/form-item.d.ts +395 -413
  505. package/types/components/form-view.d.ts +179 -183
  506. package/types/components/form.d.ts +499 -495
  507. package/types/components/gantt-module/gantt-view.d.ts +195 -200
  508. package/types/components/gantt-module/index.d.ts +1 -1
  509. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +137 -131
  510. package/types/components/gantt-plugins/index.d.ts +1 -1
  511. package/types/components/gantt.d.ts +1248 -1399
  512. package/types/components/grid.d.ts +1289 -1317
  513. package/types/components/icon-picker.d.ts +242 -253
  514. package/types/components/icon.d.ts +332 -87
  515. package/types/components/image-group.d.ts +124 -127
  516. package/types/components/image-preview.d.ts +167 -167
  517. package/types/components/image.d.ts +166 -173
  518. package/types/components/input.d.ts +429 -453
  519. package/types/components/layout-aside.d.ts +123 -123
  520. package/types/components/layout-body.d.ts +110 -113
  521. package/types/components/layout-container.d.ts +73 -75
  522. package/types/components/layout-footer.d.ts +71 -73
  523. package/types/components/layout-header.d.ts +67 -69
  524. package/types/components/link.d.ts +107 -111
  525. package/types/components/list-design.d.ts +189 -190
  526. package/types/components/list-view.d.ts +193 -199
  527. package/types/components/list.d.ts +678 -715
  528. package/types/components/loading.d.ts +98 -103
  529. package/types/components/mention.d.ts +70 -77
  530. package/types/components/menu.d.ts +284 -295
  531. package/types/components/modal.d.ts +567 -584
  532. package/types/components/notice-bar.d.ts +102 -106
  533. package/types/components/number-input.d.ts +359 -365
  534. package/types/components/optgroup.d.ts +85 -88
  535. package/types/components/option.d.ts +94 -103
  536. package/types/components/pager.d.ts +330 -335
  537. package/types/components/password-input.d.ts +143 -156
  538. package/types/components/print-page-break.d.ts +65 -69
  539. package/types/components/print.d.ts +243 -245
  540. package/types/components/pulldown.d.ts +231 -239
  541. package/types/components/radio-button.d.ts +113 -118
  542. package/types/components/radio-group.d.ts +151 -153
  543. package/types/components/radio.d.ts +129 -134
  544. package/types/components/rate.d.ts +83 -88
  545. package/types/components/result.d.ts +81 -84
  546. package/types/components/row.d.ts +77 -81
  547. package/types/components/scrollbar.d.ts +299 -305
  548. package/types/components/segmented.d.ts +119 -123
  549. package/types/components/select.d.ts +598 -616
  550. package/types/components/slider.d.ts +137 -151
  551. package/types/components/space.d.ts +120 -127
  552. package/types/components/split-pane.d.ts +126 -133
  553. package/types/components/split.d.ts +301 -312
  554. package/types/components/splitter-panel.d.ts +123 -130
  555. package/types/components/splitter.d.ts +290 -301
  556. package/types/components/steps.d.ts +63 -68
  557. package/types/components/switch.d.ts +127 -133
  558. package/types/components/tab-pane.d.ts +111 -114
  559. package/types/components/table-module/custom.d.ts +123 -123
  560. package/types/components/table-module/edit.d.ts +297 -276
  561. package/types/components/table-module/export.d.ts +88 -96
  562. package/types/components/table-module/filter.d.ts +144 -144
  563. package/types/components/table-module/index.d.ts +7 -7
  564. package/types/components/table-module/keyboard.d.ts +26 -26
  565. package/types/components/table-module/menu.d.ts +46 -46
  566. package/types/components/table-module/validator.d.ts +53 -53
  567. package/types/components/table-plugins/extend-cell-area.d.ts +781 -781
  568. package/types/components/table-plugins/extend-pivot-table.d.ts +59 -58
  569. package/types/components/table-plugins/filters-combination.d.ts +15 -15
  570. package/types/components/table-plugins/filters-complex-input.d.ts +9 -9
  571. package/types/components/table-plugins/index.d.ts +4 -4
  572. package/types/components/table-select.d.ts +268 -276
  573. package/types/components/table-transfer.d.ts +80 -84
  574. package/types/components/table.d.ts +7530 -8000
  575. package/types/components/tabs.d.ts +314 -352
  576. package/types/components/tag.d.ts +108 -114
  577. package/types/components/text-ellipsis.d.ts +107 -112
  578. package/types/components/text.d.ts +112 -122
  579. package/types/components/textarea.d.ts +261 -275
  580. package/types/components/timeline-item.d.ts +66 -75
  581. package/types/components/timeline.d.ts +70 -77
  582. package/types/components/tip.d.ts +81 -83
  583. package/types/components/toolbar.d.ts +327 -336
  584. package/types/components/tooltip.d.ts +250 -255
  585. package/types/components/tour.d.ts +70 -77
  586. package/types/components/transfer.d.ts +80 -84
  587. package/types/components/tree-select.d.ts +361 -376
  588. package/types/components/tree.d.ts +994 -1036
  589. package/types/components/upload.d.ts +477 -518
  590. package/types/components/watermark.d.ts +116 -120
  591. package/types/handles/form-design.d.ts +50 -50
  592. package/types/handles/index.d.ts +3 -3
  593. package/types/handles/list-design.d.ts +1 -2
  594. package/types/handles/table.d.ts +15 -15
  595. package/types/index.d.ts +8 -8
  596. package/types/ui/commands.d.ts +57 -57
  597. package/types/ui/formats.d.ts +62 -62
  598. package/types/ui/global-config.d.ts +269 -269
  599. package/types/ui/global-icon.d.ts +315 -315
  600. package/types/ui/hooks.d.ts +13 -13
  601. package/types/ui/index.d.ts +100 -100
  602. package/types/ui/interceptor.d.ts +52 -52
  603. package/types/ui/menus.d.ts +89 -89
  604. package/types/ui/renderer.d.ts +1033 -1047
  605. package/types/ui/validators.d.ts +37 -38
  606. /package/dist/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  607. /package/dist/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  608. /package/dist/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  609. /package/es/icon/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  610. /package/es/icon/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  611. /package/es/icon/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  612. /package/es/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  613. /package/es/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  614. /package/es/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  615. /package/es/vxe-icon/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  616. /package/es/vxe-icon/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  617. /package/es/vxe-icon/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  618. /package/lib/icon/style/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  619. /package/lib/icon/style/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  620. /package/lib/icon/style/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  621. /package/lib/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  622. /package/lib/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  623. /package/lib/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  624. /package/lib/vxe-icon/style/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  625. /package/lib/vxe-icon/style/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  626. /package/lib/vxe-icon/style/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
@@ -1,851 +1,834 @@
1
- import { RenderFunction, SetupContext, Ref } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSlotType, ValueOf } from '@vxe-ui/core'
3
- import { VxeTableDefines, VxeTablePropTypes, VxeTableConstructor, VxeTablePrivateMethods, VxeTableSlotTypes } from './table'
4
- import { VxeGridConstructor } from './grid'
5
- import { VxeTooltipDefines } from './tooltip'
6
- import { VxeGlobalRendererHandles } from '../ui'
7
-
8
- /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
9
-
10
- export declare const VxeColumn: DefineVxeComponentApp<VxeColumnProps, VxeColumnEventProps, VxeColumnSlots, VxeColumnMethods>
11
- export type VxeColumnComponent = DefineVxeComponentOptions<VxeColumnProps, VxeColumnEventProps>
12
-
13
- export type VxeColumnInstance = DefineVxeComponentInstance<VxeColumnProps, VxeColumnConstructor>
14
-
15
- export interface VxeColumnConstructor extends VxeComponentBaseOptions, VxeColumnMethods {
16
- props: VxeColumnProps
17
- context: SetupContext<VxeColumnEmits>
18
- reactData: ColumnReactData
19
- getRefMaps(): ColumnPrivateRef
20
- getComputeMaps(): ColumnPrivateComputed
21
- renderVN: RenderFunction
22
- }
23
-
24
- export interface ColumnPrivateRef {
25
- refElem: Ref<HTMLDivElement | undefined>
26
- }
27
- export interface VxeColumnPrivateRef extends ColumnPrivateRef { }
28
-
29
- export namespace VxeColumnPropTypes {
30
- export type ColId = string | number
31
- export type Type = 'seq' | 'radio' | 'checkbox' | 'expand' | 'html' | null
32
- export type Field = string
33
- export type Title = string | number
34
- export type Width = number | string
35
- export type MinWidth = number | string
36
- export type MaxWidth = number | string
37
- export type Resizable = boolean
38
- export type Fixed = 'left' | 'right' | '' | null | undefined
39
- export type Align = 'left' | 'center' | 'right' | '' | null | undefined
40
- export type HeaderAlign = Align
41
- export type FooterAlign = Align
42
- export type ShowOverflow = VxeTablePropTypes.ShowOverflow
43
- export type ShowHeaderOverflow = ShowOverflow
44
- export type ShowFooterOverflow = ShowOverflow
45
- export type ClassName<D = any> = string | ((params: VxeGlobalRendererHandles.RenderTableCellParams<D>) => string | any[] | { [key: string]: boolean })
46
- export type HeaderClassName<D = any> = string | ((params: VxeGlobalRendererHandles.RenderTableHeaderParams<D>) => string | any[] | { [key: string]: boolean })
47
- export type FooterClassName<D = any> = string | ((params: VxeGlobalRendererHandles.RenderTableFooterParams<D>) => string | any[] | { [key: string]: boolean })
48
- export type Padding = boolean | VxeTableDefines.PaddingConfig
49
- export type VerticalAlign = '' | 'top' | 'center' | null
50
-
51
- export type Rules<D = any> = VxeTableDefines.ValidatorRule<D>[]
52
-
53
- export type Formatter<D = any> = ((params: VxeColumnDefines.CellFormatterParams<D>) => string | number) | any[] | string
54
-
55
- export type HeaderFormatter = ((params: {
56
- cellTitle: any
57
- cellValue: any
58
- column: VxeTableDefines.ColumnInfo
59
- _columnIndex: number
60
- }) => string | number) | any[] | string
61
-
62
- export type FooterFormatter<D = any> = ((params: {
63
- cellValue: any
64
- itemValue: any
65
- column: VxeTableDefines.ColumnInfo
66
- row: any
67
- items: any[]
68
- _columnIndex: number
69
- }) => string | number) | any[] | string
70
-
71
- export type Sortable = boolean
72
- export type SortBy<D = any> = string | ((params: {
73
- row: D
74
- column: VxeTableDefines.ColumnInfo
75
- }) => string | number)
76
- export type SortType = 'auto' | 'string' | 'number' | null
77
-
78
- export interface FilterItem<OD = any> {
79
- label?: string | number
80
- value?: any
81
- data?: OD
82
- resetValue?: any
83
- checked?: boolean
84
- }
85
- /**
86
- * 请使用 FilterItem
87
- * @deprecated
88
- */
89
- export interface Filter extends FilterItem {}
90
- export type Filters<OD = any> = FilterItem<OD>[]
91
-
92
- export type FilterMultiple = boolean
93
-
94
- interface FilterMethodParams<D = any> {
95
- $table: VxeTableConstructor<D>
96
- value: any
97
- option: VxeTableDefines.FilterOption
98
- cellValue: any
99
- row: D
100
- column: VxeTableDefines.ColumnInfo
101
- }
102
- export type FilterMethod<D = any> = (params: FilterMethodParams<D>) => boolean
103
-
104
- interface FilterResetMethodParams<D = any> {
105
- $table: VxeTableConstructor<D>
106
- options: VxeTableDefines.FilterOption[]
107
- column: VxeTableDefines.ColumnInfo
108
- }
109
- export type FilterResetMethod<D = any> = (params: FilterResetMethodParams<D>) => void
110
-
111
- interface FilterRecoverMethodParams<D = any> {
112
- $table: VxeTableConstructor<D>
113
- option: VxeTableDefines.FilterOption
114
- column: VxeTableDefines.ColumnInfo
115
- }
116
- export type FilterRecoverMethod<D = any> = (params: FilterRecoverMethodParams<D>) => void
117
-
118
- /**
119
- * 筛选渲染配置项
120
- */
121
- export interface FilterRender {
122
- /**
123
- * 渲染器名称
124
- */
125
- name?: string
126
- /**
127
- * 目标组件渲染的参数
128
- */
129
- props?: { [key: string]: any }
130
- /**
131
- * 目标组件渲染的属性
132
- */
133
- attrs?: { [key: string]: any }
134
- /**
135
- * 目标组件渲染的事件
136
- */
137
- events?: { [key: string]: (...args: any[]) => any }
138
- /**
139
- * 多目标渲染
140
- */
141
- children?: any[]
142
-
143
- startField?: string
144
- endField?: string
145
-
146
- enabled?: boolean
147
- options?: any[]
148
- optionProps?: VxeGlobalRendererHandles.RenderOptionProps
149
- optionGroups?: any[]
150
- optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
151
- content?: string
152
- cellType?: VxeColumnPropTypes.CellType
153
- }
154
-
155
- export type FloatingFilters = boolean
156
-
157
- /**
158
- * 设置为分组节点
159
- */
160
- export type RowGroupNode = boolean
161
- /**
162
- * 设置为树节点
163
- */
164
- export type TreeNode = boolean
165
- /**
166
- * 设置为拖拽排序
167
- */
168
- export type DragSort = boolean
169
- /**
170
- * 设置为行高拖拽
171
- */
172
- export type RowResize = boolean
173
- export type Visible = boolean
174
-
175
- /**
176
- * 指定聚合函数
177
- */
178
- export type AggFunc = VxeTableDefines.AggFuncType | boolean | '' | null | undefined
179
-
180
- interface ExportMethodParams<D = any> {
181
- $table: VxeTableConstructor<D>
182
- row: D
183
- column: VxeTableDefines.ColumnInfo
184
- options: VxeTablePropTypes.ExportHandleOptions
185
- }
186
- export type ExportMethod<D = any> = (params: ExportMethodParams<D>) => string | number
187
-
188
- interface HeaderExportParams<D = any> {
189
- $table: VxeTableConstructor<D>
190
- column: VxeTableDefines.ColumnInfo
191
- options: VxeTablePropTypes.ExportHandleOptions
192
- }
193
- export type HeaderExportMethod<D = any> = (params: HeaderExportParams<D>) => string | number
194
-
195
- interface FooterExportParams<D = any> {
196
- $table: VxeTableConstructor<D>
197
- /**
198
- * @deprecated
199
- */
200
- items: any[]
201
- /**
202
- * @deprecated
203
- */
204
- itemIndex: number
205
- row: any
206
- column: VxeTableDefines.ColumnInfo
207
- _columnIndex: number
208
- options: VxeTablePropTypes.ExportHandleOptions
209
- }
210
- export type FooterExportMethod<D = any> = (params: FooterExportParams<D>) => string | number
211
-
212
- /**
213
- * 已废弃,被 TitlePrefix 替换
214
- * @deprecated
215
- */
216
- export type TitleHelp = VxeTooltipDefines.TooltipHelperOption
217
-
218
- export type TitlePrefix = VxeTooltipDefines.TooltipHelperOption
219
- export type TitleSuffix = VxeTooltipDefines.TooltipHelperOption
220
-
221
- export type CellType = 'auto' | 'number' | 'string' | 'date' | '' | null
222
-
223
- export interface CellRender<D = any, P = Record<string, any>> {
224
- /**
225
- * 渲染器名称
226
- */
227
- name?: string
228
- /**
229
- * 目标组件渲染的参数
230
- */
231
- props?: P
232
- /**
233
- * 目标组件渲染的属性
234
- */
235
- attrs?: Record<string, any>
236
- /**
237
- * 多目标渲染
238
- */
239
- children?: any[]
240
- enabled?: boolean
241
-
242
- startField?: string
243
- endField?: string
244
-
245
- events?: Record<string, (cellParams: VxeColumnSlotTypes.DefaultSlotParams<D>, ...args: any[]) => any>
246
- options?: any[]
247
- optionProps?: VxeGlobalRendererHandles.RenderOptionProps
248
- optionGroups?: any[]
249
- optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
250
- content?: string
251
-
252
- /**
253
- * 只对特定功能有效,当值为负数时,自动显示为红色
254
- */
255
- showNegativeStatus?: boolean
256
- }
257
-
258
- /**
259
- * 编辑渲染配置项
260
- */
261
- export interface EditRender<D = any, P = Record<string, any>> {
262
- /**
263
- * 渲染器名称
264
- */
265
- name?: string
266
- /**
267
- * 目标组件渲染的参数
268
- */
269
- props?: P
270
- /**
271
- * 目标组件渲染的属性
272
- */
273
- attrs?: Record<string, any>
274
- /**
275
- * 多目标渲染
276
- */
277
- children?: any[]
278
-
279
- startField?: string
280
- endField?: string
281
-
282
- events?: Record<string, (cellParams: VxeColumnSlotTypes.EditSlotParams<D>, ...args: any[]) => any>
283
- enabled?: boolean
284
- options?: any[]
285
- optionProps?: VxeGlobalRendererHandles.RenderOptionProps
286
- optionGroups?: any[]
287
- optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
288
- autoFocus?: boolean | string
289
- autoSelect?: boolean
290
- defaultValue?: ((params: { column: VxeTableDefines.ColumnInfo }) => any) | null | undefined | string | number | RegExp | object | any[] | Date
291
- immediate?: boolean
292
- content?: string
293
- placeholder?: string
294
-
295
- /**
296
- * 只对 VxeNumberInput 有效,当值为负数时,自动显示为红色
297
- */
298
- showNegativeStatus?: boolean
299
-
300
- /**
301
- * 已废弃,请使用 autoFocus
302
- * @deprecated
303
- */
304
- autofocus?: string
305
- /**
306
- * 已废弃,请使用 autoSelect
307
- * @deprecated
308
- */
309
- autoselect?: boolean
310
- }
311
-
312
- /**
313
- * 内容渲染配置项
314
- */
315
- export interface ContentRender<D = any, P = Record<string, any>> {
316
- /**
317
- * 渲染器名称
318
- */
319
- name?: string
320
- /**
321
- * 目标组件渲染的参数
322
- */
323
- props?: P
324
- /**
325
- * 目标组件渲染的属性
326
- */
327
- attrs?: Record<string, any>
328
- /**
329
- * 目标组件渲染的事件
330
- */
331
- events?: Record<string, (cellParams: VxeColumnSlotTypes.ContentSlotParams<D>, ...args: any[]) => any>
332
- /**
333
- * 多目标渲染
334
- */
335
- children?: any[]
336
-
337
- options?: any[]
338
- optionProps?: VxeGlobalRendererHandles.RenderOptionProps
339
- optionGroups?: any[]
340
- optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
341
- }
342
-
343
- export interface WidgetRender<D = any, P = Record<string, any>> {
344
- /**
345
- * 渲染器名称
346
- */
347
- name?: string
348
- /**
349
- * 目标组件渲染的参数
350
- */
351
- props?: P
352
- }
353
-
354
- export type CopyMethod<D = any> = (params: VxeColumnDefines.CellCopyParams<D>) => string
355
-
356
- export type CutMethod<D = any> = (params: VxeColumnDefines.CellCutParams<D>) => void
357
-
358
- export type PasteMethod<D = any> = (params: VxeColumnDefines.CellPasteParams<D>) => void
359
-
360
- export type Params = any
361
-
362
- export type Slots<D = any> = {
363
- /**
364
- * 自定义标题模板
365
- */
366
- title?: string | ((params: VxeColumnSlotTypes.TitleSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
367
- /**
368
- * 只对 sortable 有效,自定义表头排序的模板
369
- */
370
- sort?: string | ((params: VxeColumnSlotTypes.SortSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
371
- /**
372
- * 只对 type=radio 有效,自定义单选框模板
373
- */
374
- radio?: string | ((params: VxeColumnSlotTypes.RadioSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
375
- /**
376
- * 只对 type=checkbox 有效,自定义复选框模板
377
- */
378
- checkbox?: string | ((params: VxeColumnSlotTypes.CheckboxSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
379
- /**
380
- * 自定义显示内容模板
381
- */
382
- default?: string | ((params: VxeColumnSlotTypes.DefaultSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
383
- /**
384
- * 自定义表头内容的模板
385
- */
386
- header?: string | ((params: VxeColumnSlotTypes.HeaderSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
387
- /**
388
- * 自定义表尾内容的模板
389
- */
390
- footer?: string | ((params: VxeColumnSlotTypes.FooterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
391
- /**
392
- * 只对 type=expand 有效,自定义展开后的内容模板
393
- */
394
- content?: string | ((params: VxeColumnSlotTypes.ContentSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
395
- /**
396
- * 只对 filter-render 启用时有效,自定义筛选模板
397
- */
398
- filter?: string | ((params: VxeColumnSlotTypes.FilterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
399
- /**
400
- * 只对 floating-filters 和 filter-render 启用时有效,自定义浮动筛选模板
401
- */
402
- floatingFilter?: string | ((params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
403
- 'floating-filter'?: string | ((params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
404
- /**
405
- * 只对 edit-render 启用时有效,自定义可编辑组件模板
406
- */
407
- edit?: string | ((params: VxeColumnSlotTypes.EditSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
408
- /**
409
- * 只对 edit-render 启用时有效,自定义可编辑组件模板
410
- */
411
- valid?: string | ((params: VxeColumnSlotTypes.ValidSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
412
- /**
413
- * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
414
- */
415
- rowDragIcon?: string | ((params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
416
- 'row-drag-icon'?: string | ((params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
417
- /**
418
- * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
419
- */
420
- columnDragIcon?: string | ((params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
421
- 'column-drag-icon'?: string | ((params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
422
- /**
423
- * 只对 aggregate-config 开启后有效,自定义分组列内容模板
424
- */
425
- groupContent?: string | ((params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
426
- 'group-content'?: string | ((params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
427
- /**
428
- * 只对 agg-func 开启后有效,自定义分组列聚合数据模板
429
- */
430
- groupValues?: string | ((params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
431
- 'group-values'?: string | ((params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
432
-
433
- /**
434
- * 已废弃
435
- * @deprecated
436
- */
437
- icon?: string | ((params: VxeColumnSlotTypes.IconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
438
- }
439
- }
440
-
441
- export interface VxeColumnProps<D = any> {
442
- colId?: VxeColumnPropTypes.ColId
443
- /**
444
- * 渲染类型
445
- */
446
- type?: VxeColumnPropTypes.Type
447
- /**
448
- * 列字段名
449
- */
450
- field?: VxeColumnPropTypes.Field
451
- /**
452
- * 列标题
453
- */
454
- title?: VxeColumnPropTypes.Title
455
- /**
456
- * 列宽度
457
- */
458
- width?: VxeColumnPropTypes.Width
459
- /**
460
- * 列最小宽度,把剩余宽度按比例分配
461
- */
462
- minWidth?: VxeColumnPropTypes.MinWidth
463
- /**
464
- * 列最大宽度
465
- */
466
- maxWidth?: VxeColumnPropTypes.MaxWidth
467
- /**
468
- * 是否允许拖动列宽调整大小
469
- */
470
- resizable?: VxeColumnPropTypes.Resizable
471
- /**
472
- * 将列固定在左侧或者右侧
473
- */
474
- fixed?: VxeColumnPropTypes.Fixed
475
- /**
476
- * 列对齐方式
477
- */
478
- align?: VxeColumnPropTypes.Align
479
- /**
480
- * 表头对齐方式
481
- */
482
- headerAlign?: VxeColumnPropTypes.HeaderAlign
483
- /**
484
- * 表尾列的对齐方式
485
- */
486
- footerAlign?: VxeColumnPropTypes.FooterAlign
487
- /**
488
- * 当内容过长时显示为省略号
489
- */
490
- showOverflow?: VxeColumnPropTypes.ShowOverflow
491
- /**
492
- * 当表头内容过长时显示为省略号
493
- */
494
- showHeaderOverflow?: VxeColumnPropTypes.ShowHeaderOverflow
495
- /**
496
- * 当表尾内容过长时显示为省略号
497
- */
498
- showFooterOverflow?: VxeColumnPropTypes.ShowFooterOverflow
499
- /**
500
- * 给单元格附加 className
501
- */
502
- className?: VxeColumnPropTypes.ClassName<D>
503
- /**
504
- * 给表头单元格附加 className
505
- */
506
- headerClassName?: VxeColumnPropTypes.HeaderClassName<D>
507
- /**
508
- * 给表尾单元格附加 className
509
- */
510
- footerClassName?: VxeColumnPropTypes.FooterClassName<D>
511
- /**
512
- * 格式化显示内容
513
- */
514
- formatter?: VxeColumnPropTypes.Formatter<D>
515
- /**
516
- * 格式化表头显示内容
517
- */
518
- headerFormatter?: VxeColumnPropTypes.HeaderFormatter
519
- /**
520
- * 格式化表尾显示内容
521
- */
522
- footerFormatter?: VxeColumnPropTypes.FooterFormatter<D>
523
- /**
524
- * 单元格默认高度
525
- */
526
- padding?: VxeColumnPropTypes.Padding
527
- /**
528
- * 垂直对齐方式
529
- */
530
- verticalAlign?: VxeColumnPropTypes.VerticalAlign
531
- /**
532
- * 是否允许排序
533
- */
534
- sortable?: VxeColumnPropTypes.Sortable
535
- /**
536
- * 自定义排序的属性
537
- */
538
- sortBy?: VxeColumnPropTypes.SortBy<D>
539
- /**
540
- * 排序的字段类型,比如字符串转数值等
541
- */
542
- sortType?: VxeColumnPropTypes.SortType
543
- /**
544
- * 配置筛选条件数组
545
- */
546
- filters?: VxeColumnPropTypes.Filters
547
- /**
548
- * 筛选是否允许多选
549
- */
550
- filterMultiple?: VxeColumnPropTypes.FilterMultiple
551
- /**
552
- * 自定义筛选方法
553
- */
554
- filterMethod?: VxeColumnPropTypes.FilterMethod<D>
555
- /**
556
- * 筛选模板配置项
557
- */
558
- filterRender?: VxeColumnPropTypes.FilterRender
559
- filterResetMethod?: VxeColumnPropTypes.FilterResetMethod
560
- filterRecoverMethod?: VxeColumnPropTypes.FilterRecoverMethod
561
- /**
562
- * 是否启用浮动筛选
563
- */
564
- floatingFilters?: VxeColumnPropTypes.FloatingFilters
565
- /**
566
- * 列的校验规则
567
- */
568
- rules?: VxeColumnPropTypes.Rules<D>
569
- /**
570
- * 设置为分组节点
571
- */
572
- rowGroupNode?: VxeColumnPropTypes.RowGroupNode
573
- /**
574
- * 设置为树节点
575
- */
576
- treeNode?: VxeColumnPropTypes.TreeNode
577
- /**
578
- * 设置为拖拽排序
579
- */
580
- dragSort?: VxeColumnPropTypes.DragSort
581
- /**
582
- * 设置为行高拖拽
583
- */
584
- rowResize?: VxeColumnPropTypes.RowResize
585
- /**
586
- * 是否可视
587
- */
588
- visible?: VxeColumnPropTypes.Visible
589
- /**
590
- * 指定聚合函数
591
- */
592
- aggFunc?: VxeColumnPropTypes.AggFunc
593
- /**
594
- * 自定义表尾单元格数据导出方法
595
- */
596
- headerExportMethod?: VxeColumnPropTypes.HeaderExportMethod<D>
597
- /**
598
- * 自定义单元格数据导出方法
599
- */
600
- exportMethod?: VxeColumnPropTypes.ExportMethod<D>
601
- /**
602
- * 自定义表尾单元格数据导出方法
603
- */
604
- footerExportMethod?: VxeColumnPropTypes.FooterExportMethod<D>
605
- /**
606
- * 已废弃,被 titlePrefix 替换
607
- * @deprecated
608
- */
609
- titleHelp?: VxeColumnPropTypes.TitleHelp
610
- /**
611
- * 标题前缀图标配置项
612
- */
613
- titlePrefix?: VxeColumnPropTypes.TitlePrefix
614
- /**
615
- * 标题后缀图标配置项
616
- */
617
- titleSuffix?: VxeColumnPropTypes.TitleSuffix
618
- /**
619
- * 单元格值类型
620
- */
621
- cellType?: VxeColumnPropTypes.CellType
622
- /**
623
- * 单元格渲染配置项
624
- */
625
- cellRender?: VxeColumnPropTypes.CellRender<D>
626
- /**
627
- * 单元格编辑渲染配置项
628
- */
629
- editRender?: VxeColumnPropTypes.EditRender<D>
630
- /**
631
- * 内容渲染配置项
632
- */
633
- contentRender?: VxeColumnPropTypes.ContentRender
634
- /**
635
- * 用于 clip-config.isCopy,重写单元格复制取值的方法,将单元格复制到剪贴板
636
- */
637
- copyMethod?: VxeColumnPropTypes.CopyMethod
638
- /**
639
- * 用于 clip-config.isCut,重写单元格剪贴值清除的方法,将剪贴单元格的值清除
640
- */
641
- cutMethod?: VxeColumnPropTypes.CutMethod
642
- /**
643
- * 用于 clip-config.isPaste,重写单元格粘贴赋值的方法,从剪贴板赋值到单元格
644
- */
645
- pasteMethod?: VxeColumnPropTypes.PasteMethod
646
- /**
647
- * 额外的参数
648
- */
649
- params?: VxeColumnPropTypes.Params
650
- }
651
-
652
- export interface ColumnPrivateComputed {
653
- }
654
- export interface VxeColumnPrivateComputed extends ColumnPrivateComputed { }
655
-
656
- export interface ColumnReactData {
657
- }
658
-
659
- export interface ColumnMethods {
660
- dispatchEvent(type: ValueOf<VxeColumnEmits>, params: Record<string, any>, evnt: Event | null): void
661
- }
662
- export interface VxeColumnMethods extends ColumnMethods { }
663
-
664
- export interface ColumnPrivateMethods { }
665
- export interface VxeColumnPrivateMethods extends ColumnPrivateMethods { }
666
-
667
- export type VxeColumnEmits = []
668
-
669
- export namespace VxeColumnDefines {
670
- export interface ColumnEventParams extends VxeComponentEventParams {
671
- $table: VxeTableConstructor
672
- }
673
-
674
- export interface CellFormatterParams<D = any> {
675
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
676
- cellValue: any
677
- column: VxeTableDefines.ColumnInfo
678
- row: D
679
- }
680
-
681
- export interface CellCopyParams<D = any> {
682
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
683
- $grid: VxeGridConstructor<D> | null | undefined
684
- isCut: boolean
685
- row: D
686
- column: VxeTableDefines.ColumnInfo
687
- cellValue: any
688
- }
689
-
690
- export interface CellCutParams<D = any> {
691
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
692
- $grid: VxeGridConstructor<D> | null | undefined
693
- row: D,
694
- column: VxeTableDefines.ColumnInfo
695
- cellValue: any
696
- clipData: {
697
- text?: string
698
- html?: string
699
- }
700
- }
701
-
702
- export interface CellPasteParams<D = any> {
703
- $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
704
- $grid: VxeGridConstructor<D> | null | undefined
705
- isCut: boolean
706
- row: D,
707
- column: VxeTableDefines.ColumnInfo
708
- cellValue: any
709
- clipData: {
710
- text?: string
711
- html?: string
712
- }
713
- }
714
- }
715
-
716
- export type VxeColumnEventProps = {}
717
-
718
- export interface VxeColumnListeners { }
719
-
720
- export namespace VxeColumnEvents { }
721
-
722
- export namespace VxeColumnSlotTypes {
723
- export interface FilterSlotParams<D = any> {
724
- $panel: any
725
- column: {
726
- filters: VxeTableDefines.FilterOption[]
727
- } & VxeTableDefines.ColumnInfo
728
- columnIndex: number
729
- $columnIndex: number
730
- $rowIndex: number
731
- option: VxeColumnPropTypes.FilterItem
732
- }
733
- export interface FloatingFilterSlotParams<D = any> extends VxeTableDefines.CellFloatingFilterParams<D> { }
734
-
735
- export interface EditSlotParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> { }
736
-
737
- export interface FooterSlotParams<D = any> {
738
- row: D
739
- rowIndex: number
740
- column: VxeTableDefines.ColumnInfo
741
- columnIndex: number
742
- _columnIndex: number
743
- $columnIndex: number
744
- $rowIndex: number
745
- items: any[]
746
- data: D[][]
747
- }
748
-
749
- export interface HeaderSlotParams<D = any> extends VxeTableDefines.CellRenderHeaderParams<D> { }
750
- export interface TitleSlotParams<D = any> extends HeaderSlotParams<D> { }
751
- export interface SortSlotParams<D = any> extends HeaderSlotParams<D> { }
752
-
753
- export interface ContentSlotParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> { }
754
-
755
- export interface DefaultSlotParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> { }
756
-
757
- export interface CheckboxSlotParams<D = any> extends DefaultSlotParams<D> {
758
- checked: boolean
759
- indeterminate: boolean
760
- }
761
- export interface RadioSlotParams<D = any> extends DefaultSlotParams<D> {
762
- checked: boolean
763
- }
764
- export interface IconSlotParams<D = any> extends DefaultSlotParams<D> { }
765
-
766
- export interface ValidSlotParams<D = any> extends DefaultSlotParams<D> {
767
- rule: VxeTableDefines.ValidatorRule<D>
768
- content: string
769
- }
770
- }
771
-
772
- export interface VxeColumnSlots<D = any> {
773
- /**
774
- * 自定义显示内容模板
775
- */
776
- default?: (params: VxeColumnSlotTypes.DefaultSlotParams<D>) => any
777
- /**
778
- * 自定义表头内容的模板
779
- */
780
- header?: (params: VxeColumnSlotTypes.HeaderSlotParams<D>) => any
781
- /**
782
- * 自定义表尾内容的模板
783
- */
784
- footer?: (params: VxeColumnSlotTypes.FooterSlotParams<D>) => any
785
- /**
786
- * 自定义标题模板
787
- */
788
- title?: (params: VxeColumnSlotTypes.TitleSlotParams<D>) => any
789
- /**
790
- * 只对 sortable 有效,自定义标题模板
791
- */
792
- sort?: (params: VxeColumnSlotTypes.SortSlotParams<D>) => any
793
- /**
794
- * 只对 type=checkbox 有效,自定义复选框模板
795
- */
796
- checkbox?: (params: VxeColumnSlotTypes.CheckboxSlotParams<D>) => any
797
- /**
798
- * 只对 type=radio 有效,自定义单选框模板
799
- */
800
- radio?: (params: VxeColumnSlotTypes.RadioSlotParams<D>) => any
801
- /**
802
- * 只对 type=expand 有效,自定义展开后的内容模板
803
- */
804
- content?: (params: VxeColumnSlotTypes.ContentSlotParams<D>) => any
805
- /**
806
- * 只对 filter-render 启用时有效,自定义筛选模板
807
- */
808
- filter?: (params: VxeColumnSlotTypes.FilterSlotParams<D>) => any
809
- /**
810
- * 只对 floating-filters 和 filter-render 启用时有效,自定义浮动筛选模板
811
- */
812
- floatingFilter?: (params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => any
813
- 'floating-filter'?: (params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => any
814
- /**
815
- * 只对 edit-render 启用时有效,自定义可编辑组件模板
816
- */
817
- edit?: (params: VxeColumnSlotTypes.EditSlotParams<D>) => any
818
- /**
819
- * 只对 edit-render 启用时有效,自定义展示错误校验模板
820
- */
821
- valid?: (params: VxeColumnSlotTypes.ValidSlotParams<D>) => any
822
- /**
823
- * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
824
- */
825
- rowDragIcon?: (params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => any
826
- 'row-drag-icon'?: (params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => any
827
- /**
828
- * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
829
- */
830
- columnDragIcon?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
831
- 'column-drag-icon'?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
832
- /**
833
- * 只对 aggregate-config 开启后有效,自定义分组列内容模板
834
- */
835
- groupContent?: (params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => any
836
- 'group-content'?: (params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => any
837
- /**
838
- * 只对 agg-func 开启后有效,自定义分组列聚合数据模板
839
- */
840
- groupValues?: (params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => any
841
- 'group-values'?: (params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => any
842
-
843
- /**
844
- * 已废弃
845
- * @deprecated
846
- */
847
- icon?: (params: VxeColumnSlotTypes.IconSlotParams<D>) => any
848
- }
849
-
850
- export const Column: typeof VxeColumn
851
- export default VxeColumn
1
+ import { RenderFunction, SetupContext, Ref } from 'vue'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSlotType, ValueOf } from '@vxe-ui/core'
3
+ import { VxeTableDefines, VxeTablePropTypes, VxeTableConstructor, VxeTablePrivateMethods, VxeTableSlotTypes } from './table'
4
+ import { VxeGridConstructor } from './grid'
5
+ import { VxeTooltipDefines } from './tooltip'
6
+ import { VxeGlobalRendererHandles } from '../ui'
7
+
8
+ /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
9
+
10
+ export declare const VxeColumn: DefineVxeComponentApp<VxeColumnProps, VxeColumnEventProps, VxeColumnSlots, VxeColumnMethods>
11
+ export type VxeColumnComponent = DefineVxeComponentOptions<VxeColumnProps, VxeColumnEventProps>
12
+
13
+ export type VxeColumnInstance = DefineVxeComponentInstance<VxeColumnProps, VxeColumnConstructor>
14
+
15
+ export interface VxeColumnConstructor extends VxeComponentBaseOptions, VxeColumnMethods {
16
+ props: VxeColumnProps
17
+ context: SetupContext<VxeColumnEmits>
18
+ reactData: ColumnReactData
19
+ getRefMaps(): ColumnPrivateRef
20
+ getComputeMaps(): ColumnPrivateComputed
21
+ renderVN: RenderFunction
22
+ }
23
+
24
+ export interface ColumnPrivateRef {
25
+ refElem: Ref<HTMLDivElement | undefined>
26
+ }
27
+ export interface VxeColumnPrivateRef extends ColumnPrivateRef {}
28
+
29
+ export namespace VxeColumnPropTypes {
30
+ export type ColId = string | number
31
+ export type Type = 'seq' | 'radio' | 'checkbox' | 'expand' | 'html' | null
32
+ export type Field = string
33
+ export type Title = string | number
34
+ export type Width = number | string
35
+ export type MinWidth = number | string
36
+ export type MaxWidth = number | string
37
+ export type Resizable = boolean
38
+ export type Fixed = 'left' | 'right' | '' | null | undefined
39
+ export type Align = 'left' | 'center' | 'right' | '' | null | undefined
40
+ export type HeaderAlign = Align
41
+ export type FooterAlign = Align
42
+ export type ShowOverflow = VxeTablePropTypes.ShowOverflow
43
+ export type ShowHeaderOverflow = ShowOverflow
44
+ export type ShowFooterOverflow = ShowOverflow
45
+ export type ClassName<D = any> = string | ((params: VxeGlobalRendererHandles.RenderTableCellParams<D>) => string | any[] | { [key: string]: boolean })
46
+ export type HeaderClassName<D = any> = string | ((params: VxeGlobalRendererHandles.RenderTableHeaderParams<D>) => string | any[] | { [key: string]: boolean })
47
+ export type FooterClassName<D = any> = string | ((params: VxeGlobalRendererHandles.RenderTableFooterParams<D>) => string | any[] | { [key: string]: boolean })
48
+ export type Padding = boolean | VxeTableDefines.PaddingConfig
49
+ export type VerticalAlign = '' | 'top' | 'center' | null
50
+
51
+ export type Rules<D = any> = VxeTableDefines.ValidatorRule<D>[]
52
+
53
+ export type Formatter<D = any> = ((params: VxeColumnDefines.CellFormatterParams<D>) => string | number) | any[] | string
54
+
55
+ export type HeaderFormatter = ((params: { cellTitle: any; cellValue: any; column: VxeTableDefines.ColumnInfo; _columnIndex: number }) => string | number) | any[] | string
56
+
57
+ export type FooterFormatter<D = any> = ((params: { cellValue: any; itemValue: any; column: VxeTableDefines.ColumnInfo; row: any; items: any[]; _columnIndex: number }) => string | number) | any[] | string
58
+
59
+ export type Sortable = boolean
60
+ export type SortBy<D = any> = string | ((params: { row: D; column: VxeTableDefines.ColumnInfo }) => string | number)
61
+ export type SortType = 'auto' | 'string' | 'number' | null
62
+
63
+ export interface FilterItem<OD = any> {
64
+ label?: string | number
65
+ value?: any
66
+ data?: OD
67
+ resetValue?: any
68
+ checked?: boolean
69
+ }
70
+ /**
71
+ * 请使用 FilterItem
72
+ * @deprecated
73
+ */
74
+ export interface Filter extends FilterItem {}
75
+ export type Filters<OD = any> = FilterItem<OD>[]
76
+
77
+ export type FilterMultiple = boolean
78
+
79
+ interface FilterMethodParams<D = any> {
80
+ $table: VxeTableConstructor<D>
81
+ value: any
82
+ option: VxeTableDefines.FilterOption
83
+ cellValue: any
84
+ row: D
85
+ column: VxeTableDefines.ColumnInfo
86
+ }
87
+ export type FilterMethod<D = any> = (params: FilterMethodParams<D>) => boolean
88
+
89
+ interface FilterResetMethodParams<D = any> {
90
+ $table: VxeTableConstructor<D>
91
+ options: VxeTableDefines.FilterOption[]
92
+ column: VxeTableDefines.ColumnInfo
93
+ }
94
+ export type FilterResetMethod<D = any> = (params: FilterResetMethodParams<D>) => void
95
+
96
+ interface FilterRecoverMethodParams<D = any> {
97
+ $table: VxeTableConstructor<D>
98
+ option: VxeTableDefines.FilterOption
99
+ column: VxeTableDefines.ColumnInfo
100
+ }
101
+ export type FilterRecoverMethod<D = any> = (params: FilterRecoverMethodParams<D>) => void
102
+
103
+ /**
104
+ * 筛选渲染配置项
105
+ */
106
+ export interface FilterRender {
107
+ /**
108
+ * 渲染器名称
109
+ */
110
+ name?: string
111
+ /**
112
+ * 目标组件渲染的参数
113
+ */
114
+ props?: { [key: string]: any }
115
+ /**
116
+ * 目标组件渲染的属性
117
+ */
118
+ attrs?: { [key: string]: any }
119
+ /**
120
+ * 目标组件渲染的事件
121
+ */
122
+ events?: { [key: string]: (...args: any[]) => any }
123
+ /**
124
+ * 多目标渲染
125
+ */
126
+ children?: any[]
127
+
128
+ startField?: string
129
+ endField?: string
130
+
131
+ enabled?: boolean
132
+ options?: any[]
133
+ optionProps?: VxeGlobalRendererHandles.RenderOptionProps
134
+ optionGroups?: any[]
135
+ optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
136
+ content?: string
137
+ cellType?: VxeColumnPropTypes.CellType
138
+ }
139
+
140
+ export type FloatingFilters = boolean
141
+
142
+ /**
143
+ * 设置为分组节点
144
+ */
145
+ export type RowGroupNode = boolean
146
+ /**
147
+ * 设置为树节点
148
+ */
149
+ export type TreeNode = boolean
150
+ /**
151
+ * 设置为拖拽排序
152
+ */
153
+ export type DragSort = boolean
154
+ /**
155
+ * 设置为行高拖拽
156
+ */
157
+ export type RowResize = boolean
158
+ export type Visible = boolean
159
+
160
+ /**
161
+ * 指定聚合函数
162
+ */
163
+ export type AggFunc = VxeTableDefines.AggFuncType | boolean | '' | null | undefined
164
+
165
+ interface ExportMethodParams<D = any> {
166
+ $table: VxeTableConstructor<D>
167
+ row: D
168
+ column: VxeTableDefines.ColumnInfo
169
+ options: VxeTablePropTypes.ExportHandleOptions
170
+ }
171
+ export type ExportMethod<D = any> = (params: ExportMethodParams<D>) => string | number
172
+
173
+ interface HeaderExportParams<D = any> {
174
+ $table: VxeTableConstructor<D>
175
+ column: VxeTableDefines.ColumnInfo
176
+ options: VxeTablePropTypes.ExportHandleOptions
177
+ }
178
+ export type HeaderExportMethod<D = any> = (params: HeaderExportParams<D>) => string | number
179
+
180
+ interface FooterExportParams<D = any> {
181
+ $table: VxeTableConstructor<D>
182
+ /**
183
+ * @deprecated
184
+ */
185
+ items: any[]
186
+ /**
187
+ * @deprecated
188
+ */
189
+ itemIndex: number
190
+ row: any
191
+ column: VxeTableDefines.ColumnInfo
192
+ _columnIndex: number
193
+ options: VxeTablePropTypes.ExportHandleOptions
194
+ }
195
+ export type FooterExportMethod<D = any> = (params: FooterExportParams<D>) => string | number
196
+
197
+ /**
198
+ * 已废弃,被 TitlePrefix 替换
199
+ * @deprecated
200
+ */
201
+ export type TitleHelp = VxeTooltipDefines.TooltipHelperOption
202
+
203
+ export type TitlePrefix = VxeTooltipDefines.TooltipHelperOption
204
+ export type TitleSuffix = VxeTooltipDefines.TooltipHelperOption
205
+
206
+ export type CellType = 'auto' | 'number' | 'string' | 'date' | '' | null
207
+
208
+ export interface CellRender<D = any, P = Record<string, any>> {
209
+ /**
210
+ * 渲染器名称
211
+ */
212
+ name?: string
213
+ /**
214
+ * 目标组件渲染的参数
215
+ */
216
+ props?: P
217
+ /**
218
+ * 目标组件渲染的属性
219
+ */
220
+ attrs?: Record<string, any>
221
+ /**
222
+ * 多目标渲染
223
+ */
224
+ children?: any[]
225
+ enabled?: boolean
226
+
227
+ startField?: string
228
+ endField?: string
229
+
230
+ events?: Record<string, (cellParams: VxeColumnSlotTypes.DefaultSlotParams<D>, ...args: any[]) => any>
231
+ options?: any[]
232
+ optionProps?: VxeGlobalRendererHandles.RenderOptionProps
233
+ optionGroups?: any[]
234
+ optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
235
+ content?: string
236
+
237
+ /**
238
+ * 只对特定功能有效,当值为负数时,自动显示为红色
239
+ */
240
+ showNegativeStatus?: boolean
241
+ }
242
+
243
+ /**
244
+ * 编辑渲染配置项
245
+ */
246
+ export interface EditRender<D = any, P = Record<string, any>> {
247
+ /**
248
+ * 渲染器名称
249
+ */
250
+ name?: string
251
+ /**
252
+ * 目标组件渲染的参数
253
+ */
254
+ props?: P
255
+ /**
256
+ * 目标组件渲染的属性
257
+ */
258
+ attrs?: Record<string, any>
259
+ /**
260
+ * 多目标渲染
261
+ */
262
+ children?: any[]
263
+
264
+ startField?: string
265
+ endField?: string
266
+
267
+ events?: Record<string, (cellParams: VxeColumnSlotTypes.EditSlotParams<D>, ...args: any[]) => any>
268
+ enabled?: boolean
269
+ options?: any[]
270
+ optionProps?: VxeGlobalRendererHandles.RenderOptionProps
271
+ optionGroups?: any[]
272
+ optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
273
+ autoFocus?: boolean | string
274
+ autoSelect?: boolean
275
+ defaultValue?: ((params: { column: VxeTableDefines.ColumnInfo }) => any) | null | undefined | string | number | RegExp | object | any[] | Date
276
+ immediate?: boolean
277
+ content?: string
278
+ placeholder?: string
279
+
280
+ /**
281
+ * 只对 VxeNumberInput 有效,当值为负数时,自动显示为红色
282
+ */
283
+ showNegativeStatus?: boolean
284
+
285
+ /**
286
+ * 已废弃,请使用 autoFocus
287
+ * @deprecated
288
+ */
289
+ autofocus?: string
290
+ /**
291
+ * 已废弃,请使用 autoSelect
292
+ * @deprecated
293
+ */
294
+ autoselect?: boolean
295
+ }
296
+
297
+ /**
298
+ * 内容渲染配置项
299
+ */
300
+ export interface ContentRender<D = any, P = Record<string, any>> {
301
+ /**
302
+ * 渲染器名称
303
+ */
304
+ name?: string
305
+ /**
306
+ * 目标组件渲染的参数
307
+ */
308
+ props?: P
309
+ /**
310
+ * 目标组件渲染的属性
311
+ */
312
+ attrs?: Record<string, any>
313
+ /**
314
+ * 目标组件渲染的事件
315
+ */
316
+ events?: Record<string, (cellParams: VxeColumnSlotTypes.ContentSlotParams<D>, ...args: any[]) => any>
317
+ /**
318
+ * 多目标渲染
319
+ */
320
+ children?: any[]
321
+
322
+ options?: any[]
323
+ optionProps?: VxeGlobalRendererHandles.RenderOptionProps
324
+ optionGroups?: any[]
325
+ optionGroupProps?: VxeGlobalRendererHandles.RenderOptionGroupProps
326
+ }
327
+
328
+ export interface WidgetRender<D = any, P = Record<string, any>> {
329
+ /**
330
+ * 渲染器名称
331
+ */
332
+ name?: string
333
+ /**
334
+ * 目标组件渲染的参数
335
+ */
336
+ props?: P
337
+ }
338
+
339
+ export type CopyMethod<D = any> = (params: VxeColumnDefines.CellCopyParams<D>) => string
340
+
341
+ export type CutMethod<D = any> = (params: VxeColumnDefines.CellCutParams<D>) => void
342
+
343
+ export type PasteMethod<D = any> = (params: VxeColumnDefines.CellPasteParams<D>) => void
344
+
345
+ export type Params = any
346
+
347
+ export type Slots<D = any> = {
348
+ /**
349
+ * 自定义标题模板
350
+ */
351
+ title?: string | ((params: VxeColumnSlotTypes.TitleSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
352
+ /**
353
+ * 只对 sortable 有效,自定义表头排序的模板
354
+ */
355
+ sort?: string | ((params: VxeColumnSlotTypes.SortSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
356
+ /**
357
+ * 只对 type=radio 有效,自定义单选框模板
358
+ */
359
+ radio?: string | ((params: VxeColumnSlotTypes.RadioSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
360
+ /**
361
+ * 只对 type=checkbox 有效,自定义复选框模板
362
+ */
363
+ checkbox?: string | ((params: VxeColumnSlotTypes.CheckboxSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
364
+ /**
365
+ * 自定义显示内容模板
366
+ */
367
+ default?: string | ((params: VxeColumnSlotTypes.DefaultSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
368
+ /**
369
+ * 自定义表头内容的模板
370
+ */
371
+ header?: string | ((params: VxeColumnSlotTypes.HeaderSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
372
+ /**
373
+ * 自定义表尾内容的模板
374
+ */
375
+ footer?: string | ((params: VxeColumnSlotTypes.FooterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
376
+ /**
377
+ * 只对 type=expand 有效,自定义展开后的内容模板
378
+ */
379
+ content?: string | ((params: VxeColumnSlotTypes.ContentSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
380
+ /**
381
+ * 只对 filter-render 启用时有效,自定义筛选模板
382
+ */
383
+ filter?: string | ((params: VxeColumnSlotTypes.FilterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
384
+ /**
385
+ * 只对 floating-filters 和 filter-render 启用时有效,自定义浮动筛选模板
386
+ */
387
+ floatingFilter?: string | ((params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
388
+ 'floating-filter'?: string | ((params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
389
+ /**
390
+ * 只对 edit-render 启用时有效,自定义可编辑组件模板
391
+ */
392
+ edit?: string | ((params: VxeColumnSlotTypes.EditSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
393
+ /**
394
+ * 只对 edit-render 启用时有效,自定义可编辑组件模板
395
+ */
396
+ valid?: string | ((params: VxeColumnSlotTypes.ValidSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
397
+ /**
398
+ * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
399
+ */
400
+ rowDragIcon?: string | ((params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
401
+ 'row-drag-icon'?: string | ((params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
402
+ /**
403
+ * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
404
+ */
405
+ columnDragIcon?: string | ((params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
406
+ 'column-drag-icon'?: string | ((params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
407
+ /**
408
+ * 只对 aggregate-config 开启后有效,自定义分组列内容模板
409
+ */
410
+ groupContent?: string | ((params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
411
+ 'group-content'?: string | ((params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
412
+ /**
413
+ * 只对 agg-func 开启后有效,自定义分组列聚合数据模板
414
+ */
415
+ groupValues?: string | ((params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
416
+ 'group-values'?: string | ((params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
417
+
418
+ /**
419
+ * 已废弃
420
+ * @deprecated
421
+ */
422
+ icon?: string | ((params: VxeColumnSlotTypes.IconSlotParams<D>) => VxeComponentSlotType[] | VxeComponentSlotType) | null
423
+ }
424
+ }
425
+
426
+ export interface VxeColumnProps<D = any> {
427
+ colId?: VxeColumnPropTypes.ColId
428
+ /**
429
+ * 渲染类型
430
+ */
431
+ type?: VxeColumnPropTypes.Type
432
+ /**
433
+ * 列字段名
434
+ */
435
+ field?: VxeColumnPropTypes.Field
436
+ /**
437
+ * 列标题
438
+ */
439
+ title?: VxeColumnPropTypes.Title
440
+ /**
441
+ * 列宽度
442
+ */
443
+ width?: VxeColumnPropTypes.Width
444
+ /**
445
+ * 列最小宽度,把剩余宽度按比例分配
446
+ */
447
+ minWidth?: VxeColumnPropTypes.MinWidth
448
+ /**
449
+ * 列最大宽度
450
+ */
451
+ maxWidth?: VxeColumnPropTypes.MaxWidth
452
+ /**
453
+ * 是否允许拖动列宽调整大小
454
+ */
455
+ resizable?: VxeColumnPropTypes.Resizable
456
+ /**
457
+ * 将列固定在左侧或者右侧
458
+ */
459
+ fixed?: VxeColumnPropTypes.Fixed
460
+ /**
461
+ * 列对齐方式
462
+ */
463
+ align?: VxeColumnPropTypes.Align
464
+ /**
465
+ * 表头对齐方式
466
+ */
467
+ headerAlign?: VxeColumnPropTypes.HeaderAlign
468
+ /**
469
+ * 表尾列的对齐方式
470
+ */
471
+ footerAlign?: VxeColumnPropTypes.FooterAlign
472
+ /**
473
+ * 当内容过长时显示为省略号
474
+ */
475
+ showOverflow?: VxeColumnPropTypes.ShowOverflow
476
+ /**
477
+ * 当表头内容过长时显示为省略号
478
+ */
479
+ showHeaderOverflow?: VxeColumnPropTypes.ShowHeaderOverflow
480
+ /**
481
+ * 当表尾内容过长时显示为省略号
482
+ */
483
+ showFooterOverflow?: VxeColumnPropTypes.ShowFooterOverflow
484
+ /**
485
+ * 给单元格附加 className
486
+ */
487
+ className?: VxeColumnPropTypes.ClassName<D>
488
+ /**
489
+ * 给表头单元格附加 className
490
+ */
491
+ headerClassName?: VxeColumnPropTypes.HeaderClassName<D>
492
+ /**
493
+ * 给表尾单元格附加 className
494
+ */
495
+ footerClassName?: VxeColumnPropTypes.FooterClassName<D>
496
+ /**
497
+ * 格式化显示内容
498
+ */
499
+ formatter?: VxeColumnPropTypes.Formatter<D>
500
+ /**
501
+ * 格式化表头显示内容
502
+ */
503
+ headerFormatter?: VxeColumnPropTypes.HeaderFormatter
504
+ /**
505
+ * 格式化表尾显示内容
506
+ */
507
+ footerFormatter?: VxeColumnPropTypes.FooterFormatter<D>
508
+ /**
509
+ * 单元格默认高度
510
+ */
511
+ padding?: VxeColumnPropTypes.Padding
512
+ /**
513
+ * 垂直对齐方式
514
+ */
515
+ verticalAlign?: VxeColumnPropTypes.VerticalAlign
516
+ /**
517
+ * 是否允许排序
518
+ */
519
+ sortable?: VxeColumnPropTypes.Sortable
520
+ /**
521
+ * 自定义排序的属性
522
+ */
523
+ sortBy?: VxeColumnPropTypes.SortBy<D>
524
+ /**
525
+ * 排序的字段类型,比如字符串转数值等
526
+ */
527
+ sortType?: VxeColumnPropTypes.SortType
528
+ /**
529
+ * 配置筛选条件数组
530
+ */
531
+ filters?: VxeColumnPropTypes.Filters
532
+ /**
533
+ * 筛选是否允许多选
534
+ */
535
+ filterMultiple?: VxeColumnPropTypes.FilterMultiple
536
+ /**
537
+ * 自定义筛选方法
538
+ */
539
+ filterMethod?: VxeColumnPropTypes.FilterMethod<D>
540
+ /**
541
+ * 筛选模板配置项
542
+ */
543
+ filterRender?: VxeColumnPropTypes.FilterRender
544
+ filterResetMethod?: VxeColumnPropTypes.FilterResetMethod
545
+ filterRecoverMethod?: VxeColumnPropTypes.FilterRecoverMethod
546
+ /**
547
+ * 是否启用浮动筛选
548
+ */
549
+ floatingFilters?: VxeColumnPropTypes.FloatingFilters
550
+ /**
551
+ * 列的校验规则
552
+ */
553
+ rules?: VxeColumnPropTypes.Rules<D>
554
+ /**
555
+ * 设置为分组节点
556
+ */
557
+ rowGroupNode?: VxeColumnPropTypes.RowGroupNode
558
+ /**
559
+ * 设置为树节点
560
+ */
561
+ treeNode?: VxeColumnPropTypes.TreeNode
562
+ /**
563
+ * 设置为拖拽排序
564
+ */
565
+ dragSort?: VxeColumnPropTypes.DragSort
566
+ /**
567
+ * 设置为行高拖拽
568
+ */
569
+ rowResize?: VxeColumnPropTypes.RowResize
570
+ /**
571
+ * 是否可视
572
+ */
573
+ visible?: VxeColumnPropTypes.Visible
574
+ /**
575
+ * 指定聚合函数
576
+ */
577
+ aggFunc?: VxeColumnPropTypes.AggFunc
578
+ /**
579
+ * 自定义表尾单元格数据导出方法
580
+ */
581
+ headerExportMethod?: VxeColumnPropTypes.HeaderExportMethod<D>
582
+ /**
583
+ * 自定义单元格数据导出方法
584
+ */
585
+ exportMethod?: VxeColumnPropTypes.ExportMethod<D>
586
+ /**
587
+ * 自定义表尾单元格数据导出方法
588
+ */
589
+ footerExportMethod?: VxeColumnPropTypes.FooterExportMethod<D>
590
+ /**
591
+ * 已废弃,被 titlePrefix 替换
592
+ * @deprecated
593
+ */
594
+ titleHelp?: VxeColumnPropTypes.TitleHelp
595
+ /**
596
+ * 标题前缀图标配置项
597
+ */
598
+ titlePrefix?: VxeColumnPropTypes.TitlePrefix
599
+ /**
600
+ * 标题后缀图标配置项
601
+ */
602
+ titleSuffix?: VxeColumnPropTypes.TitleSuffix
603
+ /**
604
+ * 单元格值类型
605
+ */
606
+ cellType?: VxeColumnPropTypes.CellType
607
+ /**
608
+ * 单元格渲染配置项
609
+ */
610
+ cellRender?: VxeColumnPropTypes.CellRender<D>
611
+ /**
612
+ * 单元格编辑渲染配置项
613
+ */
614
+ editRender?: VxeColumnPropTypes.EditRender<D>
615
+ /**
616
+ * 内容渲染配置项
617
+ */
618
+ contentRender?: VxeColumnPropTypes.ContentRender
619
+ /**
620
+ * 用于 clip-config.isCopy,重写单元格复制取值的方法,将单元格复制到剪贴板
621
+ */
622
+ copyMethod?: VxeColumnPropTypes.CopyMethod
623
+ /**
624
+ * 用于 clip-config.isCut,重写单元格剪贴值清除的方法,将剪贴单元格的值清除
625
+ */
626
+ cutMethod?: VxeColumnPropTypes.CutMethod
627
+ /**
628
+ * 用于 clip-config.isPaste,重写单元格粘贴赋值的方法,从剪贴板赋值到单元格
629
+ */
630
+ pasteMethod?: VxeColumnPropTypes.PasteMethod
631
+ /**
632
+ * 额外的参数
633
+ */
634
+ params?: VxeColumnPropTypes.Params
635
+ }
636
+
637
+ export interface ColumnPrivateComputed {}
638
+ export interface VxeColumnPrivateComputed extends ColumnPrivateComputed {}
639
+
640
+ export interface ColumnReactData {}
641
+
642
+ export interface ColumnMethods {
643
+ dispatchEvent(type: ValueOf<VxeColumnEmits>, params: Record<string, any>, evnt: Event | null): void
644
+ }
645
+ export interface VxeColumnMethods extends ColumnMethods {}
646
+
647
+ export interface ColumnPrivateMethods {}
648
+ export interface VxeColumnPrivateMethods extends ColumnPrivateMethods {}
649
+
650
+ export type VxeColumnEmits = []
651
+
652
+ export namespace VxeColumnDefines {
653
+ export interface ColumnEventParams extends VxeComponentEventParams {
654
+ $table: VxeTableConstructor
655
+ }
656
+
657
+ export interface CellFormatterParams<D = any> {
658
+ $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
659
+ cellValue: any
660
+ column: VxeTableDefines.ColumnInfo
661
+ row: D
662
+ }
663
+
664
+ export interface CellCopyParams<D = any> {
665
+ $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
666
+ $grid: VxeGridConstructor<D> | null | undefined
667
+ isCut: boolean
668
+ row: D
669
+ column: VxeTableDefines.ColumnInfo
670
+ cellValue: any
671
+ }
672
+
673
+ export interface CellCutParams<D = any> {
674
+ $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
675
+ $grid: VxeGridConstructor<D> | null | undefined
676
+ row: D
677
+ column: VxeTableDefines.ColumnInfo
678
+ cellValue: any
679
+ clipData: {
680
+ text?: string
681
+ html?: string
682
+ }
683
+ }
684
+
685
+ export interface CellPasteParams<D = any> {
686
+ $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
687
+ $grid: VxeGridConstructor<D> | null | undefined
688
+ isCut: boolean
689
+ row: D
690
+ column: VxeTableDefines.ColumnInfo
691
+ cellValue: any
692
+ clipData: {
693
+ text?: string
694
+ html?: string
695
+ }
696
+ }
697
+ }
698
+
699
+ export type VxeColumnEventProps = {}
700
+
701
+ export interface VxeColumnListeners {}
702
+
703
+ export namespace VxeColumnEvents {}
704
+
705
+ export namespace VxeColumnSlotTypes {
706
+ export interface FilterSlotParams<D = any> {
707
+ $panel: any
708
+ column: {
709
+ filters: VxeTableDefines.FilterOption[]
710
+ } & VxeTableDefines.ColumnInfo
711
+ columnIndex: number
712
+ $columnIndex: number
713
+ $rowIndex: number
714
+ option: VxeColumnPropTypes.FilterItem
715
+ }
716
+ export interface FloatingFilterSlotParams<D = any> extends VxeTableDefines.CellFloatingFilterParams<D> {}
717
+
718
+ export interface EditSlotParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> {}
719
+
720
+ export interface FooterSlotParams<D = any> {
721
+ row: D
722
+ rowIndex: number
723
+ column: VxeTableDefines.ColumnInfo
724
+ columnIndex: number
725
+ _columnIndex: number
726
+ $columnIndex: number
727
+ $rowIndex: number
728
+ items: any[]
729
+ data: D[][]
730
+ }
731
+
732
+ export interface HeaderSlotParams<D = any> extends VxeTableDefines.CellRenderHeaderParams<D> {}
733
+ export interface TitleSlotParams<D = any> extends HeaderSlotParams<D> {}
734
+ export interface SortSlotParams<D = any> extends HeaderSlotParams<D> {}
735
+
736
+ export interface ContentSlotParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> {}
737
+
738
+ export interface DefaultSlotParams<D = any> extends VxeTableDefines.CellRenderBodyParams<D> {}
739
+
740
+ export interface CheckboxSlotParams<D = any> extends DefaultSlotParams<D> {
741
+ checked: boolean
742
+ indeterminate: boolean
743
+ }
744
+ export interface RadioSlotParams<D = any> extends DefaultSlotParams<D> {
745
+ checked: boolean
746
+ }
747
+ export interface IconSlotParams<D = any> extends DefaultSlotParams<D> {}
748
+
749
+ export interface ValidSlotParams<D = any> extends DefaultSlotParams<D> {
750
+ rule: VxeTableDefines.ValidatorRule<D>
751
+ content: string
752
+ }
753
+ }
754
+
755
+ export interface VxeColumnSlots<D = any> {
756
+ /**
757
+ * 自定义显示内容模板
758
+ */
759
+ default?: (params: VxeColumnSlotTypes.DefaultSlotParams<D>) => any
760
+ /**
761
+ * 自定义表头内容的模板
762
+ */
763
+ header?: (params: VxeColumnSlotTypes.HeaderSlotParams<D>) => any
764
+ /**
765
+ * 自定义表尾内容的模板
766
+ */
767
+ footer?: (params: VxeColumnSlotTypes.FooterSlotParams<D>) => any
768
+ /**
769
+ * 自定义标题模板
770
+ */
771
+ title?: (params: VxeColumnSlotTypes.TitleSlotParams<D>) => any
772
+ /**
773
+ * 只对 sortable 有效,自定义标题模板
774
+ */
775
+ sort?: (params: VxeColumnSlotTypes.SortSlotParams<D>) => any
776
+ /**
777
+ * 只对 type=checkbox 有效,自定义复选框模板
778
+ */
779
+ checkbox?: (params: VxeColumnSlotTypes.CheckboxSlotParams<D>) => any
780
+ /**
781
+ * 只对 type=radio 有效,自定义单选框模板
782
+ */
783
+ radio?: (params: VxeColumnSlotTypes.RadioSlotParams<D>) => any
784
+ /**
785
+ * 只对 type=expand 有效,自定义展开后的内容模板
786
+ */
787
+ content?: (params: VxeColumnSlotTypes.ContentSlotParams<D>) => any
788
+ /**
789
+ * 只对 filter-render 启用时有效,自定义筛选模板
790
+ */
791
+ filter?: (params: VxeColumnSlotTypes.FilterSlotParams<D>) => any
792
+ /**
793
+ * 只对 floating-filters 和 filter-render 启用时有效,自定义浮动筛选模板
794
+ */
795
+ floatingFilter?: (params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => any
796
+ 'floating-filter'?: (params: VxeColumnSlotTypes.FloatingFilterSlotParams<D>) => any
797
+ /**
798
+ * 只对 edit-render 启用时有效,自定义可编辑组件模板
799
+ */
800
+ edit?: (params: VxeColumnSlotTypes.EditSlotParams<D>) => any
801
+ /**
802
+ * 只对 edit-render 启用时有效,自定义展示错误校验模板
803
+ */
804
+ valid?: (params: VxeColumnSlotTypes.ValidSlotParams<D>) => any
805
+ /**
806
+ * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
807
+ */
808
+ rowDragIcon?: (params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => any
809
+ 'row-drag-icon'?: (params: VxeTableSlotTypes.RowDragIconSlotParams<D>) => any
810
+ /**
811
+ * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
812
+ */
813
+ columnDragIcon?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
814
+ 'column-drag-icon'?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
815
+ /**
816
+ * 只对 aggregate-config 开启后有效,自定义分组列内容模板
817
+ */
818
+ groupContent?: (params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => any
819
+ 'group-content'?: (params: VxeTableSlotTypes.ColumnGroupContentSlotParams<D>) => any
820
+ /**
821
+ * 只对 agg-func 开启后有效,自定义分组列聚合数据模板
822
+ */
823
+ groupValues?: (params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => any
824
+ 'group-values'?: (params: VxeTableSlotTypes.ColumnGroupValuesSlotParams<D>) => any
825
+
826
+ /**
827
+ * 已废弃
828
+ * @deprecated
829
+ */
830
+ icon?: (params: VxeColumnSlotTypes.IconSlotParams<D>) => any
831
+ }
832
+
833
+ export const Column: typeof VxeColumn
834
+ export default VxeColumn