vxe-pc-ui 4.14.4 → 4.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +72 -72
  3. package/README.ja-JP.md +72 -72
  4. package/README.md +364 -364
  5. package/README.zh-TW.md +73 -73
  6. package/es/tree/src/tree.js +31 -2
  7. package/es/tree-select/src/tree-select.js +2 -0
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/lib/index.umd.js +2359 -2257
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/tree/src/tree.js +27 -2
  13. package/lib/tree/src/tree.min.js +1 -1
  14. package/lib/tree-select/src/tree-select.js +2 -0
  15. package/lib/tree-select/src/tree-select.min.js +1 -1
  16. package/lib/ui/index.js +1 -1
  17. package/lib/ui/index.min.js +1 -1
  18. package/lib/ui/src/log.js +1 -1
  19. package/lib/ui/src/log.min.js +1 -1
  20. package/package.json +88 -88
  21. package/packages/alert/index.ts +16 -16
  22. package/packages/alert/src/alert.ts +124 -124
  23. package/packages/anchor/index.ts +16 -16
  24. package/packages/anchor/src/anchor-link.ts +121 -121
  25. package/packages/anchor/src/anchor.ts +237 -237
  26. package/packages/anchor/src/util.ts +23 -23
  27. package/packages/anchor-link/index.ts +16 -16
  28. package/packages/avatar/index.ts +16 -16
  29. package/packages/avatar/src/avatar.ts +149 -149
  30. package/packages/backtop/index.ts +16 -16
  31. package/packages/backtop/src/backtop.ts +314 -314
  32. package/packages/badge/index.ts +16 -16
  33. package/packages/badge/src/badge.ts +100 -100
  34. package/packages/breadcrumb/index.ts +16 -16
  35. package/packages/breadcrumb/src/breadcrumb-item.ts +106 -106
  36. package/packages/breadcrumb/src/breadcrumb.ts +92 -92
  37. package/packages/breadcrumb-item/index.ts +16 -16
  38. package/packages/button/index.ts +16 -16
  39. package/packages/button/src/button-group.ts +110 -110
  40. package/packages/button/src/button.ts +841 -841
  41. package/packages/button-group/index.ts +16 -16
  42. package/packages/calendar/index.ts +16 -16
  43. package/packages/calendar/src/calendar.ts +1351 -1351
  44. package/packages/card/index.ts +16 -16
  45. package/packages/card/src/card.ts +175 -175
  46. package/packages/carousel/index.ts +16 -16
  47. package/packages/carousel/src/carousel-item.ts +102 -102
  48. package/packages/carousel/src/carousel.ts +414 -414
  49. package/packages/carousel/src/util.ts +21 -21
  50. package/packages/carousel-item/index.ts +16 -16
  51. package/packages/cascader/index.ts +16 -16
  52. package/packages/cascader/src/cascader.ts +741 -741
  53. package/packages/checkbox/index.ts +16 -16
  54. package/packages/checkbox/src/button.ts +144 -144
  55. package/packages/checkbox/src/checkbox.ts +154 -154
  56. package/packages/checkbox/src/group.ts +222 -222
  57. package/packages/checkbox-button/index.ts +16 -16
  58. package/packages/checkbox-group/index.ts +16 -16
  59. package/packages/col/index.ts +16 -16
  60. package/packages/collapse/index.ts +16 -16
  61. package/packages/collapse/src/collapse-pane.ts +114 -114
  62. package/packages/collapse/src/collapse.ts +284 -284
  63. package/packages/collapse/src/util.ts +21 -21
  64. package/packages/collapse-pane/index.ts +16 -16
  65. package/packages/color-picker/index.ts +16 -16
  66. package/packages/color-picker/src/color-picker.ts +1109 -1109
  67. package/packages/color-picker/src/util.ts +198 -198
  68. package/packages/components.ts +307 -307
  69. package/packages/context-menu/index.ts +54 -54
  70. package/packages/context-menu/src/context-menu.ts +681 -681
  71. package/packages/countdown/index.ts +16 -16
  72. package/packages/countdown/src/countdown.ts +262 -262
  73. package/packages/date-panel/index.ts +16 -16
  74. package/packages/date-panel/src/date-panel.ts +1809 -1809
  75. package/packages/date-panel/src/util.ts +244 -244
  76. package/packages/date-picker/index.ts +16 -16
  77. package/packages/date-picker/src/date-picker.ts +1071 -1071
  78. package/packages/date-range-picker/index.ts +16 -16
  79. package/packages/date-range-picker/src/date-range-picker.ts +1280 -1280
  80. package/packages/drawer/index.ts +77 -77
  81. package/packages/drawer/src/drawer.ts +657 -657
  82. package/packages/dynamics/index.ts +89 -89
  83. package/packages/empty/index.ts +16 -16
  84. package/packages/empty/src/empty.ts +100 -100
  85. package/packages/form/index.ts +16 -16
  86. package/packages/form/render/index.ts +598 -598
  87. package/packages/form/src/form-config-item.ts +72 -72
  88. package/packages/form/src/form-group.ts +86 -86
  89. package/packages/form/src/form-item.ts +174 -174
  90. package/packages/form/src/form.ts +987 -987
  91. package/packages/form/src/itemInfo.ts +80 -80
  92. package/packages/form/src/render.ts +387 -387
  93. package/packages/form/src/util.ts +93 -93
  94. package/packages/form-gather/index.ts +26 -26
  95. package/packages/form-group/index.ts +16 -16
  96. package/packages/form-item/index.ts +16 -16
  97. package/packages/icon/index.ts +16 -16
  98. package/packages/icon/src/icon.ts +75 -75
  99. package/packages/icon-picker/index.ts +16 -16
  100. package/packages/icon-picker/src/icon-picker.ts +626 -626
  101. package/packages/image/index.ts +16 -16
  102. package/packages/image/src/group.ts +153 -153
  103. package/packages/image/src/image.ts +298 -298
  104. package/packages/image/src/preview.ts +672 -672
  105. package/packages/image/src/util.ts +59 -59
  106. package/packages/image-group/index.ts +16 -16
  107. package/packages/image-preview/index.ts +19 -19
  108. package/packages/index.ts +4 -4
  109. package/packages/input/index.ts +16 -16
  110. package/packages/input/src/input.ts +2788 -2788
  111. package/packages/language/ar-EG.ts +840 -840
  112. package/packages/language/de-DE.ts +840 -840
  113. package/packages/language/en-US.ts +840 -840
  114. package/packages/language/es-ES.ts +840 -840
  115. package/packages/language/fr-FR.ts +840 -840
  116. package/packages/language/hu-HU.ts +840 -840
  117. package/packages/language/hy-AM.ts +840 -840
  118. package/packages/language/id-ID.ts +840 -840
  119. package/packages/language/it-IT.ts +840 -840
  120. package/packages/language/ja-JP.ts +840 -840
  121. package/packages/language/ko-KR.ts +840 -840
  122. package/packages/language/ms-MY.ts +840 -840
  123. package/packages/language/nb-NO.ts +840 -840
  124. package/packages/language/pt-BR.ts +840 -840
  125. package/packages/language/ru-RU.ts +840 -840
  126. package/packages/language/th-TH.ts +840 -840
  127. package/packages/language/ug-CN.ts +840 -840
  128. package/packages/language/uk-UA.ts +840 -840
  129. package/packages/language/uz-UZ.ts +840 -840
  130. package/packages/language/vi-VN.ts +840 -840
  131. package/packages/language/zh-CHT.ts +840 -840
  132. package/packages/language/zh-CN.ts +840 -840
  133. package/packages/language/zh-HK.ts +3 -3
  134. package/packages/language/zh-MO.ts +3 -3
  135. package/packages/language/zh-TC.ts +3 -3
  136. package/packages/language/zh-TW.ts +3 -3
  137. package/packages/layout-aside/index.ts +16 -16
  138. package/packages/layout-aside/src/layout-aside.ts +123 -123
  139. package/packages/layout-body/index.ts +16 -16
  140. package/packages/layout-body/src/layout-body.ts +142 -142
  141. package/packages/layout-container/index.ts +16 -16
  142. package/packages/layout-container/src/layout-container.ts +82 -82
  143. package/packages/layout-footer/index.ts +16 -16
  144. package/packages/layout-footer/src/layout-footer.ts +74 -74
  145. package/packages/layout-header/index.ts +16 -16
  146. package/packages/layout-header/src/layout-header.ts +73 -73
  147. package/packages/link/index.ts +16 -16
  148. package/packages/link/src/link.ts +161 -161
  149. package/packages/list/index.ts +16 -16
  150. package/packages/list/src/list.ts +442 -442
  151. package/packages/loading/index.ts +34 -34
  152. package/packages/loading/src/loading.ts +152 -152
  153. package/packages/mention/index.ts +16 -16
  154. package/packages/mention/src/mention.ts +71 -71
  155. package/packages/menu/index.ts +16 -16
  156. package/packages/menu/src/menu.ts +581 -581
  157. package/packages/modal/index.ts +136 -136
  158. package/packages/modal/src/modal.ts +1494 -1494
  159. package/packages/notice-bar/index.ts +16 -16
  160. package/packages/notice-bar/src/notice-bar.ts +181 -181
  161. package/packages/number-input/index.ts +16 -16
  162. package/packages/number-input/src/number-input.ts +1096 -1096
  163. package/packages/number-input/src/util.ts +12 -12
  164. package/packages/optgroup/index.ts +16 -16
  165. package/packages/option/index.ts +16 -16
  166. package/packages/pager/index.ts +16 -16
  167. package/packages/pager/src/pager.ts +769 -769
  168. package/packages/password-input/index.ts +16 -16
  169. package/packages/password-input/src/password-input.ts +378 -378
  170. package/packages/print/index.ts +18 -18
  171. package/packages/print/src/page-break.ts +92 -92
  172. package/packages/print/src/print.ts +272 -272
  173. package/packages/print/src/util.ts +284 -284
  174. package/packages/print-page-break/index.ts +16 -16
  175. package/packages/pulldown/index.ts +16 -16
  176. package/packages/pulldown/src/pulldown.ts +457 -457
  177. package/packages/radio/index.ts +16 -16
  178. package/packages/radio/src/button.ts +173 -173
  179. package/packages/radio/src/group.ts +213 -213
  180. package/packages/radio/src/radio.ts +180 -180
  181. package/packages/radio-button/index.ts +16 -16
  182. package/packages/radio-group/index.ts +16 -16
  183. package/packages/rate/index.ts +16 -16
  184. package/packages/rate/src/rate.ts +192 -192
  185. package/packages/result/index.ts +16 -16
  186. package/packages/result/src/result.ts +112 -112
  187. package/packages/row/index.ts +16 -16
  188. package/packages/row/src/col.ts +136 -136
  189. package/packages/row/src/row.ts +119 -119
  190. package/packages/segmented/index.ts +16 -16
  191. package/packages/segmented/src/segmented.ts +264 -264
  192. package/packages/select/index.ts +16 -16
  193. package/packages/select/src/optgroup.ts +49 -49
  194. package/packages/select/src/option-info.ts +20 -20
  195. package/packages/select/src/option.ts +47 -47
  196. package/packages/select/src/select.ts +1699 -1699
  197. package/packages/select/src/util.ts +47 -47
  198. package/packages/slider/index.ts +16 -16
  199. package/packages/slider/src/slider.ts +304 -304
  200. package/packages/split/index.ts +16 -16
  201. package/packages/split-pane/index.ts +17 -17
  202. package/packages/splitter/index.ts +16 -16
  203. package/packages/splitter/src/splitter-panel.ts +145 -145
  204. package/packages/splitter/src/splitter.ts +1009 -1009
  205. package/packages/splitter/src/util.ts +21 -21
  206. package/packages/splitter-panel/index.ts +16 -16
  207. package/packages/steps/index.ts +16 -16
  208. package/packages/steps/src/steps.ts +68 -68
  209. package/packages/switch/index.ts +16 -16
  210. package/packages/switch/src/switch.ts +237 -237
  211. package/packages/tab-pane/index.ts +16 -16
  212. package/packages/table-select/index.ts +16 -16
  213. package/packages/table-select/src/table-select.ts +800 -800
  214. package/packages/tabs/index.ts +16 -16
  215. package/packages/tabs/src/tab-pane.ts +117 -117
  216. package/packages/tabs/src/tabs.ts +940 -940
  217. package/packages/tabs/src/util.ts +21 -21
  218. package/packages/tag/index.ts +16 -16
  219. package/packages/tag/src/tag.ts +187 -187
  220. package/packages/text/index.ts +16 -16
  221. package/packages/text/src/text.ts +260 -260
  222. package/packages/text-ellipsis/index.ts +16 -16
  223. package/packages/text-ellipsis/src/text-ellipsis.ts +282 -282
  224. package/packages/textarea/index.ts +16 -16
  225. package/packages/textarea/src/textarea.ts +373 -373
  226. package/packages/timeline/index.ts +16 -16
  227. package/packages/timeline/src/timeline-item.ts +67 -67
  228. package/packages/timeline/src/timeline.ts +71 -71
  229. package/packages/timeline-item/index.ts +16 -16
  230. package/packages/tip/index.ts +19 -19
  231. package/packages/tip/src/tip.ts +129 -129
  232. package/packages/tooltip/index.ts +16 -16
  233. package/packages/tooltip/src/tooltip.ts +589 -589
  234. package/packages/tour/index.ts +16 -16
  235. package/packages/tour/src/tour.ts +71 -71
  236. package/packages/tree/index.ts +16 -16
  237. package/packages/tree/src/store.ts +14 -14
  238. package/packages/tree/src/tree.ts +2825 -2795
  239. package/packages/tree/src/util.ts +45 -45
  240. package/packages/tree-select/index.ts +16 -16
  241. package/packages/tree-select/src/tree-select.ts +979 -977
  242. package/packages/ui/index.ts +697 -697
  243. package/packages/ui/src/anime.ts +52 -52
  244. package/packages/ui/src/comp.ts +3 -3
  245. package/packages/ui/src/dom.ts +279 -279
  246. package/packages/ui/src/log.ts +6 -6
  247. package/packages/ui/src/utils.ts +49 -49
  248. package/packages/ui/src/vn.ts +39 -39
  249. package/packages/upload/index.ts +20 -20
  250. package/packages/upload/src/upload.ts +1919 -1919
  251. package/packages/upload/src/util.ts +109 -109
  252. package/packages/watermark/index.ts +31 -31
  253. package/packages/watermark/src/util.ts +176 -176
  254. package/packages/watermark/src/watermark.ts +168 -168
  255. package/styles/all.scss +90 -90
  256. package/styles/base.scss +16 -16
  257. package/styles/components/alert.scss +101 -101
  258. package/styles/components/anchor.scss +44 -44
  259. package/styles/components/avatar.scss +115 -115
  260. package/styles/components/backtop.scss +82 -82
  261. package/styles/components/badge.scss +45 -45
  262. package/styles/components/breadcrumb.scss +29 -29
  263. package/styles/components/button-group.scss +30 -30
  264. package/styles/components/button.scss +415 -415
  265. package/styles/components/calendar.scss +471 -471
  266. package/styles/components/card.scss +121 -121
  267. package/styles/components/carousel.scss +184 -184
  268. package/styles/components/cascader.scss +140 -140
  269. package/styles/components/checkbox-button.scss +57 -57
  270. package/styles/components/checkbox.scss +81 -81
  271. package/styles/components/collapse.scss +56 -56
  272. package/styles/components/color-picker.scss +409 -409
  273. package/styles/components/context-menu.scss +102 -102
  274. package/styles/components/countdown.scss +35 -35
  275. package/styles/components/date-panel.scss +505 -505
  276. package/styles/components/date-picker.scss +247 -247
  277. package/styles/components/date-range-picker.scss +252 -252
  278. package/styles/components/drawer.scss +298 -298
  279. package/styles/components/empty.scss +79 -79
  280. package/styles/components/form.scss +668 -668
  281. package/styles/components/icon-picker.scss +211 -211
  282. package/styles/components/icon.scss +1048 -1048
  283. package/styles/components/image-group.scss +2 -2
  284. package/styles/components/image-preview.scss +215 -215
  285. package/styles/components/image.scss +16 -16
  286. package/styles/components/input.scss +846 -846
  287. package/styles/components/layout-aside.scss +22 -22
  288. package/styles/components/layout-body.scss +14 -14
  289. package/styles/components/layout-container.scss +13 -13
  290. package/styles/components/layout-footer.scss +14 -14
  291. package/styles/components/layout-header.scss +11 -11
  292. package/styles/components/link.scss +115 -115
  293. package/styles/components/list.scss +40 -40
  294. package/styles/components/loading.scss +137 -137
  295. package/styles/components/menu.scss +150 -150
  296. package/styles/components/modal.scss +480 -480
  297. package/styles/components/notice-bar.scss +91 -91
  298. package/styles/components/number-input.scss +283 -283
  299. package/styles/components/old-icon.scss +4 -4
  300. package/styles/components/pager.scss +282 -282
  301. package/styles/components/password-input.scss +374 -374
  302. package/styles/components/print.scss +3 -3
  303. package/styles/components/pulldown.scss +75 -75
  304. package/styles/components/radio-button.scss +57 -57
  305. package/styles/components/radio.scss +79 -79
  306. package/styles/components/rate.scss +76 -76
  307. package/styles/components/result.scss +91 -91
  308. package/styles/components/row.scss +69 -69
  309. package/styles/components/segmented.scss +215 -215
  310. package/styles/components/select.scss +244 -244
  311. package/styles/components/slider.scss +139 -139
  312. package/styles/components/split.scss +1 -1
  313. package/styles/components/splitter.scss +318 -318
  314. package/styles/components/switch.scss +128 -128
  315. package/styles/components/table-select.scss +105 -105
  316. package/styles/components/tabs.scss +745 -745
  317. package/styles/components/tag.scss +184 -184
  318. package/styles/components/text-ellipsis.scss +130 -130
  319. package/styles/components/text.scss +123 -123
  320. package/styles/components/textarea.scss +106 -106
  321. package/styles/components/tip.scss +97 -97
  322. package/styles/components/tooltip.scss +141 -141
  323. package/styles/components/tree-select.scss +166 -166
  324. package/styles/components/tree.scss +294 -294
  325. package/styles/components/upload.scss +497 -497
  326. package/styles/components/watermark.scss +26 -26
  327. package/styles/helpers/baseMixin.scss +95 -95
  328. package/styles/helpers/baseVar.scss +3 -3
  329. package/styles/helpers/placement.scss +38 -38
  330. package/styles/theme/base.scss +214 -214
  331. package/styles/theme/dark.scss +119 -119
  332. package/styles/theme/light.scss +118 -118
  333. package/styles/variable.scss +111 -111
  334. package/types/all.d.ts +327 -327
  335. package/types/components/alert.d.ts +87 -87
  336. package/types/components/anchor-link.d.ts +91 -91
  337. package/types/components/anchor.d.ts +104 -104
  338. package/types/components/avatar.d.ts +88 -88
  339. package/types/components/backtop.d.ts +122 -122
  340. package/types/components/badge.d.ts +76 -76
  341. package/types/components/breadcrumb-item.d.ts +80 -80
  342. package/types/components/breadcrumb.d.ts +87 -87
  343. package/types/components/button-group.d.ts +120 -120
  344. package/types/components/button.d.ts +323 -323
  345. package/types/components/calendar.d.ts +264 -264
  346. package/types/components/card.d.ts +93 -93
  347. package/types/components/carousel-item.d.ts +75 -75
  348. package/types/components/carousel.d.ts +134 -134
  349. package/types/components/cascader.d.ts +263 -263
  350. package/types/components/checkbox-button.d.ts +103 -103
  351. package/types/components/checkbox-group.d.ts +143 -143
  352. package/types/components/checkbox.d.ts +123 -123
  353. package/types/components/col.d.ts +80 -80
  354. package/types/components/colgroup.d.ts +137 -137
  355. package/types/components/collapse-pane.d.ts +89 -89
  356. package/types/components/collapse.d.ts +121 -121
  357. package/types/components/color-picker.d.ts +176 -176
  358. package/types/components/column.d.ts +841 -841
  359. package/types/components/context-menu.d.ts +289 -289
  360. package/types/components/countdown.d.ts +112 -112
  361. package/types/components/date-panel.d.ts +280 -280
  362. package/types/components/date-picker.d.ts +332 -332
  363. package/types/components/date-range-picker.d.ts +352 -352
  364. package/types/components/drawer.d.ts +299 -299
  365. package/types/components/empty.d.ts +78 -78
  366. package/types/components/flow-design.d.ts +85 -85
  367. package/types/components/flow-view.d.ts +85 -85
  368. package/types/components/form-design.d.ts +376 -376
  369. package/types/components/form-gather.d.ts +124 -124
  370. package/types/components/form-group.d.ts +77 -77
  371. package/types/components/form-item.d.ts +411 -411
  372. package/types/components/form-view.d.ts +183 -183
  373. package/types/components/form.d.ts +468 -468
  374. package/types/components/gantt-module/gantt-view.d.ts +177 -177
  375. package/types/components/gantt-module/index.d.ts +1 -1
  376. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +131 -131
  377. package/types/components/gantt-plugins/index.d.ts +1 -1
  378. package/types/components/gantt.d.ts +1194 -1185
  379. package/types/components/grid.d.ts +1040 -1040
  380. package/types/components/icon-picker.d.ts +196 -196
  381. package/types/components/icon.d.ts +87 -87
  382. package/types/components/image-group.d.ts +127 -127
  383. package/types/components/image-preview.d.ts +167 -167
  384. package/types/components/image.d.ts +173 -173
  385. package/types/components/input.d.ts +435 -435
  386. package/types/components/layout-aside.d.ts +80 -80
  387. package/types/components/layout-body.d.ts +91 -91
  388. package/types/components/layout-container.d.ts +73 -73
  389. package/types/components/layout-footer.d.ts +73 -73
  390. package/types/components/layout-header.d.ts +69 -69
  391. package/types/components/link.d.ts +111 -111
  392. package/types/components/list-design.d.ts +190 -190
  393. package/types/components/list-view.d.ts +199 -199
  394. package/types/components/list.d.ts +204 -204
  395. package/types/components/loading.d.ts +103 -103
  396. package/types/components/mention.d.ts +77 -77
  397. package/types/components/menu.d.ts +211 -211
  398. package/types/components/modal.d.ts +542 -542
  399. package/types/components/notice-bar.d.ts +102 -102
  400. package/types/components/number-input.d.ts +309 -309
  401. package/types/components/optgroup.d.ts +88 -88
  402. package/types/components/option.d.ts +103 -103
  403. package/types/components/pager.d.ts +335 -335
  404. package/types/components/password-input.d.ts +142 -142
  405. package/types/components/print-page-break.d.ts +69 -69
  406. package/types/components/print.d.ts +206 -206
  407. package/types/components/pulldown.d.ts +231 -231
  408. package/types/components/radio-button.d.ts +114 -114
  409. package/types/components/radio-group.d.ts +144 -144
  410. package/types/components/radio.d.ts +129 -129
  411. package/types/components/rate.d.ts +88 -88
  412. package/types/components/result.d.ts +84 -84
  413. package/types/components/row.d.ts +79 -79
  414. package/types/components/segmented.d.ts +123 -123
  415. package/types/components/select.d.ts +527 -527
  416. package/types/components/slider.d.ts +126 -126
  417. package/types/components/split-pane.d.ts +133 -133
  418. package/types/components/split.d.ts +312 -312
  419. package/types/components/splitter-panel.d.ts +105 -105
  420. package/types/components/splitter.d.ts +288 -288
  421. package/types/components/steps.d.ts +68 -68
  422. package/types/components/switch.d.ts +133 -133
  423. package/types/components/tab-pane.d.ts +114 -114
  424. package/types/components/table-module/custom.d.ts +123 -123
  425. package/types/components/table-module/edit.d.ts +243 -243
  426. package/types/components/table-module/export.d.ts +96 -96
  427. package/types/components/table-module/filter.d.ts +140 -140
  428. package/types/components/table-module/index.d.ts +7 -7
  429. package/types/components/table-module/keyboard.d.ts +26 -26
  430. package/types/components/table-module/menu.d.ts +28 -28
  431. package/types/components/table-module/validator.d.ts +53 -53
  432. package/types/components/table-plugins/extend-cell-area.d.ts +770 -770
  433. package/types/components/table-plugins/extend-pivot-table.d.ts +58 -58
  434. package/types/components/table-plugins/filters-combination.d.ts +15 -15
  435. package/types/components/table-plugins/filters-complex-input.d.ts +9 -9
  436. package/types/components/table-plugins/index.d.ts +4 -4
  437. package/types/components/table-select.d.ts +219 -219
  438. package/types/components/table.d.ts +7465 -7465
  439. package/types/components/tabs.d.ts +332 -332
  440. package/types/components/tag.d.ts +114 -114
  441. package/types/components/text-ellipsis.d.ts +112 -112
  442. package/types/components/text.d.ts +122 -122
  443. package/types/components/textarea.d.ts +247 -247
  444. package/types/components/timeline-item.d.ts +75 -75
  445. package/types/components/timeline.d.ts +77 -77
  446. package/types/components/tip.d.ts +83 -83
  447. package/types/components/toolbar.d.ts +336 -336
  448. package/types/components/tooltip.d.ts +180 -180
  449. package/types/components/tour.d.ts +77 -77
  450. package/types/components/tree-select.d.ts +310 -310
  451. package/types/components/tree.d.ts +843 -833
  452. package/types/components/upload.d.ts +437 -437
  453. package/types/components/watermark.d.ts +120 -120
  454. package/types/handles/form-design.d.ts +50 -50
  455. package/types/handles/index.d.ts +3 -3
  456. package/types/handles/list-design.d.ts +2 -2
  457. package/types/handles/table.d.ts +15 -15
  458. package/types/index.d.ts +8 -8
  459. package/types/ui/commands.d.ts +57 -57
  460. package/types/ui/formats.d.ts +62 -62
  461. package/types/ui/global-config.d.ts +254 -254
  462. package/types/ui/global-icon.d.ts +292 -292
  463. package/types/ui/hooks.d.ts +13 -13
  464. package/types/ui/index.d.ts +96 -96
  465. package/types/ui/interceptor.d.ts +52 -52
  466. package/types/ui/menus.d.ts +77 -77
  467. package/types/ui/renderer.d.ts +1041 -1041
  468. package/types/ui/validators.d.ts +38 -38
  469. /package/es/icon/{iconfont.1778169084473.ttf → iconfont.1778317220469.ttf} +0 -0
  470. /package/es/icon/{iconfont.1778169084473.woff → iconfont.1778317220469.woff} +0 -0
  471. /package/es/icon/{iconfont.1778169084473.woff2 → iconfont.1778317220469.woff2} +0 -0
  472. /package/es/{iconfont.1778169084473.ttf → iconfont.1778317220469.ttf} +0 -0
  473. /package/es/{iconfont.1778169084473.woff → iconfont.1778317220469.woff} +0 -0
  474. /package/es/{iconfont.1778169084473.woff2 → iconfont.1778317220469.woff2} +0 -0
  475. /package/lib/icon/style/{iconfont.1778169084473.ttf → iconfont.1778317220469.ttf} +0 -0
  476. /package/lib/icon/style/{iconfont.1778169084473.woff → iconfont.1778317220469.woff} +0 -0
  477. /package/lib/icon/style/{iconfont.1778169084473.woff2 → iconfont.1778317220469.woff2} +0 -0
  478. /package/lib/{iconfont.1778169084473.ttf → iconfont.1778317220469.ttf} +0 -0
  479. /package/lib/{iconfont.1778169084473.woff → iconfont.1778317220469.woff} +0 -0
  480. /package/lib/{iconfont.1778169084473.woff2 → iconfont.1778317220469.woff2} +0 -0
