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