vxe-pc-ui 4.20.24 → 4.20.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (627) hide show
  1. package/dist/all.esm.js +15151 -10366
  2. package/dist/style.css +1 -1
  3. package/dist/style.mini.css +1 -1
  4. package/es/alert/src/alert.js +61 -36
  5. package/es/anchor/src/anchor-link.js +39 -20
  6. package/es/anchor/src/anchor.js +74 -45
  7. package/es/avatar/src/avatar.js +47 -27
  8. package/es/backtop/src/backtop.js +65 -40
  9. package/es/badge/src/badge.js +32 -16
  10. package/es/breadcrumb/src/breadcrumb-item.js +52 -27
  11. package/es/breadcrumb/src/breadcrumb.js +11 -8
  12. package/es/button/src/button-group.js +24 -18
  13. package/es/button/src/button.js +284 -185
  14. package/es/calendar/src/calendar.js +571 -358
  15. package/es/card/src/card.js +123 -68
  16. package/es/carousel/src/carousel-item.js +14 -7
  17. package/es/carousel/src/carousel.js +174 -112
  18. package/es/cascader/src/cascader.js +526 -380
  19. package/es/checkbox/src/button.js +90 -55
  20. package/es/checkbox/src/checkbox.js +60 -40
  21. package/es/checkbox/src/group.js +34 -26
  22. package/es/collapse/src/collapse-pane.js +33 -16
  23. package/es/collapse/src/collapse.js +133 -79
  24. package/es/color-picker/src/color-picker.js +489 -350
  25. package/es/components.d.ts +3 -1
  26. package/es/components.js +3 -2
  27. package/es/context-menu/src/context-menu.js +190 -110
  28. package/es/countdown/src/countdown.js +91 -59
  29. package/es/date-panel/src/date-panel.js +760 -450
  30. package/es/date-picker/src/date-picker.js +331 -228
  31. package/es/date-range-picker/src/date-range-picker.js +366 -265
  32. package/es/divider/src/divider.js +26 -12
  33. package/es/drawer/src/drawer.js +254 -154
  34. package/es/dynamics/index.js +38 -25
  35. package/es/empty/src/empty.js +53 -29
  36. package/es/form/render/index.js +66 -41
  37. package/es/form/src/form-config-item.js +22 -16
  38. package/es/form/src/form-group.js +23 -14
  39. package/es/form/src/form-item.js +23 -17
  40. package/es/form/src/form.js +139 -95
  41. package/es/form/src/itemInfo.js +2 -1
  42. package/es/form/src/render.js +207 -127
  43. package/es/form/src/util.js +8 -4
  44. package/es/icon/src/icon.js +14 -10
  45. package/es/icon/style.css +1 -1
  46. package/es/icon/style.mini.css +1 -1
  47. package/es/icon-picker/src/icon-picker.js +250 -157
  48. package/es/image/src/group.js +26 -20
  49. package/es/image/src/image.js +33 -32
  50. package/es/image/src/preview.js +182 -122
  51. package/es/image/src/util.js +6 -3
  52. package/es/index.d.ts +3 -0
  53. package/es/index.esm.js +12 -0
  54. package/es/index.js +12 -0
  55. package/es/input/src/input.js +820 -507
  56. package/es/layout-aside/src/layout-aside.js +54 -38
  57. package/es/layout-body/src/layout-body.js +39 -27
  58. package/es/layout-container/src/layout-container.js +16 -9
  59. package/es/layout-footer/src/layout-footer.js +16 -7
  60. package/es/layout-header/src/layout-header.js +15 -7
  61. package/es/link/src/link.js +65 -44
  62. package/es/list/src/list.js +453 -333
  63. package/es/loading/index.js +8 -5
  64. package/es/loading/src/loading.js +60 -33
  65. package/es/mention/src/mention.js +2 -1
  66. package/es/menu/src/menu.js +341 -210
  67. package/es/modal/index.js +60 -37
  68. package/es/modal/src/modal.js +303 -205
  69. package/es/notice-bar/src/notice-bar.js +64 -37
  70. package/es/number-input/src/number-input.js +249 -172
  71. package/es/pager/src/pager.js +346 -202
  72. package/es/password-input/src/password-input.js +145 -105
  73. package/es/print/src/page-break.js +2 -1
  74. package/es/print/src/print.js +184 -99
  75. package/es/pulldown/src/pulldown.js +113 -71
  76. package/es/radio/src/button.js +92 -57
  77. package/es/radio/src/group.js +33 -25
  78. package/es/radio/src/radio.js +61 -41
  79. package/es/rate/src/rate.js +48 -36
  80. package/es/result/src/result.js +67 -35
  81. package/es/row/src/col.js +30 -16
  82. package/es/row/src/row.js +21 -14
  83. package/es/scrollbar/src/scrollbar.js +177 -145
  84. package/es/segmented/src/segmented.js +93 -60
  85. package/es/select/src/optgroup.js +7 -3
  86. package/es/select/src/select.js +483 -340
  87. package/es/select/src/util.js +6 -3
  88. package/es/slider/src/slider.js +108 -80
  89. package/es/space/src/space.js +43 -26
  90. package/es/splitter/src/splitter-panel.js +50 -25
  91. package/es/splitter/src/splitter.js +219 -144
  92. package/es/steps/src/steps.js +10 -5
  93. package/es/style.css +1 -1
  94. package/es/style.mini.css +1 -1
  95. package/es/switch/src/switch.js +115 -64
  96. package/es/table-select/src/table-select.js +232 -153
  97. package/es/table-transfer/src/table-transfer.js +10 -5
  98. package/es/tabs/src/tab-pane.js +33 -16
  99. package/es/tabs/src/tabs.js +363 -230
  100. package/es/tag/src/tag.js +61 -43
  101. package/es/text/src/text.js +89 -65
  102. package/es/text-ellipsis/src/text-ellipsis.js +82 -51
  103. package/es/textarea/src/textarea.js +116 -86
  104. package/es/timeline/src/timeline-item.js +2 -1
  105. package/es/timeline/src/timeline.js +2 -1
  106. package/es/tip/src/tip.js +53 -29
  107. package/es/tooltip/src/tooltip.js +114 -74
  108. package/es/tour/src/tour.js +2 -1
  109. package/es/transfer/src/transfer.js +42 -25
  110. package/es/tree/src/tree.js +709 -492
  111. package/es/tree-select/src/tree-select.js +320 -225
  112. package/es/ui/index.d.ts +0 -1
  113. package/es/ui/index.js +46 -3
  114. package/es/ui/src/dom.js +9 -6
  115. package/es/ui/src/log.js +1 -1
  116. package/es/ui/src/utils.d.ts +1 -1
  117. package/es/upload/src/upload.js +614 -398
  118. package/es/vxe-icon/style.css +1 -1
  119. package/es/vxe-icon/style.mini.css +1 -1
  120. package/es/watermark/src/util.js +15 -12
  121. package/es/watermark/src/watermark.js +55 -25
  122. package/lib/alert/src/alert.js +62 -37
  123. package/lib/anchor/src/anchor-link.js +39 -20
  124. package/lib/anchor/src/anchor.js +75 -46
  125. package/lib/avatar/src/avatar.js +52 -32
  126. package/lib/backtop/src/backtop.js +81 -56
  127. package/lib/badge/src/badge.js +35 -19
  128. package/lib/breadcrumb/src/breadcrumb-item.js +52 -27
  129. package/lib/breadcrumb/src/breadcrumb.js +13 -10
  130. package/lib/button/src/button-group.js +27 -21
  131. package/lib/button/src/button.js +306 -207
  132. package/lib/calendar/src/calendar.js +575 -362
  133. package/lib/card/src/card.js +133 -78
  134. package/lib/carousel/src/carousel-item.js +15 -8
  135. package/lib/carousel/src/carousel.js +182 -120
  136. package/lib/cascader/src/cascader.js +555 -409
  137. package/lib/checkbox/src/button.js +93 -58
  138. package/lib/checkbox/src/checkbox.js +63 -43
  139. package/lib/checkbox/src/group.js +37 -29
  140. package/lib/collapse/src/collapse-pane.js +34 -17
  141. package/lib/collapse/src/collapse.js +139 -85
  142. package/lib/color-picker/src/color-picker.js +516 -377
  143. package/lib/components.js +3 -2
  144. package/lib/context-menu/src/context-menu.js +212 -132
  145. package/lib/countdown/src/countdown.js +95 -63
  146. package/lib/date-panel/src/date-panel.js +776 -466
  147. package/lib/date-picker/src/date-picker.js +377 -274
  148. package/lib/date-range-picker/src/date-range-picker.js +401 -300
  149. package/lib/divider/src/divider.js +31 -17
  150. package/lib/drawer/src/drawer.js +255 -155
  151. package/lib/dynamics/index.js +38 -25
  152. package/lib/empty/src/empty.js +55 -31
  153. package/lib/form/render/index.js +68 -43
  154. package/lib/form/src/form-config-item.js +24 -18
  155. package/lib/form/src/form-group.js +25 -16
  156. package/lib/form/src/form-item.js +25 -19
  157. package/lib/form/src/form.js +140 -96
  158. package/lib/form/src/itemInfo.js +4 -3
  159. package/lib/form/src/render.js +214 -134
  160. package/lib/form/src/util.js +9 -5
  161. package/lib/icon/src/icon.js +17 -13
  162. package/lib/icon/style/style.css +1 -1
  163. package/lib/icon/style/style.mini.css +1 -1
  164. package/lib/icon-picker/src/icon-picker.js +251 -158
  165. package/lib/image/src/group.js +26 -20
  166. package/lib/image/src/image.js +41 -40
  167. package/lib/image/src/preview.js +206 -146
  168. package/lib/image/src/util.js +6 -3
  169. package/lib/index.common.js +12 -0
  170. package/lib/index.js +12 -0
  171. package/lib/index.umd.js +15359 -10558
  172. package/lib/index.umd.min.js +3 -3
  173. package/lib/input/src/input.js +878 -565
  174. package/lib/layout-aside/src/layout-aside.js +61 -45
  175. package/lib/layout-body/src/layout-body.js +47 -35
  176. package/lib/layout-container/src/layout-container.js +18 -11
  177. package/lib/layout-footer/src/layout-footer.js +17 -8
  178. package/lib/layout-header/src/layout-header.js +16 -8
  179. package/lib/link/src/link.js +69 -48
  180. package/lib/list/src/list.js +456 -336
  181. package/lib/loading/index.js +8 -5
  182. package/lib/loading/src/loading.js +69 -42
  183. package/lib/mention/src/mention.js +4 -3
  184. package/lib/menu/src/menu.js +351 -220
  185. package/lib/modal/index.js +60 -37
  186. package/lib/modal/src/modal.js +306 -208
  187. package/lib/notice-bar/src/notice-bar.js +70 -43
  188. package/lib/number-input/src/number-input.js +290 -213
  189. package/lib/pager/src/pager.js +347 -203
  190. package/lib/password-input/src/password-input.js +155 -115
  191. package/lib/print/src/page-break.js +3 -2
  192. package/lib/print/src/print.js +193 -108
  193. package/lib/pulldown/src/pulldown.js +128 -86
  194. package/lib/radio/src/button.js +96 -61
  195. package/lib/radio/src/group.js +37 -29
  196. package/lib/radio/src/radio.js +65 -45
  197. package/lib/rate/src/rate.js +50 -38
  198. package/lib/result/src/result.js +68 -36
  199. package/lib/row/src/col.js +32 -18
  200. package/lib/row/src/row.js +25 -18
  201. package/lib/scrollbar/src/scrollbar.js +178 -146
  202. package/lib/segmented/src/segmented.js +97 -64
  203. package/lib/select/src/optgroup.js +7 -3
  204. package/lib/select/src/select.js +486 -343
  205. package/lib/select/src/util.js +6 -3
  206. package/lib/slider/src/slider.js +122 -94
  207. package/lib/space/src/space.js +57 -40
  208. package/lib/splitter/src/splitter-panel.js +51 -26
  209. package/lib/splitter/src/splitter.js +233 -158
  210. package/lib/steps/src/steps.js +11 -6
  211. package/lib/style.css +1 -1
  212. package/lib/style.mini.css +1 -1
  213. package/lib/switch/src/switch.js +116 -65
  214. package/lib/table-select/src/table-select.js +234 -155
  215. package/lib/table-transfer/src/table-transfer.js +12 -7
  216. package/lib/tabs/src/tab-pane.js +34 -17
  217. package/lib/tabs/src/tabs.js +365 -232
  218. package/lib/tag/src/tag.js +67 -49
  219. package/lib/text/src/text.js +100 -76
  220. package/lib/text-ellipsis/src/text-ellipsis.js +86 -55
  221. package/lib/textarea/src/textarea.js +127 -97
  222. package/lib/timeline/src/timeline-item.js +3 -2
  223. package/lib/timeline/src/timeline.js +4 -3
  224. package/lib/tip/src/tip.js +58 -34
  225. package/lib/tooltip/src/tooltip.js +116 -76
  226. package/lib/tour/src/tour.js +4 -3
  227. package/lib/transfer/src/transfer.js +44 -27
  228. package/lib/tree/src/tree.js +717 -500
  229. package/lib/tree-select/src/tree-select.js +351 -256
  230. package/lib/ui/index.js +46 -4
  231. package/lib/ui/src/dom.js +9 -6
  232. package/lib/ui/src/log.js +1 -1
  233. package/lib/upload/src/upload.js +708 -492
  234. package/lib/vxe-icon/style/style.css +1 -1
  235. package/lib/vxe-icon/style/style.mini.css +1 -1
  236. package/lib/watermark/src/util.js +15 -12
  237. package/lib/watermark/src/watermark.js +60 -30
  238. package/package.json +10 -4
  239. package/packages/alert/index.ts +16 -16
  240. package/packages/alert/src/alert.ts +148 -126
  241. package/packages/anchor/index.ts +16 -16
  242. package/packages/anchor/src/anchor-link.ts +139 -121
  243. package/packages/anchor/src/anchor.ts +266 -237
  244. package/packages/anchor/src/util.ts +23 -23
  245. package/packages/anchor-link/index.ts +16 -16
  246. package/packages/avatar/index.ts +16 -16
  247. package/packages/avatar/src/avatar.ts +166 -149
  248. package/packages/backtop/index.ts +16 -16
  249. package/packages/backtop/src/backtop.ts +337 -313
  250. package/packages/badge/index.ts +16 -16
  251. package/packages/badge/src/badge.ts +131 -118
  252. package/packages/breadcrumb/index.ts +16 -16
  253. package/packages/breadcrumb/src/breadcrumb-item.ts +129 -106
  254. package/packages/breadcrumb/src/breadcrumb.ts +94 -92
  255. package/packages/breadcrumb-item/index.ts +16 -16
  256. package/packages/button/index.ts +16 -16
  257. package/packages/button/src/button-group.ts +116 -110
  258. package/packages/button/src/button.ts +975 -855
  259. package/packages/button-group/index.ts +16 -16
  260. package/packages/calendar/index.ts +16 -16
  261. package/packages/calendar/src/calendar.ts +1566 -1352
  262. package/packages/card/index.ts +16 -16
  263. package/packages/card/src/card.ts +285 -236
  264. package/packages/carousel/index.ts +16 -16
  265. package/packages/carousel/src/carousel-item.ts +120 -102
  266. package/packages/carousel/src/carousel.ts +475 -414
  267. package/packages/carousel/src/util.ts +21 -21
  268. package/packages/carousel-item/index.ts +16 -16
  269. package/packages/cascader/index.ts +16 -16
  270. package/packages/cascader/src/cascader.ts +2074 -1896
  271. package/packages/cascader/src/util.ts +9 -9
  272. package/packages/checkbox/index.ts +16 -16
  273. package/packages/checkbox/src/button.ts +267 -221
  274. package/packages/checkbox/src/checkbox.ts +219 -199
  275. package/packages/checkbox/src/group.ts +292 -269
  276. package/packages/checkbox-button/index.ts +16 -16
  277. package/packages/checkbox-group/index.ts +16 -16
  278. package/packages/col/index.ts +16 -16
  279. package/packages/collapse/index.ts +16 -16
  280. package/packages/collapse/src/collapse-pane.ts +142 -114
  281. package/packages/collapse/src/collapse.ts +453 -384
  282. package/packages/collapse/src/util.ts +21 -21
  283. package/packages/collapse-pane/index.ts +16 -16
  284. package/packages/color-picker/index.ts +31 -31
  285. package/packages/color-picker/src/color-picker.ts +1310 -1147
  286. package/packages/color-picker/src/util.ts +436 -423
  287. package/packages/components.ts +350 -349
  288. package/packages/context-menu/index.ts +54 -54
  289. package/packages/context-menu/src/context-menu.ts +773 -681
  290. package/packages/countdown/index.ts +16 -16
  291. package/packages/countdown/src/countdown.ts +295 -262
  292. package/packages/date-panel/index.ts +16 -16
  293. package/packages/date-panel/src/date-panel.ts +2214 -1900
  294. package/packages/date-panel/src/util.ts +354 -326
  295. package/packages/date-picker/index.ts +16 -16
  296. package/packages/date-picker/src/date-picker.ts +1884 -1752
  297. package/packages/date-range-picker/index.ts +16 -16
  298. package/packages/date-range-picker/src/date-range-picker.ts +1728 -1604
  299. package/packages/divider/index.ts +16 -16
  300. package/packages/divider/src/divider.ts +105 -93
  301. package/packages/drawer/index.ts +78 -78
  302. package/packages/drawer/src/drawer.ts +920 -802
  303. package/packages/drawer/src/store.ts +3 -3
  304. package/packages/dynamics/index.ts +124 -117
  305. package/packages/empty/index.ts +16 -16
  306. package/packages/empty/src/empty.ts +124 -103
  307. package/packages/form/index.ts +16 -16
  308. package/packages/form/render/index.ts +646 -614
  309. package/packages/form/src/form-config-item.ts +85 -80
  310. package/packages/form/src/form-group.ts +96 -86
  311. package/packages/form/src/form-item.ts +181 -174
  312. package/packages/form/src/form.ts +1122 -1069
  313. package/packages/form/src/itemInfo.ts +84 -82
  314. package/packages/form/src/render.ts +470 -387
  315. package/packages/form/src/util.ts +98 -93
  316. package/packages/form-gather/index.ts +26 -26
  317. package/packages/form-group/index.ts +16 -16
  318. package/packages/form-item/index.ts +16 -16
  319. package/packages/icon/index.ts +16 -16
  320. package/packages/icon/src/icon.ts +78 -75
  321. package/packages/icon-picker/index.ts +16 -16
  322. package/packages/icon-picker/src/icon-picker.ts +922 -809
  323. package/packages/image/index.ts +16 -16
  324. package/packages/image/src/group.ts +159 -153
  325. package/packages/image/src/image.ts +298 -298
  326. package/packages/image/src/preview.ts +749 -672
  327. package/packages/image/src/util.ts +62 -59
  328. package/packages/image-group/index.ts +16 -16
  329. package/packages/image-preview/index.ts +19 -19
  330. package/packages/index.ts +20 -4
  331. package/packages/input/index.ts +16 -16
  332. package/packages/input/src/input.ts +3201 -2863
  333. package/packages/language/fr-FR.ts +15 -15
  334. package/packages/language/it-IT.ts +4 -4
  335. package/packages/language/uk-UA.ts +1 -1
  336. package/packages/language/uz-UZ.ts +13 -13
  337. package/packages/language/zh-CN.ts +907 -907
  338. package/packages/layout-aside/index.ts +16 -16
  339. package/packages/layout-aside/src/layout-aside.ts +172 -156
  340. package/packages/layout-body/index.ts +16 -16
  341. package/packages/layout-body/src/layout-body.ts +191 -181
  342. package/packages/layout-container/index.ts +16 -16
  343. package/packages/layout-container/src/layout-container.ts +108 -92
  344. package/packages/layout-footer/index.ts +16 -16
  345. package/packages/layout-footer/src/layout-footer.ts +81 -74
  346. package/packages/layout-header/index.ts +16 -16
  347. package/packages/layout-header/src/layout-header.ts +79 -73
  348. package/packages/link/index.ts +16 -16
  349. package/packages/link/src/link.ts +180 -161
  350. package/packages/list/index.ts +16 -16
  351. package/packages/list/src/list.ts +2690 -2564
  352. package/packages/list/src/store.ts +10 -10
  353. package/packages/list/src/util.ts +10 -11
  354. package/packages/loading/index.ts +39 -36
  355. package/packages/loading/src/loading.ts +179 -152
  356. package/packages/mention/index.ts +16 -16
  357. package/packages/mention/src/mention.ts +69 -71
  358. package/packages/menu/index.ts +16 -16
  359. package/packages/menu/src/menu.ts +1000 -857
  360. package/packages/modal/index.ts +164 -141
  361. package/packages/modal/src/modal.ts +1803 -1681
  362. package/packages/modal/src/store.ts +3 -3
  363. package/packages/notice-bar/index.ts +16 -16
  364. package/packages/notice-bar/src/notice-bar.ts +207 -181
  365. package/packages/number-input/index.ts +16 -16
  366. package/packages/number-input/src/number-input.ts +1322 -1242
  367. package/packages/number-input/src/util.ts +25 -25
  368. package/packages/optgroup/index.ts +16 -16
  369. package/packages/option/index.ts +16 -16
  370. package/packages/pager/index.ts +16 -16
  371. package/packages/pager/src/pager.ts +919 -775
  372. package/packages/password-input/index.ts +16 -16
  373. package/packages/password-input/src/password-input.ts +523 -482
  374. package/packages/print/index.ts +18 -18
  375. package/packages/print/src/page-break.ts +104 -92
  376. package/packages/print/src/print.ts +366 -281
  377. package/packages/print/src/util.ts +299 -304
  378. package/packages/print-page-break/index.ts +16 -16
  379. package/packages/pulldown/index.ts +16 -16
  380. package/packages/pulldown/src/pulldown.ts +505 -445
  381. package/packages/radio/index.ts +16 -16
  382. package/packages/radio/src/button.ts +290 -243
  383. package/packages/radio/src/group.ts +275 -252
  384. package/packages/radio/src/radio.ts +237 -218
  385. package/packages/radio-button/index.ts +16 -16
  386. package/packages/radio-group/index.ts +16 -16
  387. package/packages/rate/index.ts +16 -16
  388. package/packages/rate/src/rate.ts +203 -192
  389. package/packages/result/index.ts +16 -16
  390. package/packages/result/src/result.ts +141 -112
  391. package/packages/row/index.ts +16 -16
  392. package/packages/row/src/col.ts +171 -159
  393. package/packages/row/src/row.ts +143 -138
  394. package/packages/scrollbar/index.ts +16 -16
  395. package/packages/scrollbar/src/scrollbar.ts +626 -595
  396. package/packages/segmented/index.ts +16 -16
  397. package/packages/segmented/src/segmented.ts +297 -264
  398. package/packages/select/index.ts +16 -16
  399. package/packages/select/src/optgroup.ts +53 -49
  400. package/packages/select/src/option-info.ts +20 -20
  401. package/packages/select/src/option.ts +47 -47
  402. package/packages/select/src/select.ts +2390 -2214
  403. package/packages/select/src/util.ts +50 -47
  404. package/packages/slider/index.ts +16 -16
  405. package/packages/slider/src/slider.ts +547 -506
  406. package/packages/space/index.ts +16 -16
  407. package/packages/space/src/space.ts +225 -209
  408. package/packages/split/index.ts +16 -16
  409. package/packages/split-pane/index.ts +17 -17
  410. package/packages/splitter/index.ts +16 -16
  411. package/packages/splitter/src/splitter-panel.ts +199 -163
  412. package/packages/splitter/src/splitter.ts +1110 -1020
  413. package/packages/splitter/src/util.ts +21 -21
  414. package/packages/splitter-panel/index.ts +16 -16
  415. package/packages/steps/index.ts +16 -16
  416. package/packages/steps/src/steps.ts +69 -68
  417. package/packages/switch/index.ts +16 -16
  418. package/packages/switch/src/switch.ts +300 -245
  419. package/packages/tab-pane/index.ts +16 -16
  420. package/packages/table-select/index.ts +16 -16
  421. package/packages/table-select/src/table-select.ts +1103 -999
  422. package/packages/table-transfer/index.ts +16 -16
  423. package/packages/table-transfer/src/table-transfer.ts +104 -91
  424. package/packages/tabs/index.ts +16 -16
  425. package/packages/tabs/src/tab-pane.ts +132 -117
  426. package/packages/tabs/src/tabs.ts +1137 -997
  427. package/packages/tabs/src/util.ts +21 -21
  428. package/packages/tag/index.ts +16 -16
  429. package/packages/tag/src/tag.ts +204 -187
  430. package/packages/text/index.ts +16 -16
  431. package/packages/text/src/text.ts +282 -260
  432. package/packages/text-ellipsis/index.ts +16 -16
  433. package/packages/text-ellipsis/src/text-ellipsis.ts +312 -282
  434. package/packages/textarea/index.ts +16 -16
  435. package/packages/textarea/src/textarea.ts +526 -495
  436. package/packages/timeline/index.ts +16 -16
  437. package/packages/timeline/src/timeline-item.ts +65 -67
  438. package/packages/timeline/src/timeline.ts +70 -71
  439. package/packages/timeline-item/index.ts +16 -16
  440. package/packages/tip/index.ts +19 -19
  441. package/packages/tip/src/tip.ts +150 -129
  442. package/packages/tooltip/index.ts +72 -72
  443. package/packages/tooltip/src/tooltip.ts +669 -627
  444. package/packages/tour/index.ts +16 -16
  445. package/packages/tour/src/tour.ts +70 -71
  446. package/packages/transfer/index.ts +16 -16
  447. package/packages/transfer/src/transfer.ts +130 -117
  448. package/packages/tree/index.ts +16 -16
  449. package/packages/tree/src/store.ts +10 -10
  450. package/packages/tree/src/tree.ts +4077 -3852
  451. package/packages/tree/src/util.ts +51 -51
  452. package/packages/tree-select/index.ts +16 -16
  453. package/packages/tree-select/src/tree-select.ts +1217 -1094
  454. package/packages/ui/index.ts +836 -793
  455. package/packages/ui/src/anime.ts +51 -52
  456. package/packages/ui/src/comp.ts +3 -3
  457. package/packages/ui/src/dom.ts +357 -354
  458. package/packages/ui/src/log.ts +19 -19
  459. package/packages/ui/src/utils.ts +79 -79
  460. package/packages/ui/src/vn.ts +39 -39
  461. package/packages/upload/index.ts +20 -20
  462. package/packages/upload/src/upload.ts +2271 -2021
  463. package/packages/upload/src/util.ts +109 -109
  464. package/packages/watermark/index.ts +33 -33
  465. package/packages/watermark/src/util.ts +186 -180
  466. package/packages/watermark/src/watermark.ts +196 -168
  467. package/types/all.d.ts +552 -552
  468. package/types/components/alert.d.ts +83 -87
  469. package/types/components/anchor-link.d.ts +88 -91
  470. package/types/components/anchor.d.ts +97 -104
  471. package/types/components/avatar.d.ts +85 -88
  472. package/types/components/backtop.d.ts +119 -122
  473. package/types/components/badge.d.ts +77 -80
  474. package/types/components/breadcrumb-item.d.ts +77 -80
  475. package/types/components/breadcrumb.d.ts +83 -87
  476. package/types/components/button-group.d.ts +118 -120
  477. package/types/components/button.d.ts +331 -339
  478. package/types/components/calendar.d.ts +247 -264
  479. package/types/components/card.d.ts +111 -113
  480. package/types/components/carousel-item.d.ts +73 -75
  481. package/types/components/carousel.d.ts +130 -134
  482. package/types/components/cascader.d.ts +336 -386
  483. package/types/components/checkbox-button.d.ts +109 -114
  484. package/types/components/checkbox-group.d.ts +152 -154
  485. package/types/components/checkbox.d.ts +123 -128
  486. package/types/components/col.d.ts +77 -80
  487. package/types/components/colgroup.d.ts +64 -69
  488. package/types/components/collapse-pane.d.ts +86 -89
  489. package/types/components/collapse.d.ts +123 -133
  490. package/types/components/color-picker.d.ts +275 -280
  491. package/types/components/column.d.ts +834 -851
  492. package/types/components/context-menu.d.ts +282 -289
  493. package/types/components/countdown.d.ts +108 -112
  494. package/types/components/date-panel.d.ts +319 -331
  495. package/types/components/date-picker.d.ts +361 -384
  496. package/types/components/date-range-picker.d.ts +351 -371
  497. package/types/components/divider.d.ts +72 -75
  498. package/types/components/drawer.d.ts +333 -344
  499. package/types/components/empty.d.ts +75 -78
  500. package/types/components/flow-design.d.ts +73 -85
  501. package/types/components/flow-view.d.ts +73 -85
  502. package/types/components/form-design.d.ts +370 -376
  503. package/types/components/form-gather.d.ts +120 -124
  504. package/types/components/form-group.d.ts +73 -77
  505. package/types/components/form-item.d.ts +395 -413
  506. package/types/components/form-view.d.ts +179 -183
  507. package/types/components/form.d.ts +499 -495
  508. package/types/components/gantt-module/gantt-view.d.ts +195 -200
  509. package/types/components/gantt-module/index.d.ts +1 -1
  510. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +137 -131
  511. package/types/components/gantt-plugins/index.d.ts +1 -1
  512. package/types/components/gantt.d.ts +1248 -1399
  513. package/types/components/grid.d.ts +1289 -1317
  514. package/types/components/icon-picker.d.ts +242 -253
  515. package/types/components/icon.d.ts +332 -87
  516. package/types/components/image-group.d.ts +124 -127
  517. package/types/components/image-preview.d.ts +167 -167
  518. package/types/components/image.d.ts +166 -173
  519. package/types/components/input.d.ts +429 -453
  520. package/types/components/layout-aside.d.ts +123 -123
  521. package/types/components/layout-body.d.ts +110 -113
  522. package/types/components/layout-container.d.ts +73 -75
  523. package/types/components/layout-footer.d.ts +71 -73
  524. package/types/components/layout-header.d.ts +67 -69
  525. package/types/components/link.d.ts +107 -111
  526. package/types/components/list-design.d.ts +189 -190
  527. package/types/components/list-view.d.ts +193 -199
  528. package/types/components/list.d.ts +678 -715
  529. package/types/components/loading.d.ts +98 -103
  530. package/types/components/mention.d.ts +70 -77
  531. package/types/components/menu.d.ts +284 -295
  532. package/types/components/modal.d.ts +567 -584
  533. package/types/components/notice-bar.d.ts +102 -106
  534. package/types/components/number-input.d.ts +359 -365
  535. package/types/components/optgroup.d.ts +85 -88
  536. package/types/components/option.d.ts +94 -103
  537. package/types/components/pager.d.ts +330 -335
  538. package/types/components/password-input.d.ts +143 -156
  539. package/types/components/print-page-break.d.ts +65 -69
  540. package/types/components/print.d.ts +243 -245
  541. package/types/components/pulldown.d.ts +231 -239
  542. package/types/components/radio-button.d.ts +113 -118
  543. package/types/components/radio-group.d.ts +151 -153
  544. package/types/components/radio.d.ts +129 -134
  545. package/types/components/rate.d.ts +83 -88
  546. package/types/components/result.d.ts +81 -84
  547. package/types/components/row.d.ts +77 -81
  548. package/types/components/scrollbar.d.ts +299 -305
  549. package/types/components/segmented.d.ts +119 -123
  550. package/types/components/select.d.ts +598 -616
  551. package/types/components/slider.d.ts +137 -151
  552. package/types/components/space.d.ts +120 -127
  553. package/types/components/split-pane.d.ts +126 -133
  554. package/types/components/split.d.ts +301 -312
  555. package/types/components/splitter-panel.d.ts +123 -130
  556. package/types/components/splitter.d.ts +290 -301
  557. package/types/components/steps.d.ts +63 -68
  558. package/types/components/switch.d.ts +127 -133
  559. package/types/components/tab-pane.d.ts +111 -114
  560. package/types/components/table-module/custom.d.ts +123 -123
  561. package/types/components/table-module/edit.d.ts +297 -276
  562. package/types/components/table-module/export.d.ts +88 -96
  563. package/types/components/table-module/filter.d.ts +144 -144
  564. package/types/components/table-module/index.d.ts +7 -7
  565. package/types/components/table-module/keyboard.d.ts +26 -26
  566. package/types/components/table-module/menu.d.ts +46 -46
  567. package/types/components/table-module/validator.d.ts +53 -53
  568. package/types/components/table-plugins/extend-cell-area.d.ts +781 -781
  569. package/types/components/table-plugins/extend-pivot-table.d.ts +59 -58
  570. package/types/components/table-plugins/filters-combination.d.ts +15 -15
  571. package/types/components/table-plugins/filters-complex-input.d.ts +9 -9
  572. package/types/components/table-plugins/index.d.ts +4 -4
  573. package/types/components/table-select.d.ts +268 -276
  574. package/types/components/table-transfer.d.ts +80 -84
  575. package/types/components/table.d.ts +7530 -8000
  576. package/types/components/tabs.d.ts +314 -352
  577. package/types/components/tag.d.ts +108 -114
  578. package/types/components/text-ellipsis.d.ts +107 -112
  579. package/types/components/text.d.ts +112 -122
  580. package/types/components/textarea.d.ts +261 -275
  581. package/types/components/timeline-item.d.ts +66 -75
  582. package/types/components/timeline.d.ts +70 -77
  583. package/types/components/tip.d.ts +81 -83
  584. package/types/components/toolbar.d.ts +327 -336
  585. package/types/components/tooltip.d.ts +250 -255
  586. package/types/components/tour.d.ts +70 -77
  587. package/types/components/transfer.d.ts +80 -84
  588. package/types/components/tree-select.d.ts +361 -376
  589. package/types/components/tree.d.ts +994 -1036
  590. package/types/components/upload.d.ts +477 -518
  591. package/types/components/watermark.d.ts +116 -120
  592. package/types/handles/form-design.d.ts +50 -50
  593. package/types/handles/index.d.ts +3 -3
  594. package/types/handles/list-design.d.ts +1 -2
  595. package/types/handles/table.d.ts +15 -15
  596. package/types/index.d.ts +8 -8
  597. package/types/ui/commands.d.ts +57 -57
  598. package/types/ui/formats.d.ts +62 -62
  599. package/types/ui/global-config.d.ts +269 -269
  600. package/types/ui/global-icon.d.ts +315 -315
  601. package/types/ui/hooks.d.ts +13 -13
  602. package/types/ui/index.d.ts +100 -100
  603. package/types/ui/interceptor.d.ts +52 -52
  604. package/types/ui/menus.d.ts +89 -89
  605. package/types/ui/renderer.d.ts +1033 -1047
  606. package/types/ui/validators.d.ts +37 -38
  607. /package/dist/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
  608. /package/dist/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
  609. /package/dist/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
  610. /package/es/icon/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
  611. /package/es/icon/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
  612. /package/es/icon/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
  613. /package/es/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
  614. /package/es/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
  615. /package/es/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
  616. /package/es/vxe-icon/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
  617. /package/es/vxe-icon/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
  618. /package/es/vxe-icon/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
  619. /package/lib/icon/style/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
  620. /package/lib/icon/style/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
  621. /package/lib/icon/style/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
  622. /package/lib/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
  623. /package/lib/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
  624. /package/lib/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
  625. /package/lib/vxe-icon/style/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
  626. /package/lib/vxe-icon/style/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
  627. /package/lib/vxe-icon/style/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
