vxe-pc-ui 4.14.6 → 4.14.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (611) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +72 -72
  3. package/README.ja-JP.md +72 -72
  4. package/README.md +364 -364
  5. package/README.zh-TW.md +73 -73
  6. package/es/checkbox/src/button.js +26 -5
  7. package/es/checkbox/src/checkbox.js +26 -5
  8. package/es/checkbox/src/group.js +23 -3
  9. package/es/checkbox/style.css +6 -3
  10. package/es/checkbox/style.min.css +1 -1
  11. package/es/language/ar-EG.js +4 -0
  12. package/es/language/de-DE.js +4 -0
  13. package/es/language/en-US.js +4 -0
  14. package/es/language/es-ES.js +4 -0
  15. package/es/language/fr-FR.js +4 -0
  16. package/es/language/hu-HU.js +4 -0
  17. package/es/language/hy-AM.js +4 -0
  18. package/es/language/id-ID.js +4 -0
  19. package/es/language/it-IT.js +4 -0
  20. package/es/language/ja-JP.js +4 -0
  21. package/es/language/ko-KR.js +4 -0
  22. package/es/language/ms-MY.js +4 -0
  23. package/es/language/nb-NO.js +4 -0
  24. package/es/language/pt-BR.js +4 -0
  25. package/es/language/ru-RU.js +4 -0
  26. package/es/language/th-TH.js +4 -0
  27. package/es/language/ug-CN.js +4 -0
  28. package/es/language/uk-UA.js +4 -0
  29. package/es/language/uz-UZ.js +4 -0
  30. package/es/language/vi-VN.js +4 -0
  31. package/es/language/zh-CHT.js +4 -0
  32. package/es/language/zh-CN.js +4 -0
  33. package/es/radio/src/button.js +27 -5
  34. package/es/radio/src/group.js +17 -2
  35. package/es/radio/src/radio.js +27 -5
  36. package/es/radio/style.css +5 -3
  37. package/es/radio/style.min.css +1 -1
  38. package/es/style.css +1 -1
  39. package/es/style.min.css +1 -1
  40. package/es/switch/src/switch.js +19 -11
  41. package/es/tree/style.css +11 -6
  42. package/es/tree/style.min.css +1 -1
  43. package/es/ui/index.js +1 -1
  44. package/es/ui/src/log.js +1 -1
  45. package/es/vxe-checkbox/style.css +6 -3
  46. package/es/vxe-checkbox/style.min.css +1 -1
  47. package/es/vxe-radio/style.css +5 -3
  48. package/es/vxe-radio/style.min.css +1 -1
  49. package/es/vxe-tree/style.css +11 -6
  50. package/es/vxe-tree/style.min.css +1 -1
  51. package/lib/checkbox/src/button.js +26 -3
  52. package/lib/checkbox/src/button.min.js +1 -1
  53. package/lib/checkbox/src/checkbox.js +26 -3
  54. package/lib/checkbox/src/checkbox.min.js +1 -1
  55. package/lib/checkbox/src/group.js +25 -3
  56. package/lib/checkbox/src/group.min.js +1 -1
  57. package/lib/checkbox/style/style.css +6 -3
  58. package/lib/checkbox/style/style.min.css +1 -1
  59. package/lib/index.umd.js +2446 -2376
  60. package/lib/index.umd.min.js +1 -1
  61. package/lib/language/ar-EG.js +4 -0
  62. package/lib/language/ar-EG.min.js +1 -1
  63. package/lib/language/ar-EG.umd.js +4 -0
  64. package/lib/language/de-DE.js +4 -0
  65. package/lib/language/de-DE.min.js +1 -1
  66. package/lib/language/de-DE.umd.js +4 -0
  67. package/lib/language/en-US.js +4 -0
  68. package/lib/language/en-US.min.js +1 -1
  69. package/lib/language/en-US.umd.js +4 -0
  70. package/lib/language/es-ES.js +4 -0
  71. package/lib/language/es-ES.min.js +1 -1
  72. package/lib/language/es-ES.umd.js +4 -0
  73. package/lib/language/fr-FR.js +4 -0
  74. package/lib/language/fr-FR.min.js +1 -1
  75. package/lib/language/fr-FR.umd.js +4 -0
  76. package/lib/language/hu-HU.js +4 -0
  77. package/lib/language/hu-HU.min.js +1 -1
  78. package/lib/language/hu-HU.umd.js +4 -0
  79. package/lib/language/hy-AM.js +4 -0
  80. package/lib/language/hy-AM.min.js +1 -1
  81. package/lib/language/hy-AM.umd.js +4 -0
  82. package/lib/language/id-ID.js +4 -0
  83. package/lib/language/id-ID.min.js +1 -1
  84. package/lib/language/id-ID.umd.js +4 -0
  85. package/lib/language/it-IT.js +4 -0
  86. package/lib/language/it-IT.min.js +1 -1
  87. package/lib/language/it-IT.umd.js +4 -0
  88. package/lib/language/ja-JP.js +4 -0
  89. package/lib/language/ja-JP.min.js +1 -1
  90. package/lib/language/ja-JP.umd.js +4 -0
  91. package/lib/language/ko-KR.js +4 -0
  92. package/lib/language/ko-KR.min.js +1 -1
  93. package/lib/language/ko-KR.umd.js +4 -0
  94. package/lib/language/ms-MY.js +4 -0
  95. package/lib/language/ms-MY.min.js +1 -1
  96. package/lib/language/ms-MY.umd.js +4 -0
  97. package/lib/language/nb-NO.js +4 -0
  98. package/lib/language/nb-NO.min.js +1 -1
  99. package/lib/language/nb-NO.umd.js +4 -0
  100. package/lib/language/pt-BR.js +4 -0
  101. package/lib/language/pt-BR.min.js +1 -1
  102. package/lib/language/pt-BR.umd.js +4 -0
  103. package/lib/language/ru-RU.js +4 -0
  104. package/lib/language/ru-RU.min.js +1 -1
  105. package/lib/language/ru-RU.umd.js +4 -0
  106. package/lib/language/th-TH.js +4 -0
  107. package/lib/language/th-TH.min.js +1 -1
  108. package/lib/language/th-TH.umd.js +4 -0
  109. package/lib/language/ug-CN.js +4 -0
  110. package/lib/language/ug-CN.min.js +1 -1
  111. package/lib/language/ug-CN.umd.js +4 -0
  112. package/lib/language/uk-UA.js +4 -0
  113. package/lib/language/uk-UA.min.js +1 -1
  114. package/lib/language/uk-UA.umd.js +4 -0
  115. package/lib/language/uz-UZ.js +4 -0
  116. package/lib/language/uz-UZ.min.js +1 -1
  117. package/lib/language/uz-UZ.umd.js +4 -0
  118. package/lib/language/vi-VN.js +4 -0
  119. package/lib/language/vi-VN.min.js +1 -1
  120. package/lib/language/vi-VN.umd.js +4 -0
  121. package/lib/language/zh-CHT.js +4 -0
  122. package/lib/language/zh-CHT.min.js +1 -1
  123. package/lib/language/zh-CHT.umd.js +4 -0
  124. package/lib/language/zh-CN.js +4 -0
  125. package/lib/language/zh-CN.min.js +1 -1
  126. package/lib/language/zh-CN.umd.js +4 -0
  127. package/lib/radio/src/button.js +27 -3
  128. package/lib/radio/src/button.min.js +1 -1
  129. package/lib/radio/src/group.js +19 -2
  130. package/lib/radio/src/group.min.js +1 -1
  131. package/lib/radio/src/radio.js +27 -3
  132. package/lib/radio/src/radio.min.js +1 -1
  133. package/lib/radio/style/style.css +5 -3
  134. package/lib/radio/style/style.min.css +1 -1
  135. package/lib/style.css +1 -1
  136. package/lib/style.min.css +1 -1
  137. package/lib/switch/src/switch.js +18 -10
  138. package/lib/switch/src/switch.min.js +1 -1
  139. package/lib/tree/style/style.css +11 -6
  140. package/lib/tree/style/style.min.css +1 -1
  141. package/lib/ui/index.js +1 -1
  142. package/lib/ui/index.min.js +1 -1
  143. package/lib/ui/src/log.js +1 -1
  144. package/lib/ui/src/log.min.js +1 -1
  145. package/lib/vxe-checkbox/style/style.css +6 -3
  146. package/lib/vxe-checkbox/style/style.min.css +1 -1
  147. package/lib/vxe-radio/style/style.css +5 -3
  148. package/lib/vxe-radio/style/style.min.css +1 -1
  149. package/lib/vxe-tree/style/style.css +11 -6
  150. package/lib/vxe-tree/style/style.min.css +1 -1
  151. package/package.json +88 -88
  152. package/packages/alert/index.ts +16 -16
  153. package/packages/alert/src/alert.ts +124 -124
  154. package/packages/anchor/index.ts +16 -16
  155. package/packages/anchor/src/anchor-link.ts +121 -121
  156. package/packages/anchor/src/anchor.ts +237 -237
  157. package/packages/anchor/src/util.ts +23 -23
  158. package/packages/anchor-link/index.ts +16 -16
  159. package/packages/avatar/index.ts +16 -16
  160. package/packages/avatar/src/avatar.ts +149 -149
  161. package/packages/backtop/index.ts +16 -16
  162. package/packages/backtop/src/backtop.ts +314 -314
  163. package/packages/badge/index.ts +16 -16
  164. package/packages/badge/src/badge.ts +100 -100
  165. package/packages/breadcrumb/index.ts +16 -16
  166. package/packages/breadcrumb/src/breadcrumb-item.ts +106 -106
  167. package/packages/breadcrumb/src/breadcrumb.ts +92 -92
  168. package/packages/breadcrumb-item/index.ts +16 -16
  169. package/packages/button/index.ts +16 -16
  170. package/packages/button/src/button-group.ts +110 -110
  171. package/packages/button/src/button.ts +841 -841
  172. package/packages/button-group/index.ts +16 -16
  173. package/packages/calendar/index.ts +16 -16
  174. package/packages/calendar/src/calendar.ts +1351 -1351
  175. package/packages/card/index.ts +16 -16
  176. package/packages/card/src/card.ts +175 -175
  177. package/packages/carousel/index.ts +16 -16
  178. package/packages/carousel/src/carousel-item.ts +102 -102
  179. package/packages/carousel/src/carousel.ts +414 -414
  180. package/packages/carousel/src/util.ts +21 -21
  181. package/packages/carousel-item/index.ts +16 -16
  182. package/packages/cascader/index.ts +16 -16
  183. package/packages/cascader/src/cascader.ts +741 -741
  184. package/packages/checkbox/index.ts +16 -16
  185. package/packages/checkbox/src/button.ts +165 -144
  186. package/packages/checkbox/src/checkbox.ts +176 -154
  187. package/packages/checkbox/src/group.ts +243 -222
  188. package/packages/checkbox-button/index.ts +16 -16
  189. package/packages/checkbox-group/index.ts +16 -16
  190. package/packages/col/index.ts +16 -16
  191. package/packages/collapse/index.ts +16 -16
  192. package/packages/collapse/src/collapse-pane.ts +114 -114
  193. package/packages/collapse/src/collapse.ts +284 -284
  194. package/packages/collapse/src/util.ts +21 -21
  195. package/packages/collapse-pane/index.ts +16 -16
  196. package/packages/color-picker/index.ts +16 -16
  197. package/packages/color-picker/src/color-picker.ts +1109 -1109
  198. package/packages/color-picker/src/util.ts +198 -198
  199. package/packages/components.ts +307 -307
  200. package/packages/context-menu/index.ts +54 -54
  201. package/packages/context-menu/src/context-menu.ts +681 -681
  202. package/packages/countdown/index.ts +16 -16
  203. package/packages/countdown/src/countdown.ts +262 -262
  204. package/packages/date-panel/index.ts +16 -16
  205. package/packages/date-panel/src/date-panel.ts +1809 -1809
  206. package/packages/date-panel/src/util.ts +244 -244
  207. package/packages/date-picker/index.ts +16 -16
  208. package/packages/date-picker/src/date-picker.ts +1071 -1071
  209. package/packages/date-range-picker/index.ts +16 -16
  210. package/packages/date-range-picker/src/date-range-picker.ts +1280 -1280
  211. package/packages/drawer/index.ts +77 -77
  212. package/packages/drawer/src/drawer.ts +657 -657
  213. package/packages/dynamics/index.ts +89 -89
  214. package/packages/empty/index.ts +16 -16
  215. package/packages/empty/src/empty.ts +100 -100
  216. package/packages/form/index.ts +16 -16
  217. package/packages/form/render/index.ts +598 -598
  218. package/packages/form/src/form-config-item.ts +72 -72
  219. package/packages/form/src/form-group.ts +86 -86
  220. package/packages/form/src/form-item.ts +174 -174
  221. package/packages/form/src/form.ts +987 -987
  222. package/packages/form/src/itemInfo.ts +80 -80
  223. package/packages/form/src/render.ts +387 -387
  224. package/packages/form/src/util.ts +93 -93
  225. package/packages/form-gather/index.ts +26 -26
  226. package/packages/form-group/index.ts +16 -16
  227. package/packages/form-item/index.ts +16 -16
  228. package/packages/icon/index.ts +16 -16
  229. package/packages/icon/src/icon.ts +75 -75
  230. package/packages/icon-picker/index.ts +16 -16
  231. package/packages/icon-picker/src/icon-picker.ts +626 -626
  232. package/packages/image/index.ts +16 -16
  233. package/packages/image/src/group.ts +153 -153
  234. package/packages/image/src/image.ts +298 -298
  235. package/packages/image/src/preview.ts +672 -672
  236. package/packages/image/src/util.ts +59 -59
  237. package/packages/image-group/index.ts +16 -16
  238. package/packages/image-preview/index.ts +19 -19
  239. package/packages/index.ts +4 -4
  240. package/packages/input/index.ts +16 -16
  241. package/packages/input/src/input.ts +2788 -2788
  242. package/packages/language/ar-EG.ts +844 -840
  243. package/packages/language/de-DE.ts +844 -840
  244. package/packages/language/en-US.ts +844 -840
  245. package/packages/language/es-ES.ts +844 -840
  246. package/packages/language/fr-FR.ts +844 -840
  247. package/packages/language/hu-HU.ts +844 -840
  248. package/packages/language/hy-AM.ts +844 -840
  249. package/packages/language/id-ID.ts +844 -840
  250. package/packages/language/it-IT.ts +844 -840
  251. package/packages/language/ja-JP.ts +844 -840
  252. package/packages/language/ko-KR.ts +844 -840
  253. package/packages/language/ms-MY.ts +844 -840
  254. package/packages/language/nb-NO.ts +844 -840
  255. package/packages/language/pt-BR.ts +844 -840
  256. package/packages/language/ru-RU.ts +844 -840
  257. package/packages/language/th-TH.ts +844 -840
  258. package/packages/language/ug-CN.ts +844 -840
  259. package/packages/language/uk-UA.ts +844 -840
  260. package/packages/language/uz-UZ.ts +844 -840
  261. package/packages/language/vi-VN.ts +844 -840
  262. package/packages/language/zh-CHT.ts +844 -840
  263. package/packages/language/zh-CN.ts +844 -840
  264. package/packages/language/zh-HK.ts +3 -3
  265. package/packages/language/zh-MO.ts +3 -3
  266. package/packages/language/zh-TC.ts +3 -3
  267. package/packages/language/zh-TW.ts +3 -3
  268. package/packages/layout-aside/index.ts +16 -16
  269. package/packages/layout-aside/src/layout-aside.ts +123 -123
  270. package/packages/layout-body/index.ts +16 -16
  271. package/packages/layout-body/src/layout-body.ts +142 -142
  272. package/packages/layout-container/index.ts +16 -16
  273. package/packages/layout-container/src/layout-container.ts +82 -82
  274. package/packages/layout-footer/index.ts +16 -16
  275. package/packages/layout-footer/src/layout-footer.ts +74 -74
  276. package/packages/layout-header/index.ts +16 -16
  277. package/packages/layout-header/src/layout-header.ts +73 -73
  278. package/packages/link/index.ts +16 -16
  279. package/packages/link/src/link.ts +161 -161
  280. package/packages/list/index.ts +16 -16
  281. package/packages/list/src/list.ts +442 -442
  282. package/packages/loading/index.ts +34 -34
  283. package/packages/loading/src/loading.ts +152 -152
  284. package/packages/mention/index.ts +16 -16
  285. package/packages/mention/src/mention.ts +71 -71
  286. package/packages/menu/index.ts +16 -16
  287. package/packages/menu/src/menu.ts +581 -581
  288. package/packages/modal/index.ts +136 -136
  289. package/packages/modal/src/modal.ts +1494 -1494
  290. package/packages/notice-bar/index.ts +16 -16
  291. package/packages/notice-bar/src/notice-bar.ts +181 -181
  292. package/packages/number-input/index.ts +16 -16
  293. package/packages/number-input/src/number-input.ts +1096 -1096
  294. package/packages/number-input/src/util.ts +12 -12
  295. package/packages/optgroup/index.ts +16 -16
  296. package/packages/option/index.ts +16 -16
  297. package/packages/pager/index.ts +16 -16
  298. package/packages/pager/src/pager.ts +769 -769
  299. package/packages/password-input/index.ts +16 -16
  300. package/packages/password-input/src/password-input.ts +378 -378
  301. package/packages/print/index.ts +18 -18
  302. package/packages/print/src/page-break.ts +92 -92
  303. package/packages/print/src/print.ts +272 -272
  304. package/packages/print/src/util.ts +284 -284
  305. package/packages/print-page-break/index.ts +16 -16
  306. package/packages/pulldown/index.ts +16 -16
  307. package/packages/pulldown/src/pulldown.ts +457 -457
  308. package/packages/radio/index.ts +16 -16
  309. package/packages/radio/src/button.ts +195 -173
  310. package/packages/radio/src/group.ts +229 -213
  311. package/packages/radio/src/radio.ts +203 -180
  312. package/packages/radio-button/index.ts +16 -16
  313. package/packages/radio-group/index.ts +16 -16
  314. package/packages/rate/index.ts +16 -16
  315. package/packages/rate/src/rate.ts +192 -192
  316. package/packages/result/index.ts +16 -16
  317. package/packages/result/src/result.ts +112 -112
  318. package/packages/row/index.ts +16 -16
  319. package/packages/row/src/col.ts +136 -136
  320. package/packages/row/src/row.ts +119 -119
  321. package/packages/segmented/index.ts +16 -16
  322. package/packages/segmented/src/segmented.ts +264 -264
  323. package/packages/select/index.ts +16 -16
  324. package/packages/select/src/optgroup.ts +49 -49
  325. package/packages/select/src/option-info.ts +20 -20
  326. package/packages/select/src/option.ts +47 -47
  327. package/packages/select/src/select.ts +1699 -1699
  328. package/packages/select/src/util.ts +47 -47
  329. package/packages/slider/index.ts +16 -16
  330. package/packages/slider/src/slider.ts +304 -304
  331. package/packages/split/index.ts +16 -16
  332. package/packages/split-pane/index.ts +17 -17
  333. package/packages/splitter/index.ts +16 -16
  334. package/packages/splitter/src/splitter-panel.ts +145 -145
  335. package/packages/splitter/src/splitter.ts +1009 -1009
  336. package/packages/splitter/src/util.ts +21 -21
  337. package/packages/splitter-panel/index.ts +16 -16
  338. package/packages/steps/index.ts +16 -16
  339. package/packages/steps/src/steps.ts +68 -68
  340. package/packages/switch/index.ts +16 -16
  341. package/packages/switch/src/switch.ts +245 -237
  342. package/packages/tab-pane/index.ts +16 -16
  343. package/packages/table-select/index.ts +16 -16
  344. package/packages/table-select/src/table-select.ts +800 -800
  345. package/packages/tabs/index.ts +16 -16
  346. package/packages/tabs/src/tab-pane.ts +117 -117
  347. package/packages/tabs/src/tabs.ts +940 -940
  348. package/packages/tabs/src/util.ts +21 -21
  349. package/packages/tag/index.ts +16 -16
  350. package/packages/tag/src/tag.ts +187 -187
  351. package/packages/text/index.ts +16 -16
  352. package/packages/text/src/text.ts +260 -260
  353. package/packages/text-ellipsis/index.ts +16 -16
  354. package/packages/text-ellipsis/src/text-ellipsis.ts +282 -282
  355. package/packages/textarea/index.ts +16 -16
  356. package/packages/textarea/src/textarea.ts +373 -373
  357. package/packages/timeline/index.ts +16 -16
  358. package/packages/timeline/src/timeline-item.ts +67 -67
  359. package/packages/timeline/src/timeline.ts +71 -71
  360. package/packages/timeline-item/index.ts +16 -16
  361. package/packages/tip/index.ts +19 -19
  362. package/packages/tip/src/tip.ts +129 -129
  363. package/packages/tooltip/index.ts +16 -16
  364. package/packages/tooltip/src/tooltip.ts +589 -589
  365. package/packages/tour/index.ts +16 -16
  366. package/packages/tour/src/tour.ts +71 -71
  367. package/packages/tree/index.ts +16 -16
  368. package/packages/tree/src/store.ts +14 -14
  369. package/packages/tree/src/tree.ts +2825 -2825
  370. package/packages/tree/src/util.ts +45 -45
  371. package/packages/tree-select/index.ts +16 -16
  372. package/packages/tree-select/src/tree-select.ts +979 -979
  373. package/packages/ui/index.ts +697 -697
  374. package/packages/ui/src/anime.ts +52 -52
  375. package/packages/ui/src/comp.ts +3 -3
  376. package/packages/ui/src/dom.ts +279 -279
  377. package/packages/ui/src/log.ts +6 -6
  378. package/packages/ui/src/utils.ts +49 -49
  379. package/packages/ui/src/vn.ts +39 -39
  380. package/packages/upload/index.ts +20 -20
  381. package/packages/upload/src/upload.ts +1919 -1919
  382. package/packages/upload/src/util.ts +109 -109
  383. package/packages/watermark/index.ts +31 -31
  384. package/packages/watermark/src/util.ts +176 -176
  385. package/packages/watermark/src/watermark.ts +168 -168
  386. package/styles/all.scss +90 -90
  387. package/styles/base.scss +16 -16
  388. package/styles/components/alert.scss +101 -101
  389. package/styles/components/anchor.scss +44 -44
  390. package/styles/components/avatar.scss +115 -115
  391. package/styles/components/backtop.scss +82 -82
  392. package/styles/components/badge.scss +45 -45
  393. package/styles/components/breadcrumb.scss +29 -29
  394. package/styles/components/button-group.scss +30 -30
  395. package/styles/components/button.scss +415 -415
  396. package/styles/components/calendar.scss +471 -471
  397. package/styles/components/card.scss +121 -121
  398. package/styles/components/carousel.scss +184 -184
  399. package/styles/components/cascader.scss +140 -140
  400. package/styles/components/checkbox-button.scss +57 -57
  401. package/styles/components/checkbox.scss +81 -81
  402. package/styles/components/collapse.scss +56 -56
  403. package/styles/components/color-picker.scss +409 -409
  404. package/styles/components/context-menu.scss +102 -102
  405. package/styles/components/countdown.scss +35 -35
  406. package/styles/components/date-panel.scss +505 -505
  407. package/styles/components/date-picker.scss +247 -247
  408. package/styles/components/date-range-picker.scss +252 -252
  409. package/styles/components/drawer.scss +298 -298
  410. package/styles/components/empty.scss +79 -79
  411. package/styles/components/form.scss +668 -668
  412. package/styles/components/icon-picker.scss +211 -211
  413. package/styles/components/icon.scss +1048 -1048
  414. package/styles/components/image-group.scss +2 -2
  415. package/styles/components/image-preview.scss +215 -215
  416. package/styles/components/image.scss +16 -16
  417. package/styles/components/input.scss +846 -846
  418. package/styles/components/layout-aside.scss +22 -22
  419. package/styles/components/layout-body.scss +14 -14
  420. package/styles/components/layout-container.scss +13 -13
  421. package/styles/components/layout-footer.scss +14 -14
  422. package/styles/components/layout-header.scss +11 -11
  423. package/styles/components/link.scss +115 -115
  424. package/styles/components/list.scss +40 -40
  425. package/styles/components/loading.scss +137 -137
  426. package/styles/components/menu.scss +150 -150
  427. package/styles/components/modal.scss +480 -480
  428. package/styles/components/notice-bar.scss +91 -91
  429. package/styles/components/number-input.scss +283 -283
  430. package/styles/components/old-icon.scss +4 -4
  431. package/styles/components/pager.scss +282 -282
  432. package/styles/components/password-input.scss +374 -374
  433. package/styles/components/print.scss +3 -3
  434. package/styles/components/pulldown.scss +75 -75
  435. package/styles/components/radio-button.scss +57 -57
  436. package/styles/components/radio.scss +79 -79
  437. package/styles/components/rate.scss +76 -76
  438. package/styles/components/result.scss +91 -91
  439. package/styles/components/row.scss +69 -69
  440. package/styles/components/segmented.scss +215 -215
  441. package/styles/components/select.scss +244 -244
  442. package/styles/components/slider.scss +139 -139
  443. package/styles/components/split.scss +1 -1
  444. package/styles/components/splitter.scss +318 -318
  445. package/styles/components/switch.scss +128 -128
  446. package/styles/components/table-select.scss +105 -105
  447. package/styles/components/tabs.scss +745 -745
  448. package/styles/components/tag.scss +184 -184
  449. package/styles/components/text-ellipsis.scss +130 -130
  450. package/styles/components/text.scss +123 -123
  451. package/styles/components/textarea.scss +106 -106
  452. package/styles/components/tip.scss +97 -97
  453. package/styles/components/tooltip.scss +141 -141
  454. package/styles/components/tree-select.scss +166 -166
  455. package/styles/components/tree.scss +294 -294
  456. package/styles/components/upload.scss +497 -497
  457. package/styles/components/watermark.scss +26 -26
  458. package/styles/helpers/baseMixin.scss +104 -95
  459. package/styles/helpers/baseVar.scss +3 -3
  460. package/styles/helpers/placement.scss +38 -38
  461. package/styles/theme/base.scss +214 -214
  462. package/styles/theme/dark.scss +119 -119
  463. package/styles/theme/light.scss +118 -118
  464. package/styles/variable.scss +111 -111
  465. package/types/all.d.ts +327 -327
  466. package/types/components/alert.d.ts +87 -87
  467. package/types/components/anchor-link.d.ts +91 -91
  468. package/types/components/anchor.d.ts +104 -104
  469. package/types/components/avatar.d.ts +88 -88
  470. package/types/components/backtop.d.ts +122 -122
  471. package/types/components/badge.d.ts +76 -76
  472. package/types/components/breadcrumb-item.d.ts +80 -80
  473. package/types/components/breadcrumb.d.ts +87 -87
  474. package/types/components/button-group.d.ts +120 -120
  475. package/types/components/button.d.ts +323 -323
  476. package/types/components/calendar.d.ts +264 -264
  477. package/types/components/card.d.ts +93 -93
  478. package/types/components/carousel-item.d.ts +75 -75
  479. package/types/components/carousel.d.ts +134 -134
  480. package/types/components/cascader.d.ts +263 -263
  481. package/types/components/checkbox-button.d.ts +103 -103
  482. package/types/components/checkbox-group.d.ts +146 -143
  483. package/types/components/checkbox.d.ts +123 -123
  484. package/types/components/col.d.ts +80 -80
  485. package/types/components/colgroup.d.ts +137 -137
  486. package/types/components/collapse-pane.d.ts +89 -89
  487. package/types/components/collapse.d.ts +121 -121
  488. package/types/components/color-picker.d.ts +176 -176
  489. package/types/components/column.d.ts +841 -841
  490. package/types/components/context-menu.d.ts +289 -289
  491. package/types/components/countdown.d.ts +112 -112
  492. package/types/components/date-panel.d.ts +280 -280
  493. package/types/components/date-picker.d.ts +332 -332
  494. package/types/components/date-range-picker.d.ts +352 -352
  495. package/types/components/drawer.d.ts +299 -299
  496. package/types/components/empty.d.ts +78 -78
  497. package/types/components/flow-design.d.ts +85 -85
  498. package/types/components/flow-view.d.ts +85 -85
  499. package/types/components/form-design.d.ts +376 -376
  500. package/types/components/form-gather.d.ts +124 -124
  501. package/types/components/form-group.d.ts +77 -77
  502. package/types/components/form-item.d.ts +411 -411
  503. package/types/components/form-view.d.ts +183 -183
  504. package/types/components/form.d.ts +468 -468
  505. package/types/components/gantt-module/gantt-view.d.ts +177 -177
  506. package/types/components/gantt-module/index.d.ts +1 -1
  507. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +131 -131
  508. package/types/components/gantt-plugins/index.d.ts +1 -1
  509. package/types/components/gantt.d.ts +1194 -1194
  510. package/types/components/grid.d.ts +1040 -1040
  511. package/types/components/icon-picker.d.ts +196 -196
  512. package/types/components/icon.d.ts +87 -87
  513. package/types/components/image-group.d.ts +127 -127
  514. package/types/components/image-preview.d.ts +167 -167
  515. package/types/components/image.d.ts +173 -173
  516. package/types/components/input.d.ts +435 -435
  517. package/types/components/layout-aside.d.ts +80 -80
  518. package/types/components/layout-body.d.ts +91 -91
  519. package/types/components/layout-container.d.ts +73 -73
  520. package/types/components/layout-footer.d.ts +73 -73
  521. package/types/components/layout-header.d.ts +69 -69
  522. package/types/components/link.d.ts +111 -111
  523. package/types/components/list-design.d.ts +190 -190
  524. package/types/components/list-view.d.ts +199 -199
  525. package/types/components/list.d.ts +204 -204
  526. package/types/components/loading.d.ts +103 -103
  527. package/types/components/mention.d.ts +77 -77
  528. package/types/components/menu.d.ts +211 -211
  529. package/types/components/modal.d.ts +542 -542
  530. package/types/components/notice-bar.d.ts +102 -102
  531. package/types/components/number-input.d.ts +309 -309
  532. package/types/components/optgroup.d.ts +88 -88
  533. package/types/components/option.d.ts +103 -103
  534. package/types/components/pager.d.ts +335 -335
  535. package/types/components/password-input.d.ts +142 -142
  536. package/types/components/print-page-break.d.ts +69 -69
  537. package/types/components/print.d.ts +206 -206
  538. package/types/components/pulldown.d.ts +231 -231
  539. package/types/components/radio-button.d.ts +114 -114
  540. package/types/components/radio-group.d.ts +147 -144
  541. package/types/components/radio.d.ts +129 -129
  542. package/types/components/rate.d.ts +88 -88
  543. package/types/components/result.d.ts +84 -84
  544. package/types/components/row.d.ts +79 -79
  545. package/types/components/segmented.d.ts +123 -123
  546. package/types/components/select.d.ts +527 -527
  547. package/types/components/slider.d.ts +126 -126
  548. package/types/components/split-pane.d.ts +133 -133
  549. package/types/components/split.d.ts +312 -312
  550. package/types/components/splitter-panel.d.ts +105 -105
  551. package/types/components/splitter.d.ts +288 -288
  552. package/types/components/steps.d.ts +68 -68
  553. package/types/components/switch.d.ts +133 -133
  554. package/types/components/tab-pane.d.ts +114 -114
  555. package/types/components/table-module/custom.d.ts +123 -123
  556. package/types/components/table-module/edit.d.ts +243 -243
  557. package/types/components/table-module/export.d.ts +96 -96
  558. package/types/components/table-module/filter.d.ts +140 -140
  559. package/types/components/table-module/index.d.ts +7 -7
  560. package/types/components/table-module/keyboard.d.ts +26 -26
  561. package/types/components/table-module/menu.d.ts +28 -28
  562. package/types/components/table-module/validator.d.ts +53 -53
  563. package/types/components/table-plugins/extend-cell-area.d.ts +770 -770
  564. package/types/components/table-plugins/extend-pivot-table.d.ts +58 -58
  565. package/types/components/table-plugins/filters-combination.d.ts +15 -15
  566. package/types/components/table-plugins/filters-complex-input.d.ts +9 -9
  567. package/types/components/table-plugins/index.d.ts +4 -4
  568. package/types/components/table-select.d.ts +219 -219
  569. package/types/components/table.d.ts +7465 -7465
  570. package/types/components/tabs.d.ts +332 -332
  571. package/types/components/tag.d.ts +114 -114
  572. package/types/components/text-ellipsis.d.ts +112 -112
  573. package/types/components/text.d.ts +122 -122
  574. package/types/components/textarea.d.ts +247 -247
  575. package/types/components/timeline-item.d.ts +75 -75
  576. package/types/components/timeline.d.ts +77 -77
  577. package/types/components/tip.d.ts +83 -83
  578. package/types/components/toolbar.d.ts +336 -336
  579. package/types/components/tooltip.d.ts +180 -180
  580. package/types/components/tour.d.ts +77 -77
  581. package/types/components/tree-select.d.ts +310 -310
  582. package/types/components/tree.d.ts +843 -843
  583. package/types/components/upload.d.ts +437 -437
  584. package/types/components/watermark.d.ts +120 -120
  585. package/types/handles/form-design.d.ts +50 -50
  586. package/types/handles/index.d.ts +3 -3
  587. package/types/handles/list-design.d.ts +2 -2
  588. package/types/handles/table.d.ts +15 -15
  589. package/types/index.d.ts +8 -8
  590. package/types/ui/commands.d.ts +57 -57
  591. package/types/ui/formats.d.ts +62 -62
  592. package/types/ui/global-config.d.ts +254 -254
  593. package/types/ui/global-icon.d.ts +292 -292
  594. package/types/ui/hooks.d.ts +13 -13
  595. package/types/ui/index.d.ts +96 -96
  596. package/types/ui/interceptor.d.ts +52 -52
  597. package/types/ui/menus.d.ts +77 -77
  598. package/types/ui/renderer.d.ts +1041 -1041
  599. package/types/ui/validators.d.ts +38 -38
  600. /package/es/icon/{iconfont.1778317220469.ttf → iconfont.1778465063324.ttf} +0 -0
  601. /package/es/icon/{iconfont.1778317220469.woff → iconfont.1778465063324.woff} +0 -0
  602. /package/es/icon/{iconfont.1778317220469.woff2 → iconfont.1778465063324.woff2} +0 -0
  603. /package/es/{iconfont.1778317220469.ttf → iconfont.1778465063324.ttf} +0 -0
  604. /package/es/{iconfont.1778317220469.woff → iconfont.1778465063324.woff} +0 -0
  605. /package/es/{iconfont.1778317220469.woff2 → iconfont.1778465063324.woff2} +0 -0
  606. /package/lib/icon/style/{iconfont.1778317220469.ttf → iconfont.1778465063324.ttf} +0 -0
  607. /package/lib/icon/style/{iconfont.1778317220469.woff → iconfont.1778465063324.woff} +0 -0
  608. /package/lib/icon/style/{iconfont.1778317220469.woff2 → iconfont.1778465063324.woff2} +0 -0
  609. /package/lib/{iconfont.1778317220469.ttf → iconfont.1778465063324.ttf} +0 -0
  610. /package/lib/{iconfont.1778317220469.woff → iconfont.1778465063324.woff} +0 -0
  611. /package/lib/{iconfont.1778317220469.woff2 → iconfont.1778465063324.woff2} +0 -0
@@ -1,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