vxe-pc-ui 4.14.6 → 4.14.7

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