@@ -1,1317 +1,1289 @@
1
- import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, VxeComponentIsVScrollbar, VxeComponentSlotType, ValueOf } from '@vxe-ui/core'
3
- import { VxeToolbarInstance, VxeToolbarProps, VxeToolbarPropTypes, VxeToolbarSlotTypes } from './toolbar'
4
- import { VxeTableDefines, VxeTablePrivateMethods, VxeTableEmits, VxeTableConstructor, VxeTableProps, TableMethods, VxeTableSlotTypes } from './table'
5
- import { VxeColumnPropTypes } from './column'
6
- import { VxePagerInstance, VxePagerProps, VxePagerDefines, VxePagerSlotTypes } from './pager'
7
- import { VxeFormInstance, VxeFormProps, VxeFormDefines } from './form'
8
- import { VxeFormItemPropTypes, VxeFormItemProps } from './form-item'
9
- import { VxeGanttConstructor } from './gantt'
10
-
11
- /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
12
-
13
- export declare const VxeGrid: DefineVxeComponentApp<VxeGridProps, VxeGridEventProps, VxeGridSlots, VxeGridMethods>
14
- export type VxeGridComponent = DefineVxeComponentOptions<VxeGridProps, VxeGridEventProps>
15
-
16
- export type VxeGridInstance<D = any> = DefineVxeComponentInstance<VxeGridProps<D>, VxeGridConstructor<D>>
17
-
18
- export interface VxeGridConstructor<D = any> extends VxeComponentBaseOptions, VxeGridMethods<D> {
19
- props: VxeGridProps
20
- context: SetupContext<VxeGridEmits>
21
- reactData: GridReactData
22
- internalData: GridInternalData
23
- getRefMaps(): GridPrivateRef
24
- getComputeMaps(): GridPrivateComputed
25
- renderVN: RenderFunction
26
- }
27
-
28
- export interface GridPrivateRef<D = any> {
29
- refElem: Ref<HTMLDivElement | undefined>
30
- refTable: Ref<(VxeTableConstructor & VxeTablePrivateMethods) | undefined>
31
- refForm: Ref<VxeFormInstance | undefined>
32
- refToolbar: Ref<VxeToolbarInstance | undefined>
33
- refPager: Ref<VxePagerInstance | undefined>
34
- refPopupContainerElem: Ref<HTMLDivElement | undefined>
35
- }
36
- export interface VxeGridPrivateRef<D = any> extends GridPrivateRef<D> { }
37
-
38
- export namespace VxeGridPropTypes {
39
- export type Size = VxeComponentSizeType
40
-
41
- export type Layouts = VxeGridDefines.LayoutKey[] | VxeGridDefines.LayoutKey[][]
42
-
43
- export type Column<D = any> = VxeTableDefines.ColumnOptions<D>
44
- export type Columns<D = any> = Column<D>[]
45
-
46
- export interface PagerConfig extends VxePagerProps {
47
- enabled?: boolean
48
- slots?: {
49
- left?: string | ((params: VxePagerSlotTypes.LeftSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
50
- right?: string | ((params: VxePagerSlotTypes.RightSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
51
- home?: string | ((params: VxePagerSlotTypes.HomeSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
52
- prevPage?: string | ((params: VxePagerSlotTypes.PrevPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
53
- prevJump?: string | ((params: VxePagerSlotTypes.PrevJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
54
- nextJump?: string | ((params: VxePagerSlotTypes.NextJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
55
- nextPage?: string | ((params: VxePagerSlotTypes.NextPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
56
- end?: string | ((params: VxePagerSlotTypes.EndSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
57
- number?: string | ((params: VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
58
- numberJump?: string | ((params: VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
59
- sizes?: string | ((params: VxePagerSlotTypes.SizesSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
60
- fullJump?: string | ((params: VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
61
- jump?:string | ((params: VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
62
- pageCount?: string | ((params: VxePagerSlotTypes.PageCountSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
63
- total?: string | ((params: VxePagerSlotTypes.TotalSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
64
- }
65
- }
66
- export interface PagerOpts extends PagerConfig { }
67
-
68
- interface ProxyAjaxQueryPageParams {
69
- total: number
70
- pageSize: number
71
- currentPage: number
72
- }
73
-
74
- interface ProxyAjaxQuerySortCheckedParams<D = any> {
75
- column: VxeTableDefines.ColumnInfo
76
- order: string
77
- sortBy: string
78
- field: string
79
- property: string
80
- }
81
-
82
- interface ProxyAjaxQueryParams<D = any> {
83
- $table: VxeTableConstructor<D>
84
- $grid: VxeGridConstructor<D> | null | undefined
85
- $gantt: VxeGanttConstructor<D> | null | undefined
86
- page: ProxyAjaxQueryPageParams
87
- sort: ProxyAjaxQuerySortCheckedParams<D>
88
- sorts: ProxyAjaxQuerySortCheckedParams<D>[]
89
- filters: VxeTableDefines.FilterCheckedParams[]
90
- form: {
91
- [key: string]: any
92
- }
93
- }
94
-
95
- interface ProxyAjaxQueryFooterParams<D = any> {
96
- $table: VxeTableConstructor<D>
97
- $grid: VxeGridConstructor<D> | null | undefined
98
- $gantt: VxeGanttConstructor<D> | null | undefined
99
- page: ProxyAjaxQueryPageParams
100
- filters: VxeTableDefines.FilterCheckedParams[]
101
- form: {
102
- [key: string]: any
103
- }
104
- }
105
-
106
- interface ProxyAjaxQueryAllParams<D = any> {
107
- $table: VxeTableConstructor<D>
108
- $grid: VxeGridConstructor<D> | null | undefined
109
- $gantt: VxeGanttConstructor<D> | null | undefined
110
- sort: ProxyAjaxQuerySortCheckedParams<D>
111
- sorts: ProxyAjaxQuerySortCheckedParams<D>[]
112
- filters: VxeTableDefines.FilterCheckedParams[]
113
- form: {
114
- [key: string]: any
115
- }
116
- options: any
117
- }
118
-
119
- interface ProxyAjaxDeleteParams<D = any> {
120
- $table: VxeTableConstructor<D>
121
- $grid: VxeGridConstructor<D> | null | undefined
122
- $gantt: VxeGanttConstructor<D> | null | undefined
123
- body: {
124
- removeRecords: D[]
125
- }
126
- }
127
-
128
- interface ProxyAjaxSaveParams<D = any> {
129
- $table: VxeTableConstructor<D>
130
- $grid: VxeGridConstructor<D> | null | undefined
131
- $gantt: VxeGanttConstructor<D> | null | undefined
132
- body: {
133
- insertRecords: D[]
134
- updateRecords: D[]
135
- removeRecords: D[]
136
- pendingRecords: D[]
137
- }
138
- }
139
-
140
- interface ProxyAjaxResponseParams<T = any> {
141
- response: T
142
- }
143
-
144
- export interface ProxyConfig<D = any> {
145
- /**
146
- * 是否启用
147
- */
148
- enabled?: boolean
149
- /**
150
- * 是否自动加载查询数据
151
- */
152
- autoLoad?: boolean
153
- /**
154
- * 已废弃,请使用 showResponseMsg
155
- * @deprecated
156
- */
157
- message?: boolean
158
- /**
159
- * 是否自动显示加载中
160
- */
161
- showLoading?: boolean
162
- /**
163
- * 是否显示内置的消息提示(可以设为 false 关闭内置的消息提示)
164
- */
165
- showResponseMsg?: boolean
166
- /**
167
- * 已废弃,请使用 showActionMsg
168
- * @deprecated
169
- */
170
- showActiveMsg?: boolean
171
- /**
172
- * 是否显示内置的消息提示(可以设为 false 关闭内置的消息提示)
173
- */
174
- showActionMsg?: boolean
175
- /**
176
- * 是否代理动态序号,自动根据分页来动态显示累计序号
177
- */
178
- seq?: boolean
179
- /**
180
- * 是否代理排序
181
- */
182
- sort?: boolean
183
- /**
184
- * 是否代理筛选
185
- */
186
- filter?: boolean
187
- /**
188
- * 是否代理表单
189
- */
190
- form?: boolean
191
- /**
192
- * 代理表单参数
193
- */
194
- formOptions?: {
195
- /**
196
- * 代理表单的提交方式
197
- */
198
- submitMode?: 'reload' | 'query' | '' | null
199
- /**
200
- * 代理表单的重置方式
201
- */
202
- resetMode?: 'reset_form' | 'reset' | '' | null
203
- }
204
- /**
205
- * 是否代理表尾
206
- */
207
- footer?: boolean
208
- /**
209
- * 获取请求响应的属性配置
210
- */
211
- response?: VxeGridDefines.ProxyConfigResponseConfig<D>
212
- /**
213
- * 异步请求配置
214
- */
215
- ajax?: {
216
- /**
217
- * 查询列表数据之前方法,可以返回 false 阻止本次操作
218
- */
219
- beforeQuery?(params: ProxyAjaxQueryParams<D>, ...args: any[]): boolean | Promise<boolean>
220
- /**
221
- * 查询列表数据方法,执行顺序 beforeQuery > query > afterQuery > querySuccess|queryError
222
- */
223
- query?(params: ProxyAjaxQueryParams<D>, ...args: any[]): Promise<any>
224
- /**
225
- * 该方法用于重写查询列表数据的默认行为,用于自定义加载数据的处理方法
226
- */
227
- afterQuery?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): void
228
- /**
229
- * 查询列表数据成功后的处理方法
230
- */
231
- querySuccess?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
232
- /**
233
- * 查询列表数据失败后的处理方法
234
- */
235
- queryError?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
236
-
237
- /**
238
- * 查询全量数据之前方法,可以返回 false 阻止本次操作
239
- */
240
- beforeQueryAll?(params: ProxyAjaxQueryAllParams<D>): boolean | Promise<boolean>
241
- /**
242
- * 查询全量数据的方法,执行顺序 beforeQueryAll > queryAll > afterQueryAll > queryAllSuccess|queryAllError
243
- */
244
- queryAll?(params: ProxyAjaxQueryAllParams<D>): Promise<any>
245
- /**
246
- * 该方法用于重写查询全量数据的默认行为,用于自定义加载数据的处理方法
247
- */
248
- afterQueryAll?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }): void
249
- /**
250
- * 查询全量数据成功后的处理方法
251
- */
252
- queryAllSuccess?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
253
- /**
254
- * 查询全量数据失败后的处理方法
255
- */
256
- queryAllError?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
257
-
258
- /**
259
- * 查询表尾数据之前方法,可以返回 false 阻止本次操作
260
- */
261
- beforeQueryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): boolean | Promise<boolean>
262
- /**
263
- * 查询表尾数据的方法,执行顺序 beforeQueryFooter > queryFooter > afterQueryFooter > queryFooterSuccess|queryFooterError
264
- */
265
- queryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): Promise<any>
266
- /**
267
- * 该方法用于重写查询表尾数据的默认行为,用于自定义加载数据的处理方法
268
- */
269
- afterQueryFooter?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): Promise<any>
270
- /**
271
- * 查询表尾数据成功后的处理方法
272
- */
273
- queryFooterSuccess?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
274
- /**
275
- * 查询表尾数据失败后的处理方法
276
- */
277
- queryFooterError?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
278
-
279
- /**
280
- * 删除列表数据之前方法,可以返回 false 阻止本次操作
281
- */
282
- beforeDelete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): boolean | Promise<boolean>
283
- /**
284
- * 删除列表数据的方法,执行顺序 beforeDelete > delete > afterDelete > deleteSuccess|deleteError
285
- */
286
- delete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): Promise<any>
287
- /**
288
- * 该方法用于重写删除列表数据的默认行为,用于自定义删除数据的处理方法
289
- */
290
- afterDelete?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): void
291
- /**
292
- * 删除列表数据成功后的处理方法
293
- */
294
- deleteSuccess?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
295
- /**
296
- * 删除列表数据失败后的处理方法
297
- */
298
- deleteError?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
299
-
300
- /**
301
- * 保存数据之前方法,可以返回 false 阻止本次操作
302
- */
303
- beforeSave?(params: ProxyAjaxSaveParams<D>, ...args: any[]): boolean | Promise<boolean>
304
- /**
305
- * 保存数据的方法,执行顺序 beforeSave > save > afterSave > saveSuccess|saveError
306
- */
307
- save?(params: ProxyAjaxSaveParams<D>, ...args: any[]): Promise<any>
308
- /**
309
- * 该方法用于重写保存数据的默认行为,用于自定义保存数据的处理方法
310
- */
311
- afterSave?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): void
312
- /**
313
- * 保存数据成功后的处理方法
314
- */
315
- saveSuccess?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
316
- /**
317
- * 保存数据失败后的处理方法
318
- */
319
- saveError?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
320
- }
321
- /**
322
- * 用于重写 ajax.query,已废弃,被 ajax.beforeQuery 替换
323
- * @deprecated
324
- */
325
- beforeQuery?(params: ProxyAjaxQueryParams<D>, ...args: any[]): Promise<any>
326
- /**
327
- * 已废弃,被 ajax.afterQuery 替换
328
- * @deprecated
329
- */
330
- afterQuery?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
331
- /**
332
- * 用于重写 ajax.queryAll,已废弃,被 ajax.beforeQueryAll 替换
333
- * @deprecated
334
- */
335
- beforeQueryAll?(params: ProxyAjaxQueryAllParams<D>, ...args: any[]): Promise<any>
336
- /**
337
- * 已废弃,被 ajax.afterQueryAll 替换
338
- * @deprecated
339
- */
340
- afterQueryAll?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
341
- /**
342
- * 用于重写 ajax.queryFooter 不建议使用,已废弃,被 ajax.beforeQueryFooter 替换
343
- * @deprecated
344
- */
345
- beforeQueryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): Promise<any>
346
- /**
347
- * 已废弃,被 ajax.afterQueryFooter 替换
348
- * @deprecated
349
- */
350
- afterQueryFooter?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
351
- /**
352
- * 用于重写 ajax.delete 不建议使用,已废弃,被 ajax.beforeDelete 替换
353
- * @deprecated
354
- */
355
- beforeDelete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): Promise<any>
356
- /**
357
- * 已废弃,被 ajax.afterDelete 替换
358
- * @deprecated
359
- */
360
- afterDelete?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
361
- /**
362
- * 用于重写 ajax.save 不建议使用,已废弃,被 ajax.beforeSave 替换
363
- * @deprecated
364
- */
365
- beforeSave?(params: ProxyAjaxSaveParams<D>, ...args: any[]): Promise<any>
366
- /**
367
- * 已废弃,被 ajax.afterSave 替换
368
- * @deprecated
369
- */
370
- afterSave?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
371
- beforeColumn?(params: {
372
- $table: VxeTableConstructor<D>
373
- $grid: VxeGridConstructor<D> | null | undefined
374
- $gantt: VxeGanttConstructor<D> | null | undefined
375
- column: VxeTableDefines.ColumnInfo
376
- }): void
377
- [key: string]: any
378
-
379
- /**
380
- * 已废弃,请使用 proxy-config.response
381
- * @deprecated
382
- */
383
- props?: {
384
- /**
385
- * 已废弃,请使用 proxy-config.response.list
386
- * @deprecated
387
- */
388
- list?: string | null
389
- /**
390
- * 已废弃,请使用 proxy-config.response.result
391
- * @deprecated
392
- */
393
- result?: string
394
- /**
395
- * 已废弃,请使用 proxy-config.response.total
396
- * @deprecated
397
- */
398
- total?: string
399
- /**
400
- * 已废弃,请使用 proxy-config.response.message
401
- * @deprecated
402
- */
403
- message?: string
404
- }
405
- }
406
- export interface ProxyOpts<D = any> extends ProxyConfig<D> { }
407
-
408
- export interface ToolbarOpts extends ToolbarConfig { }
409
- export interface ToolbarConfig extends VxeToolbarProps {
410
- enabled?: boolean
411
- zoom?: boolean | {
412
- escRestore?: boolean
413
- iconIn?: string
414
- iconOut?: string
415
- }
416
- /**
417
- * 自定义插槽模板
418
- */
419
- slots?: {
420
- /**
421
- * 自定义左侧按钮列表
422
- */
423
- buttons?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
424
- /**
425
- * 自定义左侧按钮列表前缀插槽模板
426
- */
427
- buttonPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
428
- /**
429
- * 自定义左侧按钮列表后缀插槽模板
430
- */
431
- buttonSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
432
- /**
433
- * 自定义右侧工具列表
434
- */
435
- tools?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
436
- /**
437
- * 自定义右侧工具列表前缀插槽模板
438
- */
439
- toolPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
440
- /**
441
- * 自定义右侧工具列表后缀插槽模板
442
- */
443
- toolSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
444
- }
445
- }
446
-
447
- export interface FormConfig extends VxeFormProps {
448
- enabled?: boolean
449
- items?: VxeFormItemProps[]
450
- }
451
- export interface FormOpts extends FormConfig {
452
- inited?: boolean
453
- }
454
-
455
- export interface ZoomConfig {
456
- escRestore?: boolean
457
- }
458
- export interface ZoomOpts extends ZoomConfig { }
459
- }
460
-
461
- export interface VxeGridProps<D = any> extends VxeTableProps<D> {
462
- layouts?: VxeGridPropTypes.Layouts
463
- columns?: VxeGridPropTypes.Columns<D>
464
- pagerConfig?: VxeGridPropTypes.PagerConfig
465
- proxyConfig?: VxeGridPropTypes.ProxyConfig<D>
466
- toolbarConfig?: VxeGridPropTypes.ToolbarConfig
467
- formConfig?: VxeGridPropTypes.FormConfig
468
- zoomConfig?: VxeGridPropTypes.ZoomConfig
469
- }
470
-
471
- export interface GridPrivateComputed<D = any> {
472
- computeSize: ComputedRef<VxeComponentSizeType>
473
- computeIsVScrollbar: ComputedRef<VxeComponentIsVScrollbar>
474
- computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyConfig<D>>
475
- computePagerOpts: ComputedRef<VxeGridPropTypes.PagerOpts>
476
- computeFormOpts: ComputedRef<VxeGridPropTypes.FormOpts>
477
- computeToolbarOpts: ComputedRef<VxeGridPropTypes.ToolbarOpts>
478
- computeZoomOpts: ComputedRef<VxeGridPropTypes.ZoomOpts>
479
- }
480
- export interface VxeGridPrivateComputed<D = any> extends GridPrivateComputed<D> { }
481
-
482
- export interface GridReactData<D = any> {
483
- tableLoading: boolean
484
- proxyInited: boolean
485
- isZMax: boolean
486
- tableData: D[]
487
- filterData: VxeTableDefines.FilterCheckedParams<D>[]
488
- formData: any
489
- sortData: VxeTableDefines.SortCheckedParams<D>[]
490
- footerData: any[]
491
- tZindex: number
492
- tablePage: {
493
- total: number
494
- pageSize: number
495
- currentPage: number
496
- }
497
- }
498
-
499
- export interface GridInternalData {
500
- uFoot?: boolean
501
- }
502
-
503
- export interface GridMethods<D = any> {
504
- dispatchEvent(type: ValueOf<VxeGridEmits>, params: Record<string, any>, evnt: Event | null): void
505
- /**
506
- * 给数据代理提交指令
507
- * @param code 指令编码
508
- */
509
- commitProxy(code: string | VxeToolbarPropTypes.ButtonConfig, ...args: any[]): Promise<any>
510
- /**
511
- * 获取根元素
512
- */
513
- getEl(): HTMLDivElement
514
- /**
515
- * 获取表单数据
516
- */
517
- getFormData(): any
518
- /**
519
- * 已废弃,被 getFormFlatItems 替换
520
- * @deprecated
521
- */
522
- getFormItems(): VxeFormItemProps[]
523
- /**
524
- * 已废弃,被 getFormFlatItems 替换
525
- * @deprecated
526
- */
527
- getFormItems(itemIndex?: number): VxeFormItemProps
528
- /**
529
- * 获取表单扁平化的项列表
530
- */
531
- getFormFlatItems(): VxeFormItemProps[]
532
- /**
533
- * 获取表单项列表,与 form-config.items 一致
534
- */
535
- getFormNestedItems(): VxeFormItemProps[]
536
- /**
537
- * 根据项的字段名获取表单项
538
- */
539
- getFormItemByField(field: VxeFormItemPropTypes.Field): VxeFormDefines.ItemInfo | null
540
- /**
541
- * 重置表单
542
- */
543
- resetForm(): Promise<any>
544
- /**
545
- * 对表单进行校验,返回校验结果 promise
546
- */
547
- validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
548
- /**
549
- * 对表单指定项进行校验,返回校验结果 promise
550
- * @param field 字段名
551
- */
552
- validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
553
- /**
554
- * 手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
555
- * @param field 字段名
556
- */
557
- clearFormValidate(field?: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<any>
558
- /**
559
- * 获取每页大小
560
- */
561
- getPageSize(): number
562
- /**
563
- * 修改每页大小
564
- */
565
- setPageSize(pageSize: number | string | null | undefined): Promise<any>
566
- /**
567
- * 修改每页大小,并触发对应的事件
568
- */
569
- setPageSizeByEvent(evnt: Event, pageSize: number | string | null | undefined): void
570
- /**
571
- * 跳转首页
572
- */
573
- homePage(): Promise<any>
574
- /**
575
- * 跳转首页,并触发对应的事件
576
- */
577
- homePageByEvent(evnt: Event): void
578
- /**
579
- * 跳转末页
580
- */
581
- endPage(): Promise<any>
582
- /**
583
- * 跳转末页,并触发对应的事件
584
- */
585
- endPageByEvent(evnt: Event): void
586
- /**
587
- * 获取当前页数
588
- */
589
- getCurrentPage(): number
590
- /**
591
- * 修改每当前页数
592
- */
593
- setCurrentPage(currentPage: number | string | null | undefined): Promise<any>
594
- /**
595
- * 修改每当前页数,并触发对应的事件
596
- */
597
- setCurrentPageByEvent(evnt: Event, currentPage: number | string | null | undefined): void
598
- /**
599
- * 切换表格最大化/还原
600
- */
601
- zoom(): Promise<boolean>
602
- /**
603
- * 判断是否最大化显示
604
- */
605
- isMaximized(): boolean
606
- /**
607
- * 如果表格处于常规状态,则最大化表格
608
- */
609
- maximize(): Promise<any>
610
- /**
611
- * 如果表格处于最大化状态,则还原表格
612
- */
613
- revert(): Promise<any>
614
- /**
615
- * 获取数据代理信息
616
- */
617
- getProxyInfo(): {
618
- data: D[]
619
- filter: any
620
- form: any
621
- sort: VxeTableDefines.SortCheckedParams<D> | { [key: string]: any }
622
- sorts: VxeTableDefines.SortCheckedParams<D>[]
623
- pager: {
624
- total: number
625
- pageSize: number
626
- currentPage: number
627
- }
628
- pendingRecords: D[]
629
- } | null
630
- /**
631
- * 获取个性化设置分页数据
632
- */
633
- getCustomPagerData(): {
634
- pSize?: number
635
- },
636
- /**
637
- * 获取自定义的 params 属性
638
- */
639
- getParams (): any
640
- /**
641
- * 设置数据代理信息
642
- */
643
- // setProxyInfo(options: {
644
- // /**
645
- // * 修改表格数据
646
- // */
647
- // data?: any[]
648
- // /**
649
- // * 修改表单数据
650
- // */
651
- // form?: {
652
- // [key: string]: any
653
- // },
654
- // /**
655
- // * 修改分页数据
656
- // */
657
- // pager?: {
658
- // pageSize?: number
659
- // currentPage?: number
660
- // }
661
- // }): Promise<any>
662
- }
663
- export interface VxeGridMethods<D = any> extends GridMethods<D>, Omit<TableMethods<D>, 'dispatchEvent'> { }
664
-
665
- export interface GridPrivateMethods<D = any> {
666
- /**
667
- * 内部方法
668
- * @private
669
- */
670
- callSlot<T = any>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
671
- /**
672
- * 内部方法
673
- * @private
674
- */
675
- extendTableMethods<T>(methodKeys: T[]): any
676
- /**
677
- * 内部方法
678
- * @private
679
- */
680
- triggerToolbarCommitEvent(params: VxeToolbarPropTypes.ButtonConfig | VxeToolbarPropTypes.ToolConfig, evnt: Event): Promise<any>
681
- /**
682
- * 内部方法
683
- * @private
684
- */
685
- triggerToolbarBtnEvent(button: VxeToolbarPropTypes.ButtonConfig, evnt: Event): void
686
- /**
687
- * 内部方法
688
- * @private
689
- */
690
- triggerToolbarTolEvent(button: VxeToolbarPropTypes.ToolConfig, evnt: Event): void
691
- /**
692
- * 内部方法
693
- * @private
694
- */
695
- triggerZoomEvent(evnt: Event): void
696
- /**
697
- * 内部方法
698
- * @private
699
- */
700
- getParentElem(): HTMLElement | null
701
- /**
702
- * 内部方法
703
- * @private
704
- */
705
- getParentHeight(): number
706
- /**
707
- * 内部方法
708
- * @private
709
- */
710
- getExcludeHeight(): number
711
- }
712
- export interface VxeGridPrivateMethods<D = any> extends GridPrivateMethods<D> { }
713
-
714
- export type VxeGridEmits = [
715
- ...VxeTableEmits,
716
-
717
- 'page-change',
718
- 'form-submit',
719
- 'form-submit-invalid',
720
- 'form-reset',
721
- 'form-collapse',
722
- 'form-toggle-collapse',
723
- 'proxy-query',
724
- 'proxy-delete',
725
- 'proxy-save',
726
- 'toolbar-button-click',
727
- 'toolbar-tool-click',
728
- 'zoom'
729
- ]
730
-
731
- export namespace VxeGridDefines {
732
- export interface GridEventParams<D = any> extends VxeComponentEventParams {
733
- $table: VxeTableConstructor<D>
734
- $grid: VxeGridConstructor<D>
735
- $gantt: VxeGanttConstructor<D> | null | undefined
736
- }
737
-
738
- export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
739
-
740
- export interface ReadyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ReadyEventParams<D> { }
741
- export interface InitRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.InitRenderedEventParams<D> { }
742
- export interface DataRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataRenderedEventParams<D> { }
743
- export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> { }
744
- export interface KeydownEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEventParams<D> { }
745
- export interface KeydownEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEndEventParams<D> { }
746
- export interface PasteEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.PasteEventParams<D> { }
747
- export interface CopyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CopyEventParams<D> { }
748
- export interface CutEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CutEventParams<D> { }
749
- export interface UndoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.UndoEventParams<D> { }
750
- export interface RedoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RedoEventParams<D> { }
751
- export interface ContextMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ContextMenuEventParams<D> { }
752
- export interface ColumnsChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnsChangeEventParams<D> { }
753
- export interface DataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataChangeEventParams<D> { }
754
- export interface FooterDataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterDataChangeEventParams<D> { }
755
- export interface CurrentRowChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowChangeEventParams<D> { }
756
- export interface CurrentRowDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowDisabledEventParams<D> { }
757
- export interface CurrentColumnChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnChangeEventParams<D> { }
758
- export interface CurrentColumnDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnDisabledEventParams<D> { }
759
- export interface RadioChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RadioChangeEventParams<D> { }
760
- export interface CheckboxChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxChangeEventParams<D> { }
761
- export interface CheckboxAllEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxAllEventParams<D> { }
762
- export interface CheckboxRangeStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeStartEventParams<D> { }
763
- export interface CheckboxRangeChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeChangeEventParams<D> { }
764
- export interface CheckboxRangeEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeEndEventParams<D> { }
765
- export interface CheckboxRangeSelectEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeSelectEventParams<D> { }
766
- export interface CellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellClickEventParams<D> { }
767
- export interface CellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellDblclickEventParams<D> { }
768
- export interface CellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMenuEventParams<D> { }
769
- export interface CellMouseenterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseenterEventParams<D> { }
770
- export interface CellMouseleaveEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseleaveEventParams<D> { }
771
- export interface HeaderCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellClickEventParams<D> { }
772
- export interface HeaderCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellDblclickEventParams<D> { }
773
- export interface HeaderCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellMenuEventParams<D> { }
774
- export interface FooterCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellClickEventParams<D> { }
775
- export interface FooterCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellDblclickEventParams<D> { }
776
- export interface FooterCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellMenuEventParams<D> { }
777
- export interface SortChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.SortChangeEventParams<D> { }
778
- export interface ClearSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearSortEventParams<D> { }
779
- export interface ClearAllSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllSortEventParams<D> { }
780
- export interface FilterChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterChangeEventParams<D> { }
781
- export interface ClearFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearFilterEventParams<D> { }
782
- export interface ClearAllFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllFilterEventParams<D> { }
783
- export interface FilterVisibleEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterVisibleEventParams<D> { }
784
- export interface ResizableChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ResizableChangeEventParams<D> { }
785
- export interface ToggleRowGroupExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowGroupExpandEventParams<D> { }
786
- export interface ToggleRowExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowExpandEventParams<D> { }
787
- export interface ToggleTreeExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleTreeExpandEventParams<D> { }
788
- export interface MenuClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.MenuClickEventParams<D> { }
789
- export interface EditClosedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditClosedEventParams<D> { }
790
- export interface EditActivatedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditActivatedEventParams<D> { }
791
- export interface EditDisabledEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditDisabledEventParams<D> { }
792
- export interface ValidErrorEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ValidErrorEventParams<D> { }
793
- export interface ScrollEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollEventParams<D> { }
794
- export interface ScrollBoundaryEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollBoundaryEventParams<D> { }
795
- export interface CustomEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomEventParams<D> { }
796
- export interface CustomOpenEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomOpenEventParams<D> { }
797
- export interface CustomCloseEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomCloseEventParams<D> { }
798
- export interface CustomCancelEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomCancelEventParams<D> { }
799
- export interface CustomResetEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomResetEventParams<D> { }
800
- export interface CustomConfirmEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomConfirmEventParams<D> { }
801
- export interface RowDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragstartEventParams<D> { }
802
- export interface RowDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragoverEventParams<D> { }
803
- export interface RowDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragendEventParams<D> { }
804
- export interface RowRemoveDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowRemoveDragendEventParams<D> { }
805
- export interface RowInsertDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowInsertDragendEventParams<D> { }
806
- export interface ColumnDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragstartEventParams<D> { }
807
- export interface ColumnDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragoverEventParams<D> { }
808
- export interface ColumnDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragendEventParams<D> { }
809
- export interface EnterAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EnterAppendRowEventParams<D> { }
810
- export interface TabAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.TabAppendRowEventParams<D> { }
811
-
812
- export interface ProxyQueryEventParams<D = any> extends GridEventParams<D> {
813
- status: boolean
814
- isReload: boolean
815
- isInited: boolean
816
- }
817
- export interface ProxyDeleteEventParams<D = any> extends GridEventParams<D> {
818
- status: boolean
819
- }
820
- export interface ProxySaveEventParams<D = any> extends GridEventParams<D> {
821
- status: boolean
822
- }
823
- export interface PageChangeEventParams<D = any> extends GridEventParams<D>, VxePagerDefines.PageChangeEventParams { }
824
- export interface FormSubmitEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitEventParams { }
825
- export interface FormSubmitInvalidEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitInvalidParams { }
826
- export interface FormResetEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.ResetEventParams { }
827
- export interface FormCollapseEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.CollapseEventParams { }
828
-
829
- export interface ToolbarButtonClickParams {
830
- code: string
831
- button: VxeToolbarPropTypes.ButtonConfig
832
- }
833
- export interface ToolbarButtonClickEventParams<D = any> extends GridEventParams<D>, ToolbarButtonClickParams { }
834
-
835
- export interface ToolbarToolClickParams {
836
- code: string
837
- tool: VxeToolbarPropTypes.ToolConfig
838
- }
839
- export interface ToolbarToolClickEventParams<D = any> extends GridEventParams<D>, ToolbarToolClickParams { }
840
-
841
- export interface ZoomParams {
842
- type: 'max' | 'revert'
843
- }
844
- export interface ZoomEventParams<D = any> extends GridEventParams<D>, ZoomParams { }
845
-
846
- export interface ProxyConfigResponseConfig<D = any> {
847
- list?: string | null | ((params: {
848
- data: any
849
- $table: VxeTableConstructor<D>
850
- $grid: VxeGridConstructor<D> | null | undefined
851
- $gantt: VxeGanttConstructor<D> | null | undefined
852
- }) => any[])
853
- result?: string | ((params: {
854
- data: any
855
- $table: VxeTableConstructor<D>
856
- $grid: VxeGridConstructor<D> | null | undefined
857
- $gantt: VxeGanttConstructor<D> | null | undefined
858
- }) => any[])
859
- footerData?: string | ((params: {
860
- data: any
861
- $table: VxeTableConstructor<D>
862
- $grid: VxeGridConstructor<D> | null | undefined
863
- $gantt: VxeGanttConstructor<D> | null | undefined
864
- }) => any[])
865
- total?: string | ((params: {
866
- data: any
867
- $table: VxeTableConstructor<D>
868
- $grid: VxeGridConstructor<D> | null | undefined
869
- $gantt: VxeGanttConstructor<D> | null | undefined
870
- }) => number)
871
- message?: string | ((params: {
872
- data: any
873
- $table: VxeTableConstructor<D>
874
- $grid: VxeGridConstructor<D> | null | undefined
875
- $gantt: VxeGanttConstructor<D> | null | undefined
876
- }) => string)
877
- }
878
- }
879
-
880
- export interface VxeGridEventProps<D = any> {
881
- onReady?: VxeGridEvents.Ready<D>
882
- onInitRendered?: VxeGridEvents.InitRendered<D>
883
- onDataRendered?: VxeGridEvents.DataRendered<D>
884
- onKeydownStart?: VxeGridEvents.KeydownStart<D>
885
- onKeydown?: VxeGridEvents.Keydown<D>
886
- onKeydownEnd?: VxeGridEvents.KeydownEnd<D>
887
- onPaste?: VxeGridEvents.Paste<D>
888
- onCopy?: VxeGridEvents.Copy<D>
889
- onCut?: VxeGridEvents.Cut<D>
890
- onUndo?: VxeGridEvents.Undo<D>
891
- onRedo?: VxeGridEvents.Redo<D>
892
- onContextMenu?: VxeGridEvents.ContextMenu<D>
893
- onColumnsChange?: VxeGridEvents.ColumnsChange<D>
894
- onDataChange?: VxeGridEvents.DataChange<D>
895
- onFooterDataChange?: VxeGridEvents.FooterDataChange<D>
896
- onCurrentRowChange?: VxeGridEvents.CurrentRowChange<D>
897
- onCurrentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
898
- onCurrentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
899
- onCurrentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
900
- onRadioChange?: VxeGridEvents.RadioChange<D>
901
- onCheckboxChange?: VxeGridEvents.CheckboxChange<D>
902
- onCheckboxAll?: VxeGridEvents.CheckboxAll<D>
903
- onCheckboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
904
- onCheckboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
905
- onCheckboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
906
- onCheckboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
907
- onCellClick?: VxeGridEvents.CellClick<D>
908
- onCellDblclick?: VxeGridEvents.CellDblclick<D>
909
- onCellMenu?: VxeGridEvents.CellMenu<D>
910
- onCellMouseenter?: VxeGridEvents.CellMouseenter<D>
911
- onCellMouseleave?: VxeGridEvents.CellMouseleave<D>
912
- onHeaderCellClick?: VxeGridEvents.HeaderCellClick<D>
913
- onHeaderCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
914
- onHeaderCellMenu?: VxeGridEvents.HeaderCellMenu<D>
915
- onFooterCellClick?: VxeGridEvents.FooterCellClick<D>
916
- onFooterCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
917
- onFooterCellMenu?: VxeGridEvents.FooterCellMenu<D>
918
- onSortChange?: VxeGridEvents.SortChange<D>
919
- onClearSort?: VxeGridEvents.ClearSort<D>
920
- onClearAllSort?: VxeGridEvents.ClearAllSort<D>
921
- onFilterChange?: VxeGridEvents.FilterChange<D>
922
- onClearFilter?: VxeGridEvents.ClearFilter<D>
923
- onClearAllFilter?: VxeGridEvents.ClearAllFilter<D>
924
- onFilterVisible?: VxeGridEvents.FilterVisible<D>
925
- onResizableChange?: VxeGridEvents.ResizableChange<D>
926
- onToggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
927
- onToggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
928
- onToggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
929
- onMenuClick?: VxeGridEvents.MenuClick<D>
930
- onEditClosed?: VxeGridEvents.EditClosed<D>
931
- onEditActivated?: VxeGridEvents.EditActivated<D>
932
- onEditDisabled?: VxeGridEvents.EditDisabled<D>
933
- onValidError?: VxeGridEvents.ValidError<D>
934
- onScroll?: VxeGridEvents.Scroll<D>
935
- onScrollBoundary?: VxeGridEvents.ScrollBoundary<D>
936
- onCustom?: VxeGridEvents.Custom<D>
937
- onCustomOpen?: VxeGridEvents.CustomOpen<D>
938
- onCustomClose?: VxeGridEvents.CustomClose<D>
939
- onCustomCancel?: VxeGridEvents.CustomCancel<D>
940
- onCustomReset?: VxeGridEvents.CustomReset<D>
941
- onCustomConfirm?: VxeGridEvents.CustomConfirm<D>
942
- onRowDragstart?: VxeGridEvents.RowDragstart<D>
943
- onRowDragover?: VxeGridEvents.RowDragover<D>
944
- onRowDragend?: VxeGridEvents.RowDragend<D>
945
- onRowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
946
- onRowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
947
- onColumnDragstart?: VxeGridEvents.ColumnDragstart<D>
948
- onColumnDragover?: VxeGridEvents.ColumnDragover<D>
949
- onColumnDragend?: VxeGridEvents.ColumnDragend<D>
950
- onEnterAppendRow?: VxeGridEvents.EnterAppendRow<D>
951
- onTabAppendRow?: VxeGridEvents.TabAppendRow<D>
952
-
953
- // grid
954
- onProxyQuery?: VxeGridEvents.ProxyQuery<D>
955
- onProxyDelete?: VxeGridEvents.ProxyDelete<D>
956
- onProxySave?: VxeGridEvents.ProxySave<D>
957
- onPageChange?: VxeGridEvents.PageChange<D>
958
- onFormSubmit?: VxeGridEvents.FormSubmit<D>
959
- onFormSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
960
- onFormReset?: VxeGridEvents.FormReset<D>
961
- onFormCollapse?: VxeGridEvents.FormCollapse<D>
962
- onToolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
963
- onToolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
964
- onZoom?: VxeGridEvents.Zoom<D>
965
-
966
- /**
967
- * 已废弃,请使用 onEditActivated
968
- * @deprecated
969
- */
970
- onEditActived?: VxeGridEvents.EditActivated<D>
971
- }
972
-
973
- export interface VxeGridListeners<D = any> {
974
- ready?: VxeGridEvents.Ready<D>
975
- initRendered?: VxeGridEvents.InitRendered<D>
976
- dataRendered?: VxeGridEvents.DataRendered<D>
977
- keydownStart?: VxeGridEvents.KeydownStart<D>
978
- keydown?: VxeGridEvents.Keydown<D>
979
- keydownEnd?: VxeGridEvents.KeydownEnd<D>
980
- paste?: VxeGridEvents.Paste<D>
981
- copy?: VxeGridEvents.Copy<D>
982
- cut?: VxeGridEvents.Cut<D>
983
- undo?: VxeGridEvents.Undo<D>
984
- redo?: VxeGridEvents.Redo<D>
985
- contextMenu?: VxeGridEvents.ContextMenu<D>
986
- columnsChange?: VxeGridEvents.ColumnsChange<D>
987
- dataChange?: VxeGridEvents.DataChange<D>
988
- footerDataChange?: VxeGridEvents.FooterDataChange<D>
989
- currentRowChange?: VxeGridEvents.CurrentRowChange<D>
990
- currentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
991
- currentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
992
- currentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
993
- radioChange?: VxeGridEvents.RadioChange<D>
994
- checkboxChange?: VxeGridEvents.CheckboxChange<D>
995
- checkboxAll?: VxeGridEvents.CheckboxAll<D>
996
- checkboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
997
- checkboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
998
- checkboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
999
- checkboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
1000
- cellClick?: VxeGridEvents.CellClick<D>
1001
- cellDblclick?: VxeGridEvents.CellDblclick<D>
1002
- cellMenu?: VxeGridEvents.CellMenu<D>
1003
- cellMouseenter?: VxeGridEvents.CellMouseenter<D>
1004
- cellMouseleave?: VxeGridEvents.CellMouseleave<D>
1005
- headerCellClick?: VxeGridEvents.HeaderCellClick<D>
1006
- headerCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
1007
- headerCellMenu?: VxeGridEvents.HeaderCellMenu<D>
1008
- footerCellClick?: VxeGridEvents.FooterCellClick<D>
1009
- footerCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
1010
- footerCellMenu?: VxeGridEvents.FooterCellMenu<D>
1011
- sortChange?: VxeGridEvents.SortChange<D>
1012
- clearSort?: VxeGridEvents.ClearSort<D>
1013
- clearAllSort?: VxeGridEvents.ClearAllSort<D>
1014
- filterChange?: VxeGridEvents.FilterChange<D>
1015
- clearFilter?: VxeGridEvents.ClearFilter<D>
1016
- clearAllFilter?: VxeGridEvents.ClearAllFilter<D>
1017
- filterVisible?: VxeGridEvents.FilterVisible<D>
1018
- resizableChange?: VxeGridEvents.ResizableChange<D>
1019
- toggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
1020
- toggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
1021
- toggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
1022
- menuClick?: VxeGridEvents.MenuClick<D>
1023
- editClosed?: VxeGridEvents.EditClosed<D>
1024
- editActivated?: VxeGridEvents.EditActivated<D>
1025
- editDisabled?: VxeGridEvents.EditDisabled<D>
1026
- validError?: VxeGridEvents.ValidError<D>
1027
- scroll?: VxeGridEvents.Scroll<D>
1028
- scrollBoundary?: VxeGridEvents.ScrollBoundary<D>
1029
- custom?: VxeGridEvents.Custom<D>
1030
- customOpen?: VxeGridEvents.CustomOpen<D>
1031
- customClose?: VxeGridEvents.CustomClose<D>
1032
- customCancel?: VxeGridEvents.CustomCancel<D>
1033
- customReset?: VxeGridEvents.CustomReset<D>
1034
- customConfirm?: VxeGridEvents.CustomConfirm<D>
1035
- rowDragstart?: VxeGridEvents.RowDragstart<D>
1036
- rowDragover?: VxeGridEvents.RowDragover<D>
1037
- rowDragend?: VxeGridEvents.RowDragend<D>
1038
- rowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
1039
- rowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
1040
- columnDragstart?: VxeGridEvents.ColumnDragstart<D>
1041
- columnDragover?: VxeGridEvents.ColumnDragover<D>
1042
- columnDragend?: VxeGridEvents.ColumnDragend<D>
1043
- enterAppendRow?: VxeGridEvents.EnterAppendRow<D>
1044
- tabAppendRow?: VxeGridEvents.TabAppendRow<D>
1045
-
1046
- // grid
1047
- proxyQuery?: VxeGridEvents.ProxyQuery<D>
1048
- proxyDelete?: VxeGridEvents.ProxyDelete<D>
1049
- proxySave?: VxeGridEvents.ProxySave<D>
1050
- pageChange?: VxeGridEvents.PageChange<D>
1051
- formSubmit?: VxeGridEvents.FormSubmit<D>
1052
- formSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
1053
- formReset?: VxeGridEvents.FormReset<D>
1054
- formCollapse?: VxeGridEvents.FormCollapse<D>
1055
- toolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
1056
- toolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
1057
- zoom?: VxeGridEvents.Zoom<D>
1058
-
1059
- /**
1060
- * 已废弃,请使用 editActivated
1061
- * @deprecated
1062
- */
1063
- editActived?: VxeGridEvents.EditActivated<D>
1064
- }
1065
-
1066
- export namespace VxeGridEvents {
1067
- export type Ready<D = any> = (params: VxeGridDefines.ReadyEventParams<D>) => void
1068
- export type InitRendered<D = any> = (params: VxeGridDefines.InitRenderedEventParams<D>) => void
1069
- export type DataRendered<D = any> = (params: VxeGridDefines.DataRenderedEventParams<D>) => void
1070
- export type KeydownStart<D = any> = (params: VxeGridDefines.KeydownStartEventParams<D>) => void
1071
- export type Keydown<D = any> = (params: VxeGridDefines.KeydownEventParams<D>) => void
1072
- export type KeydownEnd<D = any> = (params: VxeGridDefines.KeydownEndEventParams<D>) => void
1073
- export type Paste<D = any> = (params: VxeGridDefines.PasteEventParams<D>) => void
1074
- export type Copy<D = any> = (params: VxeGridDefines.CopyEventParams<D>) => void
1075
- export type Cut<D = any> = (params: VxeGridDefines.CutEventParams<D>) => void
1076
- export type Undo<D = any> = (params: VxeGridDefines.UndoEventParams<D>) => void
1077
- export type Redo<D = any> = (params: VxeGridDefines.RedoEventParams<D>) => void
1078
- export type ContextMenu<D = any> = (params: VxeGridDefines.ContextMenuEventParams<D>) => void
1079
- export type ColumnsChange<D = any> = (params: VxeGridDefines.ColumnsChangeEventParams<D>) => void
1080
- export type DataChange<D = any> = (params: VxeGridDefines.DataChangeEventParams<D>) => void
1081
- export type FooterDataChange<D = any> = (params: VxeGridDefines.FooterDataChangeEventParams<D>) => void
1082
- export type CurrentRowChange<D = any> = (params: VxeGridDefines.CurrentRowChangeParams<D>) => void
1083
- export type CurrentRowDisabled<D = any> = (params: VxeGridDefines.CurrentRowDisabledParams<D>) => void
1084
- export type CurrentColumnChange<D = any> = (params: VxeGridDefines.CurrentColumnChangeParams<D>) => void
1085
- export type CurrentColumnDisabled<D = any> = (params: VxeGridDefines.CurrentColumnDisabledParams<D>) => void
1086
- export type RadioChange<D = any> = (params: VxeGridDefines.RadioChangeEventParams<D>) => void
1087
- export type CheckboxChange<D = any> = (params: VxeGridDefines.CheckboxChangeEventParams<D>) => void
1088
- export type CheckboxAll<D = any> = (params: VxeGridDefines.CheckboxAllEventParams<D>) => void
1089
- export type CheckboxRangeStart<D = any> = (params: VxeGridDefines.CheckboxRangeStartEventParams<D>) => void
1090
- export type CheckboxRangeChange<D = any> = (params: VxeGridDefines.CheckboxRangeChangeEventParams<D>) => void
1091
- export type CheckboxRangeEnd<D = any> = (params: VxeGridDefines.CheckboxRangeEndEventParams<D>) => void
1092
- export type CheckboxRangeSelect<D = any> = (params: VxeGridDefines.CheckboxRangeSelectEventParams<D>) => void
1093
- export type CellClick<D = any> = (params: VxeGridDefines.CellClickEventParams<D>) => void
1094
- export type CellDblclick<D = any> = (params: VxeGridDefines.CellDblclickEventParams<D>) => void
1095
- export type CellMenu<D = any> = (params: VxeGridDefines.CellMenuEventParams<D>) => void
1096
- export type CellMouseenter<D = any> = (params: VxeGridDefines.CellMouseenterEventParams<D>) => void
1097
- export type CellMouseleave<D = any> = (params: VxeGridDefines.CellMouseleaveEventParams<D>) => void
1098
- export type HeaderCellClick<D = any> = (params: VxeGridDefines.HeaderCellClickEventParams<D>) => void
1099
- export type HeaderCellDblclick<D = any> = (params: VxeGridDefines.HeaderCellDblclickEventParams<D>) => void
1100
- export type HeaderCellMenu<D = any> = (params: VxeGridDefines.HeaderCellMenuEventParams<D>) => void
1101
- export type FooterCellClick<D = any> = (params: VxeGridDefines.FooterCellClickEventParams<D>) => void
1102
- export type FooterCellDblclick<D = any> = (params: VxeGridDefines.FooterCellDblclickEventParams<D>) => void
1103
- export type FooterCellMenu<D = any> = (params: VxeGridDefines.FooterCellMenuEventParams<D>) => void
1104
- export type SortChange<D = any> = (params: VxeGridDefines.SortChangeEventParams<D>) => void
1105
- export type ClearSort<D = any> = (params: VxeGridDefines.ClearSortEventParams<D>) => void
1106
- export type ClearAllSort<D = any> = (params: VxeGridDefines.ClearAllSortEventParams<D>) => void
1107
- export type FilterChange<D = any> = (params: VxeGridDefines.FilterChangeEventParams<D>) => void
1108
- export type ClearFilter<D = any> = (params: VxeGridDefines.ClearFilterEventParams<D>) => void
1109
- export type ClearAllFilter<D = any> = (params: VxeGridDefines.ClearAllFilterEventParams<D>) => void
1110
- export type FilterVisible<D = any> = (params: VxeGridDefines.FilterVisibleEventParams<D>) => void
1111
- export type ResizableChange<D = any> = (params: VxeGridDefines.ResizableChangeEventParams<D>) => void
1112
- export type ToggleRowGroupExpand<D = any> = (params: VxeGridDefines.ToggleRowGroupExpandEventParams<D>) => void
1113
- export type ToggleRowExpand<D = any> = (params: VxeGridDefines.ToggleRowExpandEventParams<D>) => void
1114
- export type ToggleTreeExpand<D = any> = (params: VxeGridDefines.ToggleTreeExpandEventParams<D>) => void
1115
- export type MenuClick<D = any> = (params: VxeGridDefines.MenuClickEventParams<D>) => void
1116
- export type EditClosed<D = any> = (params: VxeGridDefines.EditClosedEventParams<D>) => void
1117
- export type EditActivated<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
1118
- export type EditDisabled<D = any> = (params: VxeGridDefines.EditDisabledEventParams<D>) => void
1119
- export type ValidError<D = any> = (params: VxeGridDefines.ValidErrorEventParams<D>) => void
1120
- export type Scroll<D = any> = (params: VxeGridDefines.ScrollEventParams<D>) => void
1121
- export type ScrollBoundary<D = any> = (params: VxeGridDefines.ScrollBoundaryEventParams<D>) => void
1122
- export type Custom<D = any> = (params: VxeGridDefines.CustomEventParams<D>) => void
1123
- export type CustomOpen<D = any> = (params: VxeGridDefines.CustomOpenEventParams<D>) => void
1124
- export type CustomClose<D = any> = (params: VxeGridDefines.CustomCloseEventParams<D>) => void
1125
- export type CustomCancel<D = any> = (params: VxeGridDefines.CustomCancelEventParams<D>) => void
1126
- export type CustomReset<D = any> = (params: VxeGridDefines.CustomResetEventParams<D>) => void
1127
- export type CustomConfirm<D = any> = (params: VxeGridDefines.CustomConfirmEventParams<D>) => void
1128
- export type RowDragstart<D = any> = (params: VxeGridDefines.RowDragstartEventParams<D>) => void
1129
- export type RowDragover<D = any> = (params: VxeGridDefines.RowDragoverEventParams<D>) => void
1130
- export type RowDragend<D = any> = (params: VxeGridDefines.RowDragendEventParams<D>) => void
1131
- export type RowRemoveDragend<D = any> = (params: VxeGridDefines.RowRemoveDragendEventParams<D>) => void
1132
- export type RowInsertDragend<D = any> = (params: VxeGridDefines.RowInsertDragendEventParams<D>) => void
1133
- export type ColumnDragstart<D = any> = (params: VxeGridDefines.ColumnDragstartEventParams<D>) => void
1134
- export type ColumnDragover<D = any> = (params: VxeGridDefines.ColumnDragoverEventParams<D>) => void
1135
- export type ColumnDragend<D = any> = (params: VxeGridDefines.ColumnDragendEventParams<D>) => void
1136
- export type EnterAppendRow<D = any> = (params: VxeGridDefines.EnterAppendRowEventParams<D>) => void
1137
- export type TabAppendRow<D = any> = (params: VxeGridDefines.TabAppendRowEventParams<D>) => void
1138
-
1139
- export type ProxyQuery<D = any> = (params: VxeGridDefines.ProxyQueryEventParams<D>) => void
1140
- export type ProxyDelete<D = any> = (params: VxeGridDefines.ProxyDeleteEventParams<D>) => void
1141
- export type ProxySave<D = any> = (params: VxeGridDefines.ProxySaveEventParams<D>) => void
1142
- export type PageChange<D = any> = (params: VxeGridDefines.PageChangeEventParams<D>) => void
1143
- export type FormSubmit<D = any> = (params: VxeGridDefines.FormSubmitEventParams<D>) => void
1144
- export type FormSubmitInvalid<D = any> = (params: VxeGridDefines.FormSubmitInvalidEventParams<D>) => void
1145
- export type FormReset<D = any> = (params: VxeGridDefines.FormResetEventParams<D>) => void
1146
- export type FormCollapse<D = any> = (params: VxeGridDefines.FormCollapseEventParams<D>) => void
1147
- export type ToolbarButtonClick<D = any> = (params: VxeGridDefines.ToolbarButtonClickEventParams<D>) => void
1148
- export type ToolbarToolClick<D = any> = (params: VxeGridDefines.ToolbarToolClickEventParams<D>) => void
1149
- export type Zoom<D = any> = (params: VxeGridDefines.ZoomEventParams<D>) => void
1150
-
1151
- /**
1152
- * 已废弃,请使用 EditActivated
1153
- * @deprecated
1154
- */
1155
- export type EditActived<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
1156
- }
1157
-
1158
- export namespace VxeGridSlotTypes {
1159
- export interface DefaultSlotParams<D = any> {
1160
- $table: VxeTableConstructor<D>
1161
- $grid: VxeGridConstructor<D> | null | undefined
1162
- $gantt: VxeGanttConstructor<D> | null | undefined
1163
- rowid: string
1164
- /**
1165
- * 当前行对象,支持数据双向绑定
1166
- */
1167
- row: D
1168
- /**
1169
- * 相对于 data 中的索引,等同于 getRowIndex(row)
1170
- */
1171
- rowIndex: number
1172
- /**
1173
- * 相对于可视区渲染中的行索引,等同于 getVMRowIndex(row)
1174
- */
1175
- $rowIndex: number
1176
- /**
1177
- * 相对于当前表格数据的索引,等同于 getVTRowIndex(row)
1178
- */
1179
- _rowIndex: number
1180
- /**
1181
- * 当前列对象
1182
- */
1183
- column: VxeTableDefines.ColumnInfo
1184
- /**
1185
- * 相对于 columns 中的索引,等同于 getTColumnIndex(column)
1186
- */
1187
- columnIndex: number
1188
- /**
1189
- * 相对于可视区渲染中的列索引,等同于 getVMColumnIndex(column)
1190
- */
1191
- $columnIndex: number
1192
- /**
1193
- * 相对于当前表格列的索引,等同于 getVTColumnIndex(column)
1194
- */
1195
- _columnIndex: number
1196
-
1197
- option: VxeColumnPropTypes.FilterItem
1198
-
1199
- type: string
1200
- fixed: VxeColumnPropTypes.Fixed
1201
- checked: boolean
1202
- indeterminate: boolean
1203
- seq: string | number
1204
- level: number
1205
- isEdit: boolean
1206
- isHidden: boolean
1207
-
1208
- // 混用多组件不具名插槽
1209
- field: string
1210
- item: any
1211
- data: any
1212
- tooltipContent: string
1213
- groupContent: string
1214
- groupField: string
1215
- childCount: number
1216
- groupValues: number
1217
- aggValue: number
1218
-
1219
- /**
1220
- * @deprecated
1221
- * @private
1222
- */
1223
- visibleData: D[]
1224
- /**
1225
- * 已废弃
1226
- * @deprecated
1227
- */
1228
- items: any[]
1229
-
1230
- [key: string]: any
1231
- }
1232
-
1233
- export interface BaseSlotParams<D = any> {
1234
- $table: VxeTableConstructor<D>
1235
- $grid: VxeGridConstructor<D> | null | undefined
1236
- $gantt: VxeGanttConstructor<D> | null | undefined
1237
- }
1238
- export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
1239
- export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}
1240
- export interface FormSlotParams<D = any> extends BaseSlotParams<D> {}
1241
- export interface ToolbarSlotParams<D = any> extends BaseSlotParams<D> {}
1242
- export interface TopSlotParams<D = any> extends BaseSlotParams<D> {}
1243
- export interface BottomSlotParams<D = any> extends BaseSlotParams<D> {}
1244
- export interface LeftSlotParams<D = any> extends BaseSlotParams<D> {}
1245
- export interface RightSlotParams<D = any> extends BaseSlotParams<D> {}
1246
- export interface AsideLeftSlotParams<D = any> extends BaseSlotParams<D> {}
1247
- export interface AsideRightSlotParams<D = any> extends BaseSlotParams<D> {}
1248
- export interface PagerSlotParams<D = any> extends BaseSlotParams<D> {}
1249
- export interface RowDragIconSlotParams<D = any> extends VxeTableSlotTypes.RowDragIconSlotParams<D> {}
1250
- export interface ColumnDragIconSlotParams<D = any> extends VxeTableSlotTypes.ColumnDragIconSlotParams<D> {}
1251
- }
1252
-
1253
- export interface VxeGridSlots<D = any> {
1254
- [key: string]: ((params: VxeGridSlotTypes.DefaultSlotParams<D>) => any) | undefined
1255
-
1256
- /**
1257
- * 自定义空数据时显示模板
1258
- */
1259
- empty?(params: VxeGridSlotTypes.EmptySlotParams<D>): any
1260
- /**
1261
- * 自定义加载中模板
1262
- */
1263
- loading?(params: VxeGridSlotTypes.LoadingSlotParams<D>): any
1264
- /**
1265
- * 自定义表单模板
1266
- */
1267
- form?(params: VxeGridSlotTypes.FormSlotParams<D>): any
1268
- /**
1269
- * 自定义工具栏模板
1270
- */
1271
- toolbar?(params: VxeGridSlotTypes.ToolbarSlotParams<D>): any
1272
- /**
1273
- * 自定义表格顶部模板
1274
- */
1275
- top?(params: VxeGridSlotTypes.TopSlotParams<D>): any
1276
- /**
1277
- * 自定义表格底部模板
1278
- */
1279
- bottom?(params: VxeGridSlotTypes.BottomSlotParams<D>): any
1280
- /**
1281
- * 自定义表格左边模板
1282
- */
1283
- left?(params: VxeGridSlotTypes.LeftSlotParams<D>): any
1284
- /**
1285
- * 自定义表格边侧模板
1286
- */
1287
- right?(params: VxeGridSlotTypes.RightSlotParams<D>): any
1288
- /**
1289
- * 自定义左侧模板
1290
- */
1291
- asideLeft?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1292
- // 'aside-left'?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1293
- /**
1294
- * 自定义右侧模板
1295
- */
1296
- asideRight?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1297
- // 'aside-right'?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1298
- /**
1299
- * 自定义分页模板
1300
- */
1301
- pager?(params: VxeGridSlotTypes.PagerSlotParams<D>): any
1302
-
1303
- /**
1304
- * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
1305
- */
1306
- rowDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1307
- // 'row-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1308
-
1309
- /**
1310
- * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
1311
- */
1312
- columnDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1313
- // 'column-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1314
- }
1315
-
1316
- export const Grid: typeof VxeGrid
1317
- export default VxeGrid
1
+ import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, VxeComponentIsVScrollbar, VxeComponentSlotType, ValueOf } from '@vxe-ui/core'
3
+ import { VxeToolbarInstance, VxeToolbarProps, VxeToolbarPropTypes, VxeToolbarSlotTypes } from './toolbar'
4
+ import { VxeTableDefines, VxeTablePrivateMethods, VxeTableEmits, VxeTableConstructor, VxeTableProps, TableMethods, VxeTableSlotTypes } from './table'
5
+ import { VxeColumnPropTypes } from './column'
6
+ import { VxePagerInstance, VxePagerProps, VxePagerDefines, VxePagerSlotTypes } from './pager'
7
+ import { VxeFormInstance, VxeFormProps, VxeFormDefines } from './form'
8
+ import { VxeFormItemPropTypes, VxeFormItemProps } from './form-item'
9
+ import { VxeGanttConstructor } from './gantt'
10
+
11
+ /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
12
+
13
+ export declare const VxeGrid: DefineVxeComponentApp<VxeGridProps, VxeGridEventProps, VxeGridSlots, VxeGridMethods>
14
+ export type VxeGridComponent = DefineVxeComponentOptions<VxeGridProps, VxeGridEventProps>
15
+
16
+ export type VxeGridInstance<D = any> = DefineVxeComponentInstance<VxeGridProps<D>, VxeGridConstructor<D>>
17
+
18
+ export interface VxeGridConstructor<D = any> extends VxeComponentBaseOptions, VxeGridMethods<D> {
19
+ props: VxeGridProps
20
+ context: SetupContext<VxeGridEmits>
21
+ reactData: GridReactData
22
+ internalData: GridInternalData
23
+ getRefMaps(): GridPrivateRef
24
+ getComputeMaps(): GridPrivateComputed
25
+ renderVN: RenderFunction
26
+ }
27
+
28
+ export interface GridPrivateRef<D = any> {
29
+ refElem: Ref<HTMLDivElement | undefined>
30
+ refTable: Ref<(VxeTableConstructor & VxeTablePrivateMethods) | undefined>
31
+ refForm: Ref<VxeFormInstance | undefined>
32
+ refToolbar: Ref<VxeToolbarInstance | undefined>
33
+ refPager: Ref<VxePagerInstance | undefined>
34
+ refPopupContainerElem: Ref<HTMLDivElement | undefined>
35
+ }
36
+ export interface VxeGridPrivateRef<D = any> extends GridPrivateRef<D> {}
37
+
38
+ export namespace VxeGridPropTypes {
39
+ export type Size = VxeComponentSizeType
40
+
41
+ export type Layouts = VxeGridDefines.LayoutKey[] | VxeGridDefines.LayoutKey[][]
42
+
43
+ export type Column<D = any> = VxeTableDefines.ColumnOptions<D>
44
+ export type Columns<D = any> = Column<D>[]
45
+
46
+ export interface PagerConfig extends VxePagerProps {
47
+ enabled?: boolean
48
+ slots?: {
49
+ left?: string | ((params: VxePagerSlotTypes.LeftSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
50
+ right?: string | ((params: VxePagerSlotTypes.RightSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
51
+ home?: string | ((params: VxePagerSlotTypes.HomeSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
52
+ prevPage?: string | ((params: VxePagerSlotTypes.PrevPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
53
+ prevJump?: string | ((params: VxePagerSlotTypes.PrevJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
54
+ nextJump?: string | ((params: VxePagerSlotTypes.NextJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
55
+ nextPage?: string | ((params: VxePagerSlotTypes.NextPageSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
56
+ end?: string | ((params: VxePagerSlotTypes.EndSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
57
+ number?: string | ((params: VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
58
+ numberJump?: string | ((params: VxePagerSlotTypes.NumberJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
59
+ sizes?: string | ((params: VxePagerSlotTypes.SizesSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
60
+ fullJump?: string | ((params: VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
61
+ jump?: string | ((params: VxePagerSlotTypes.FullJumpSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
62
+ pageCount?: string | ((params: VxePagerSlotTypes.PageCountSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
63
+ total?: string | ((params: VxePagerSlotTypes.TotalSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
64
+ }
65
+ }
66
+ export interface PagerOpts extends PagerConfig {}
67
+
68
+ interface ProxyAjaxQueryPageParams {
69
+ total: number
70
+ pageSize: number
71
+ currentPage: number
72
+ }
73
+
74
+ interface ProxyAjaxQuerySortCheckedParams<D = any> {
75
+ column: VxeTableDefines.ColumnInfo
76
+ order: string
77
+ sortBy: string
78
+ field: string
79
+ property: string
80
+ }
81
+
82
+ interface ProxyAjaxQueryParams<D = any> {
83
+ $table: VxeTableConstructor<D>
84
+ $grid: VxeGridConstructor<D> | null | undefined
85
+ $gantt: VxeGanttConstructor<D> | null | undefined
86
+ page: ProxyAjaxQueryPageParams
87
+ sort: ProxyAjaxQuerySortCheckedParams<D>
88
+ sorts: ProxyAjaxQuerySortCheckedParams<D>[]
89
+ filters: VxeTableDefines.FilterCheckedParams[]
90
+ form: {
91
+ [key: string]: any
92
+ }
93
+ }
94
+
95
+ interface ProxyAjaxQueryFooterParams<D = any> {
96
+ $table: VxeTableConstructor<D>
97
+ $grid: VxeGridConstructor<D> | null | undefined
98
+ $gantt: VxeGanttConstructor<D> | null | undefined
99
+ page: ProxyAjaxQueryPageParams
100
+ filters: VxeTableDefines.FilterCheckedParams[]
101
+ form: {
102
+ [key: string]: any
103
+ }
104
+ }
105
+
106
+ interface ProxyAjaxQueryAllParams<D = any> {
107
+ $table: VxeTableConstructor<D>
108
+ $grid: VxeGridConstructor<D> | null | undefined
109
+ $gantt: VxeGanttConstructor<D> | null | undefined
110
+ sort: ProxyAjaxQuerySortCheckedParams<D>
111
+ sorts: ProxyAjaxQuerySortCheckedParams<D>[]
112
+ filters: VxeTableDefines.FilterCheckedParams[]
113
+ form: {
114
+ [key: string]: any
115
+ }
116
+ options: any
117
+ }
118
+
119
+ interface ProxyAjaxDeleteParams<D = any> {
120
+ $table: VxeTableConstructor<D>
121
+ $grid: VxeGridConstructor<D> | null | undefined
122
+ $gantt: VxeGanttConstructor<D> | null | undefined
123
+ body: {
124
+ removeRecords: D[]
125
+ }
126
+ }
127
+
128
+ interface ProxyAjaxSaveParams<D = any> {
129
+ $table: VxeTableConstructor<D>
130
+ $grid: VxeGridConstructor<D> | null | undefined
131
+ $gantt: VxeGanttConstructor<D> | null | undefined
132
+ body: {
133
+ insertRecords: D[]
134
+ updateRecords: D[]
135
+ removeRecords: D[]
136
+ pendingRecords: D[]
137
+ }
138
+ }
139
+
140
+ interface ProxyAjaxResponseParams<T = any> {
141
+ response: T
142
+ }
143
+
144
+ export interface ProxyConfig<D = any> {
145
+ /**
146
+ * 是否启用
147
+ */
148
+ enabled?: boolean
149
+ /**
150
+ * 是否自动加载查询数据
151
+ */
152
+ autoLoad?: boolean
153
+ /**
154
+ * 已废弃,请使用 showResponseMsg
155
+ * @deprecated
156
+ */
157
+ message?: boolean
158
+ /**
159
+ * 是否自动显示加载中
160
+ */
161
+ showLoading?: boolean
162
+ /**
163
+ * 是否显示内置的消息提示(可以设为 false 关闭内置的消息提示)
164
+ */
165
+ showResponseMsg?: boolean
166
+ /**
167
+ * 已废弃,请使用 showActionMsg
168
+ * @deprecated
169
+ */
170
+ showActiveMsg?: boolean
171
+ /**
172
+ * 是否显示内置的消息提示(可以设为 false 关闭内置的消息提示)
173
+ */
174
+ showActionMsg?: boolean
175
+ /**
176
+ * 是否代理动态序号,自动根据分页来动态显示累计序号
177
+ */
178
+ seq?: boolean
179
+ /**
180
+ * 是否代理排序
181
+ */
182
+ sort?: boolean
183
+ /**
184
+ * 是否代理筛选
185
+ */
186
+ filter?: boolean
187
+ /**
188
+ * 是否代理表单
189
+ */
190
+ form?: boolean
191
+ /**
192
+ * 代理表单参数
193
+ */
194
+ formOptions?: {
195
+ /**
196
+ * 代理表单的提交方式
197
+ */
198
+ submitMode?: 'reload' | 'query' | '' | null
199
+ /**
200
+ * 代理表单的重置方式
201
+ */
202
+ resetMode?: 'reset_form' | 'reset' | '' | null
203
+ }
204
+ /**
205
+ * 是否代理表尾
206
+ */
207
+ footer?: boolean
208
+ /**
209
+ * 获取请求响应的属性配置
210
+ */
211
+ response?: VxeGridDefines.ProxyConfigResponseConfig<D>
212
+ /**
213
+ * 异步请求配置
214
+ */
215
+ ajax?: {
216
+ /**
217
+ * 查询列表数据之前方法,可以返回 false 阻止本次操作
218
+ */
219
+ beforeQuery?(params: ProxyAjaxQueryParams<D>, ...args: any[]): boolean | Promise<boolean>
220
+ /**
221
+ * 查询列表数据方法,执行顺序 beforeQuery > query > afterQuery > querySuccess|queryError
222
+ */
223
+ query?(params: ProxyAjaxQueryParams<D>, ...args: any[]): Promise<any>
224
+ /**
225
+ * 该方法用于重写查询列表数据的默认行为,用于自定义加载数据的处理方法
226
+ */
227
+ afterQuery?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): void
228
+ /**
229
+ * 查询列表数据成功后的处理方法
230
+ */
231
+ querySuccess?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
232
+ /**
233
+ * 查询列表数据失败后的处理方法
234
+ */
235
+ queryError?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
236
+
237
+ /**
238
+ * 查询全量数据之前方法,可以返回 false 阻止本次操作
239
+ */
240
+ beforeQueryAll?(params: ProxyAjaxQueryAllParams<D>): boolean | Promise<boolean>
241
+ /**
242
+ * 查询全量数据的方法,执行顺序 beforeQueryAll > queryAll > afterQueryAll > queryAllSuccess|queryAllError
243
+ */
244
+ queryAll?(params: ProxyAjaxQueryAllParams<D>): Promise<any>
245
+ /**
246
+ * 该方法用于重写查询全量数据的默认行为,用于自定义加载数据的处理方法
247
+ */
248
+ afterQueryAll?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }): void
249
+ /**
250
+ * 查询全量数据成功后的处理方法
251
+ */
252
+ queryAllSuccess?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
253
+ /**
254
+ * 查询全量数据失败后的处理方法
255
+ */
256
+ queryAllError?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
257
+
258
+ /**
259
+ * 查询表尾数据之前方法,可以返回 false 阻止本次操作
260
+ */
261
+ beforeQueryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): boolean | Promise<boolean>
262
+ /**
263
+ * 查询表尾数据的方法,执行顺序 beforeQueryFooter > queryFooter > afterQueryFooter > queryFooterSuccess|queryFooterError
264
+ */
265
+ queryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): Promise<any>
266
+ /**
267
+ * 该方法用于重写查询表尾数据的默认行为,用于自定义加载数据的处理方法
268
+ */
269
+ afterQueryFooter?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): Promise<any>
270
+ /**
271
+ * 查询表尾数据成功后的处理方法
272
+ */
273
+ queryFooterSuccess?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
274
+ /**
275
+ * 查询表尾数据失败后的处理方法
276
+ */
277
+ queryFooterError?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
278
+
279
+ /**
280
+ * 删除列表数据之前方法,可以返回 false 阻止本次操作
281
+ */
282
+ beforeDelete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): boolean | Promise<boolean>
283
+ /**
284
+ * 删除列表数据的方法,执行顺序 beforeDelete > delete > afterDelete > deleteSuccess|deleteError
285
+ */
286
+ delete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): Promise<any>
287
+ /**
288
+ * 该方法用于重写删除列表数据的默认行为,用于自定义删除数据的处理方法
289
+ */
290
+ afterDelete?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): void
291
+ /**
292
+ * 删除列表数据成功后的处理方法
293
+ */
294
+ deleteSuccess?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
295
+ /**
296
+ * 删除列表数据失败后的处理方法
297
+ */
298
+ deleteError?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
299
+
300
+ /**
301
+ * 保存数据之前方法,可以返回 false 阻止本次操作
302
+ */
303
+ beforeSave?(params: ProxyAjaxSaveParams<D>, ...args: any[]): boolean | Promise<boolean>
304
+ /**
305
+ * 保存数据的方法,执行顺序 beforeSave > save > afterSave > saveSuccess|saveError
306
+ */
307
+ save?(params: ProxyAjaxSaveParams<D>, ...args: any[]): Promise<any>
308
+ /**
309
+ * 该方法用于重写保存数据的默认行为,用于自定义保存数据的处理方法
310
+ */
311
+ afterSave?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams & { status: 'success' | 'error' }, ...args: any[]): void
312
+ /**
313
+ * 保存数据成功后的处理方法
314
+ */
315
+ saveSuccess?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
316
+ /**
317
+ * 保存数据失败后的处理方法
318
+ */
319
+ saveError?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
320
+ }
321
+ /**
322
+ * 用于重写 ajax.query,已废弃,被 ajax.beforeQuery 替换
323
+ * @deprecated
324
+ */
325
+ beforeQuery?(params: ProxyAjaxQueryParams<D>, ...args: any[]): Promise<any>
326
+ /**
327
+ * 已废弃,被 ajax.afterQuery 替换
328
+ * @deprecated
329
+ */
330
+ afterQuery?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
331
+ /**
332
+ * 用于重写 ajax.queryAll,已废弃,被 ajax.beforeQueryAll 替换
333
+ * @deprecated
334
+ */
335
+ beforeQueryAll?(params: ProxyAjaxQueryAllParams<D>, ...args: any[]): Promise<any>
336
+ /**
337
+ * 已废弃,被 ajax.afterQueryAll 替换
338
+ * @deprecated
339
+ */
340
+ afterQueryAll?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
341
+ /**
342
+ * 用于重写 ajax.queryFooter 不建议使用,已废弃,被 ajax.beforeQueryFooter 替换
343
+ * @deprecated
344
+ */
345
+ beforeQueryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): Promise<any>
346
+ /**
347
+ * 已废弃,被 ajax.afterQueryFooter 替换
348
+ * @deprecated
349
+ */
350
+ afterQueryFooter?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
351
+ /**
352
+ * 用于重写 ajax.delete 不建议使用,已废弃,被 ajax.beforeDelete 替换
353
+ * @deprecated
354
+ */
355
+ beforeDelete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): Promise<any>
356
+ /**
357
+ * 已废弃,被 ajax.afterDelete 替换
358
+ * @deprecated
359
+ */
360
+ afterDelete?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
361
+ /**
362
+ * 用于重写 ajax.save 不建议使用,已废弃,被 ajax.beforeSave 替换
363
+ * @deprecated
364
+ */
365
+ beforeSave?(params: ProxyAjaxSaveParams<D>, ...args: any[]): Promise<any>
366
+ /**
367
+ * 已废弃,被 ajax.afterSave 替换
368
+ * @deprecated
369
+ */
370
+ afterSave?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams, ...args: any[]): void
371
+ beforeColumn?(params: { $table: VxeTableConstructor<D>; $grid: VxeGridConstructor<D> | null | undefined; $gantt: VxeGanttConstructor<D> | null | undefined; column: VxeTableDefines.ColumnInfo }): void
372
+ [key: string]: any
373
+
374
+ /**
375
+ * 已废弃,请使用 proxy-config.response
376
+ * @deprecated
377
+ */
378
+ props?: {
379
+ /**
380
+ * 已废弃,请使用 proxy-config.response.list
381
+ * @deprecated
382
+ */
383
+ list?: string | null
384
+ /**
385
+ * 已废弃,请使用 proxy-config.response.result
386
+ * @deprecated
387
+ */
388
+ result?: string
389
+ /**
390
+ * 已废弃,请使用 proxy-config.response.total
391
+ * @deprecated
392
+ */
393
+ total?: string
394
+ /**
395
+ * 已废弃,请使用 proxy-config.response.message
396
+ * @deprecated
397
+ */
398
+ message?: string
399
+ }
400
+ }
401
+ export interface ProxyOpts<D = any> extends ProxyConfig<D> {}
402
+
403
+ export interface ToolbarOpts extends ToolbarConfig {}
404
+ export interface ToolbarConfig extends VxeToolbarProps {
405
+ enabled?: boolean
406
+ zoom?:
407
+ | boolean
408
+ | {
409
+ escRestore?: boolean
410
+ iconIn?: string
411
+ iconOut?: string
412
+ }
413
+ /**
414
+ * 自定义插槽模板
415
+ */
416
+ slots?: {
417
+ /**
418
+ * 自定义左侧按钮列表
419
+ */
420
+ buttons?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
421
+ /**
422
+ * 自定义左侧按钮列表前缀插槽模板
423
+ */
424
+ buttonPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
425
+ /**
426
+ * 自定义左侧按钮列表后缀插槽模板
427
+ */
428
+ buttonSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
429
+ /**
430
+ * 自定义右侧工具列表
431
+ */
432
+ tools?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
433
+ /**
434
+ * 自定义右侧工具列表前缀插槽模板
435
+ */
436
+ toolPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
437
+ /**
438
+ * 自定义右侧工具列表后缀插槽模板
439
+ */
440
+ toolSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
441
+ }
442
+ }
443
+
444
+ export interface FormConfig extends VxeFormProps {
445
+ enabled?: boolean
446
+ items?: VxeFormItemProps[]
447
+ }
448
+ export interface FormOpts extends FormConfig {
449
+ inited?: boolean
450
+ }
451
+
452
+ export interface ZoomConfig {
453
+ escRestore?: boolean
454
+ }
455
+ export interface ZoomOpts extends ZoomConfig {}
456
+ }
457
+
458
+ export interface VxeGridProps<D = any> extends VxeTableProps<D> {
459
+ layouts?: VxeGridPropTypes.Layouts
460
+ columns?: VxeGridPropTypes.Columns<D>
461
+ pagerConfig?: VxeGridPropTypes.PagerConfig
462
+ proxyConfig?: VxeGridPropTypes.ProxyConfig<D>
463
+ toolbarConfig?: VxeGridPropTypes.ToolbarConfig
464
+ formConfig?: VxeGridPropTypes.FormConfig
465
+ zoomConfig?: VxeGridPropTypes.ZoomConfig
466
+ }
467
+
468
+ export interface GridPrivateComputed<D = any> {
469
+ computeSize: ComputedRef<VxeComponentSizeType>
470
+ computeIsVScrollbar: ComputedRef<VxeComponentIsVScrollbar>
471
+ computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyConfig<D>>
472
+ computePagerOpts: ComputedRef<VxeGridPropTypes.PagerOpts>
473
+ computeFormOpts: ComputedRef<VxeGridPropTypes.FormOpts>
474
+ computeToolbarOpts: ComputedRef<VxeGridPropTypes.ToolbarOpts>
475
+ computeZoomOpts: ComputedRef<VxeGridPropTypes.ZoomOpts>
476
+ }
477
+ export interface VxeGridPrivateComputed<D = any> extends GridPrivateComputed<D> {}
478
+
479
+ export interface GridReactData<D = any> {
480
+ tableLoading: boolean
481
+ proxyInited: boolean
482
+ isZMax: boolean
483
+ tableData: D[]
484
+ filterData: VxeTableDefines.FilterCheckedParams<D>[]
485
+ formData: any
486
+ sortData: VxeTableDefines.SortCheckedParams<D>[]
487
+ footerData: any[]
488
+ tZindex: number
489
+ tablePage: {
490
+ total: number
491
+ pageSize: number
492
+ currentPage: number
493
+ }
494
+ }
495
+
496
+ export interface GridInternalData {
497
+ uFoot?: boolean
498
+ }
499
+
500
+ export interface GridMethods<D = any> {
501
+ dispatchEvent(type: ValueOf<VxeGridEmits>, params: Record<string, any>, evnt: Event | null): void
502
+ /**
503
+ * 给数据代理提交指令
504
+ * @param code 指令编码
505
+ */
506
+ commitProxy(code: string | VxeToolbarPropTypes.ButtonConfig, ...args: any[]): Promise<any>
507
+ /**
508
+ * 获取根元素
509
+ */
510
+ getEl(): HTMLDivElement
511
+ /**
512
+ * 获取表单数据
513
+ */
514
+ getFormData(): any
515
+ /**
516
+ * 已废弃,被 getFormFlatItems 替换
517
+ * @deprecated
518
+ */
519
+ getFormItems(): VxeFormItemProps[]
520
+ /**
521
+ * 已废弃,被 getFormFlatItems 替换
522
+ * @deprecated
523
+ */
524
+ getFormItems(itemIndex?: number): VxeFormItemProps
525
+ /**
526
+ * 获取表单扁平化的项列表
527
+ */
528
+ getFormFlatItems(): VxeFormItemProps[]
529
+ /**
530
+ * 获取表单项列表,与 form-config.items 一致
531
+ */
532
+ getFormNestedItems(): VxeFormItemProps[]
533
+ /**
534
+ * 根据项的字段名获取表单项
535
+ */
536
+ getFormItemByField(field: VxeFormItemPropTypes.Field): VxeFormDefines.ItemInfo | null
537
+ /**
538
+ * 重置表单
539
+ */
540
+ resetForm(): Promise<any>
541
+ /**
542
+ * 对表单进行校验,返回校验结果 promise
543
+ */
544
+ validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
545
+ /**
546
+ * 对表单指定项进行校验,返回校验结果 promise
547
+ * @param field 字段名
548
+ */
549
+ validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
550
+ /**
551
+ * 手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
552
+ * @param field 字段名
553
+ */
554
+ clearFormValidate(field?: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<any>
555
+ /**
556
+ * 获取每页大小
557
+ */
558
+ getPageSize(): number
559
+ /**
560
+ * 修改每页大小
561
+ */
562
+ setPageSize(pageSize: number | string | null | undefined): Promise<any>
563
+ /**
564
+ * 修改每页大小,并触发对应的事件
565
+ */
566
+ setPageSizeByEvent(evnt: Event, pageSize: number | string | null | undefined): void
567
+ /**
568
+ * 跳转首页
569
+ */
570
+ homePage(): Promise<any>
571
+ /**
572
+ * 跳转首页,并触发对应的事件
573
+ */
574
+ homePageByEvent(evnt: Event): void
575
+ /**
576
+ * 跳转末页
577
+ */
578
+ endPage(): Promise<any>
579
+ /**
580
+ * 跳转末页,并触发对应的事件
581
+ */
582
+ endPageByEvent(evnt: Event): void
583
+ /**
584
+ * 获取当前页数
585
+ */
586
+ getCurrentPage(): number
587
+ /**
588
+ * 修改每当前页数
589
+ */
590
+ setCurrentPage(currentPage: number | string | null | undefined): Promise<any>
591
+ /**
592
+ * 修改每当前页数,并触发对应的事件
593
+ */
594
+ setCurrentPageByEvent(evnt: Event, currentPage: number | string | null | undefined): void
595
+ /**
596
+ * 切换表格最大化/还原
597
+ */
598
+ zoom(): Promise<boolean>
599
+ /**
600
+ * 判断是否最大化显示
601
+ */
602
+ isMaximized(): boolean
603
+ /**
604
+ * 如果表格处于常规状态,则最大化表格
605
+ */
606
+ maximize(): Promise<any>
607
+ /**
608
+ * 如果表格处于最大化状态,则还原表格
609
+ */
610
+ revert(): Promise<any>
611
+ /**
612
+ * 获取数据代理信息
613
+ */
614
+ getProxyInfo(): {
615
+ data: D[]
616
+ filter: any
617
+ form: any
618
+ sort: VxeTableDefines.SortCheckedParams<D> | { [key: string]: any }
619
+ sorts: VxeTableDefines.SortCheckedParams<D>[]
620
+ pager: {
621
+ total: number
622
+ pageSize: number
623
+ currentPage: number
624
+ }
625
+ pendingRecords: D[]
626
+ } | null
627
+ /**
628
+ * 获取个性化设置分页数据
629
+ */
630
+ getCustomPagerData(): {
631
+ pSize?: number
632
+ }
633
+ /**
634
+ * 获取自定义的 params 属性
635
+ */
636
+ getParams(): any
637
+ /**
638
+ * 设置数据代理信息
639
+ */
640
+ // setProxyInfo(options: {
641
+ // /**
642
+ // * 修改表格数据
643
+ // */
644
+ // data?: any[]
645
+ // /**
646
+ // * 修改表单数据
647
+ // */
648
+ // form?: {
649
+ // [key: string]: any
650
+ // },
651
+ // /**
652
+ // * 修改分页数据
653
+ // */
654
+ // pager?: {
655
+ // pageSize?: number
656
+ // currentPage?: number
657
+ // }
658
+ // }): Promise<any>
659
+ }
660
+ export interface VxeGridMethods<D = any> extends GridMethods<D>, Omit<TableMethods<D>, 'dispatchEvent'> {}
661
+
662
+ export interface GridPrivateMethods<D = any> {
663
+ /**
664
+ * 内部方法
665
+ * @private
666
+ */
667
+ callSlot<T = any>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
668
+ /**
669
+ * 内部方法
670
+ * @private
671
+ */
672
+ extendTableMethods<T>(methodKeys: T[]): any
673
+ /**
674
+ * 内部方法
675
+ * @private
676
+ */
677
+ triggerToolbarCommitEvent(params: VxeToolbarPropTypes.ButtonConfig | VxeToolbarPropTypes.ToolConfig, evnt: Event): Promise<any>
678
+ /**
679
+ * 内部方法
680
+ * @private
681
+ */
682
+ triggerToolbarBtnEvent(button: VxeToolbarPropTypes.ButtonConfig, evnt: Event): void
683
+ /**
684
+ * 内部方法
685
+ * @private
686
+ */
687
+ triggerToolbarTolEvent(button: VxeToolbarPropTypes.ToolConfig, evnt: Event): void
688
+ /**
689
+ * 内部方法
690
+ * @private
691
+ */
692
+ triggerZoomEvent(evnt: Event): void
693
+ /**
694
+ * 内部方法
695
+ * @private
696
+ */
697
+ getParentElem(): HTMLElement | null
698
+ /**
699
+ * 内部方法
700
+ * @private
701
+ */
702
+ getParentHeight(): number
703
+ /**
704
+ * 内部方法
705
+ * @private
706
+ */
707
+ getExcludeHeight(): number
708
+ }
709
+ export interface VxeGridPrivateMethods<D = any> extends GridPrivateMethods<D> {}
710
+
711
+ export type VxeGridEmits = [
712
+ ...VxeTableEmits,
713
+
714
+ 'page-change',
715
+ 'form-submit',
716
+ 'form-submit-invalid',
717
+ 'form-reset',
718
+ 'form-collapse',
719
+ 'form-toggle-collapse',
720
+ 'proxy-query',
721
+ 'proxy-delete',
722
+ 'proxy-save',
723
+ 'toolbar-button-click',
724
+ 'toolbar-tool-click',
725
+ 'zoom'
726
+ ]
727
+
728
+ export namespace VxeGridDefines {
729
+ export interface GridEventParams<D = any> extends VxeComponentEventParams {
730
+ $table: VxeTableConstructor<D>
731
+ $grid: VxeGridConstructor<D>
732
+ $gantt: VxeGanttConstructor<D> | null | undefined
733
+ }
734
+
735
+ export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
736
+
737
+ export interface ReadyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ReadyEventParams<D> {}
738
+ export interface InitRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.InitRenderedEventParams<D> {}
739
+ export interface DataRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataRenderedEventParams<D> {}
740
+ export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> {}
741
+ export interface KeydownEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEventParams<D> {}
742
+ export interface KeydownEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEndEventParams<D> {}
743
+ export interface PasteEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.PasteEventParams<D> {}
744
+ export interface CopyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CopyEventParams<D> {}
745
+ export interface CutEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CutEventParams<D> {}
746
+ export interface UndoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.UndoEventParams<D> {}
747
+ export interface RedoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RedoEventParams<D> {}
748
+ export interface ContextMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ContextMenuEventParams<D> {}
749
+ export interface ColumnsChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnsChangeEventParams<D> {}
750
+ export interface DataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataChangeEventParams<D> {}
751
+ export interface FooterDataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterDataChangeEventParams<D> {}
752
+ export interface CurrentRowChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowChangeEventParams<D> {}
753
+ export interface CurrentRowDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowDisabledEventParams<D> {}
754
+ export interface CurrentColumnChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnChangeEventParams<D> {}
755
+ export interface CurrentColumnDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnDisabledEventParams<D> {}
756
+ export interface RadioChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RadioChangeEventParams<D> {}
757
+ export interface CheckboxChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxChangeEventParams<D> {}
758
+ export interface CheckboxAllEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxAllEventParams<D> {}
759
+ export interface CheckboxRangeStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeStartEventParams<D> {}
760
+ export interface CheckboxRangeChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeChangeEventParams<D> {}
761
+ export interface CheckboxRangeEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeEndEventParams<D> {}
762
+ export interface CheckboxRangeSelectEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeSelectEventParams<D> {}
763
+ export interface CellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellClickEventParams<D> {}
764
+ export interface CellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellDblclickEventParams<D> {}
765
+ export interface CellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMenuEventParams<D> {}
766
+ export interface CellMouseenterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseenterEventParams<D> {}
767
+ export interface CellMouseleaveEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseleaveEventParams<D> {}
768
+ export interface HeaderCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellClickEventParams<D> {}
769
+ export interface HeaderCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellDblclickEventParams<D> {}
770
+ export interface HeaderCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellMenuEventParams<D> {}
771
+ export interface FooterCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellClickEventParams<D> {}
772
+ export interface FooterCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellDblclickEventParams<D> {}
773
+ export interface FooterCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellMenuEventParams<D> {}
774
+ export interface SortChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.SortChangeEventParams<D> {}
775
+ export interface ClearSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearSortEventParams<D> {}
776
+ export interface ClearAllSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllSortEventParams<D> {}
777
+ export interface FilterChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterChangeEventParams<D> {}
778
+ export interface ClearFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearFilterEventParams<D> {}
779
+ export interface ClearAllFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllFilterEventParams<D> {}
780
+ export interface FilterVisibleEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterVisibleEventParams<D> {}
781
+ export interface ResizableChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ResizableChangeEventParams<D> {}
782
+ export interface ToggleRowGroupExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowGroupExpandEventParams<D> {}
783
+ export interface ToggleRowExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowExpandEventParams<D> {}
784
+ export interface ToggleTreeExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleTreeExpandEventParams<D> {}
785
+ export interface MenuClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.MenuClickEventParams<D> {}
786
+ export interface EditClosedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditClosedEventParams<D> {}
787
+ export interface EditActivatedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditActivatedEventParams<D> {}
788
+ export interface EditDisabledEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditDisabledEventParams<D> {}
789
+ export interface ValidErrorEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ValidErrorEventParams<D> {}
790
+ export interface ScrollEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollEventParams<D> {}
791
+ export interface ScrollBoundaryEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollBoundaryEventParams<D> {}
792
+ export interface CustomEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomEventParams<D> {}
793
+ export interface CustomOpenEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomOpenEventParams<D> {}
794
+ export interface CustomCloseEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomCloseEventParams<D> {}
795
+ export interface CustomCancelEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomCancelEventParams<D> {}
796
+ export interface CustomResetEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomResetEventParams<D> {}
797
+ export interface CustomConfirmEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomConfirmEventParams<D> {}
798
+ export interface RowDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragstartEventParams<D> {}
799
+ export interface RowDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragoverEventParams<D> {}
800
+ export interface RowDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragendEventParams<D> {}
801
+ export interface RowRemoveDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowRemoveDragendEventParams<D> {}
802
+ export interface RowInsertDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowInsertDragendEventParams<D> {}
803
+ export interface ColumnDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragstartEventParams<D> {}
804
+ export interface ColumnDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragoverEventParams<D> {}
805
+ export interface ColumnDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragendEventParams<D> {}
806
+ export interface EnterAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EnterAppendRowEventParams<D> {}
807
+ export interface TabAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.TabAppendRowEventParams<D> {}
808
+
809
+ export interface ProxyQueryEventParams<D = any> extends GridEventParams<D> {
810
+ status: boolean
811
+ isReload: boolean
812
+ isInited: boolean
813
+ }
814
+ export interface ProxyDeleteEventParams<D = any> extends GridEventParams<D> {
815
+ status: boolean
816
+ }
817
+ export interface ProxySaveEventParams<D = any> extends GridEventParams<D> {
818
+ status: boolean
819
+ }
820
+ export interface PageChangeEventParams<D = any> extends GridEventParams<D>, VxePagerDefines.PageChangeEventParams {}
821
+ export interface FormSubmitEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitEventParams {}
822
+ export interface FormSubmitInvalidEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitInvalidParams {}
823
+ export interface FormResetEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.ResetEventParams {}
824
+ export interface FormCollapseEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.CollapseEventParams {}
825
+
826
+ export interface ToolbarButtonClickParams {
827
+ code: string
828
+ button: VxeToolbarPropTypes.ButtonConfig
829
+ }
830
+ export interface ToolbarButtonClickEventParams<D = any> extends GridEventParams<D>, ToolbarButtonClickParams {}
831
+
832
+ export interface ToolbarToolClickParams {
833
+ code: string
834
+ tool: VxeToolbarPropTypes.ToolConfig
835
+ }
836
+ export interface ToolbarToolClickEventParams<D = any> extends GridEventParams<D>, ToolbarToolClickParams {}
837
+
838
+ export interface ZoomParams {
839
+ type: 'max' | 'revert'
840
+ }
841
+ export interface ZoomEventParams<D = any> extends GridEventParams<D>, ZoomParams {}
842
+
843
+ export interface ProxyConfigResponseConfig<D = any> {
844
+ list?: string | null | ((params: { data: any; $table: VxeTableConstructor<D>; $grid: VxeGridConstructor<D> | null | undefined; $gantt: VxeGanttConstructor<D> | null | undefined }) => any[])
845
+ result?: string | ((params: { data: any; $table: VxeTableConstructor<D>; $grid: VxeGridConstructor<D> | null | undefined; $gantt: VxeGanttConstructor<D> | null | undefined }) => any[])
846
+ footerData?: string | ((params: { data: any; $table: VxeTableConstructor<D>; $grid: VxeGridConstructor<D> | null | undefined; $gantt: VxeGanttConstructor<D> | null | undefined }) => any[])
847
+ total?: string | ((params: { data: any; $table: VxeTableConstructor<D>; $grid: VxeGridConstructor<D> | null | undefined; $gantt: VxeGanttConstructor<D> | null | undefined }) => number)
848
+ message?: string | ((params: { data: any; $table: VxeTableConstructor<D>; $grid: VxeGridConstructor<D> | null | undefined; $gantt: VxeGanttConstructor<D> | null | undefined }) => string)
849
+ }
850
+ }
851
+
852
+ export interface VxeGridEventProps<D = any> {
853
+ onReady?: VxeGridEvents.Ready<D>
854
+ onInitRendered?: VxeGridEvents.InitRendered<D>
855
+ onDataRendered?: VxeGridEvents.DataRendered<D>
856
+ onKeydownStart?: VxeGridEvents.KeydownStart<D>
857
+ onKeydown?: VxeGridEvents.Keydown<D>
858
+ onKeydownEnd?: VxeGridEvents.KeydownEnd<D>
859
+ onPaste?: VxeGridEvents.Paste<D>
860
+ onCopy?: VxeGridEvents.Copy<D>
861
+ onCut?: VxeGridEvents.Cut<D>
862
+ onUndo?: VxeGridEvents.Undo<D>
863
+ onRedo?: VxeGridEvents.Redo<D>
864
+ onContextMenu?: VxeGridEvents.ContextMenu<D>
865
+ onColumnsChange?: VxeGridEvents.ColumnsChange<D>
866
+ onDataChange?: VxeGridEvents.DataChange<D>
867
+ onFooterDataChange?: VxeGridEvents.FooterDataChange<D>
868
+ onCurrentRowChange?: VxeGridEvents.CurrentRowChange<D>
869
+ onCurrentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
870
+ onCurrentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
871
+ onCurrentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
872
+ onRadioChange?: VxeGridEvents.RadioChange<D>
873
+ onCheckboxChange?: VxeGridEvents.CheckboxChange<D>
874
+ onCheckboxAll?: VxeGridEvents.CheckboxAll<D>
875
+ onCheckboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
876
+ onCheckboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
877
+ onCheckboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
878
+ onCheckboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
879
+ onCellClick?: VxeGridEvents.CellClick<D>
880
+ onCellDblclick?: VxeGridEvents.CellDblclick<D>
881
+ onCellMenu?: VxeGridEvents.CellMenu<D>
882
+ onCellMouseenter?: VxeGridEvents.CellMouseenter<D>
883
+ onCellMouseleave?: VxeGridEvents.CellMouseleave<D>
884
+ onHeaderCellClick?: VxeGridEvents.HeaderCellClick<D>
885
+ onHeaderCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
886
+ onHeaderCellMenu?: VxeGridEvents.HeaderCellMenu<D>
887
+ onFooterCellClick?: VxeGridEvents.FooterCellClick<D>
888
+ onFooterCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
889
+ onFooterCellMenu?: VxeGridEvents.FooterCellMenu<D>
890
+ onSortChange?: VxeGridEvents.SortChange<D>
891
+ onClearSort?: VxeGridEvents.ClearSort<D>
892
+ onClearAllSort?: VxeGridEvents.ClearAllSort<D>
893
+ onFilterChange?: VxeGridEvents.FilterChange<D>
894
+ onClearFilter?: VxeGridEvents.ClearFilter<D>
895
+ onClearAllFilter?: VxeGridEvents.ClearAllFilter<D>
896
+ onFilterVisible?: VxeGridEvents.FilterVisible<D>
897
+ onResizableChange?: VxeGridEvents.ResizableChange<D>
898
+ onToggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
899
+ onToggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
900
+ onToggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
901
+ onMenuClick?: VxeGridEvents.MenuClick<D>
902
+ onEditClosed?: VxeGridEvents.EditClosed<D>
903
+ onEditActivated?: VxeGridEvents.EditActivated<D>
904
+ onEditDisabled?: VxeGridEvents.EditDisabled<D>
905
+ onValidError?: VxeGridEvents.ValidError<D>
906
+ onScroll?: VxeGridEvents.Scroll<D>
907
+ onScrollBoundary?: VxeGridEvents.ScrollBoundary<D>
908
+ onCustom?: VxeGridEvents.Custom<D>
909
+ onCustomOpen?: VxeGridEvents.CustomOpen<D>
910
+ onCustomClose?: VxeGridEvents.CustomClose<D>
911
+ onCustomCancel?: VxeGridEvents.CustomCancel<D>
912
+ onCustomReset?: VxeGridEvents.CustomReset<D>
913
+ onCustomConfirm?: VxeGridEvents.CustomConfirm<D>
914
+ onRowDragstart?: VxeGridEvents.RowDragstart<D>
915
+ onRowDragover?: VxeGridEvents.RowDragover<D>
916
+ onRowDragend?: VxeGridEvents.RowDragend<D>
917
+ onRowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
918
+ onRowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
919
+ onColumnDragstart?: VxeGridEvents.ColumnDragstart<D>
920
+ onColumnDragover?: VxeGridEvents.ColumnDragover<D>
921
+ onColumnDragend?: VxeGridEvents.ColumnDragend<D>
922
+ onEnterAppendRow?: VxeGridEvents.EnterAppendRow<D>
923
+ onTabAppendRow?: VxeGridEvents.TabAppendRow<D>
924
+
925
+ // grid
926
+ onProxyQuery?: VxeGridEvents.ProxyQuery<D>
927
+ onProxyDelete?: VxeGridEvents.ProxyDelete<D>
928
+ onProxySave?: VxeGridEvents.ProxySave<D>
929
+ onPageChange?: VxeGridEvents.PageChange<D>
930
+ onFormSubmit?: VxeGridEvents.FormSubmit<D>
931
+ onFormSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
932
+ onFormReset?: VxeGridEvents.FormReset<D>
933
+ onFormCollapse?: VxeGridEvents.FormCollapse<D>
934
+ onToolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
935
+ onToolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
936
+ onZoom?: VxeGridEvents.Zoom<D>
937
+
938
+ /**
939
+ * 已废弃,请使用 onEditActivated
940
+ * @deprecated
941
+ */
942
+ onEditActived?: VxeGridEvents.EditActivated<D>
943
+ }
944
+
945
+ export interface VxeGridListeners<D = any> {
946
+ ready?: VxeGridEvents.Ready<D>
947
+ initRendered?: VxeGridEvents.InitRendered<D>
948
+ dataRendered?: VxeGridEvents.DataRendered<D>
949
+ keydownStart?: VxeGridEvents.KeydownStart<D>
950
+ keydown?: VxeGridEvents.Keydown<D>
951
+ keydownEnd?: VxeGridEvents.KeydownEnd<D>
952
+ paste?: VxeGridEvents.Paste<D>
953
+ copy?: VxeGridEvents.Copy<D>
954
+ cut?: VxeGridEvents.Cut<D>
955
+ undo?: VxeGridEvents.Undo<D>
956
+ redo?: VxeGridEvents.Redo<D>
957
+ contextMenu?: VxeGridEvents.ContextMenu<D>
958
+ columnsChange?: VxeGridEvents.ColumnsChange<D>
959
+ dataChange?: VxeGridEvents.DataChange<D>
960
+ footerDataChange?: VxeGridEvents.FooterDataChange<D>
961
+ currentRowChange?: VxeGridEvents.CurrentRowChange<D>
962
+ currentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
963
+ currentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
964
+ currentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
965
+ radioChange?: VxeGridEvents.RadioChange<D>
966
+ checkboxChange?: VxeGridEvents.CheckboxChange<D>
967
+ checkboxAll?: VxeGridEvents.CheckboxAll<D>
968
+ checkboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
969
+ checkboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
970
+ checkboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
971
+ checkboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
972
+ cellClick?: VxeGridEvents.CellClick<D>
973
+ cellDblclick?: VxeGridEvents.CellDblclick<D>
974
+ cellMenu?: VxeGridEvents.CellMenu<D>
975
+ cellMouseenter?: VxeGridEvents.CellMouseenter<D>
976
+ cellMouseleave?: VxeGridEvents.CellMouseleave<D>
977
+ headerCellClick?: VxeGridEvents.HeaderCellClick<D>
978
+ headerCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
979
+ headerCellMenu?: VxeGridEvents.HeaderCellMenu<D>
980
+ footerCellClick?: VxeGridEvents.FooterCellClick<D>
981
+ footerCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
982
+ footerCellMenu?: VxeGridEvents.FooterCellMenu<D>
983
+ sortChange?: VxeGridEvents.SortChange<D>
984
+ clearSort?: VxeGridEvents.ClearSort<D>
985
+ clearAllSort?: VxeGridEvents.ClearAllSort<D>
986
+ filterChange?: VxeGridEvents.FilterChange<D>
987
+ clearFilter?: VxeGridEvents.ClearFilter<D>
988
+ clearAllFilter?: VxeGridEvents.ClearAllFilter<D>
989
+ filterVisible?: VxeGridEvents.FilterVisible<D>
990
+ resizableChange?: VxeGridEvents.ResizableChange<D>
991
+ toggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
992
+ toggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
993
+ toggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
994
+ menuClick?: VxeGridEvents.MenuClick<D>
995
+ editClosed?: VxeGridEvents.EditClosed<D>
996
+ editActivated?: VxeGridEvents.EditActivated<D>
997
+ editDisabled?: VxeGridEvents.EditDisabled<D>
998
+ validError?: VxeGridEvents.ValidError<D>
999
+ scroll?: VxeGridEvents.Scroll<D>
1000
+ scrollBoundary?: VxeGridEvents.ScrollBoundary<D>
1001
+ custom?: VxeGridEvents.Custom<D>
1002
+ customOpen?: VxeGridEvents.CustomOpen<D>
1003
+ customClose?: VxeGridEvents.CustomClose<D>
1004
+ customCancel?: VxeGridEvents.CustomCancel<D>
1005
+ customReset?: VxeGridEvents.CustomReset<D>
1006
+ customConfirm?: VxeGridEvents.CustomConfirm<D>
1007
+ rowDragstart?: VxeGridEvents.RowDragstart<D>
1008
+ rowDragover?: VxeGridEvents.RowDragover<D>
1009
+ rowDragend?: VxeGridEvents.RowDragend<D>
1010
+ rowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
1011
+ rowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
1012
+ columnDragstart?: VxeGridEvents.ColumnDragstart<D>
1013
+ columnDragover?: VxeGridEvents.ColumnDragover<D>
1014
+ columnDragend?: VxeGridEvents.ColumnDragend<D>
1015
+ enterAppendRow?: VxeGridEvents.EnterAppendRow<D>
1016
+ tabAppendRow?: VxeGridEvents.TabAppendRow<D>
1017
+
1018
+ // grid
1019
+ proxyQuery?: VxeGridEvents.ProxyQuery<D>
1020
+ proxyDelete?: VxeGridEvents.ProxyDelete<D>
1021
+ proxySave?: VxeGridEvents.ProxySave<D>
1022
+ pageChange?: VxeGridEvents.PageChange<D>
1023
+ formSubmit?: VxeGridEvents.FormSubmit<D>
1024
+ formSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
1025
+ formReset?: VxeGridEvents.FormReset<D>
1026
+ formCollapse?: VxeGridEvents.FormCollapse<D>
1027
+ toolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
1028
+ toolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
1029
+ zoom?: VxeGridEvents.Zoom<D>
1030
+
1031
+ /**
1032
+ * 已废弃,请使用 editActivated
1033
+ * @deprecated
1034
+ */
1035
+ editActived?: VxeGridEvents.EditActivated<D>
1036
+ }
1037
+
1038
+ export namespace VxeGridEvents {
1039
+ export type Ready<D = any> = (params: VxeGridDefines.ReadyEventParams<D>) => void
1040
+ export type InitRendered<D = any> = (params: VxeGridDefines.InitRenderedEventParams<D>) => void
1041
+ export type DataRendered<D = any> = (params: VxeGridDefines.DataRenderedEventParams<D>) => void
1042
+ export type KeydownStart<D = any> = (params: VxeGridDefines.KeydownStartEventParams<D>) => void
1043
+ export type Keydown<D = any> = (params: VxeGridDefines.KeydownEventParams<D>) => void
1044
+ export type KeydownEnd<D = any> = (params: VxeGridDefines.KeydownEndEventParams<D>) => void
1045
+ export type Paste<D = any> = (params: VxeGridDefines.PasteEventParams<D>) => void
1046
+ export type Copy<D = any> = (params: VxeGridDefines.CopyEventParams<D>) => void
1047
+ export type Cut<D = any> = (params: VxeGridDefines.CutEventParams<D>) => void
1048
+ export type Undo<D = any> = (params: VxeGridDefines.UndoEventParams<D>) => void
1049
+ export type Redo<D = any> = (params: VxeGridDefines.RedoEventParams<D>) => void
1050
+ export type ContextMenu<D = any> = (params: VxeGridDefines.ContextMenuEventParams<D>) => void
1051
+ export type ColumnsChange<D = any> = (params: VxeGridDefines.ColumnsChangeEventParams<D>) => void
1052
+ export type DataChange<D = any> = (params: VxeGridDefines.DataChangeEventParams<D>) => void
1053
+ export type FooterDataChange<D = any> = (params: VxeGridDefines.FooterDataChangeEventParams<D>) => void
1054
+ export type CurrentRowChange<D = any> = (params: VxeGridDefines.CurrentRowChangeParams<D>) => void
1055
+ export type CurrentRowDisabled<D = any> = (params: VxeGridDefines.CurrentRowDisabledParams<D>) => void
1056
+ export type CurrentColumnChange<D = any> = (params: VxeGridDefines.CurrentColumnChangeParams<D>) => void
1057
+ export type CurrentColumnDisabled<D = any> = (params: VxeGridDefines.CurrentColumnDisabledParams<D>) => void
1058
+ export type RadioChange<D = any> = (params: VxeGridDefines.RadioChangeEventParams<D>) => void
1059
+ export type CheckboxChange<D = any> = (params: VxeGridDefines.CheckboxChangeEventParams<D>) => void
1060
+ export type CheckboxAll<D = any> = (params: VxeGridDefines.CheckboxAllEventParams<D>) => void
1061
+ export type CheckboxRangeStart<D = any> = (params: VxeGridDefines.CheckboxRangeStartEventParams<D>) => void
1062
+ export type CheckboxRangeChange<D = any> = (params: VxeGridDefines.CheckboxRangeChangeEventParams<D>) => void
1063
+ export type CheckboxRangeEnd<D = any> = (params: VxeGridDefines.CheckboxRangeEndEventParams<D>) => void
1064
+ export type CheckboxRangeSelect<D = any> = (params: VxeGridDefines.CheckboxRangeSelectEventParams<D>) => void
1065
+ export type CellClick<D = any> = (params: VxeGridDefines.CellClickEventParams<D>) => void
1066
+ export type CellDblclick<D = any> = (params: VxeGridDefines.CellDblclickEventParams<D>) => void
1067
+ export type CellMenu<D = any> = (params: VxeGridDefines.CellMenuEventParams<D>) => void
1068
+ export type CellMouseenter<D = any> = (params: VxeGridDefines.CellMouseenterEventParams<D>) => void
1069
+ export type CellMouseleave<D = any> = (params: VxeGridDefines.CellMouseleaveEventParams<D>) => void
1070
+ export type HeaderCellClick<D = any> = (params: VxeGridDefines.HeaderCellClickEventParams<D>) => void
1071
+ export type HeaderCellDblclick<D = any> = (params: VxeGridDefines.HeaderCellDblclickEventParams<D>) => void
1072
+ export type HeaderCellMenu<D = any> = (params: VxeGridDefines.HeaderCellMenuEventParams<D>) => void
1073
+ export type FooterCellClick<D = any> = (params: VxeGridDefines.FooterCellClickEventParams<D>) => void
1074
+ export type FooterCellDblclick<D = any> = (params: VxeGridDefines.FooterCellDblclickEventParams<D>) => void
1075
+ export type FooterCellMenu<D = any> = (params: VxeGridDefines.FooterCellMenuEventParams<D>) => void
1076
+ export type SortChange<D = any> = (params: VxeGridDefines.SortChangeEventParams<D>) => void
1077
+ export type ClearSort<D = any> = (params: VxeGridDefines.ClearSortEventParams<D>) => void
1078
+ export type ClearAllSort<D = any> = (params: VxeGridDefines.ClearAllSortEventParams<D>) => void
1079
+ export type FilterChange<D = any> = (params: VxeGridDefines.FilterChangeEventParams<D>) => void
1080
+ export type ClearFilter<D = any> = (params: VxeGridDefines.ClearFilterEventParams<D>) => void
1081
+ export type ClearAllFilter<D = any> = (params: VxeGridDefines.ClearAllFilterEventParams<D>) => void
1082
+ export type FilterVisible<D = any> = (params: VxeGridDefines.FilterVisibleEventParams<D>) => void
1083
+ export type ResizableChange<D = any> = (params: VxeGridDefines.ResizableChangeEventParams<D>) => void
1084
+ export type ToggleRowGroupExpand<D = any> = (params: VxeGridDefines.ToggleRowGroupExpandEventParams<D>) => void
1085
+ export type ToggleRowExpand<D = any> = (params: VxeGridDefines.ToggleRowExpandEventParams<D>) => void
1086
+ export type ToggleTreeExpand<D = any> = (params: VxeGridDefines.ToggleTreeExpandEventParams<D>) => void
1087
+ export type MenuClick<D = any> = (params: VxeGridDefines.MenuClickEventParams<D>) => void
1088
+ export type EditClosed<D = any> = (params: VxeGridDefines.EditClosedEventParams<D>) => void
1089
+ export type EditActivated<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
1090
+ export type EditDisabled<D = any> = (params: VxeGridDefines.EditDisabledEventParams<D>) => void
1091
+ export type ValidError<D = any> = (params: VxeGridDefines.ValidErrorEventParams<D>) => void
1092
+ export type Scroll<D = any> = (params: VxeGridDefines.ScrollEventParams<D>) => void
1093
+ export type ScrollBoundary<D = any> = (params: VxeGridDefines.ScrollBoundaryEventParams<D>) => void
1094
+ export type Custom<D = any> = (params: VxeGridDefines.CustomEventParams<D>) => void
1095
+ export type CustomOpen<D = any> = (params: VxeGridDefines.CustomOpenEventParams<D>) => void
1096
+ export type CustomClose<D = any> = (params: VxeGridDefines.CustomCloseEventParams<D>) => void
1097
+ export type CustomCancel<D = any> = (params: VxeGridDefines.CustomCancelEventParams<D>) => void
1098
+ export type CustomReset<D = any> = (params: VxeGridDefines.CustomResetEventParams<D>) => void
1099
+ export type CustomConfirm<D = any> = (params: VxeGridDefines.CustomConfirmEventParams<D>) => void
1100
+ export type RowDragstart<D = any> = (params: VxeGridDefines.RowDragstartEventParams<D>) => void
1101
+ export type RowDragover<D = any> = (params: VxeGridDefines.RowDragoverEventParams<D>) => void
1102
+ export type RowDragend<D = any> = (params: VxeGridDefines.RowDragendEventParams<D>) => void
1103
+ export type RowRemoveDragend<D = any> = (params: VxeGridDefines.RowRemoveDragendEventParams<D>) => void
1104
+ export type RowInsertDragend<D = any> = (params: VxeGridDefines.RowInsertDragendEventParams<D>) => void
1105
+ export type ColumnDragstart<D = any> = (params: VxeGridDefines.ColumnDragstartEventParams<D>) => void
1106
+ export type ColumnDragover<D = any> = (params: VxeGridDefines.ColumnDragoverEventParams<D>) => void
1107
+ export type ColumnDragend<D = any> = (params: VxeGridDefines.ColumnDragendEventParams<D>) => void
1108
+ export type EnterAppendRow<D = any> = (params: VxeGridDefines.EnterAppendRowEventParams<D>) => void
1109
+ export type TabAppendRow<D = any> = (params: VxeGridDefines.TabAppendRowEventParams<D>) => void
1110
+
1111
+ export type ProxyQuery<D = any> = (params: VxeGridDefines.ProxyQueryEventParams<D>) => void
1112
+ export type ProxyDelete<D = any> = (params: VxeGridDefines.ProxyDeleteEventParams<D>) => void
1113
+ export type ProxySave<D = any> = (params: VxeGridDefines.ProxySaveEventParams<D>) => void
1114
+ export type PageChange<D = any> = (params: VxeGridDefines.PageChangeEventParams<D>) => void
1115
+ export type FormSubmit<D = any> = (params: VxeGridDefines.FormSubmitEventParams<D>) => void
1116
+ export type FormSubmitInvalid<D = any> = (params: VxeGridDefines.FormSubmitInvalidEventParams<D>) => void
1117
+ export type FormReset<D = any> = (params: VxeGridDefines.FormResetEventParams<D>) => void
1118
+ export type FormCollapse<D = any> = (params: VxeGridDefines.FormCollapseEventParams<D>) => void
1119
+ export type ToolbarButtonClick<D = any> = (params: VxeGridDefines.ToolbarButtonClickEventParams<D>) => void
1120
+ export type ToolbarToolClick<D = any> = (params: VxeGridDefines.ToolbarToolClickEventParams<D>) => void
1121
+ export type Zoom<D = any> = (params: VxeGridDefines.ZoomEventParams<D>) => void
1122
+
1123
+ /**
1124
+ * 已废弃,请使用 EditActivated
1125
+ * @deprecated
1126
+ */
1127
+ export type EditActived<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
1128
+ }
1129
+
1130
+ export namespace VxeGridSlotTypes {
1131
+ export interface DefaultSlotParams<D = any> {
1132
+ $table: VxeTableConstructor<D>
1133
+ $grid: VxeGridConstructor<D> | null | undefined
1134
+ $gantt: VxeGanttConstructor<D> | null | undefined
1135
+ rowid: string
1136
+ /**
1137
+ * 当前行对象,支持数据双向绑定
1138
+ */
1139
+ row: D
1140
+ /**
1141
+ * 相对于 data 中的索引,等同于 getRowIndex(row)
1142
+ */
1143
+ rowIndex: number
1144
+ /**
1145
+ * 相对于可视区渲染中的行索引,等同于 getVMRowIndex(row)
1146
+ */
1147
+ $rowIndex: number
1148
+ /**
1149
+ * 相对于当前表格数据的索引,等同于 getVTRowIndex(row)
1150
+ */
1151
+ _rowIndex: number
1152
+ /**
1153
+ * 当前列对象
1154
+ */
1155
+ column: VxeTableDefines.ColumnInfo
1156
+ /**
1157
+ * 相对于 columns 中的索引,等同于 getTColumnIndex(column)
1158
+ */
1159
+ columnIndex: number
1160
+ /**
1161
+ * 相对于可视区渲染中的列索引,等同于 getVMColumnIndex(column)
1162
+ */
1163
+ $columnIndex: number
1164
+ /**
1165
+ * 相对于当前表格列的索引,等同于 getVTColumnIndex(column)
1166
+ */
1167
+ _columnIndex: number
1168
+
1169
+ option: VxeColumnPropTypes.FilterItem
1170
+
1171
+ type: string
1172
+ fixed: VxeColumnPropTypes.Fixed
1173
+ checked: boolean
1174
+ indeterminate: boolean
1175
+ seq: string | number
1176
+ level: number
1177
+ isEdit: boolean
1178
+ isHidden: boolean
1179
+
1180
+ // 混用多组件不具名插槽
1181
+ field: string
1182
+ item: any
1183
+ data: any
1184
+ tooltipContent: string
1185
+ groupContent: string
1186
+ groupField: string
1187
+ childCount: number
1188
+ groupValues: number
1189
+ aggValue: number
1190
+
1191
+ /**
1192
+ * @deprecated
1193
+ * @private
1194
+ */
1195
+ visibleData: D[]
1196
+ /**
1197
+ * 已废弃
1198
+ * @deprecated
1199
+ */
1200
+ items: any[]
1201
+
1202
+ [key: string]: any
1203
+ }
1204
+
1205
+ export interface BaseSlotParams<D = any> {
1206
+ $table: VxeTableConstructor<D>
1207
+ $grid: VxeGridConstructor<D> | null | undefined
1208
+ $gantt: VxeGanttConstructor<D> | null | undefined
1209
+ }
1210
+ export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
1211
+ export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}
1212
+ export interface FormSlotParams<D = any> extends BaseSlotParams<D> {}
1213
+ export interface ToolbarSlotParams<D = any> extends BaseSlotParams<D> {}
1214
+ export interface TopSlotParams<D = any> extends BaseSlotParams<D> {}
1215
+ export interface BottomSlotParams<D = any> extends BaseSlotParams<D> {}
1216
+ export interface LeftSlotParams<D = any> extends BaseSlotParams<D> {}
1217
+ export interface RightSlotParams<D = any> extends BaseSlotParams<D> {}
1218
+ export interface AsideLeftSlotParams<D = any> extends BaseSlotParams<D> {}
1219
+ export interface AsideRightSlotParams<D = any> extends BaseSlotParams<D> {}
1220
+ export interface PagerSlotParams<D = any> extends BaseSlotParams<D> {}
1221
+ export interface RowDragIconSlotParams<D = any> extends VxeTableSlotTypes.RowDragIconSlotParams<D> {}
1222
+ export interface ColumnDragIconSlotParams<D = any> extends VxeTableSlotTypes.ColumnDragIconSlotParams<D> {}
1223
+ }
1224
+
1225
+ export interface VxeGridSlots<D = any> {
1226
+ [key: string]: ((params: VxeGridSlotTypes.DefaultSlotParams<D>) => any) | undefined
1227
+
1228
+ /**
1229
+ * 自定义空数据时显示模板
1230
+ */
1231
+ empty?(params: VxeGridSlotTypes.EmptySlotParams<D>): any
1232
+ /**
1233
+ * 自定义加载中模板
1234
+ */
1235
+ loading?(params: VxeGridSlotTypes.LoadingSlotParams<D>): any
1236
+ /**
1237
+ * 自定义表单模板
1238
+ */
1239
+ form?(params: VxeGridSlotTypes.FormSlotParams<D>): any
1240
+ /**
1241
+ * 自定义工具栏模板
1242
+ */
1243
+ toolbar?(params: VxeGridSlotTypes.ToolbarSlotParams<D>): any
1244
+ /**
1245
+ * 自定义表格顶部模板
1246
+ */
1247
+ top?(params: VxeGridSlotTypes.TopSlotParams<D>): any
1248
+ /**
1249
+ * 自定义表格底部模板
1250
+ */
1251
+ bottom?(params: VxeGridSlotTypes.BottomSlotParams<D>): any
1252
+ /**
1253
+ * 自定义表格左边模板
1254
+ */
1255
+ left?(params: VxeGridSlotTypes.LeftSlotParams<D>): any
1256
+ /**
1257
+ * 自定义表格边侧模板
1258
+ */
1259
+ right?(params: VxeGridSlotTypes.RightSlotParams<D>): any
1260
+ /**
1261
+ * 自定义左侧模板
1262
+ */
1263
+ asideLeft?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1264
+ // 'aside-left'?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1265
+ /**
1266
+ * 自定义右侧模板
1267
+ */
1268
+ asideRight?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1269
+ // 'aside-right'?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1270
+ /**
1271
+ * 自定义分页模板
1272
+ */
1273
+ pager?(params: VxeGridSlotTypes.PagerSlotParams<D>): any
1274
+
1275
+ /**
1276
+ * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
1277
+ */
1278
+ rowDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1279
+ // 'row-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1280
+
1281
+ /**
1282
+ * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
1283
+ */
1284
+ columnDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1285
+ // 'column-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1286
+ }
1287
+
1288
+ export const Grid: typeof VxeGrid
1289
+ export default VxeGrid