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