@@ -1,1040 +1,1040 @@
1
- import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, 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<D>
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
- filters: VxeTableDefines.FilterCheckedParams[]
100
- form: {
101
- [key: string]: any
102
- }
103
- }
104
-
105
- interface ProxyAjaxQueryAllParams<D = any> {
106
- $table: VxeTableConstructor<D>
107
- $grid: VxeGridConstructor<D> | null | undefined
108
- $gantt: VxeGanttConstructor<D> | null | undefined
109
- sort: ProxyAjaxQuerySortCheckedParams<D>
110
- sorts: ProxyAjaxQuerySortCheckedParams<D>[]
111
- filters: VxeTableDefines.FilterCheckedParams[]
112
- form: {
113
- [key: string]: any
114
- }
115
- options: any
116
- }
117
-
118
- interface ProxyAjaxDeleteParams<D = any> {
119
- $table: VxeTableConstructor<D>
120
- $grid: VxeGridConstructor<D> | null | undefined
121
- $gantt: VxeGanttConstructor<D> | null | undefined
122
- body: {
123
- removeRecords: D[]
124
- }
125
- }
126
-
127
- interface ProxyAjaxSaveParams<D = any> {
128
- $table: VxeTableConstructor<D>
129
- $grid: VxeGridConstructor<D> | null | undefined
130
- $gantt: VxeGanttConstructor<D> | null | undefined
131
- body: {
132
- insertRecords: D[]
133
- updateRecords: D[]
134
- removeRecords: D[]
135
- pendingRecords: D[]
136
- }
137
- }
138
-
139
- interface ProxyAjaxResponseParams<T = any> {
140
- response: T
141
- }
142
-
143
- export interface ProxyConfig<D = any> {
144
- enabled?: boolean
145
- autoLoad?: boolean
146
- /**
147
- * 已废弃,请使用 showResponseMsg
148
- * @deprecated
149
- */
150
- message?: boolean
151
- showLoading?: boolean
152
- showResponseMsg?: boolean
153
- /**
154
- * 已废弃,请使用 showActionMsg
155
- * @deprecated
156
- */
157
- showActiveMsg?: boolean
158
- showActionMsg?: boolean
159
- seq?: boolean
160
- sort?: boolean
161
- filter?: boolean
162
- form?: boolean
163
- footer?: boolean
164
- response?: VxeGridDefines.ProxyConfigResponseConfig<D>
165
- ajax?: {
166
- query?(params: ProxyAjaxQueryParams<D>, ...args: any[]): Promise<any>
167
- querySuccess?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
168
- queryError?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
169
- queryAll?(params: ProxyAjaxQueryAllParams<D>): Promise<any>
170
- queryAllSuccess?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
171
- queryAllError?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
172
- queryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): Promise<any>
173
- queryFooterSuccess?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
174
- queryFooterError?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
175
- delete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): Promise<any>
176
- deleteSuccess?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
177
- deleteError?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
178
- save?(params: ProxyAjaxSaveParams<D>, ...args: any[]): Promise<any>
179
- saveSuccess?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
180
- saveError?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
181
- }
182
- [key: string]: any
183
-
184
- /**
185
- * 已废弃,请使用 proxy-config.response
186
- * @deprecated
187
- */
188
- props?: {
189
- /**
190
- * 已废弃,请使用 proxy-config.response.list
191
- * @deprecated
192
- */
193
- list?: string | null
194
- /**
195
- * 已废弃,请使用 proxy-config.response.result
196
- * @deprecated
197
- */
198
- result?: string
199
- /**
200
- * 已废弃,请使用 proxy-config.response.total
201
- * @deprecated
202
- */
203
- total?: string
204
- /**
205
- * 已废弃,请使用 proxy-config.response.message
206
- * @deprecated
207
- */
208
- message?: string
209
- }
210
- }
211
- export interface ProxyOpts<D = any> extends ProxyConfig<D> { }
212
-
213
- export interface ToolbarOpts extends ToolbarConfig { }
214
- export interface ToolbarConfig extends VxeToolbarProps {
215
- enabled?: boolean
216
- zoom?: boolean | {
217
- escRestore?: boolean
218
- iconIn?: string
219
- iconOut?: string
220
- }
221
- /**
222
- * 自定义插槽模板
223
- */
224
- slots?: {
225
- /**
226
- * 自定义左侧按钮列表
227
- */
228
- buttons?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
229
- /**
230
- * 自定义左侧按钮列表前缀插槽模板
231
- */
232
- buttonPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
233
- /**
234
- * 自定义左侧按钮列表后缀插槽模板
235
- */
236
- buttonSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
237
- /**
238
- * 自定义右侧工具列表
239
- */
240
- tools?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
241
- /**
242
- * 自定义右侧工具列表前缀插槽模板
243
- */
244
- toolPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
245
- /**
246
- * 自定义右侧工具列表后缀插槽模板
247
- */
248
- toolSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
249
- }
250
- }
251
-
252
- export interface FormConfig extends VxeFormProps {
253
- enabled?: boolean
254
- items?: VxeFormItemProps[]
255
- }
256
- export interface FormOpts extends FormConfig {
257
- inited?: boolean
258
- }
259
-
260
- export interface ZoomConfig {
261
- escRestore?: boolean
262
- }
263
- export interface ZoomOpts extends ZoomConfig { }
264
- }
265
-
266
- export interface VxeGridProps<D = any> extends VxeTableProps<D> {
267
- layouts?: VxeGridPropTypes.Layouts
268
- columns?: VxeGridPropTypes.Columns<D>
269
- pagerConfig?: VxeGridPropTypes.PagerConfig
270
- proxyConfig?: VxeGridPropTypes.ProxyConfig<D>
271
- toolbarConfig?: VxeGridPropTypes.ToolbarConfig
272
- formConfig?: VxeGridPropTypes.FormConfig
273
- zoomConfig?: VxeGridPropTypes.ZoomConfig
274
- }
275
-
276
- export interface GridPrivateComputed<D = any> {
277
- computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyConfig<D>>
278
- computePagerOpts: ComputedRef<VxeGridPropTypes.PagerOpts>
279
- computeFormOpts: ComputedRef<VxeGridPropTypes.FormOpts>
280
- computeToolbarOpts: ComputedRef<VxeGridPropTypes.ToolbarOpts>
281
- computeZoomOpts: ComputedRef<VxeGridPropTypes.ZoomOpts>
282
- }
283
- export interface VxeGridPrivateComputed<D = any> extends GridPrivateComputed<D> { }
284
-
285
- export interface GridReactData<D = any> {
286
- tableLoading: boolean
287
- proxyInited: boolean
288
- isZMax: boolean
289
- tableData: D[]
290
- filterData: VxeTableDefines.FilterCheckedParams<D>[]
291
- formData: any
292
- sortData: VxeTableDefines.SortCheckedParams<D>[]
293
- footerData: any[]
294
- tZindex: number
295
- tablePage: {
296
- total: number
297
- pageSize: number
298
- currentPage: number
299
- }
300
- }
301
-
302
- export interface GridInternalData {
303
- uFoot?: boolean
304
- }
305
-
306
- export interface GridMethods<D = any> {
307
- dispatchEvent(type: ValueOf<VxeGridEmits>, params: Record<string, any>, evnt: Event | null): void
308
- /**
309
- * 给数据代理提交指令
310
- * @param code 指令编码
311
- */
312
- commitProxy(code: string | VxeToolbarPropTypes.ButtonConfig, ...args: any[]): Promise<any>
313
- /**
314
- * 获取根元素
315
- */
316
- getEl(): HTMLDivElement
317
- /**
318
- * 获取表单数据
319
- */
320
- getFormData(): any
321
- /**
322
- * 获取表单项列表
323
- */
324
- getFormItems(): VxeFormItemProps[]
325
- getFormItems(itemIndex?: number): VxeFormItemProps
326
- /**
327
- * 重置表单
328
- */
329
- resetForm(): Promise<any>
330
- /**
331
- * 对表单进行校验,返回校验结果 promise
332
- */
333
- validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
334
- /**
335
- * 对表单指定项进行校验,返回校验结果 promise
336
- * @param field 字段名
337
- */
338
- validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
339
- /**
340
- * 手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
341
- * @param field 字段名
342
- */
343
- clearFormValidate(field?: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<any>
344
- /**
345
- * 获取每页大小
346
- */
347
- getPageSize(): number
348
- /**
349
- * 修改每页大小
350
- */
351
- setPageSize(pageSize: number | string | null | undefined): Promise<any>
352
- /**
353
- * 修改每页大小,并触发对应的事件
354
- */
355
- setPageSizeByEvent(evnt: Event, pageSize: number | string | null | undefined): void
356
- /**
357
- * 跳转首页
358
- */
359
- homePage(): Promise<any>
360
- /**
361
- * 跳转首页,并触发对应的事件
362
- */
363
- homePageByEvent(evnt: Event): void
364
- /**
365
- * 跳转末页
366
- */
367
- endPage(): Promise<any>
368
- /**
369
- * 跳转末页,并触发对应的事件
370
- */
371
- endPageByEvent(evnt: Event): void
372
- /**
373
- * 获取当前页数
374
- */
375
- getCurrentPage(): number
376
- /**
377
- * 修改每当前页数
378
- */
379
- setCurrentPage(currentPage: number | string | null | undefined): Promise<any>
380
- /**
381
- * 修改每当前页数,并触发对应的事件
382
- */
383
- setCurrentPageByEvent(evnt: Event, currentPage: number | string | null | undefined): void
384
- /**
385
- * 切换表格最大化/还原
386
- */
387
- zoom(): Promise<boolean>
388
- /**
389
- * 判断是否最大化显示
390
- */
391
- isMaximized(): boolean
392
- /**
393
- * 如果表格处于常规状态,则最大化表格
394
- */
395
- maximize(): Promise<any>
396
- /**
397
- * 如果表格处于最大化状态,则还原表格
398
- */
399
- revert(): Promise<any>
400
- /**
401
- * 获取数据代理信息
402
- */
403
- getProxyInfo(): {
404
- data: D[]
405
- filter: any
406
- form: any
407
- sort: VxeTableDefines.SortCheckedParams<D> | { [key: string]: any }
408
- sorts: VxeTableDefines.SortCheckedParams<D>[]
409
- pager: {
410
- total: number
411
- pageSize: number
412
- currentPage: number
413
- }
414
- pendingRecords: D[]
415
- } | null
416
- /**
417
- * 获取自定义的 params 属性
418
- */
419
- getParams (): any
420
- /**
421
- * 设置数据代理信息
422
- */
423
- // setProxyInfo(options: {
424
- // /**
425
- // * 修改表格数据
426
- // */
427
- // data?: any[]
428
- // /**
429
- // * 修改表单数据
430
- // */
431
- // form?: {
432
- // [key: string]: any
433
- // },
434
- // /**
435
- // * 修改分页数据
436
- // */
437
- // pager?: {
438
- // pageSize?: number
439
- // currentPage?: number
440
- // }
441
- // }): Promise<any>
442
- }
443
- export interface VxeGridMethods<D = any> extends GridMethods<D>, Omit<TableMethods<D>, 'dispatchEvent'> { }
444
-
445
- export interface GridPrivateMethods<D = any> {
446
- callSlot<T = any>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
447
- extendTableMethods<T>(methodKeys: T[]): any
448
- triggerToolbarCommitEvent(params: VxeToolbarPropTypes.ButtonConfig | VxeToolbarPropTypes.ToolConfig, evnt: Event): Promise<any>
449
- triggerToolbarBtnEvent(button: VxeToolbarPropTypes.ButtonConfig, evnt: Event): void
450
- triggerToolbarTolEvent(button: VxeToolbarPropTypes.ToolConfig, evnt: Event): void
451
- triggerZoomEvent(evnt: Event): void
452
- getParentHeight(): number
453
- getExcludeHeight(): number
454
- }
455
- export interface VxeGridPrivateMethods<D = any> extends GridPrivateMethods<D> { }
456
-
457
- export type VxeGridEmits = [
458
- ...VxeTableEmits,
459
-
460
- 'page-change',
461
- 'form-submit',
462
- 'form-submit-invalid',
463
- 'form-reset',
464
- 'form-collapse',
465
- 'form-toggle-collapse',
466
- 'proxy-query',
467
- 'proxy-delete',
468
- 'proxy-save',
469
- 'toolbar-button-click',
470
- 'toolbar-tool-click',
471
- 'zoom'
472
- ]
473
-
474
- export namespace VxeGridDefines {
475
- export interface GridEventParams<D = any> extends VxeComponentEventParams {
476
- $table: VxeTableConstructor<D>
477
- $grid: VxeGridConstructor<D>
478
- $gantt: VxeGanttConstructor<D> | null | undefined
479
- }
480
-
481
- export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
482
-
483
- export interface ReadyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ReadyEventParams<D> { }
484
- export interface InitRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.InitRenderedEventParams<D> { }
485
- export interface DataRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataRenderedEventParams<D> { }
486
- export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> { }
487
- export interface KeydownEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEventParams<D> { }
488
- export interface KeydownEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEndEventParams<D> { }
489
- export interface PasteEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.PasteEventParams<D> { }
490
- export interface CopyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CopyEventParams<D> { }
491
- export interface CutEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CutEventParams<D> { }
492
- export interface UndoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.UndoEventParams<D> { }
493
- export interface RedoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RedoEventParams<D> { }
494
- export interface ContextMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ContextMenuEventParams<D> { }
495
- export interface ColumnsChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnsChangeEventParams<D> { }
496
- export interface DataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataChangeEventParams<D> { }
497
- export interface FooterDataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterDataChangeEventParams<D> { }
498
- export interface CurrentRowChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowChangeEventParams<D> { }
499
- export interface CurrentRowDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowDisabledEventParams<D> { }
500
- export interface CurrentColumnChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnChangeEventParams<D> { }
501
- export interface CurrentColumnDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnDisabledEventParams<D> { }
502
- export interface RadioChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RadioChangeEventParams<D> { }
503
- export interface CheckboxChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxChangeEventParams<D> { }
504
- export interface CheckboxAllEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxAllEventParams<D> { }
505
- export interface CheckboxRangeStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeStartEventParams<D> { }
506
- export interface CheckboxRangeChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeChangeEventParams<D> { }
507
- export interface CheckboxRangeEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeEndEventParams<D> { }
508
- export interface CheckboxRangeSelectEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeSelectEventParams<D> { }
509
- export interface CellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellClickEventParams<D> { }
510
- export interface CellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellDblclickEventParams<D> { }
511
- export interface CellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMenuEventParams<D> { }
512
- export interface CellMouseenterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseenterEventParams<D> { }
513
- export interface CellMouseleaveEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseleaveEventParams<D> { }
514
- export interface HeaderCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellClickEventParams<D> { }
515
- export interface HeaderCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellDblclickEventParams<D> { }
516
- export interface HeaderCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellMenuEventParams<D> { }
517
- export interface FooterCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellClickEventParams<D> { }
518
- export interface FooterCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellDblclickEventParams<D> { }
519
- export interface FooterCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellMenuEventParams<D> { }
520
- export interface SortChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.SortChangeEventParams<D> { }
521
- export interface ClearSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearSortEventParams<D> { }
522
- export interface ClearAllSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllSortEventParams<D> { }
523
- export interface FilterChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterChangeEventParams<D> { }
524
- export interface ClearFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearFilterEventParams<D> { }
525
- export interface ClearAllFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllFilterEventParams<D> { }
526
- export interface FilterVisibleEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterVisibleEventParams<D> { }
527
- export interface ResizableChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ResizableChangeEventParams<D> { }
528
- export interface ToggleRowGroupExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowGroupExpandEventParams<D> { }
529
- export interface ToggleRowExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowExpandEventParams<D> { }
530
- export interface ToggleTreeExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleTreeExpandEventParams<D> { }
531
- export interface MenuClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.MenuClickEventParams<D> { }
532
- export interface EditClosedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditClosedEventParams<D> { }
533
- export interface EditActivatedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditActivatedEventParams<D> { }
534
- export interface EditDisabledEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditDisabledEventParams<D> { }
535
- export interface ValidErrorEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ValidErrorEventParams<D> { }
536
- export interface ScrollEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollEventParams<D> { }
537
- export interface ScrollBoundaryEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollBoundaryEventParams<D> { }
538
- export interface CustomEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomEventParams<D> { }
539
- export interface RowDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragstartEventParams<D> { }
540
- export interface RowDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragoverEventParams<D> { }
541
- export interface RowDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragendEventParams<D> { }
542
- export interface RowRemoveDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowRemoveDragendEventParams<D> { }
543
- export interface RowInsertDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowInsertDragendEventParams<D> { }
544
- export interface ColumnDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragstartEventParams<D> { }
545
- export interface ColumnDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragoverEventParams<D> { }
546
- export interface ColumnDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragendEventParams<D> { }
547
- export interface EnterAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EnterAppendRowEventParams<D> { }
548
- export interface TabAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.TabAppendRowEventParams<D> { }
549
-
550
- export interface ProxyQueryEventParams<D = any> extends GridEventParams<D> {
551
- status: boolean
552
- isReload: boolean
553
- isInited: boolean
554
- }
555
- export interface ProxyDeleteEventParams<D = any> extends GridEventParams<D> {
556
- status: boolean
557
- }
558
- export interface ProxySaveEventParams<D = any> extends GridEventParams<D> {
559
- status: boolean
560
- }
561
- export interface PageChangeEventParams<D = any> extends GridEventParams<D>, VxePagerDefines.PageChangeEventParams { }
562
- export interface FormSubmitEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitEventParams { }
563
- export interface FormSubmitInvalidEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitInvalidParams { }
564
- export interface FormResetEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.ResetEventParams { }
565
- export interface FormCollapseEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.CollapseEventParams { }
566
-
567
- export interface ToolbarButtonClickParams {
568
- code: string
569
- button: VxeToolbarPropTypes.ButtonConfig
570
- }
571
- export interface ToolbarButtonClickEventParams<D = any> extends GridEventParams<D>, ToolbarButtonClickParams { }
572
-
573
- export interface ToolbarToolClickParams {
574
- code: string
575
- tool: VxeToolbarPropTypes.ToolConfig
576
- }
577
- export interface ToolbarToolClickEventParams<D = any> extends GridEventParams<D>, ToolbarToolClickParams { }
578
-
579
- export interface ZoomParams {
580
- type: 'max' | 'revert'
581
- }
582
- export interface ZoomEventParams<D = any> extends GridEventParams<D>, ZoomParams { }
583
-
584
- export interface ProxyConfigResponseConfig<D = any> {
585
- list?: string | null | ((params: {
586
- data: any
587
- $table: VxeTableConstructor<D>
588
- $grid: VxeGridConstructor<D> | null | undefined
589
- $gantt: VxeGanttConstructor<D> | null | undefined
590
- }) => any[])
591
- result?: string | ((params: {
592
- data: any
593
- $table: VxeTableConstructor<D>
594
- $grid: VxeGridConstructor<D> | null | undefined
595
- $gantt: VxeGanttConstructor<D> | null | undefined
596
- }) => any[])
597
- footerData?: string | ((params: {
598
- data: any
599
- $table: VxeTableConstructor<D>
600
- $grid: VxeGridConstructor<D> | null | undefined
601
- $gantt: VxeGanttConstructor<D> | null | undefined
602
- }) => any[])
603
- total?: string | ((params: {
604
- data: any
605
- $table: VxeTableConstructor<D>
606
- $grid: VxeGridConstructor<D> | null | undefined
607
- $gantt: VxeGanttConstructor<D> | null | undefined
608
- }) => number)
609
- message?: string | ((params: {
610
- data: any
611
- $table: VxeTableConstructor<D>
612
- $grid: VxeGridConstructor<D> | null | undefined
613
- $gantt: VxeGanttConstructor<D> | null | undefined
614
- }) => string)
615
- }
616
- }
617
-
618
- export interface VxeGridEventProps<D = any> {
619
- onReady?: VxeGridEvents.Ready<D>
620
- onInitRendered?: VxeGridEvents.InitRendered<D>
621
- onDataRendered?: VxeGridEvents.DataRendered<D>
622
- onKeydownStart?: VxeGridEvents.KeydownStart<D>
623
- onKeydown?: VxeGridEvents.Keydown<D>
624
- onKeydownEnd?: VxeGridEvents.KeydownEnd<D>
625
- onPaste?: VxeGridEvents.Paste<D>
626
- onCopy?: VxeGridEvents.Copy<D>
627
- onCut?: VxeGridEvents.Cut<D>
628
- onUndo?: VxeGridEvents.Undo<D>
629
- onRedo?: VxeGridEvents.Redo<D>
630
- onContextMenu?: VxeGridEvents.ContextMenu<D>
631
- onColumnsChange?: VxeGridEvents.ColumnsChange<D>
632
- onDataChange?: VxeGridEvents.DataChange<D>
633
- onFooterDataChange?: VxeGridEvents.FooterDataChange<D>
634
- onCurrentRowChange?: VxeGridEvents.CurrentRowChange<D>
635
- onCurrentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
636
- onCurrentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
637
- onCurrentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
638
- onRadioChange?: VxeGridEvents.RadioChange<D>
639
- onCheckboxChange?: VxeGridEvents.CheckboxChange<D>
640
- onCheckboxAll?: VxeGridEvents.CheckboxAll<D>
641
- onCheckboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
642
- onCheckboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
643
- onCheckboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
644
- onCheckboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
645
- onCellClick?: VxeGridEvents.CellClick<D>
646
- onCellDblclick?: VxeGridEvents.CellDblclick<D>
647
- onCellMenu?: VxeGridEvents.CellMenu<D>
648
- onCellMouseenter?: VxeGridEvents.CellMouseenter<D>
649
- onCellMouseleave?: VxeGridEvents.CellMouseleave<D>
650
- onHeaderCellClick?: VxeGridEvents.HeaderCellClick<D>
651
- onHeaderCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
652
- onHeaderCellMenu?: VxeGridEvents.HeaderCellMenu<D>
653
- onFooterCellClick?: VxeGridEvents.FooterCellClick<D>
654
- onFooterCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
655
- onFooterCellMenu?: VxeGridEvents.FooterCellMenu<D>
656
- onSortChange?: VxeGridEvents.SortChange<D>
657
- onClearSort?: VxeGridEvents.ClearSort<D>
658
- onClearAllSort?: VxeGridEvents.ClearAllSort<D>
659
- onFilterChange?: VxeGridEvents.FilterChange<D>
660
- onClearFilter?: VxeGridEvents.ClearFilter<D>
661
- onClearAllFilter?: VxeGridEvents.ClearAllFilter<D>
662
- onFilterVisible?: VxeGridEvents.FilterVisible<D>
663
- onResizableChange?: VxeGridEvents.ResizableChange<D>
664
- onToggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
665
- onToggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
666
- onToggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
667
- onMenuClick?: VxeGridEvents.MenuClick<D>
668
- onEditClosed?: VxeGridEvents.EditClosed<D>
669
- onEditActivated?: VxeGridEvents.EditActivated<D>
670
- onEditDisabled?: VxeGridEvents.EditDisabled<D>
671
- onValidError?: VxeGridEvents.ValidError<D>
672
- onScroll?: VxeGridEvents.Scroll<D>
673
- onScrollBoundary?: VxeGridEvents.ScrollBoundary<D>
674
- onCustom?: VxeGridEvents.Custom<D>
675
- onRowDragstart?: VxeGridEvents.RowDragstart<D>
676
- onRowDragover?: VxeGridEvents.RowDragover<D>
677
- onRowDragend?: VxeGridEvents.RowDragend<D>
678
- onRowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
679
- onRowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
680
- onColumnDragstart?: VxeGridEvents.ColumnDragstart<D>
681
- onColumnDragover?: VxeGridEvents.ColumnDragover<D>
682
- onColumnDragend?: VxeGridEvents.ColumnDragend<D>
683
- onEnterAppendRow?: VxeGridEvents.EnterAppendRow<D>
684
- onTabAppendRow?: VxeGridEvents.TabAppendRow<D>
685
-
686
- // grid
687
- onProxyQuery?: VxeGridEvents.ProxyQuery<D>
688
- onProxyDelete?: VxeGridEvents.ProxyDelete<D>
689
- onProxySave?: VxeGridEvents.ProxySave<D>
690
- onPageChange?: VxeGridEvents.PageChange<D>
691
- onFormSubmit?: VxeGridEvents.FormSubmit<D>
692
- onFormSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
693
- onFormReset?: VxeGridEvents.FormReset<D>
694
- onFormCollapse?: VxeGridEvents.FormCollapse<D>
695
- onToolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
696
- onToolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
697
- onZoom?: VxeGridEvents.Zoom<D>
698
-
699
- /**
700
- * 已废弃,请使用 onEditActivated
701
- * @deprecated
702
- */
703
- onEditActived?: VxeGridEvents.EditActivated<D>
704
- }
705
-
706
- export interface VxeGridListeners<D = any> {
707
- ready?: VxeGridEvents.Ready<D>
708
- initRendered?: VxeGridEvents.InitRendered<D>
709
- dataRendered?: VxeGridEvents.DataRendered<D>
710
- keydownStart?: VxeGridEvents.KeydownStart<D>
711
- keydown?: VxeGridEvents.Keydown<D>
712
- keydownEnd?: VxeGridEvents.KeydownEnd<D>
713
- paste?: VxeGridEvents.Paste<D>
714
- copy?: VxeGridEvents.Copy<D>
715
- cut?: VxeGridEvents.Cut<D>
716
- undo?: VxeGridEvents.Undo<D>
717
- redo?: VxeGridEvents.Redo<D>
718
- contextMenu?: VxeGridEvents.ContextMenu<D>
719
- columnsChange?: VxeGridEvents.ColumnsChange<D>
720
- dataChange?: VxeGridEvents.DataChange<D>
721
- footerDataChange?: VxeGridEvents.FooterDataChange<D>
722
- currentRowChange?: VxeGridEvents.CurrentRowChange<D>
723
- currentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
724
- currentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
725
- currentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
726
- radioChange?: VxeGridEvents.RadioChange<D>
727
- checkboxChange?: VxeGridEvents.CheckboxChange<D>
728
- checkboxAll?: VxeGridEvents.CheckboxAll<D>
729
- checkboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
730
- checkboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
731
- checkboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
732
- checkboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
733
- cellClick?: VxeGridEvents.CellClick<D>
734
- cellDblclick?: VxeGridEvents.CellDblclick<D>
735
- cellMenu?: VxeGridEvents.CellMenu<D>
736
- cellMouseenter?: VxeGridEvents.CellMouseenter<D>
737
- cellMouseleave?: VxeGridEvents.CellMouseleave<D>
738
- headerCellClick?: VxeGridEvents.HeaderCellClick<D>
739
- headerCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
740
- headerCellMenu?: VxeGridEvents.HeaderCellMenu<D>
741
- footerCellClick?: VxeGridEvents.FooterCellClick<D>
742
- footerCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
743
- footerCellMenu?: VxeGridEvents.FooterCellMenu<D>
744
- sortChange?: VxeGridEvents.SortChange<D>
745
- clearSort?: VxeGridEvents.ClearSort<D>
746
- clearAllSort?: VxeGridEvents.ClearAllSort<D>
747
- filterChange?: VxeGridEvents.FilterChange<D>
748
- clearFilter?: VxeGridEvents.ClearFilter<D>
749
- clearAllFilter?: VxeGridEvents.ClearAllFilter<D>
750
- filterVisible?: VxeGridEvents.FilterVisible<D>
751
- resizableChange?: VxeGridEvents.ResizableChange<D>
752
- toggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
753
- toggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
754
- toggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
755
- menuClick?: VxeGridEvents.MenuClick<D>
756
- editClosed?: VxeGridEvents.EditClosed<D>
757
- editActivated?: VxeGridEvents.EditActivated<D>
758
- editDisabled?: VxeGridEvents.EditDisabled<D>
759
- validError?: VxeGridEvents.ValidError<D>
760
- scroll?: VxeGridEvents.Scroll<D>
761
- scrollBoundary?: VxeGridEvents.ScrollBoundary<D>
762
- custom?: VxeGridEvents.Custom<D>
763
- rowDragstart?: VxeGridEvents.RowDragstart<D>
764
- rowDragover?: VxeGridEvents.RowDragover<D>
765
- rowDragend?: VxeGridEvents.RowDragend<D>
766
- rowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
767
- rowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
768
- columnDragstart?: VxeGridEvents.ColumnDragstart<D>
769
- columnDragover?: VxeGridEvents.ColumnDragover<D>
770
- columnDragend?: VxeGridEvents.ColumnDragend<D>
771
- enterAppendRow?: VxeGridEvents.EnterAppendRow<D>
772
- tabAppendRow?: VxeGridEvents.TabAppendRow<D>
773
-
774
- // grid
775
- proxyQuery?: VxeGridEvents.ProxyQuery<D>
776
- proxyDelete?: VxeGridEvents.ProxyDelete<D>
777
- proxySave?: VxeGridEvents.ProxySave<D>
778
- pageChange?: VxeGridEvents.PageChange<D>
779
- formSubmit?: VxeGridEvents.FormSubmit<D>
780
- formSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
781
- formReset?: VxeGridEvents.FormReset<D>
782
- formCollapse?: VxeGridEvents.FormCollapse<D>
783
- toolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
784
- toolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
785
- zoom?: VxeGridEvents.Zoom<D>
786
-
787
- /**
788
- * 已废弃,请使用 editActivated
789
- * @deprecated
790
- */
791
- editActived?: VxeGridEvents.EditActivated<D>
792
- }
793
-
794
- export namespace VxeGridEvents {
795
- export type Ready<D = any> = (params: VxeGridDefines.ReadyEventParams<D>) => void
796
- export type InitRendered<D = any> = (params: VxeGridDefines.InitRenderedEventParams<D>) => void
797
- export type DataRendered<D = any> = (params: VxeGridDefines.DataRenderedEventParams<D>) => void
798
- export type KeydownStart<D = any> = (params: VxeGridDefines.KeydownStartEventParams<D>) => void
799
- export type Keydown<D = any> = (params: VxeGridDefines.KeydownEventParams<D>) => void
800
- export type KeydownEnd<D = any> = (params: VxeGridDefines.KeydownEndEventParams<D>) => void
801
- export type Paste<D = any> = (params: VxeGridDefines.PasteEventParams<D>) => void
802
- export type Copy<D = any> = (params: VxeGridDefines.CopyEventParams<D>) => void
803
- export type Cut<D = any> = (params: VxeGridDefines.CutEventParams<D>) => void
804
- export type Undo<D = any> = (params: VxeGridDefines.UndoEventParams<D>) => void
805
- export type Redo<D = any> = (params: VxeGridDefines.RedoEventParams<D>) => void
806
- export type ContextMenu<D = any> = (params: VxeGridDefines.ContextMenuEventParams<D>) => void
807
- export type ColumnsChange<D = any> = (params: VxeGridDefines.ColumnsChangeEventParams<D>) => void
808
- export type DataChange<D = any> = (params: VxeGridDefines.DataChangeEventParams<D>) => void
809
- export type FooterDataChange<D = any> = (params: VxeGridDefines.FooterDataChangeEventParams<D>) => void
810
- export type CurrentRowChange<D = any> = (params: VxeGridDefines.CurrentRowChangeParams<D>) => void
811
- export type CurrentRowDisabled<D = any> = (params: VxeGridDefines.CurrentRowDisabledParams<D>) => void
812
- export type CurrentColumnChange<D = any> = (params: VxeGridDefines.CurrentColumnChangeParams<D>) => void
813
- export type CurrentColumnDisabled<D = any> = (params: VxeGridDefines.CurrentColumnDisabledParams<D>) => void
814
- export type RadioChange<D = any> = (params: VxeGridDefines.RadioChangeEventParams<D>) => void
815
- export type CheckboxChange<D = any> = (params: VxeGridDefines.CheckboxChangeEventParams<D>) => void
816
- export type CheckboxAll<D = any> = (params: VxeGridDefines.CheckboxAllEventParams<D>) => void
817
- export type CheckboxRangeStart<D = any> = (params: VxeGridDefines.CheckboxRangeStartEventParams<D>) => void
818
- export type CheckboxRangeChange<D = any> = (params: VxeGridDefines.CheckboxRangeChangeEventParams<D>) => void
819
- export type CheckboxRangeEnd<D = any> = (params: VxeGridDefines.CheckboxRangeEndEventParams<D>) => void
820
- export type CheckboxRangeSelect<D = any> = (params: VxeGridDefines.CheckboxRangeSelectEventParams<D>) => void
821
- export type CellClick<D = any> = (params: VxeGridDefines.CellClickEventParams<D>) => void
822
- export type CellDblclick<D = any> = (params: VxeGridDefines.CellDblclickEventParams<D>) => void
823
- export type CellMenu<D = any> = (params: VxeGridDefines.CellMenuEventParams<D>) => void
824
- export type CellMouseenter<D = any> = (params: VxeGridDefines.CellMouseenterEventParams<D>) => void
825
- export type CellMouseleave<D = any> = (params: VxeGridDefines.CellMouseleaveEventParams<D>) => void
826
- export type HeaderCellClick<D = any> = (params: VxeGridDefines.HeaderCellClickEventParams<D>) => void
827
- export type HeaderCellDblclick<D = any> = (params: VxeGridDefines.HeaderCellDblclickEventParams<D>) => void
828
- export type HeaderCellMenu<D = any> = (params: VxeGridDefines.HeaderCellMenuEventParams<D>) => void
829
- export type FooterCellClick<D = any> = (params: VxeGridDefines.FooterCellClickEventParams<D>) => void
830
- export type FooterCellDblclick<D = any> = (params: VxeGridDefines.FooterCellDblclickEventParams<D>) => void
831
- export type FooterCellMenu<D = any> = (params: VxeGridDefines.FooterCellMenuEventParams<D>) => void
832
- export type SortChange<D = any> = (params: VxeGridDefines.SortChangeEventParams<D>) => void
833
- export type ClearSort<D = any> = (params: VxeGridDefines.ClearSortEventParams<D>) => void
834
- export type ClearAllSort<D = any> = (params: VxeGridDefines.ClearAllSortEventParams<D>) => void
835
- export type FilterChange<D = any> = (params: VxeGridDefines.FilterChangeEventParams<D>) => void
836
- export type ClearFilter<D = any> = (params: VxeGridDefines.ClearFilterEventParams<D>) => void
837
- export type ClearAllFilter<D = any> = (params: VxeGridDefines.ClearAllFilterEventParams<D>) => void
838
- export type FilterVisible<D = any> = (params: VxeGridDefines.FilterVisibleEventParams<D>) => void
839
- export type ResizableChange<D = any> = (params: VxeGridDefines.ResizableChangeEventParams<D>) => void
840
- export type ToggleRowGroupExpand<D = any> = (params: VxeGridDefines.ToggleRowGroupExpandEventParams<D>) => void
841
- export type ToggleRowExpand<D = any> = (params: VxeGridDefines.ToggleRowExpandEventParams<D>) => void
842
- export type ToggleTreeExpand<D = any> = (params: VxeGridDefines.ToggleTreeExpandEventParams<D>) => void
843
- export type MenuClick<D = any> = (params: VxeGridDefines.MenuClickEventParams<D>) => void
844
- export type EditClosed<D = any> = (params: VxeGridDefines.EditClosedEventParams<D>) => void
845
- export type EditActivated<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
846
- export type EditDisabled<D = any> = (params: VxeGridDefines.EditDisabledEventParams<D>) => void
847
- export type ValidError<D = any> = (params: VxeGridDefines.ValidErrorEventParams<D>) => void
848
- export type Scroll<D = any> = (params: VxeGridDefines.ScrollEventParams<D>) => void
849
- export type ScrollBoundary<D = any> = (params: VxeGridDefines.ScrollBoundaryEventParams<D>) => void
850
- export type Custom<D = any> = (params: VxeGridDefines.CustomEventParams<D>) => void
851
- export type RowDragstart<D = any> = (params: VxeGridDefines.RowDragstartEventParams<D>) => void
852
- export type RowDragover<D = any> = (params: VxeGridDefines.RowDragoverEventParams<D>) => void
853
- export type RowDragend<D = any> = (params: VxeGridDefines.RowDragendEventParams<D>) => void
854
- export type RowRemoveDragend<D = any> = (params: VxeGridDefines.RowRemoveDragendEventParams<D>) => void
855
- export type RowInsertDragend<D = any> = (params: VxeGridDefines.RowInsertDragendEventParams<D>) => void
856
- export type ColumnDragstart<D = any> = (params: VxeGridDefines.ColumnDragstartEventParams<D>) => void
857
- export type ColumnDragover<D = any> = (params: VxeGridDefines.ColumnDragoverEventParams<D>) => void
858
- export type ColumnDragend<D = any> = (params: VxeGridDefines.ColumnDragendEventParams<D>) => void
859
- export type EnterAppendRow<D = any> = (params: VxeGridDefines.EnterAppendRowEventParams<D>) => void
860
- export type TabAppendRow<D = any> = (params: VxeGridDefines.TabAppendRowEventParams<D>) => void
861
-
862
- export type ProxyQuery<D = any> = (params: VxeGridDefines.ProxyQueryEventParams<D>) => void
863
- export type ProxyDelete<D = any> = (params: VxeGridDefines.ProxyDeleteEventParams<D>) => void
864
- export type ProxySave<D = any> = (params: VxeGridDefines.ProxySaveEventParams<D>) => void
865
- export type PageChange<D = any> = (params: VxeGridDefines.PageChangeEventParams<D>) => void
866
- export type FormSubmit<D = any> = (params: VxeGridDefines.FormSubmitEventParams<D>) => void
867
- export type FormSubmitInvalid<D = any> = (params: VxeGridDefines.FormSubmitInvalidEventParams<D>) => void
868
- export type FormReset<D = any> = (params: VxeGridDefines.FormResetEventParams<D>) => void
869
- export type FormCollapse<D = any> = (params: VxeGridDefines.FormCollapseEventParams<D>) => void
870
- export type ToolbarButtonClick<D = any> = (params: VxeGridDefines.ToolbarButtonClickEventParams<D>) => void
871
- export type ToolbarToolClick<D = any> = (params: VxeGridDefines.ToolbarToolClickEventParams<D>) => void
872
- export type Zoom<D = any> = (params: VxeGridDefines.ZoomEventParams<D>) => void
873
-
874
- /**
875
- * 已废弃,请使用 EditActivated
876
- * @deprecated
877
- */
878
- export type EditActived<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
879
- }
880
-
881
- export namespace VxeGridSlotTypes {
882
- export interface DefaultSlotParams<D = any> {
883
- $table: VxeTableConstructor<D>
884
- $grid: VxeGridConstructor<D> | null | undefined
885
- $gantt: VxeGanttConstructor<D> | null | undefined
886
- rowid: string
887
- /**
888
- * 当前行对象,支持数据双向绑定
889
- */
890
- row: D
891
- /**
892
- * 相对于 data 中的索引,等同于 getRowIndex(row)
893
- */
894
- rowIndex: number
895
- /**
896
- * 相对于可视区渲染中的行索引,等同于 getVMRowIndex(row)
897
- */
898
- $rowIndex: number
899
- /**
900
- * 相对于当前表格数据的索引,等同于 getVTRowIndex(row)
901
- */
902
- _rowIndex: number
903
- /**
904
- * 当前列对象
905
- */
906
- column: VxeTableDefines.ColumnInfo<D>
907
- /**
908
- * 相对于 columns 中的索引,等同于 getTColumnIndex(column)
909
- */
910
- columnIndex: number
911
- /**
912
- * 相对于可视区渲染中的列索引,等同于 getVMColumnIndex(column)
913
- */
914
- $columnIndex: number
915
- /**
916
- * 相对于当前表格列的索引,等同于 getVTColumnIndex(column)
917
- */
918
- _columnIndex: number
919
-
920
- option: VxeColumnPropTypes.FilterItem
921
-
922
- type: string
923
- fixed: VxeColumnPropTypes.Fixed
924
- checked: boolean
925
- indeterminate: boolean
926
- seq: string | number
927
- level: number
928
- isEdit: boolean
929
- isHidden: boolean
930
-
931
- // 混用多组件不具名插槽
932
- field: string
933
- item: any
934
- data: any
935
- tooltipContent: string
936
- groupContent: string
937
- groupField: string
938
- childCount: number
939
- groupValues: number
940
- aggValue: number
941
-
942
- /**
943
- * @deprecated
944
- * @private
945
- */
946
- visibleData: D[]
947
- /**
948
- * 已废弃
949
- * @deprecated
950
- */
951
- items: any[]
952
-
953
- [key: string]: any
954
- }
955
-
956
- export interface BaseSlotParams<D = any> {
957
- $table: VxeTableConstructor<D>
958
- $grid: VxeGridConstructor<D> | null | undefined
959
- $gantt: VxeGanttConstructor<D> | null | undefined
960
- }
961
- export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
962
- export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}
963
- export interface FormSlotParams<D = any> extends BaseSlotParams<D> {}
964
- export interface ToolbarSlotParams<D = any> extends BaseSlotParams<D> {}
965
- export interface TopSlotParams<D = any> extends BaseSlotParams<D> {}
966
- export interface BottomSlotParams<D = any> extends BaseSlotParams<D> {}
967
- export interface LeftSlotParams<D = any> extends BaseSlotParams<D> {}
968
- export interface RightSlotParams<D = any> extends BaseSlotParams<D> {}
969
- export interface AsideLeftSlotParams<D = any> extends BaseSlotParams<D> {}
970
- export interface AsideRightSlotParams<D = any> extends BaseSlotParams<D> {}
971
- export interface PagerSlotParams<D = any> extends BaseSlotParams<D> {}
972
- export interface RowDragIconSlotParams<D = any> extends VxeTableSlotTypes.RowDragIconSlotParams<D> {}
973
- export interface ColumnDragIconSlotParams<D = any> extends VxeTableSlotTypes.ColumnDragIconSlotParams<D> {}
974
- }
975
-
976
- export interface VxeGridSlots<D = any> {
977
- [key: string]: ((params: VxeGridSlotTypes.DefaultSlotParams<D>) => any) | undefined
978
-
979
- /**
980
- * 自定义空数据时显示模板
981
- */
982
- empty?(params: VxeGridSlotTypes.EmptySlotParams<D>): any
983
- /**
984
- * 自定义加载中模板
985
- */
986
- loading?(params: VxeGridSlotTypes.LoadingSlotParams<D>): any
987
- /**
988
- * 自定义表单模板
989
- */
990
- form?(params: VxeGridSlotTypes.FormSlotParams<D>): any
991
- /**
992
- * 自定义工具栏模板
993
- */
994
- toolbar?(params: VxeGridSlotTypes.ToolbarSlotParams<D>): any
995
- /**
996
- * 自定义表格顶部模板
997
- */
998
- top?(params: VxeGridSlotTypes.TopSlotParams<D>): any
999
- /**
1000
- * 自定义表格底部模板
1001
- */
1002
- bottom?(params: VxeGridSlotTypes.BottomSlotParams<D>): any
1003
- /**
1004
- * 自定义表格左边模板
1005
- */
1006
- left?(params: VxeGridSlotTypes.LeftSlotParams<D>): any
1007
- /**
1008
- * 自定义表格边侧模板
1009
- */
1010
- right?(params: VxeGridSlotTypes.RightSlotParams<D>): any
1011
- /**
1012
- * 自定义左侧模板
1013
- */
1014
- asideLeft?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1015
- // 'aside-left'?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1016
- /**
1017
- * 自定义右侧模板
1018
- */
1019
- asideRight?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1020
- // 'aside-right'?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1021
- /**
1022
- * 自定义分页模板
1023
- */
1024
- pager?(params: VxeGridSlotTypes.PagerSlotParams<D>): any
1025
-
1026
- /**
1027
- * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
1028
- */
1029
- rowDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1030
- // 'row-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1031
-
1032
- /**
1033
- * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
1034
- */
1035
- columnDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1036
- // 'column-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1037
- }
1038
-
1039
- export const Grid: typeof VxeGrid
1040
- export default VxeGrid
1
+ import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, VxeComponentSizeType, 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<D>
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
+ filters: VxeTableDefines.FilterCheckedParams[]
100
+ form: {
101
+ [key: string]: any
102
+ }
103
+ }
104
+
105
+ interface ProxyAjaxQueryAllParams<D = any> {
106
+ $table: VxeTableConstructor<D>
107
+ $grid: VxeGridConstructor<D> | null | undefined
108
+ $gantt: VxeGanttConstructor<D> | null | undefined
109
+ sort: ProxyAjaxQuerySortCheckedParams<D>
110
+ sorts: ProxyAjaxQuerySortCheckedParams<D>[]
111
+ filters: VxeTableDefines.FilterCheckedParams[]
112
+ form: {
113
+ [key: string]: any
114
+ }
115
+ options: any
116
+ }
117
+
118
+ interface ProxyAjaxDeleteParams<D = any> {
119
+ $table: VxeTableConstructor<D>
120
+ $grid: VxeGridConstructor<D> | null | undefined
121
+ $gantt: VxeGanttConstructor<D> | null | undefined
122
+ body: {
123
+ removeRecords: D[]
124
+ }
125
+ }
126
+
127
+ interface ProxyAjaxSaveParams<D = any> {
128
+ $table: VxeTableConstructor<D>
129
+ $grid: VxeGridConstructor<D> | null | undefined
130
+ $gantt: VxeGanttConstructor<D> | null | undefined
131
+ body: {
132
+ insertRecords: D[]
133
+ updateRecords: D[]
134
+ removeRecords: D[]
135
+ pendingRecords: D[]
136
+ }
137
+ }
138
+
139
+ interface ProxyAjaxResponseParams<T = any> {
140
+ response: T
141
+ }
142
+
143
+ export interface ProxyConfig<D = any> {
144
+ enabled?: boolean
145
+ autoLoad?: boolean
146
+ /**
147
+ * 已废弃,请使用 showResponseMsg
148
+ * @deprecated
149
+ */
150
+ message?: boolean
151
+ showLoading?: boolean
152
+ showResponseMsg?: boolean
153
+ /**
154
+ * 已废弃,请使用 showActionMsg
155
+ * @deprecated
156
+ */
157
+ showActiveMsg?: boolean
158
+ showActionMsg?: boolean
159
+ seq?: boolean
160
+ sort?: boolean
161
+ filter?: boolean
162
+ form?: boolean
163
+ footer?: boolean
164
+ response?: VxeGridDefines.ProxyConfigResponseConfig<D>
165
+ ajax?: {
166
+ query?(params: ProxyAjaxQueryParams<D>, ...args: any[]): Promise<any>
167
+ querySuccess?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
168
+ queryError?(params: ProxyAjaxQueryParams<D> & ProxyAjaxResponseParams): void
169
+ queryAll?(params: ProxyAjaxQueryAllParams<D>): Promise<any>
170
+ queryAllSuccess?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
171
+ queryAllError?(params: ProxyAjaxQueryAllParams<D> & ProxyAjaxResponseParams): void
172
+ queryFooter?(params: ProxyAjaxQueryFooterParams<D>, ...args: any[]): Promise<any>
173
+ queryFooterSuccess?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
174
+ queryFooterError?(params: ProxyAjaxQueryFooterParams<D> & ProxyAjaxResponseParams): void
175
+ delete?(params: ProxyAjaxDeleteParams<D>, ...args: any[]): Promise<any>
176
+ deleteSuccess?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
177
+ deleteError?(params: ProxyAjaxDeleteParams<D> & ProxyAjaxResponseParams): void
178
+ save?(params: ProxyAjaxSaveParams<D>, ...args: any[]): Promise<any>
179
+ saveSuccess?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
180
+ saveError?(params: ProxyAjaxSaveParams<D> & ProxyAjaxResponseParams): void
181
+ }
182
+ [key: string]: any
183
+
184
+ /**
185
+ * 已废弃,请使用 proxy-config.response
186
+ * @deprecated
187
+ */
188
+ props?: {
189
+ /**
190
+ * 已废弃,请使用 proxy-config.response.list
191
+ * @deprecated
192
+ */
193
+ list?: string | null
194
+ /**
195
+ * 已废弃,请使用 proxy-config.response.result
196
+ * @deprecated
197
+ */
198
+ result?: string
199
+ /**
200
+ * 已废弃,请使用 proxy-config.response.total
201
+ * @deprecated
202
+ */
203
+ total?: string
204
+ /**
205
+ * 已废弃,请使用 proxy-config.response.message
206
+ * @deprecated
207
+ */
208
+ message?: string
209
+ }
210
+ }
211
+ export interface ProxyOpts<D = any> extends ProxyConfig<D> { }
212
+
213
+ export interface ToolbarOpts extends ToolbarConfig { }
214
+ export interface ToolbarConfig extends VxeToolbarProps {
215
+ enabled?: boolean
216
+ zoom?: boolean | {
217
+ escRestore?: boolean
218
+ iconIn?: string
219
+ iconOut?: string
220
+ }
221
+ /**
222
+ * 自定义插槽模板
223
+ */
224
+ slots?: {
225
+ /**
226
+ * 自定义左侧按钮列表
227
+ */
228
+ buttons?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
229
+ /**
230
+ * 自定义左侧按钮列表前缀插槽模板
231
+ */
232
+ buttonPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
233
+ /**
234
+ * 自定义左侧按钮列表后缀插槽模板
235
+ */
236
+ buttonSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
237
+ /**
238
+ * 自定义右侧工具列表
239
+ */
240
+ tools?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
241
+ /**
242
+ * 自定义右侧工具列表前缀插槽模板
243
+ */
244
+ toolPrefix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
245
+ /**
246
+ * 自定义右侧工具列表后缀插槽模板
247
+ */
248
+ toolSuffix?: string | ((params: VxeToolbarSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
249
+ }
250
+ }
251
+
252
+ export interface FormConfig extends VxeFormProps {
253
+ enabled?: boolean
254
+ items?: VxeFormItemProps[]
255
+ }
256
+ export interface FormOpts extends FormConfig {
257
+ inited?: boolean
258
+ }
259
+
260
+ export interface ZoomConfig {
261
+ escRestore?: boolean
262
+ }
263
+ export interface ZoomOpts extends ZoomConfig { }
264
+ }
265
+
266
+ export interface VxeGridProps<D = any> extends VxeTableProps<D> {
267
+ layouts?: VxeGridPropTypes.Layouts
268
+ columns?: VxeGridPropTypes.Columns<D>
269
+ pagerConfig?: VxeGridPropTypes.PagerConfig
270
+ proxyConfig?: VxeGridPropTypes.ProxyConfig<D>
271
+ toolbarConfig?: VxeGridPropTypes.ToolbarConfig
272
+ formConfig?: VxeGridPropTypes.FormConfig
273
+ zoomConfig?: VxeGridPropTypes.ZoomConfig
274
+ }
275
+
276
+ export interface GridPrivateComputed<D = any> {
277
+ computeProxyOpts: ComputedRef<VxeGridPropTypes.ProxyConfig<D>>
278
+ computePagerOpts: ComputedRef<VxeGridPropTypes.PagerOpts>
279
+ computeFormOpts: ComputedRef<VxeGridPropTypes.FormOpts>
280
+ computeToolbarOpts: ComputedRef<VxeGridPropTypes.ToolbarOpts>
281
+ computeZoomOpts: ComputedRef<VxeGridPropTypes.ZoomOpts>
282
+ }
283
+ export interface VxeGridPrivateComputed<D = any> extends GridPrivateComputed<D> { }
284
+
285
+ export interface GridReactData<D = any> {
286
+ tableLoading: boolean
287
+ proxyInited: boolean
288
+ isZMax: boolean
289
+ tableData: D[]
290
+ filterData: VxeTableDefines.FilterCheckedParams<D>[]
291
+ formData: any
292
+ sortData: VxeTableDefines.SortCheckedParams<D>[]
293
+ footerData: any[]
294
+ tZindex: number
295
+ tablePage: {
296
+ total: number
297
+ pageSize: number
298
+ currentPage: number
299
+ }
300
+ }
301
+
302
+ export interface GridInternalData {
303
+ uFoot?: boolean
304
+ }
305
+
306
+ export interface GridMethods<D = any> {
307
+ dispatchEvent(type: ValueOf<VxeGridEmits>, params: Record<string, any>, evnt: Event | null): void
308
+ /**
309
+ * 给数据代理提交指令
310
+ * @param code 指令编码
311
+ */
312
+ commitProxy(code: string | VxeToolbarPropTypes.ButtonConfig, ...args: any[]): Promise<any>
313
+ /**
314
+ * 获取根元素
315
+ */
316
+ getEl(): HTMLDivElement
317
+ /**
318
+ * 获取表单数据
319
+ */
320
+ getFormData(): any
321
+ /**
322
+ * 获取表单项列表
323
+ */
324
+ getFormItems(): VxeFormItemProps[]
325
+ getFormItems(itemIndex?: number): VxeFormItemProps
326
+ /**
327
+ * 重置表单
328
+ */
329
+ resetForm(): Promise<any>
330
+ /**
331
+ * 对表单进行校验,返回校验结果 promise
332
+ */
333
+ validateForm(): Promise<VxeFormDefines.ValidateErrorMapParams | void>
334
+ /**
335
+ * 对表单指定项进行校验,返回校验结果 promise
336
+ * @param field 字段名
337
+ */
338
+ validateFormField(field: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<VxeFormDefines.ValidateErrorMapParams | void>
339
+ /**
340
+ * 手动清除表单校验状态,如果指定 field 则清除指定的项,否则清除整个表单
341
+ * @param field 字段名
342
+ */
343
+ clearFormValidate(field?: VxeFormItemPropTypes.Field | VxeFormItemPropTypes.Field[] | VxeFormDefines.ItemInfo | VxeFormDefines.ItemInfo[] | null): Promise<any>
344
+ /**
345
+ * 获取每页大小
346
+ */
347
+ getPageSize(): number
348
+ /**
349
+ * 修改每页大小
350
+ */
351
+ setPageSize(pageSize: number | string | null | undefined): Promise<any>
352
+ /**
353
+ * 修改每页大小,并触发对应的事件
354
+ */
355
+ setPageSizeByEvent(evnt: Event, pageSize: number | string | null | undefined): void
356
+ /**
357
+ * 跳转首页
358
+ */
359
+ homePage(): Promise<any>
360
+ /**
361
+ * 跳转首页,并触发对应的事件
362
+ */
363
+ homePageByEvent(evnt: Event): void
364
+ /**
365
+ * 跳转末页
366
+ */
367
+ endPage(): Promise<any>
368
+ /**
369
+ * 跳转末页,并触发对应的事件
370
+ */
371
+ endPageByEvent(evnt: Event): void
372
+ /**
373
+ * 获取当前页数
374
+ */
375
+ getCurrentPage(): number
376
+ /**
377
+ * 修改每当前页数
378
+ */
379
+ setCurrentPage(currentPage: number | string | null | undefined): Promise<any>
380
+ /**
381
+ * 修改每当前页数,并触发对应的事件
382
+ */
383
+ setCurrentPageByEvent(evnt: Event, currentPage: number | string | null | undefined): void
384
+ /**
385
+ * 切换表格最大化/还原
386
+ */
387
+ zoom(): Promise<boolean>
388
+ /**
389
+ * 判断是否最大化显示
390
+ */
391
+ isMaximized(): boolean
392
+ /**
393
+ * 如果表格处于常规状态,则最大化表格
394
+ */
395
+ maximize(): Promise<any>
396
+ /**
397
+ * 如果表格处于最大化状态,则还原表格
398
+ */
399
+ revert(): Promise<any>
400
+ /**
401
+ * 获取数据代理信息
402
+ */
403
+ getProxyInfo(): {
404
+ data: D[]
405
+ filter: any
406
+ form: any
407
+ sort: VxeTableDefines.SortCheckedParams<D> | { [key: string]: any }
408
+ sorts: VxeTableDefines.SortCheckedParams<D>[]
409
+ pager: {
410
+ total: number
411
+ pageSize: number
412
+ currentPage: number
413
+ }
414
+ pendingRecords: D[]
415
+ } | null
416
+ /**
417
+ * 获取自定义的 params 属性
418
+ */
419
+ getParams (): any
420
+ /**
421
+ * 设置数据代理信息
422
+ */
423
+ // setProxyInfo(options: {
424
+ // /**
425
+ // * 修改表格数据
426
+ // */
427
+ // data?: any[]
428
+ // /**
429
+ // * 修改表单数据
430
+ // */
431
+ // form?: {
432
+ // [key: string]: any
433
+ // },
434
+ // /**
435
+ // * 修改分页数据
436
+ // */
437
+ // pager?: {
438
+ // pageSize?: number
439
+ // currentPage?: number
440
+ // }
441
+ // }): Promise<any>
442
+ }
443
+ export interface VxeGridMethods<D = any> extends GridMethods<D>, Omit<TableMethods<D>, 'dispatchEvent'> { }
444
+
445
+ export interface GridPrivateMethods<D = any> {
446
+ callSlot<T = any>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
447
+ extendTableMethods<T>(methodKeys: T[]): any
448
+ triggerToolbarCommitEvent(params: VxeToolbarPropTypes.ButtonConfig | VxeToolbarPropTypes.ToolConfig, evnt: Event): Promise<any>
449
+ triggerToolbarBtnEvent(button: VxeToolbarPropTypes.ButtonConfig, evnt: Event): void
450
+ triggerToolbarTolEvent(button: VxeToolbarPropTypes.ToolConfig, evnt: Event): void
451
+ triggerZoomEvent(evnt: Event): void
452
+ getParentHeight(): number
453
+ getExcludeHeight(): number
454
+ }
455
+ export interface VxeGridPrivateMethods<D = any> extends GridPrivateMethods<D> { }
456
+
457
+ export type VxeGridEmits = [
458
+ ...VxeTableEmits,
459
+
460
+ 'page-change',
461
+ 'form-submit',
462
+ 'form-submit-invalid',
463
+ 'form-reset',
464
+ 'form-collapse',
465
+ 'form-toggle-collapse',
466
+ 'proxy-query',
467
+ 'proxy-delete',
468
+ 'proxy-save',
469
+ 'toolbar-button-click',
470
+ 'toolbar-tool-click',
471
+ 'zoom'
472
+ ]
473
+
474
+ export namespace VxeGridDefines {
475
+ export interface GridEventParams<D = any> extends VxeComponentEventParams {
476
+ $table: VxeTableConstructor<D>
477
+ $grid: VxeGridConstructor<D>
478
+ $gantt: VxeGanttConstructor<D> | null | undefined
479
+ }
480
+
481
+ export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Table' | 'Bottom' | 'Pager'
482
+
483
+ export interface ReadyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ReadyEventParams<D> { }
484
+ export interface InitRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.InitRenderedEventParams<D> { }
485
+ export interface DataRenderedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataRenderedEventParams<D> { }
486
+ export interface KeydownStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownStartEventParams<D> { }
487
+ export interface KeydownEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEventParams<D> { }
488
+ export interface KeydownEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.KeydownEndEventParams<D> { }
489
+ export interface PasteEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.PasteEventParams<D> { }
490
+ export interface CopyEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CopyEventParams<D> { }
491
+ export interface CutEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CutEventParams<D> { }
492
+ export interface UndoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.UndoEventParams<D> { }
493
+ export interface RedoEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RedoEventParams<D> { }
494
+ export interface ContextMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ContextMenuEventParams<D> { }
495
+ export interface ColumnsChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnsChangeEventParams<D> { }
496
+ export interface DataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.DataChangeEventParams<D> { }
497
+ export interface FooterDataChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterDataChangeEventParams<D> { }
498
+ export interface CurrentRowChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowChangeEventParams<D> { }
499
+ export interface CurrentRowDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentRowDisabledEventParams<D> { }
500
+ export interface CurrentColumnChangeParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnChangeEventParams<D> { }
501
+ export interface CurrentColumnDisabledParams<D = any> extends GridEventParams<D>, VxeTableDefines.CurrentColumnDisabledEventParams<D> { }
502
+ export interface RadioChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RadioChangeEventParams<D> { }
503
+ export interface CheckboxChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxChangeEventParams<D> { }
504
+ export interface CheckboxAllEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxAllEventParams<D> { }
505
+ export interface CheckboxRangeStartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeStartEventParams<D> { }
506
+ export interface CheckboxRangeChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeChangeEventParams<D> { }
507
+ export interface CheckboxRangeEndEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeEndEventParams<D> { }
508
+ export interface CheckboxRangeSelectEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CheckboxRangeSelectEventParams<D> { }
509
+ export interface CellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellClickEventParams<D> { }
510
+ export interface CellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellDblclickEventParams<D> { }
511
+ export interface CellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMenuEventParams<D> { }
512
+ export interface CellMouseenterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseenterEventParams<D> { }
513
+ export interface CellMouseleaveEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CellMouseleaveEventParams<D> { }
514
+ export interface HeaderCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellClickEventParams<D> { }
515
+ export interface HeaderCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellDblclickEventParams<D> { }
516
+ export interface HeaderCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.HeaderCellMenuEventParams<D> { }
517
+ export interface FooterCellClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellClickEventParams<D> { }
518
+ export interface FooterCellDblclickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellDblclickEventParams<D> { }
519
+ export interface FooterCellMenuEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FooterCellMenuEventParams<D> { }
520
+ export interface SortChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.SortChangeEventParams<D> { }
521
+ export interface ClearSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearSortEventParams<D> { }
522
+ export interface ClearAllSortEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllSortEventParams<D> { }
523
+ export interface FilterChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterChangeEventParams<D> { }
524
+ export interface ClearFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearFilterEventParams<D> { }
525
+ export interface ClearAllFilterEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ClearAllFilterEventParams<D> { }
526
+ export interface FilterVisibleEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.FilterVisibleEventParams<D> { }
527
+ export interface ResizableChangeEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ResizableChangeEventParams<D> { }
528
+ export interface ToggleRowGroupExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowGroupExpandEventParams<D> { }
529
+ export interface ToggleRowExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleRowExpandEventParams<D> { }
530
+ export interface ToggleTreeExpandEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ToggleTreeExpandEventParams<D> { }
531
+ export interface MenuClickEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.MenuClickEventParams<D> { }
532
+ export interface EditClosedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditClosedEventParams<D> { }
533
+ export interface EditActivatedEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditActivatedEventParams<D> { }
534
+ export interface EditDisabledEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EditDisabledEventParams<D> { }
535
+ export interface ValidErrorEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ValidErrorEventParams<D> { }
536
+ export interface ScrollEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollEventParams<D> { }
537
+ export interface ScrollBoundaryEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ScrollBoundaryEventParams<D> { }
538
+ export interface CustomEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.CustomEventParams<D> { }
539
+ export interface RowDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragstartEventParams<D> { }
540
+ export interface RowDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragoverEventParams<D> { }
541
+ export interface RowDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowDragendEventParams<D> { }
542
+ export interface RowRemoveDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowRemoveDragendEventParams<D> { }
543
+ export interface RowInsertDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.RowInsertDragendEventParams<D> { }
544
+ export interface ColumnDragstartEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragstartEventParams<D> { }
545
+ export interface ColumnDragoverEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragoverEventParams<D> { }
546
+ export interface ColumnDragendEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.ColumnDragendEventParams<D> { }
547
+ export interface EnterAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.EnterAppendRowEventParams<D> { }
548
+ export interface TabAppendRowEventParams<D = any> extends GridEventParams<D>, VxeTableDefines.TabAppendRowEventParams<D> { }
549
+
550
+ export interface ProxyQueryEventParams<D = any> extends GridEventParams<D> {
551
+ status: boolean
552
+ isReload: boolean
553
+ isInited: boolean
554
+ }
555
+ export interface ProxyDeleteEventParams<D = any> extends GridEventParams<D> {
556
+ status: boolean
557
+ }
558
+ export interface ProxySaveEventParams<D = any> extends GridEventParams<D> {
559
+ status: boolean
560
+ }
561
+ export interface PageChangeEventParams<D = any> extends GridEventParams<D>, VxePagerDefines.PageChangeEventParams { }
562
+ export interface FormSubmitEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitEventParams { }
563
+ export interface FormSubmitInvalidEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.SubmitInvalidParams { }
564
+ export interface FormResetEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.ResetEventParams { }
565
+ export interface FormCollapseEventParams<D = any> extends GridEventParams<D>, VxeFormDefines.CollapseEventParams { }
566
+
567
+ export interface ToolbarButtonClickParams {
568
+ code: string
569
+ button: VxeToolbarPropTypes.ButtonConfig
570
+ }
571
+ export interface ToolbarButtonClickEventParams<D = any> extends GridEventParams<D>, ToolbarButtonClickParams { }
572
+
573
+ export interface ToolbarToolClickParams {
574
+ code: string
575
+ tool: VxeToolbarPropTypes.ToolConfig
576
+ }
577
+ export interface ToolbarToolClickEventParams<D = any> extends GridEventParams<D>, ToolbarToolClickParams { }
578
+
579
+ export interface ZoomParams {
580
+ type: 'max' | 'revert'
581
+ }
582
+ export interface ZoomEventParams<D = any> extends GridEventParams<D>, ZoomParams { }
583
+
584
+ export interface ProxyConfigResponseConfig<D = any> {
585
+ list?: string | null | ((params: {
586
+ data: any
587
+ $table: VxeTableConstructor<D>
588
+ $grid: VxeGridConstructor<D> | null | undefined
589
+ $gantt: VxeGanttConstructor<D> | null | undefined
590
+ }) => any[])
591
+ result?: string | ((params: {
592
+ data: any
593
+ $table: VxeTableConstructor<D>
594
+ $grid: VxeGridConstructor<D> | null | undefined
595
+ $gantt: VxeGanttConstructor<D> | null | undefined
596
+ }) => any[])
597
+ footerData?: string | ((params: {
598
+ data: any
599
+ $table: VxeTableConstructor<D>
600
+ $grid: VxeGridConstructor<D> | null | undefined
601
+ $gantt: VxeGanttConstructor<D> | null | undefined
602
+ }) => any[])
603
+ total?: string | ((params: {
604
+ data: any
605
+ $table: VxeTableConstructor<D>
606
+ $grid: VxeGridConstructor<D> | null | undefined
607
+ $gantt: VxeGanttConstructor<D> | null | undefined
608
+ }) => number)
609
+ message?: string | ((params: {
610
+ data: any
611
+ $table: VxeTableConstructor<D>
612
+ $grid: VxeGridConstructor<D> | null | undefined
613
+ $gantt: VxeGanttConstructor<D> | null | undefined
614
+ }) => string)
615
+ }
616
+ }
617
+
618
+ export interface VxeGridEventProps<D = any> {
619
+ onReady?: VxeGridEvents.Ready<D>
620
+ onInitRendered?: VxeGridEvents.InitRendered<D>
621
+ onDataRendered?: VxeGridEvents.DataRendered<D>
622
+ onKeydownStart?: VxeGridEvents.KeydownStart<D>
623
+ onKeydown?: VxeGridEvents.Keydown<D>
624
+ onKeydownEnd?: VxeGridEvents.KeydownEnd<D>
625
+ onPaste?: VxeGridEvents.Paste<D>
626
+ onCopy?: VxeGridEvents.Copy<D>
627
+ onCut?: VxeGridEvents.Cut<D>
628
+ onUndo?: VxeGridEvents.Undo<D>
629
+ onRedo?: VxeGridEvents.Redo<D>
630
+ onContextMenu?: VxeGridEvents.ContextMenu<D>
631
+ onColumnsChange?: VxeGridEvents.ColumnsChange<D>
632
+ onDataChange?: VxeGridEvents.DataChange<D>
633
+ onFooterDataChange?: VxeGridEvents.FooterDataChange<D>
634
+ onCurrentRowChange?: VxeGridEvents.CurrentRowChange<D>
635
+ onCurrentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
636
+ onCurrentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
637
+ onCurrentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
638
+ onRadioChange?: VxeGridEvents.RadioChange<D>
639
+ onCheckboxChange?: VxeGridEvents.CheckboxChange<D>
640
+ onCheckboxAll?: VxeGridEvents.CheckboxAll<D>
641
+ onCheckboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
642
+ onCheckboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
643
+ onCheckboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
644
+ onCheckboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
645
+ onCellClick?: VxeGridEvents.CellClick<D>
646
+ onCellDblclick?: VxeGridEvents.CellDblclick<D>
647
+ onCellMenu?: VxeGridEvents.CellMenu<D>
648
+ onCellMouseenter?: VxeGridEvents.CellMouseenter<D>
649
+ onCellMouseleave?: VxeGridEvents.CellMouseleave<D>
650
+ onHeaderCellClick?: VxeGridEvents.HeaderCellClick<D>
651
+ onHeaderCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
652
+ onHeaderCellMenu?: VxeGridEvents.HeaderCellMenu<D>
653
+ onFooterCellClick?: VxeGridEvents.FooterCellClick<D>
654
+ onFooterCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
655
+ onFooterCellMenu?: VxeGridEvents.FooterCellMenu<D>
656
+ onSortChange?: VxeGridEvents.SortChange<D>
657
+ onClearSort?: VxeGridEvents.ClearSort<D>
658
+ onClearAllSort?: VxeGridEvents.ClearAllSort<D>
659
+ onFilterChange?: VxeGridEvents.FilterChange<D>
660
+ onClearFilter?: VxeGridEvents.ClearFilter<D>
661
+ onClearAllFilter?: VxeGridEvents.ClearAllFilter<D>
662
+ onFilterVisible?: VxeGridEvents.FilterVisible<D>
663
+ onResizableChange?: VxeGridEvents.ResizableChange<D>
664
+ onToggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
665
+ onToggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
666
+ onToggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
667
+ onMenuClick?: VxeGridEvents.MenuClick<D>
668
+ onEditClosed?: VxeGridEvents.EditClosed<D>
669
+ onEditActivated?: VxeGridEvents.EditActivated<D>
670
+ onEditDisabled?: VxeGridEvents.EditDisabled<D>
671
+ onValidError?: VxeGridEvents.ValidError<D>
672
+ onScroll?: VxeGridEvents.Scroll<D>
673
+ onScrollBoundary?: VxeGridEvents.ScrollBoundary<D>
674
+ onCustom?: VxeGridEvents.Custom<D>
675
+ onRowDragstart?: VxeGridEvents.RowDragstart<D>
676
+ onRowDragover?: VxeGridEvents.RowDragover<D>
677
+ onRowDragend?: VxeGridEvents.RowDragend<D>
678
+ onRowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
679
+ onRowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
680
+ onColumnDragstart?: VxeGridEvents.ColumnDragstart<D>
681
+ onColumnDragover?: VxeGridEvents.ColumnDragover<D>
682
+ onColumnDragend?: VxeGridEvents.ColumnDragend<D>
683
+ onEnterAppendRow?: VxeGridEvents.EnterAppendRow<D>
684
+ onTabAppendRow?: VxeGridEvents.TabAppendRow<D>
685
+
686
+ // grid
687
+ onProxyQuery?: VxeGridEvents.ProxyQuery<D>
688
+ onProxyDelete?: VxeGridEvents.ProxyDelete<D>
689
+ onProxySave?: VxeGridEvents.ProxySave<D>
690
+ onPageChange?: VxeGridEvents.PageChange<D>
691
+ onFormSubmit?: VxeGridEvents.FormSubmit<D>
692
+ onFormSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
693
+ onFormReset?: VxeGridEvents.FormReset<D>
694
+ onFormCollapse?: VxeGridEvents.FormCollapse<D>
695
+ onToolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
696
+ onToolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
697
+ onZoom?: VxeGridEvents.Zoom<D>
698
+
699
+ /**
700
+ * 已废弃,请使用 onEditActivated
701
+ * @deprecated
702
+ */
703
+ onEditActived?: VxeGridEvents.EditActivated<D>
704
+ }
705
+
706
+ export interface VxeGridListeners<D = any> {
707
+ ready?: VxeGridEvents.Ready<D>
708
+ initRendered?: VxeGridEvents.InitRendered<D>
709
+ dataRendered?: VxeGridEvents.DataRendered<D>
710
+ keydownStart?: VxeGridEvents.KeydownStart<D>
711
+ keydown?: VxeGridEvents.Keydown<D>
712
+ keydownEnd?: VxeGridEvents.KeydownEnd<D>
713
+ paste?: VxeGridEvents.Paste<D>
714
+ copy?: VxeGridEvents.Copy<D>
715
+ cut?: VxeGridEvents.Cut<D>
716
+ undo?: VxeGridEvents.Undo<D>
717
+ redo?: VxeGridEvents.Redo<D>
718
+ contextMenu?: VxeGridEvents.ContextMenu<D>
719
+ columnsChange?: VxeGridEvents.ColumnsChange<D>
720
+ dataChange?: VxeGridEvents.DataChange<D>
721
+ footerDataChange?: VxeGridEvents.FooterDataChange<D>
722
+ currentRowChange?: VxeGridEvents.CurrentRowChange<D>
723
+ currentRowDisabled?: VxeGridEvents.CurrentRowDisabled<D>
724
+ currentColumnChange?: VxeGridEvents.CurrentColumnChange<D>
725
+ currentColumnDisabled?: VxeGridEvents.CurrentColumnDisabled<D>
726
+ radioChange?: VxeGridEvents.RadioChange<D>
727
+ checkboxChange?: VxeGridEvents.CheckboxChange<D>
728
+ checkboxAll?: VxeGridEvents.CheckboxAll<D>
729
+ checkboxRangeStart?: VxeGridEvents.CheckboxRangeStart<D>
730
+ checkboxRangeChange?: VxeGridEvents.CheckboxRangeChange<D>
731
+ checkboxRangeEnd?: VxeGridEvents.CheckboxRangeEnd<D>
732
+ checkboxRangeSelect?: VxeGridEvents.CheckboxRangeSelect<D>
733
+ cellClick?: VxeGridEvents.CellClick<D>
734
+ cellDblclick?: VxeGridEvents.CellDblclick<D>
735
+ cellMenu?: VxeGridEvents.CellMenu<D>
736
+ cellMouseenter?: VxeGridEvents.CellMouseenter<D>
737
+ cellMouseleave?: VxeGridEvents.CellMouseleave<D>
738
+ headerCellClick?: VxeGridEvents.HeaderCellClick<D>
739
+ headerCellDblclick?: VxeGridEvents.HeaderCellDblclick<D>
740
+ headerCellMenu?: VxeGridEvents.HeaderCellMenu<D>
741
+ footerCellClick?: VxeGridEvents.FooterCellClick<D>
742
+ footerCellDblclick?: VxeGridEvents.FooterCellDblclick<D>
743
+ footerCellMenu?: VxeGridEvents.FooterCellMenu<D>
744
+ sortChange?: VxeGridEvents.SortChange<D>
745
+ clearSort?: VxeGridEvents.ClearSort<D>
746
+ clearAllSort?: VxeGridEvents.ClearAllSort<D>
747
+ filterChange?: VxeGridEvents.FilterChange<D>
748
+ clearFilter?: VxeGridEvents.ClearFilter<D>
749
+ clearAllFilter?: VxeGridEvents.ClearAllFilter<D>
750
+ filterVisible?: VxeGridEvents.FilterVisible<D>
751
+ resizableChange?: VxeGridEvents.ResizableChange<D>
752
+ toggleRowGroupExpand?: VxeGridEvents.ToggleRowGroupExpand<D>
753
+ toggleRowExpand?: VxeGridEvents.ToggleRowExpand<D>
754
+ toggleTreeExpand?: VxeGridEvents.ToggleTreeExpand<D>
755
+ menuClick?: VxeGridEvents.MenuClick<D>
756
+ editClosed?: VxeGridEvents.EditClosed<D>
757
+ editActivated?: VxeGridEvents.EditActivated<D>
758
+ editDisabled?: VxeGridEvents.EditDisabled<D>
759
+ validError?: VxeGridEvents.ValidError<D>
760
+ scroll?: VxeGridEvents.Scroll<D>
761
+ scrollBoundary?: VxeGridEvents.ScrollBoundary<D>
762
+ custom?: VxeGridEvents.Custom<D>
763
+ rowDragstart?: VxeGridEvents.RowDragstart<D>
764
+ rowDragover?: VxeGridEvents.RowDragover<D>
765
+ rowDragend?: VxeGridEvents.RowDragend<D>
766
+ rowRemoveDragend?: VxeGridEvents.RowRemoveDragend<D>
767
+ rowInsertDragend?: VxeGridEvents.RowInsertDragend<D>
768
+ columnDragstart?: VxeGridEvents.ColumnDragstart<D>
769
+ columnDragover?: VxeGridEvents.ColumnDragover<D>
770
+ columnDragend?: VxeGridEvents.ColumnDragend<D>
771
+ enterAppendRow?: VxeGridEvents.EnterAppendRow<D>
772
+ tabAppendRow?: VxeGridEvents.TabAppendRow<D>
773
+
774
+ // grid
775
+ proxyQuery?: VxeGridEvents.ProxyQuery<D>
776
+ proxyDelete?: VxeGridEvents.ProxyDelete<D>
777
+ proxySave?: VxeGridEvents.ProxySave<D>
778
+ pageChange?: VxeGridEvents.PageChange<D>
779
+ formSubmit?: VxeGridEvents.FormSubmit<D>
780
+ formSubmitInvalid?: VxeGridEvents.FormSubmitInvalid<D>
781
+ formReset?: VxeGridEvents.FormReset<D>
782
+ formCollapse?: VxeGridEvents.FormCollapse<D>
783
+ toolbarButtonClick?: VxeGridEvents.ToolbarButtonClick<D>
784
+ toolbarToolClick?: VxeGridEvents.ToolbarToolClick<D>
785
+ zoom?: VxeGridEvents.Zoom<D>
786
+
787
+ /**
788
+ * 已废弃,请使用 editActivated
789
+ * @deprecated
790
+ */
791
+ editActived?: VxeGridEvents.EditActivated<D>
792
+ }
793
+
794
+ export namespace VxeGridEvents {
795
+ export type Ready<D = any> = (params: VxeGridDefines.ReadyEventParams<D>) => void
796
+ export type InitRendered<D = any> = (params: VxeGridDefines.InitRenderedEventParams<D>) => void
797
+ export type DataRendered<D = any> = (params: VxeGridDefines.DataRenderedEventParams<D>) => void
798
+ export type KeydownStart<D = any> = (params: VxeGridDefines.KeydownStartEventParams<D>) => void
799
+ export type Keydown<D = any> = (params: VxeGridDefines.KeydownEventParams<D>) => void
800
+ export type KeydownEnd<D = any> = (params: VxeGridDefines.KeydownEndEventParams<D>) => void
801
+ export type Paste<D = any> = (params: VxeGridDefines.PasteEventParams<D>) => void
802
+ export type Copy<D = any> = (params: VxeGridDefines.CopyEventParams<D>) => void
803
+ export type Cut<D = any> = (params: VxeGridDefines.CutEventParams<D>) => void
804
+ export type Undo<D = any> = (params: VxeGridDefines.UndoEventParams<D>) => void
805
+ export type Redo<D = any> = (params: VxeGridDefines.RedoEventParams<D>) => void
806
+ export type ContextMenu<D = any> = (params: VxeGridDefines.ContextMenuEventParams<D>) => void
807
+ export type ColumnsChange<D = any> = (params: VxeGridDefines.ColumnsChangeEventParams<D>) => void
808
+ export type DataChange<D = any> = (params: VxeGridDefines.DataChangeEventParams<D>) => void
809
+ export type FooterDataChange<D = any> = (params: VxeGridDefines.FooterDataChangeEventParams<D>) => void
810
+ export type CurrentRowChange<D = any> = (params: VxeGridDefines.CurrentRowChangeParams<D>) => void
811
+ export type CurrentRowDisabled<D = any> = (params: VxeGridDefines.CurrentRowDisabledParams<D>) => void
812
+ export type CurrentColumnChange<D = any> = (params: VxeGridDefines.CurrentColumnChangeParams<D>) => void
813
+ export type CurrentColumnDisabled<D = any> = (params: VxeGridDefines.CurrentColumnDisabledParams<D>) => void
814
+ export type RadioChange<D = any> = (params: VxeGridDefines.RadioChangeEventParams<D>) => void
815
+ export type CheckboxChange<D = any> = (params: VxeGridDefines.CheckboxChangeEventParams<D>) => void
816
+ export type CheckboxAll<D = any> = (params: VxeGridDefines.CheckboxAllEventParams<D>) => void
817
+ export type CheckboxRangeStart<D = any> = (params: VxeGridDefines.CheckboxRangeStartEventParams<D>) => void
818
+ export type CheckboxRangeChange<D = any> = (params: VxeGridDefines.CheckboxRangeChangeEventParams<D>) => void
819
+ export type CheckboxRangeEnd<D = any> = (params: VxeGridDefines.CheckboxRangeEndEventParams<D>) => void
820
+ export type CheckboxRangeSelect<D = any> = (params: VxeGridDefines.CheckboxRangeSelectEventParams<D>) => void
821
+ export type CellClick<D = any> = (params: VxeGridDefines.CellClickEventParams<D>) => void
822
+ export type CellDblclick<D = any> = (params: VxeGridDefines.CellDblclickEventParams<D>) => void
823
+ export type CellMenu<D = any> = (params: VxeGridDefines.CellMenuEventParams<D>) => void
824
+ export type CellMouseenter<D = any> = (params: VxeGridDefines.CellMouseenterEventParams<D>) => void
825
+ export type CellMouseleave<D = any> = (params: VxeGridDefines.CellMouseleaveEventParams<D>) => void
826
+ export type HeaderCellClick<D = any> = (params: VxeGridDefines.HeaderCellClickEventParams<D>) => void
827
+ export type HeaderCellDblclick<D = any> = (params: VxeGridDefines.HeaderCellDblclickEventParams<D>) => void
828
+ export type HeaderCellMenu<D = any> = (params: VxeGridDefines.HeaderCellMenuEventParams<D>) => void
829
+ export type FooterCellClick<D = any> = (params: VxeGridDefines.FooterCellClickEventParams<D>) => void
830
+ export type FooterCellDblclick<D = any> = (params: VxeGridDefines.FooterCellDblclickEventParams<D>) => void
831
+ export type FooterCellMenu<D = any> = (params: VxeGridDefines.FooterCellMenuEventParams<D>) => void
832
+ export type SortChange<D = any> = (params: VxeGridDefines.SortChangeEventParams<D>) => void
833
+ export type ClearSort<D = any> = (params: VxeGridDefines.ClearSortEventParams<D>) => void
834
+ export type ClearAllSort<D = any> = (params: VxeGridDefines.ClearAllSortEventParams<D>) => void
835
+ export type FilterChange<D = any> = (params: VxeGridDefines.FilterChangeEventParams<D>) => void
836
+ export type ClearFilter<D = any> = (params: VxeGridDefines.ClearFilterEventParams<D>) => void
837
+ export type ClearAllFilter<D = any> = (params: VxeGridDefines.ClearAllFilterEventParams<D>) => void
838
+ export type FilterVisible<D = any> = (params: VxeGridDefines.FilterVisibleEventParams<D>) => void
839
+ export type ResizableChange<D = any> = (params: VxeGridDefines.ResizableChangeEventParams<D>) => void
840
+ export type ToggleRowGroupExpand<D = any> = (params: VxeGridDefines.ToggleRowGroupExpandEventParams<D>) => void
841
+ export type ToggleRowExpand<D = any> = (params: VxeGridDefines.ToggleRowExpandEventParams<D>) => void
842
+ export type ToggleTreeExpand<D = any> = (params: VxeGridDefines.ToggleTreeExpandEventParams<D>) => void
843
+ export type MenuClick<D = any> = (params: VxeGridDefines.MenuClickEventParams<D>) => void
844
+ export type EditClosed<D = any> = (params: VxeGridDefines.EditClosedEventParams<D>) => void
845
+ export type EditActivated<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
846
+ export type EditDisabled<D = any> = (params: VxeGridDefines.EditDisabledEventParams<D>) => void
847
+ export type ValidError<D = any> = (params: VxeGridDefines.ValidErrorEventParams<D>) => void
848
+ export type Scroll<D = any> = (params: VxeGridDefines.ScrollEventParams<D>) => void
849
+ export type ScrollBoundary<D = any> = (params: VxeGridDefines.ScrollBoundaryEventParams<D>) => void
850
+ export type Custom<D = any> = (params: VxeGridDefines.CustomEventParams<D>) => void
851
+ export type RowDragstart<D = any> = (params: VxeGridDefines.RowDragstartEventParams<D>) => void
852
+ export type RowDragover<D = any> = (params: VxeGridDefines.RowDragoverEventParams<D>) => void
853
+ export type RowDragend<D = any> = (params: VxeGridDefines.RowDragendEventParams<D>) => void
854
+ export type RowRemoveDragend<D = any> = (params: VxeGridDefines.RowRemoveDragendEventParams<D>) => void
855
+ export type RowInsertDragend<D = any> = (params: VxeGridDefines.RowInsertDragendEventParams<D>) => void
856
+ export type ColumnDragstart<D = any> = (params: VxeGridDefines.ColumnDragstartEventParams<D>) => void
857
+ export type ColumnDragover<D = any> = (params: VxeGridDefines.ColumnDragoverEventParams<D>) => void
858
+ export type ColumnDragend<D = any> = (params: VxeGridDefines.ColumnDragendEventParams<D>) => void
859
+ export type EnterAppendRow<D = any> = (params: VxeGridDefines.EnterAppendRowEventParams<D>) => void
860
+ export type TabAppendRow<D = any> = (params: VxeGridDefines.TabAppendRowEventParams<D>) => void
861
+
862
+ export type ProxyQuery<D = any> = (params: VxeGridDefines.ProxyQueryEventParams<D>) => void
863
+ export type ProxyDelete<D = any> = (params: VxeGridDefines.ProxyDeleteEventParams<D>) => void
864
+ export type ProxySave<D = any> = (params: VxeGridDefines.ProxySaveEventParams<D>) => void
865
+ export type PageChange<D = any> = (params: VxeGridDefines.PageChangeEventParams<D>) => void
866
+ export type FormSubmit<D = any> = (params: VxeGridDefines.FormSubmitEventParams<D>) => void
867
+ export type FormSubmitInvalid<D = any> = (params: VxeGridDefines.FormSubmitInvalidEventParams<D>) => void
868
+ export type FormReset<D = any> = (params: VxeGridDefines.FormResetEventParams<D>) => void
869
+ export type FormCollapse<D = any> = (params: VxeGridDefines.FormCollapseEventParams<D>) => void
870
+ export type ToolbarButtonClick<D = any> = (params: VxeGridDefines.ToolbarButtonClickEventParams<D>) => void
871
+ export type ToolbarToolClick<D = any> = (params: VxeGridDefines.ToolbarToolClickEventParams<D>) => void
872
+ export type Zoom<D = any> = (params: VxeGridDefines.ZoomEventParams<D>) => void
873
+
874
+ /**
875
+ * 已废弃,请使用 EditActivated
876
+ * @deprecated
877
+ */
878
+ export type EditActived<D = any> = (params: VxeGridDefines.EditActivatedEventParams<D>) => void
879
+ }
880
+
881
+ export namespace VxeGridSlotTypes {
882
+ export interface DefaultSlotParams<D = any> {
883
+ $table: VxeTableConstructor<D>
884
+ $grid: VxeGridConstructor<D> | null | undefined
885
+ $gantt: VxeGanttConstructor<D> | null | undefined
886
+ rowid: string
887
+ /**
888
+ * 当前行对象,支持数据双向绑定
889
+ */
890
+ row: D
891
+ /**
892
+ * 相对于 data 中的索引,等同于 getRowIndex(row)
893
+ */
894
+ rowIndex: number
895
+ /**
896
+ * 相对于可视区渲染中的行索引,等同于 getVMRowIndex(row)
897
+ */
898
+ $rowIndex: number
899
+ /**
900
+ * 相对于当前表格数据的索引,等同于 getVTRowIndex(row)
901
+ */
902
+ _rowIndex: number
903
+ /**
904
+ * 当前列对象
905
+ */
906
+ column: VxeTableDefines.ColumnInfo<D>
907
+ /**
908
+ * 相对于 columns 中的索引,等同于 getTColumnIndex(column)
909
+ */
910
+ columnIndex: number
911
+ /**
912
+ * 相对于可视区渲染中的列索引,等同于 getVMColumnIndex(column)
913
+ */
914
+ $columnIndex: number
915
+ /**
916
+ * 相对于当前表格列的索引,等同于 getVTColumnIndex(column)
917
+ */
918
+ _columnIndex: number
919
+
920
+ option: VxeColumnPropTypes.FilterItem
921
+
922
+ type: string
923
+ fixed: VxeColumnPropTypes.Fixed
924
+ checked: boolean
925
+ indeterminate: boolean
926
+ seq: string | number
927
+ level: number
928
+ isEdit: boolean
929
+ isHidden: boolean
930
+
931
+ // 混用多组件不具名插槽
932
+ field: string
933
+ item: any
934
+ data: any
935
+ tooltipContent: string
936
+ groupContent: string
937
+ groupField: string
938
+ childCount: number
939
+ groupValues: number
940
+ aggValue: number
941
+
942
+ /**
943
+ * @deprecated
944
+ * @private
945
+ */
946
+ visibleData: D[]
947
+ /**
948
+ * 已废弃
949
+ * @deprecated
950
+ */
951
+ items: any[]
952
+
953
+ [key: string]: any
954
+ }
955
+
956
+ export interface BaseSlotParams<D = any> {
957
+ $table: VxeTableConstructor<D>
958
+ $grid: VxeGridConstructor<D> | null | undefined
959
+ $gantt: VxeGanttConstructor<D> | null | undefined
960
+ }
961
+ export interface EmptySlotParams<D = any> extends BaseSlotParams<D> {}
962
+ export interface LoadingSlotParams<D = any> extends BaseSlotParams<D> {}
963
+ export interface FormSlotParams<D = any> extends BaseSlotParams<D> {}
964
+ export interface ToolbarSlotParams<D = any> extends BaseSlotParams<D> {}
965
+ export interface TopSlotParams<D = any> extends BaseSlotParams<D> {}
966
+ export interface BottomSlotParams<D = any> extends BaseSlotParams<D> {}
967
+ export interface LeftSlotParams<D = any> extends BaseSlotParams<D> {}
968
+ export interface RightSlotParams<D = any> extends BaseSlotParams<D> {}
969
+ export interface AsideLeftSlotParams<D = any> extends BaseSlotParams<D> {}
970
+ export interface AsideRightSlotParams<D = any> extends BaseSlotParams<D> {}
971
+ export interface PagerSlotParams<D = any> extends BaseSlotParams<D> {}
972
+ export interface RowDragIconSlotParams<D = any> extends VxeTableSlotTypes.RowDragIconSlotParams<D> {}
973
+ export interface ColumnDragIconSlotParams<D = any> extends VxeTableSlotTypes.ColumnDragIconSlotParams<D> {}
974
+ }
975
+
976
+ export interface VxeGridSlots<D = any> {
977
+ [key: string]: ((params: VxeGridSlotTypes.DefaultSlotParams<D>) => any) | undefined
978
+
979
+ /**
980
+ * 自定义空数据时显示模板
981
+ */
982
+ empty?(params: VxeGridSlotTypes.EmptySlotParams<D>): any
983
+ /**
984
+ * 自定义加载中模板
985
+ */
986
+ loading?(params: VxeGridSlotTypes.LoadingSlotParams<D>): any
987
+ /**
988
+ * 自定义表单模板
989
+ */
990
+ form?(params: VxeGridSlotTypes.FormSlotParams<D>): any
991
+ /**
992
+ * 自定义工具栏模板
993
+ */
994
+ toolbar?(params: VxeGridSlotTypes.ToolbarSlotParams<D>): any
995
+ /**
996
+ * 自定义表格顶部模板
997
+ */
998
+ top?(params: VxeGridSlotTypes.TopSlotParams<D>): any
999
+ /**
1000
+ * 自定义表格底部模板
1001
+ */
1002
+ bottom?(params: VxeGridSlotTypes.BottomSlotParams<D>): any
1003
+ /**
1004
+ * 自定义表格左边模板
1005
+ */
1006
+ left?(params: VxeGridSlotTypes.LeftSlotParams<D>): any
1007
+ /**
1008
+ * 自定义表格边侧模板
1009
+ */
1010
+ right?(params: VxeGridSlotTypes.RightSlotParams<D>): any
1011
+ /**
1012
+ * 自定义左侧模板
1013
+ */
1014
+ asideLeft?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1015
+ // 'aside-left'?(params: VxeGridSlotTypes.AsideLeftSlotParams<D>): any
1016
+ /**
1017
+ * 自定义右侧模板
1018
+ */
1019
+ asideRight?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1020
+ // 'aside-right'?(params: VxeGridSlotTypes.AsideRightSlotParams<D>): any
1021
+ /**
1022
+ * 自定义分页模板
1023
+ */
1024
+ pager?(params: VxeGridSlotTypes.PagerSlotParams<D>): any
1025
+
1026
+ /**
1027
+ * 只对 row-config.drag 开启后有效,自定义行拖拽按钮图标
1028
+ */
1029
+ rowDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1030
+ // 'row-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D>): any
1031
+
1032
+ /**
1033
+ * 只对 column-config.drag 开启后有效,自定义列拖拽按钮图标
1034
+ */
1035
+ columnDragIcon?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1036
+ // 'column-drag-icon'?(params: VxeGridSlotTypes.RowDragIconSlotParams<D> | VxeGridSlotTypes.ColumnDragIconSlotParams<D>): any
1037
+ }
1038
+
1039
+ export const Grid: typeof VxeGrid
1040
+ export default VxeGrid