vxe-pc-ui 4.20.25 → 4.20.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (626) hide show
  1. package/dist/all.esm.js +15059 -10308
  2. package/dist/style.css +1 -1
  3. package/dist/style.mini.css +1 -1
  4. package/es/alert/src/alert.js +61 -36
  5. package/es/anchor/src/anchor-link.js +39 -20
  6. package/es/anchor/src/anchor.js +74 -45
  7. package/es/avatar/src/avatar.js +47 -27
  8. package/es/backtop/src/backtop.js +65 -40
  9. package/es/badge/src/badge.js +32 -16
  10. package/es/breadcrumb/src/breadcrumb-item.js +52 -27
  11. package/es/breadcrumb/src/breadcrumb.js +11 -8
  12. package/es/button/src/button-group.js +24 -18
  13. package/es/button/src/button.js +284 -185
  14. package/es/calendar/src/calendar.js +571 -358
  15. package/es/card/src/card.js +123 -68
  16. package/es/carousel/src/carousel-item.js +14 -7
  17. package/es/carousel/src/carousel.js +174 -112
  18. package/es/cascader/src/cascader.js +526 -380
  19. package/es/checkbox/src/button.js +90 -55
  20. package/es/checkbox/src/checkbox.js +60 -40
  21. package/es/checkbox/src/group.js +34 -26
  22. package/es/collapse/src/collapse-pane.js +33 -16
  23. package/es/collapse/src/collapse.js +133 -79
  24. package/es/color-picker/src/color-picker.js +489 -350
  25. package/es/components.d.ts +3 -1
  26. package/es/components.js +3 -2
  27. package/es/context-menu/src/context-menu.js +190 -110
  28. package/es/countdown/src/countdown.js +91 -59
  29. package/es/date-panel/src/date-panel.js +760 -450
  30. package/es/date-picker/src/date-picker.js +331 -228
  31. package/es/date-range-picker/src/date-range-picker.js +366 -265
  32. package/es/divider/src/divider.js +26 -12
  33. package/es/drawer/src/drawer.js +254 -154
  34. package/es/dynamics/index.js +38 -25
  35. package/es/empty/src/empty.js +53 -29
  36. package/es/form/render/index.js +66 -41
  37. package/es/form/src/form-config-item.js +22 -16
  38. package/es/form/src/form-group.js +23 -14
  39. package/es/form/src/form-item.js +23 -17
  40. package/es/form/src/form.js +139 -95
  41. package/es/form/src/itemInfo.js +2 -1
  42. package/es/form/src/render.js +207 -127
  43. package/es/form/src/util.js +8 -4
  44. package/es/icon/src/icon.js +14 -10
  45. package/es/icon/style.css +1 -1
  46. package/es/icon/style.mini.css +1 -1
  47. package/es/icon-picker/src/icon-picker.js +250 -157
  48. package/es/image/src/group.js +26 -20
  49. package/es/image/src/image.js +33 -32
  50. package/es/image/src/preview.js +182 -122
  51. package/es/image/src/util.js +6 -3
  52. package/es/index.esm.js +9 -8
  53. package/es/index.js +9 -8
  54. package/es/input/src/input.js +820 -507
  55. package/es/layout-aside/src/layout-aside.js +54 -38
  56. package/es/layout-body/src/layout-body.js +39 -27
  57. package/es/layout-container/src/layout-container.js +16 -9
  58. package/es/layout-footer/src/layout-footer.js +16 -7
  59. package/es/layout-header/src/layout-header.js +15 -7
  60. package/es/link/src/link.js +65 -44
  61. package/es/list/src/list.js +453 -333
  62. package/es/loading/index.js +8 -5
  63. package/es/loading/src/loading.js +60 -33
  64. package/es/mention/src/mention.js +2 -1
  65. package/es/menu/src/menu.js +341 -210
  66. package/es/modal/index.js +60 -37
  67. package/es/modal/src/modal.js +303 -205
  68. package/es/notice-bar/src/notice-bar.js +64 -37
  69. package/es/number-input/src/number-input.js +249 -172
  70. package/es/pager/src/pager.js +346 -202
  71. package/es/password-input/src/password-input.js +145 -105
  72. package/es/print/src/page-break.js +2 -1
  73. package/es/print/src/print.js +184 -99
  74. package/es/pulldown/src/pulldown.js +113 -71
  75. package/es/radio/src/button.js +92 -57
  76. package/es/radio/src/group.js +33 -25
  77. package/es/radio/src/radio.js +61 -41
  78. package/es/rate/src/rate.js +48 -36
  79. package/es/result/src/result.js +67 -35
  80. package/es/row/src/col.js +30 -16
  81. package/es/row/src/row.js +21 -14
  82. package/es/scrollbar/src/scrollbar.js +177 -145
  83. package/es/segmented/src/segmented.js +93 -60
  84. package/es/select/src/optgroup.js +7 -3
  85. package/es/select/src/select.js +483 -340
  86. package/es/select/src/util.js +6 -3
  87. package/es/slider/src/slider.js +108 -80
  88. package/es/space/src/space.js +40 -23
  89. package/es/splitter/src/splitter-panel.js +50 -25
  90. package/es/splitter/src/splitter.js +219 -144
  91. package/es/steps/src/steps.js +10 -5
  92. package/es/style.css +1 -1
  93. package/es/style.mini.css +1 -1
  94. package/es/switch/src/switch.js +85 -57
  95. package/es/table-select/src/table-select.js +232 -153
  96. package/es/table-transfer/src/table-transfer.js +10 -5
  97. package/es/tabs/src/tab-pane.js +33 -16
  98. package/es/tabs/src/tabs.js +363 -230
  99. package/es/tag/src/tag.js +61 -43
  100. package/es/text/src/text.js +89 -65
  101. package/es/text-ellipsis/src/text-ellipsis.js +82 -51
  102. package/es/textarea/src/textarea.js +116 -86
  103. package/es/timeline/src/timeline-item.js +2 -1
  104. package/es/timeline/src/timeline.js +2 -1
  105. package/es/tip/src/tip.js +53 -29
  106. package/es/tooltip/src/tooltip.js +114 -74
  107. package/es/tour/src/tour.js +2 -1
  108. package/es/transfer/src/transfer.js +42 -25
  109. package/es/tree/src/tree.js +709 -492
  110. package/es/tree-select/src/tree-select.js +320 -225
  111. package/es/ui/index.d.ts +0 -1
  112. package/es/ui/index.js +46 -3
  113. package/es/ui/src/dom.js +9 -6
  114. package/es/ui/src/log.js +1 -1
  115. package/es/ui/src/utils.d.ts +1 -1
  116. package/es/upload/src/upload.js +614 -398
  117. package/es/vxe-icon/style.css +1 -1
  118. package/es/vxe-icon/style.mini.css +1 -1
  119. package/es/watermark/src/util.js +15 -12
  120. package/es/watermark/src/watermark.js +55 -25
  121. package/lib/alert/src/alert.js +62 -37
  122. package/lib/anchor/src/anchor-link.js +39 -20
  123. package/lib/anchor/src/anchor.js +75 -46
  124. package/lib/avatar/src/avatar.js +52 -32
  125. package/lib/backtop/src/backtop.js +81 -56
  126. package/lib/badge/src/badge.js +35 -19
  127. package/lib/breadcrumb/src/breadcrumb-item.js +52 -27
  128. package/lib/breadcrumb/src/breadcrumb.js +13 -10
  129. package/lib/button/src/button-group.js +27 -21
  130. package/lib/button/src/button.js +306 -207
  131. package/lib/calendar/src/calendar.js +575 -362
  132. package/lib/card/src/card.js +133 -78
  133. package/lib/carousel/src/carousel-item.js +15 -8
  134. package/lib/carousel/src/carousel.js +182 -120
  135. package/lib/cascader/src/cascader.js +555 -409
  136. package/lib/checkbox/src/button.js +93 -58
  137. package/lib/checkbox/src/checkbox.js +63 -43
  138. package/lib/checkbox/src/group.js +37 -29
  139. package/lib/collapse/src/collapse-pane.js +34 -17
  140. package/lib/collapse/src/collapse.js +139 -85
  141. package/lib/color-picker/src/color-picker.js +516 -377
  142. package/lib/components.js +3 -2
  143. package/lib/context-menu/src/context-menu.js +212 -132
  144. package/lib/countdown/src/countdown.js +95 -63
  145. package/lib/date-panel/src/date-panel.js +776 -466
  146. package/lib/date-picker/src/date-picker.js +377 -274
  147. package/lib/date-range-picker/src/date-range-picker.js +401 -300
  148. package/lib/divider/src/divider.js +31 -17
  149. package/lib/drawer/src/drawer.js +255 -155
  150. package/lib/dynamics/index.js +38 -25
  151. package/lib/empty/src/empty.js +55 -31
  152. package/lib/form/render/index.js +68 -43
  153. package/lib/form/src/form-config-item.js +24 -18
  154. package/lib/form/src/form-group.js +25 -16
  155. package/lib/form/src/form-item.js +25 -19
  156. package/lib/form/src/form.js +140 -96
  157. package/lib/form/src/itemInfo.js +4 -3
  158. package/lib/form/src/render.js +214 -134
  159. package/lib/form/src/util.js +9 -5
  160. package/lib/icon/src/icon.js +17 -13
  161. package/lib/icon/style/style.css +1 -1
  162. package/lib/icon/style/style.mini.css +1 -1
  163. package/lib/icon-picker/src/icon-picker.js +251 -158
  164. package/lib/image/src/group.js +26 -20
  165. package/lib/image/src/image.js +41 -40
  166. package/lib/image/src/preview.js +206 -146
  167. package/lib/image/src/util.js +6 -3
  168. package/lib/index.common.js +9 -8
  169. package/lib/index.js +9 -8
  170. package/lib/index.umd.js +15131 -10364
  171. package/lib/index.umd.min.js +3 -3
  172. package/lib/input/src/input.js +878 -565
  173. package/lib/layout-aside/src/layout-aside.js +61 -45
  174. package/lib/layout-body/src/layout-body.js +47 -35
  175. package/lib/layout-container/src/layout-container.js +18 -11
  176. package/lib/layout-footer/src/layout-footer.js +17 -8
  177. package/lib/layout-header/src/layout-header.js +16 -8
  178. package/lib/link/src/link.js +69 -48
  179. package/lib/list/src/list.js +456 -336
  180. package/lib/loading/index.js +8 -5
  181. package/lib/loading/src/loading.js +69 -42
  182. package/lib/mention/src/mention.js +4 -3
  183. package/lib/menu/src/menu.js +351 -220
  184. package/lib/modal/index.js +60 -37
  185. package/lib/modal/src/modal.js +306 -208
  186. package/lib/notice-bar/src/notice-bar.js +70 -43
  187. package/lib/number-input/src/number-input.js +290 -213
  188. package/lib/pager/src/pager.js +347 -203
  189. package/lib/password-input/src/password-input.js +155 -115
  190. package/lib/print/src/page-break.js +3 -2
  191. package/lib/print/src/print.js +193 -108
  192. package/lib/pulldown/src/pulldown.js +128 -86
  193. package/lib/radio/src/button.js +96 -61
  194. package/lib/radio/src/group.js +37 -29
  195. package/lib/radio/src/radio.js +65 -45
  196. package/lib/rate/src/rate.js +50 -38
  197. package/lib/result/src/result.js +68 -36
  198. package/lib/row/src/col.js +32 -18
  199. package/lib/row/src/row.js +25 -18
  200. package/lib/scrollbar/src/scrollbar.js +178 -146
  201. package/lib/segmented/src/segmented.js +97 -64
  202. package/lib/select/src/optgroup.js +7 -3
  203. package/lib/select/src/select.js +486 -343
  204. package/lib/select/src/util.js +6 -3
  205. package/lib/slider/src/slider.js +122 -94
  206. package/lib/space/src/space.js +54 -37
  207. package/lib/splitter/src/splitter-panel.js +51 -26
  208. package/lib/splitter/src/splitter.js +233 -158
  209. package/lib/steps/src/steps.js +11 -6
  210. package/lib/style.css +1 -1
  211. package/lib/style.mini.css +1 -1
  212. package/lib/switch/src/switch.js +87 -59
  213. package/lib/table-select/src/table-select.js +234 -155
  214. package/lib/table-transfer/src/table-transfer.js +12 -7
  215. package/lib/tabs/src/tab-pane.js +34 -17
  216. package/lib/tabs/src/tabs.js +365 -232
  217. package/lib/tag/src/tag.js +67 -49
  218. package/lib/text/src/text.js +100 -76
  219. package/lib/text-ellipsis/src/text-ellipsis.js +86 -55
  220. package/lib/textarea/src/textarea.js +127 -97
  221. package/lib/timeline/src/timeline-item.js +3 -2
  222. package/lib/timeline/src/timeline.js +4 -3
  223. package/lib/tip/src/tip.js +58 -34
  224. package/lib/tooltip/src/tooltip.js +116 -76
  225. package/lib/tour/src/tour.js +4 -3
  226. package/lib/transfer/src/transfer.js +44 -27
  227. package/lib/tree/src/tree.js +717 -500
  228. package/lib/tree-select/src/tree-select.js +351 -256
  229. package/lib/ui/index.js +46 -4
  230. package/lib/ui/src/dom.js +9 -6
  231. package/lib/ui/src/log.js +1 -1
  232. package/lib/upload/src/upload.js +708 -492
  233. package/lib/vxe-icon/style/style.css +1 -1
  234. package/lib/vxe-icon/style/style.mini.css +1 -1
  235. package/lib/watermark/src/util.js +15 -12
  236. package/lib/watermark/src/watermark.js +60 -30
  237. package/package.json +10 -4
  238. package/packages/alert/index.ts +16 -16
  239. package/packages/alert/src/alert.ts +148 -126
  240. package/packages/anchor/index.ts +16 -16
  241. package/packages/anchor/src/anchor-link.ts +139 -121
  242. package/packages/anchor/src/anchor.ts +266 -237
  243. package/packages/anchor/src/util.ts +23 -23
  244. package/packages/anchor-link/index.ts +16 -16
  245. package/packages/avatar/index.ts +16 -16
  246. package/packages/avatar/src/avatar.ts +166 -149
  247. package/packages/backtop/index.ts +16 -16
  248. package/packages/backtop/src/backtop.ts +337 -313
  249. package/packages/badge/index.ts +16 -16
  250. package/packages/badge/src/badge.ts +131 -118
  251. package/packages/breadcrumb/index.ts +16 -16
  252. package/packages/breadcrumb/src/breadcrumb-item.ts +129 -106
  253. package/packages/breadcrumb/src/breadcrumb.ts +94 -92
  254. package/packages/breadcrumb-item/index.ts +16 -16
  255. package/packages/button/index.ts +16 -16
  256. package/packages/button/src/button-group.ts +116 -110
  257. package/packages/button/src/button.ts +975 -855
  258. package/packages/button-group/index.ts +16 -16
  259. package/packages/calendar/index.ts +16 -16
  260. package/packages/calendar/src/calendar.ts +1566 -1352
  261. package/packages/card/index.ts +16 -16
  262. package/packages/card/src/card.ts +285 -236
  263. package/packages/carousel/index.ts +16 -16
  264. package/packages/carousel/src/carousel-item.ts +120 -102
  265. package/packages/carousel/src/carousel.ts +475 -414
  266. package/packages/carousel/src/util.ts +21 -21
  267. package/packages/carousel-item/index.ts +16 -16
  268. package/packages/cascader/index.ts +16 -16
  269. package/packages/cascader/src/cascader.ts +2074 -1896
  270. package/packages/cascader/src/util.ts +9 -9
  271. package/packages/checkbox/index.ts +16 -16
  272. package/packages/checkbox/src/button.ts +267 -221
  273. package/packages/checkbox/src/checkbox.ts +219 -199
  274. package/packages/checkbox/src/group.ts +292 -269
  275. package/packages/checkbox-button/index.ts +16 -16
  276. package/packages/checkbox-group/index.ts +16 -16
  277. package/packages/col/index.ts +16 -16
  278. package/packages/collapse/index.ts +16 -16
  279. package/packages/collapse/src/collapse-pane.ts +142 -114
  280. package/packages/collapse/src/collapse.ts +453 -384
  281. package/packages/collapse/src/util.ts +21 -21
  282. package/packages/collapse-pane/index.ts +16 -16
  283. package/packages/color-picker/index.ts +31 -31
  284. package/packages/color-picker/src/color-picker.ts +1310 -1147
  285. package/packages/color-picker/src/util.ts +436 -423
  286. package/packages/components.ts +350 -349
  287. package/packages/context-menu/index.ts +54 -54
  288. package/packages/context-menu/src/context-menu.ts +773 -681
  289. package/packages/countdown/index.ts +16 -16
  290. package/packages/countdown/src/countdown.ts +295 -262
  291. package/packages/date-panel/index.ts +16 -16
  292. package/packages/date-panel/src/date-panel.ts +2214 -1900
  293. package/packages/date-panel/src/util.ts +354 -326
  294. package/packages/date-picker/index.ts +16 -16
  295. package/packages/date-picker/src/date-picker.ts +1884 -1752
  296. package/packages/date-range-picker/index.ts +16 -16
  297. package/packages/date-range-picker/src/date-range-picker.ts +1728 -1604
  298. package/packages/divider/index.ts +16 -16
  299. package/packages/divider/src/divider.ts +105 -93
  300. package/packages/drawer/index.ts +78 -78
  301. package/packages/drawer/src/drawer.ts +920 -802
  302. package/packages/drawer/src/store.ts +3 -3
  303. package/packages/dynamics/index.ts +124 -117
  304. package/packages/empty/index.ts +16 -16
  305. package/packages/empty/src/empty.ts +124 -103
  306. package/packages/form/index.ts +16 -16
  307. package/packages/form/render/index.ts +646 -614
  308. package/packages/form/src/form-config-item.ts +85 -80
  309. package/packages/form/src/form-group.ts +96 -86
  310. package/packages/form/src/form-item.ts +181 -174
  311. package/packages/form/src/form.ts +1122 -1069
  312. package/packages/form/src/itemInfo.ts +84 -82
  313. package/packages/form/src/render.ts +470 -387
  314. package/packages/form/src/util.ts +98 -93
  315. package/packages/form-gather/index.ts +26 -26
  316. package/packages/form-group/index.ts +16 -16
  317. package/packages/form-item/index.ts +16 -16
  318. package/packages/icon/index.ts +16 -16
  319. package/packages/icon/src/icon.ts +78 -75
  320. package/packages/icon-picker/index.ts +16 -16
  321. package/packages/icon-picker/src/icon-picker.ts +922 -809
  322. package/packages/image/index.ts +16 -16
  323. package/packages/image/src/group.ts +159 -153
  324. package/packages/image/src/image.ts +298 -298
  325. package/packages/image/src/preview.ts +749 -672
  326. package/packages/image/src/util.ts +62 -59
  327. package/packages/image-group/index.ts +16 -16
  328. package/packages/image-preview/index.ts +19 -19
  329. package/packages/index.ts +20 -21
  330. package/packages/input/index.ts +16 -16
  331. package/packages/input/src/input.ts +3201 -2863
  332. package/packages/language/fr-FR.ts +15 -15
  333. package/packages/language/it-IT.ts +4 -4
  334. package/packages/language/uk-UA.ts +1 -1
  335. package/packages/language/uz-UZ.ts +13 -13
  336. package/packages/language/zh-CN.ts +907 -907
  337. package/packages/layout-aside/index.ts +16 -16
  338. package/packages/layout-aside/src/layout-aside.ts +172 -156
  339. package/packages/layout-body/index.ts +16 -16
  340. package/packages/layout-body/src/layout-body.ts +191 -181
  341. package/packages/layout-container/index.ts +16 -16
  342. package/packages/layout-container/src/layout-container.ts +108 -92
  343. package/packages/layout-footer/index.ts +16 -16
  344. package/packages/layout-footer/src/layout-footer.ts +81 -74
  345. package/packages/layout-header/index.ts +16 -16
  346. package/packages/layout-header/src/layout-header.ts +79 -73
  347. package/packages/link/index.ts +16 -16
  348. package/packages/link/src/link.ts +180 -161
  349. package/packages/list/index.ts +16 -16
  350. package/packages/list/src/list.ts +2690 -2564
  351. package/packages/list/src/store.ts +10 -10
  352. package/packages/list/src/util.ts +10 -11
  353. package/packages/loading/index.ts +39 -36
  354. package/packages/loading/src/loading.ts +179 -152
  355. package/packages/mention/index.ts +16 -16
  356. package/packages/mention/src/mention.ts +69 -71
  357. package/packages/menu/index.ts +16 -16
  358. package/packages/menu/src/menu.ts +1000 -857
  359. package/packages/modal/index.ts +164 -141
  360. package/packages/modal/src/modal.ts +1803 -1681
  361. package/packages/modal/src/store.ts +3 -3
  362. package/packages/notice-bar/index.ts +16 -16
  363. package/packages/notice-bar/src/notice-bar.ts +207 -181
  364. package/packages/number-input/index.ts +16 -16
  365. package/packages/number-input/src/number-input.ts +1322 -1242
  366. package/packages/number-input/src/util.ts +25 -25
  367. package/packages/optgroup/index.ts +16 -16
  368. package/packages/option/index.ts +16 -16
  369. package/packages/pager/index.ts +16 -16
  370. package/packages/pager/src/pager.ts +919 -775
  371. package/packages/password-input/index.ts +16 -16
  372. package/packages/password-input/src/password-input.ts +523 -482
  373. package/packages/print/index.ts +18 -18
  374. package/packages/print/src/page-break.ts +104 -92
  375. package/packages/print/src/print.ts +366 -281
  376. package/packages/print/src/util.ts +299 -304
  377. package/packages/print-page-break/index.ts +16 -16
  378. package/packages/pulldown/index.ts +16 -16
  379. package/packages/pulldown/src/pulldown.ts +505 -445
  380. package/packages/radio/index.ts +16 -16
  381. package/packages/radio/src/button.ts +290 -243
  382. package/packages/radio/src/group.ts +275 -252
  383. package/packages/radio/src/radio.ts +237 -218
  384. package/packages/radio-button/index.ts +16 -16
  385. package/packages/radio-group/index.ts +16 -16
  386. package/packages/rate/index.ts +16 -16
  387. package/packages/rate/src/rate.ts +203 -192
  388. package/packages/result/index.ts +16 -16
  389. package/packages/result/src/result.ts +141 -112
  390. package/packages/row/index.ts +16 -16
  391. package/packages/row/src/col.ts +171 -159
  392. package/packages/row/src/row.ts +143 -138
  393. package/packages/scrollbar/index.ts +16 -16
  394. package/packages/scrollbar/src/scrollbar.ts +626 -595
  395. package/packages/segmented/index.ts +16 -16
  396. package/packages/segmented/src/segmented.ts +297 -264
  397. package/packages/select/index.ts +16 -16
  398. package/packages/select/src/optgroup.ts +53 -49
  399. package/packages/select/src/option-info.ts +20 -20
  400. package/packages/select/src/option.ts +47 -47
  401. package/packages/select/src/select.ts +2390 -2214
  402. package/packages/select/src/util.ts +50 -47
  403. package/packages/slider/index.ts +16 -16
  404. package/packages/slider/src/slider.ts +547 -506
  405. package/packages/space/index.ts +16 -16
  406. package/packages/space/src/space.ts +225 -209
  407. package/packages/split/index.ts +16 -16
  408. package/packages/split-pane/index.ts +17 -17
  409. package/packages/splitter/index.ts +16 -16
  410. package/packages/splitter/src/splitter-panel.ts +199 -163
  411. package/packages/splitter/src/splitter.ts +1110 -1020
  412. package/packages/splitter/src/util.ts +21 -21
  413. package/packages/splitter-panel/index.ts +16 -16
  414. package/packages/steps/index.ts +16 -16
  415. package/packages/steps/src/steps.ts +69 -68
  416. package/packages/switch/index.ts +16 -16
  417. package/packages/switch/src/switch.ts +300 -271
  418. package/packages/tab-pane/index.ts +16 -16
  419. package/packages/table-select/index.ts +16 -16
  420. package/packages/table-select/src/table-select.ts +1103 -999
  421. package/packages/table-transfer/index.ts +16 -16
  422. package/packages/table-transfer/src/table-transfer.ts +104 -91
  423. package/packages/tabs/index.ts +16 -16
  424. package/packages/tabs/src/tab-pane.ts +132 -117
  425. package/packages/tabs/src/tabs.ts +1137 -997
  426. package/packages/tabs/src/util.ts +21 -21
  427. package/packages/tag/index.ts +16 -16
  428. package/packages/tag/src/tag.ts +204 -187
  429. package/packages/text/index.ts +16 -16
  430. package/packages/text/src/text.ts +282 -260
  431. package/packages/text-ellipsis/index.ts +16 -16
  432. package/packages/text-ellipsis/src/text-ellipsis.ts +312 -282
  433. package/packages/textarea/index.ts +16 -16
  434. package/packages/textarea/src/textarea.ts +526 -495
  435. package/packages/timeline/index.ts +16 -16
  436. package/packages/timeline/src/timeline-item.ts +65 -67
  437. package/packages/timeline/src/timeline.ts +70 -71
  438. package/packages/timeline-item/index.ts +16 -16
  439. package/packages/tip/index.ts +19 -19
  440. package/packages/tip/src/tip.ts +150 -129
  441. package/packages/tooltip/index.ts +72 -72
  442. package/packages/tooltip/src/tooltip.ts +669 -627
  443. package/packages/tour/index.ts +16 -16
  444. package/packages/tour/src/tour.ts +70 -71
  445. package/packages/transfer/index.ts +16 -16
  446. package/packages/transfer/src/transfer.ts +130 -117
  447. package/packages/tree/index.ts +16 -16
  448. package/packages/tree/src/store.ts +10 -10
  449. package/packages/tree/src/tree.ts +4077 -3852
  450. package/packages/tree/src/util.ts +51 -51
  451. package/packages/tree-select/index.ts +16 -16
  452. package/packages/tree-select/src/tree-select.ts +1217 -1094
  453. package/packages/ui/index.ts +836 -793
  454. package/packages/ui/src/anime.ts +51 -52
  455. package/packages/ui/src/comp.ts +3 -3
  456. package/packages/ui/src/dom.ts +357 -354
  457. package/packages/ui/src/log.ts +19 -19
  458. package/packages/ui/src/utils.ts +79 -79
  459. package/packages/ui/src/vn.ts +39 -39
  460. package/packages/upload/index.ts +20 -20
  461. package/packages/upload/src/upload.ts +2271 -2021
  462. package/packages/upload/src/util.ts +109 -109
  463. package/packages/watermark/index.ts +33 -33
  464. package/packages/watermark/src/util.ts +186 -180
  465. package/packages/watermark/src/watermark.ts +196 -168
  466. package/types/all.d.ts +552 -552
  467. package/types/components/alert.d.ts +83 -87
  468. package/types/components/anchor-link.d.ts +88 -91
  469. package/types/components/anchor.d.ts +97 -104
  470. package/types/components/avatar.d.ts +85 -88
  471. package/types/components/backtop.d.ts +119 -122
  472. package/types/components/badge.d.ts +77 -80
  473. package/types/components/breadcrumb-item.d.ts +77 -80
  474. package/types/components/breadcrumb.d.ts +83 -87
  475. package/types/components/button-group.d.ts +118 -120
  476. package/types/components/button.d.ts +331 -339
  477. package/types/components/calendar.d.ts +247 -264
  478. package/types/components/card.d.ts +111 -113
  479. package/types/components/carousel-item.d.ts +73 -75
  480. package/types/components/carousel.d.ts +130 -134
  481. package/types/components/cascader.d.ts +336 -386
  482. package/types/components/checkbox-button.d.ts +109 -114
  483. package/types/components/checkbox-group.d.ts +152 -154
  484. package/types/components/checkbox.d.ts +123 -128
  485. package/types/components/col.d.ts +77 -80
  486. package/types/components/colgroup.d.ts +64 -69
  487. package/types/components/collapse-pane.d.ts +86 -89
  488. package/types/components/collapse.d.ts +123 -133
  489. package/types/components/color-picker.d.ts +275 -280
  490. package/types/components/column.d.ts +834 -851
  491. package/types/components/context-menu.d.ts +282 -289
  492. package/types/components/countdown.d.ts +108 -112
  493. package/types/components/date-panel.d.ts +319 -331
  494. package/types/components/date-picker.d.ts +361 -384
  495. package/types/components/date-range-picker.d.ts +351 -371
  496. package/types/components/divider.d.ts +72 -75
  497. package/types/components/drawer.d.ts +333 -344
  498. package/types/components/empty.d.ts +75 -78
  499. package/types/components/flow-design.d.ts +73 -85
  500. package/types/components/flow-view.d.ts +73 -85
  501. package/types/components/form-design.d.ts +370 -376
  502. package/types/components/form-gather.d.ts +120 -124
  503. package/types/components/form-group.d.ts +73 -77
  504. package/types/components/form-item.d.ts +395 -413
  505. package/types/components/form-view.d.ts +179 -183
  506. package/types/components/form.d.ts +499 -495
  507. package/types/components/gantt-module/gantt-view.d.ts +195 -200
  508. package/types/components/gantt-module/index.d.ts +1 -1
  509. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +137 -131
  510. package/types/components/gantt-plugins/index.d.ts +1 -1
  511. package/types/components/gantt.d.ts +1248 -1399
  512. package/types/components/grid.d.ts +1289 -1317
  513. package/types/components/icon-picker.d.ts +242 -253
  514. package/types/components/icon.d.ts +332 -87
  515. package/types/components/image-group.d.ts +124 -127
  516. package/types/components/image-preview.d.ts +167 -167
  517. package/types/components/image.d.ts +166 -173
  518. package/types/components/input.d.ts +429 -453
  519. package/types/components/layout-aside.d.ts +123 -123
  520. package/types/components/layout-body.d.ts +110 -113
  521. package/types/components/layout-container.d.ts +73 -75
  522. package/types/components/layout-footer.d.ts +71 -73
  523. package/types/components/layout-header.d.ts +67 -69
  524. package/types/components/link.d.ts +107 -111
  525. package/types/components/list-design.d.ts +189 -190
  526. package/types/components/list-view.d.ts +193 -199
  527. package/types/components/list.d.ts +678 -715
  528. package/types/components/loading.d.ts +98 -103
  529. package/types/components/mention.d.ts +70 -77
  530. package/types/components/menu.d.ts +284 -295
  531. package/types/components/modal.d.ts +567 -584
  532. package/types/components/notice-bar.d.ts +102 -106
  533. package/types/components/number-input.d.ts +359 -365
  534. package/types/components/optgroup.d.ts +85 -88
  535. package/types/components/option.d.ts +94 -103
  536. package/types/components/pager.d.ts +330 -335
  537. package/types/components/password-input.d.ts +143 -156
  538. package/types/components/print-page-break.d.ts +65 -69
  539. package/types/components/print.d.ts +243 -245
  540. package/types/components/pulldown.d.ts +231 -239
  541. package/types/components/radio-button.d.ts +113 -118
  542. package/types/components/radio-group.d.ts +151 -153
  543. package/types/components/radio.d.ts +129 -134
  544. package/types/components/rate.d.ts +83 -88
  545. package/types/components/result.d.ts +81 -84
  546. package/types/components/row.d.ts +77 -81
  547. package/types/components/scrollbar.d.ts +299 -305
  548. package/types/components/segmented.d.ts +119 -123
  549. package/types/components/select.d.ts +598 -616
  550. package/types/components/slider.d.ts +137 -151
  551. package/types/components/space.d.ts +120 -127
  552. package/types/components/split-pane.d.ts +126 -133
  553. package/types/components/split.d.ts +301 -312
  554. package/types/components/splitter-panel.d.ts +123 -130
  555. package/types/components/splitter.d.ts +290 -301
  556. package/types/components/steps.d.ts +63 -68
  557. package/types/components/switch.d.ts +127 -133
  558. package/types/components/tab-pane.d.ts +111 -114
  559. package/types/components/table-module/custom.d.ts +123 -123
  560. package/types/components/table-module/edit.d.ts +297 -276
  561. package/types/components/table-module/export.d.ts +88 -96
  562. package/types/components/table-module/filter.d.ts +144 -144
  563. package/types/components/table-module/index.d.ts +7 -7
  564. package/types/components/table-module/keyboard.d.ts +26 -26
  565. package/types/components/table-module/menu.d.ts +46 -46
  566. package/types/components/table-module/validator.d.ts +53 -53
  567. package/types/components/table-plugins/extend-cell-area.d.ts +781 -781
  568. package/types/components/table-plugins/extend-pivot-table.d.ts +59 -58
  569. package/types/components/table-plugins/filters-combination.d.ts +15 -15
  570. package/types/components/table-plugins/filters-complex-input.d.ts +9 -9
  571. package/types/components/table-plugins/index.d.ts +4 -4
  572. package/types/components/table-select.d.ts +268 -276
  573. package/types/components/table-transfer.d.ts +80 -84
  574. package/types/components/table.d.ts +7530 -8000
  575. package/types/components/tabs.d.ts +314 -352
  576. package/types/components/tag.d.ts +108 -114
  577. package/types/components/text-ellipsis.d.ts +107 -112
  578. package/types/components/text.d.ts +112 -122
  579. package/types/components/textarea.d.ts +261 -275
  580. package/types/components/timeline-item.d.ts +66 -75
  581. package/types/components/timeline.d.ts +70 -77
  582. package/types/components/tip.d.ts +81 -83
  583. package/types/components/toolbar.d.ts +327 -336
  584. package/types/components/tooltip.d.ts +250 -255
  585. package/types/components/tour.d.ts +70 -77
  586. package/types/components/transfer.d.ts +80 -84
  587. package/types/components/tree-select.d.ts +361 -376
  588. package/types/components/tree.d.ts +994 -1036
  589. package/types/components/upload.d.ts +477 -518
  590. package/types/components/watermark.d.ts +116 -120
  591. package/types/handles/form-design.d.ts +50 -50
  592. package/types/handles/index.d.ts +3 -3
  593. package/types/handles/list-design.d.ts +1 -2
  594. package/types/handles/table.d.ts +15 -15
  595. package/types/index.d.ts +8 -8
  596. package/types/ui/commands.d.ts +57 -57
  597. package/types/ui/formats.d.ts +62 -62
  598. package/types/ui/global-config.d.ts +269 -269
  599. package/types/ui/global-icon.d.ts +315 -315
  600. package/types/ui/hooks.d.ts +13 -13
  601. package/types/ui/index.d.ts +100 -100
  602. package/types/ui/interceptor.d.ts +52 -52
  603. package/types/ui/menus.d.ts +89 -89
  604. package/types/ui/renderer.d.ts +1033 -1047
  605. package/types/ui/validators.d.ts +37 -38
  606. /package/dist/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  607. /package/dist/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  608. /package/dist/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  609. /package/es/icon/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  610. /package/es/icon/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  611. /package/es/icon/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  612. /package/es/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  613. /package/es/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  614. /package/es/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  615. /package/es/vxe-icon/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  616. /package/es/vxe-icon/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  617. /package/es/vxe-icon/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  618. /package/lib/icon/style/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  619. /package/lib/icon/style/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  620. /package/lib/icon/style/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  621. /package/lib/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  622. /package/lib/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  623. /package/lib/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
  624. /package/lib/vxe-icon/style/{iconfont.1792992046297.ttf → iconfont.1793007755017.ttf} +0 -0
  625. /package/lib/vxe-icon/style/{iconfont.1792992046297.woff → iconfont.1793007755017.woff} +0 -0
  626. /package/lib/vxe-icon/style/{iconfont.1792992046297.woff2 → iconfont.1793007755017.woff2} +0 -0
@@ -1,1399 +1,1248 @@
1
- import { RenderFunction, SetupContext, ComputedRef, Ref } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSlotType, VxeComponentAlignType, VxeComponentStatusType } from '@vxe-ui/core'
3
- import { GridPrivateRef, VxeGridProps, VxeGridPropTypes, GridPrivateComputed, GridReactData, GridInternalData, GridMethods, GridPrivateMethods, VxeGridEmits, VxeGridSlots, VxeGridListeners, VxeGridEventProps, VxeGridMethods } from './grid'
4
- import { VxeTablePropTypes } from './table'
5
- import { VxeGanttViewInstance, VxeGanttViewPrivateMethods } from './gantt-module/gantt-view'
6
- import { VxeTooltipPropTypes, VxeTooltipProps } from './tooltip'
7
-
8
- /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
9
-
10
- export declare const VxeGantt: DefineVxeComponentApp<VxeGanttProps, VxeGanttEventProps, VxeGanttSlots, VxeGanttMethods>
11
- export type VxeGanttComponent = DefineVxeComponentOptions<VxeGanttProps, VxeGanttEventProps>
12
-
13
- export type VxeGanttInstance<D = any> = DefineVxeComponentInstance<VxeGanttProps<D>, VxeGanttConstructor<D>>
14
-
15
- export interface VxeGanttConstructor<D = any> extends VxeComponentBaseOptions, VxeGanttMethods<D> {
16
- props: VxeGanttProps
17
- context: SetupContext<VxeGanttEmits>
18
- reactData: GanttReactData
19
- internalData: GanttInternalData
20
- getRefMaps(): GanttPrivateRef
21
- getComputeMaps(): GanttPrivateComputed
22
- renderVN: RenderFunction
23
- }
24
-
25
- export interface GanttPrivateRef<D = any> extends GridPrivateRef<D> {
26
- refGanttView: Ref<(VxeGanttViewInstance & VxeGanttViewPrivateMethods) | undefined>
27
- refGanttContainerElem: Ref<HTMLDivElement | undefined>
28
- refClassifyWrapperElem: Ref<HTMLDivElement | undefined>
29
- }
30
- export interface VxeGanttPrivateRef<D = any> extends GanttPrivateRef<D> { }
31
-
32
- export namespace VxeGanttPropTypes {
33
- export type Size = VxeGridPropTypes.Size
34
- export type Layouts = VxeGanttDefines.LayoutKey[] | VxeGanttDefines.LayoutKey[][]
35
- export type Column<D = any> = VxeGridPropTypes.Column<D>
36
- export type Columns<D = any> = Column<D>[]
37
- export interface Link<D = any> extends VxeGanttDefines.LinkStyleConfig {
38
- /**
39
- * 线类型 (0 = FinishToStart), (1 = StartToFinish), (2 = StartToStart), (3 = FinishToFinish)
40
- */
41
- type: VxeGanttDependencyType
42
- /**
43
- * 从指定行开始线连接
44
- */
45
- from: D | string | number
46
- /**
47
- * 到目标行结束线连接
48
- */
49
- to: D | string | number
50
- }
51
- export type Links<D = any> = Link<D>[]
52
- export interface PagerConfig extends VxeGridPropTypes.PagerConfig {}
53
- export interface ProxyConfig<D = any> extends VxeGridPropTypes.ProxyConfig<D> {}
54
- export interface ToolbarConfig extends VxeGridPropTypes.ToolbarConfig {}
55
- export interface FormConfig extends VxeGridPropTypes.FormConfig {}
56
- export interface ZoomConfig extends VxeGridPropTypes.ZoomConfig {}
57
-
58
- export interface TaskConfig {
59
- /**
60
- * 标题的字段名
61
- */
62
- titleField?: string
63
- /**
64
- * 开始日期的字段名
65
- */
66
- startField?: string
67
- /**
68
- * 结束日期的字段名
69
- */
70
- endField?: string
71
- /**
72
- * 任务类型
73
- */
74
- typeField?: string
75
- /**
76
- * 进度的字段名
77
- */
78
- progressField?: string
79
- /**
80
- * 自定义解析日期的格式 yyyy-MM-dd HH:mm:ss
81
- */
82
- dateFormat?: string
83
- }
84
-
85
- export interface TaskViewScaleConfig {
86
- /**
87
- * 年配置
88
- */
89
- year?: VxeGanttDefines.ScaleDefaultOptions
90
- /**
91
- * 季度配置
92
- */
93
- quarter?: VxeGanttDefines.ScaleDefaultOptions
94
- /**
95
- * 月配置
96
- */
97
- month?: VxeGanttDefines.ScaleDefaultOptions
98
- /**
99
- * 周配置
100
- */
101
- week?: VxeGanttDefines.ScaleWeekOptions
102
- /**
103
- * 星期配置
104
- */
105
- day?: VxeGanttDefines.ScaleDefaultOptions
106
- /**
107
- * 天配置
108
- */
109
- date?: VxeGanttDefines.ScaleDefaultOptions
110
- /**
111
- * 小时配置
112
- */
113
- hour?: VxeGanttDefines.ScaleDefaultOptions
114
- /**
115
- * 分钟配置
116
- */
117
- minute?: VxeGanttDefines.ScaleDefaultOptions
118
- /**
119
- * 秒配置
120
- */
121
- second?: VxeGanttDefines.ScaleDefaultOptions
122
- }
123
-
124
- export interface TaskNowLineConfig {
125
- /**
126
- * 此刻线的显示方式:start(显示到左侧),center(显示居中),end(显示到右侧),progress(显示实际进度)
127
- */
128
- mode?: 'start' | 'progress' | 'center' | 'end' | '' | null
129
- /**
130
- * 字体颜色
131
- */
132
- fontColor?: string
133
- /**
134
- * 线背景颜色
135
- */
136
- bgColor?: string
137
- /**
138
- * 线宽度
139
- */
140
- width?: number | string
141
- }
142
-
143
- export interface TaskViewConfig<D = any> {
144
- /**
145
- * 高亮此刻线
146
- */
147
- showNowLine?: boolean
148
- /**
149
- * 日期轴配置项
150
- */
151
- scales?: VxeGanttDefines.ColumnScaleType[] | VxeGanttDefines.ColumnScaleConfig[]
152
- /**
153
- * 表格样式
154
- */
155
- tableStyle?: {
156
- /**
157
- * 边框
158
- */
159
- border?: VxeTablePropTypes.Border
160
- /**
161
- * 宽度
162
- */
163
- width?: number | string
164
- minWidth?: number | string
165
- maxWidth?: number | string
166
- }
167
- /**
168
- * 网格样式
169
- */
170
- gridding?: {
171
- /**
172
- * 左侧间距多少列
173
- */
174
- leftSpacing?: number
175
- /**
176
- * 右侧间距多少列
177
- */
178
- rightSpacing?: number
179
- }
180
- /**
181
- * 任务视图样式
182
- */
183
- viewStyle?: {
184
- /**
185
- * 边框
186
- */
187
- border?: VxeTablePropTypes.Border
188
- /**
189
- * 单元格宽度
190
- */
191
- cellWidth?: number | string
192
- /**
193
- * 给行附加 className
194
- */
195
- rowClassName?: string | ((params: {
196
- source: string
197
- type: string
198
- scaleType: VxeGanttDefines.ColumnScaleType
199
- row: D
200
- rowIndex: number
201
- $rowIndex: number
202
- _rowIndex: number
203
- }) => void | null | string | { [key: string]: boolean | null | undefined })
204
- /**
205
- * 行样式
206
- */
207
- rowStyle?: Partial<CSSStyleDeclaration> | ((params: {
208
- source: string
209
- type: string
210
- scaleType: VxeGanttDefines.ColumnScaleType
211
- row: D
212
- rowIndex: number
213
- $rowIndex: number
214
- _rowIndex: number
215
- }) => void | null | Partial<CSSStyleDeclaration>)
216
- /**
217
- * 给单元格附加 className
218
- */
219
- cellClassName?: string | ((params: {
220
- source: string
221
- type: string
222
- scaleType: VxeGanttDefines.ColumnScaleType
223
- dateObj: VxeGanttDefines.ScaleDateObj
224
- startDateObj: VxeGanttDefines.ScaleDateObj
225
- endDateObj: VxeGanttDefines.ScaleDateObj
226
- column?: VxeGanttDefines.ViewColumn<D>
227
- row: D
228
- rowIndex: number
229
- $rowIndex: number
230
- _rowIndex: number
231
- }) => void | null | string | { [key: string]: boolean | null | undefined })
232
- /**
233
- * 单元格样式
234
- */
235
- cellStyle?: Partial<CSSStyleDeclaration> | ((params: {
236
- source: string
237
- type: string
238
- scaleType: VxeGanttDefines.ColumnScaleType
239
- dateObj: VxeGanttDefines.ScaleDateObj
240
- startDateObj: VxeGanttDefines.ScaleDateObj
241
- endDateObj: VxeGanttDefines.ScaleDateObj
242
- column?: VxeGanttDefines.ViewColumn<D>
243
- row: D
244
- rowIndex: number
245
- $rowIndex: number
246
- _rowIndex: number
247
- }) => void | null | Partial<CSSStyleDeclaration>)
248
- }
249
- }
250
-
251
- export interface TaskSplitConfig {
252
- /**
253
- * 是否启用
254
- */
255
- enabled?: boolean
256
- /**
257
- * 是否允许拖拽调整视图宽度
258
- */
259
- resize?: boolean
260
- /**
261
- * 是否自动隐藏折叠按钮
262
- */
263
- autoHideCollapseButton?: boolean
264
- /**
265
- * 是否显示左侧表格的折叠按钮
266
- */
267
- showCollapseTableButton?: boolean
268
- /**
269
- * 是否显示右侧任务的折叠按钮
270
- */
271
- showCollapseTaskButton?: boolean
272
- /**
273
- * 是否显示折叠动画
274
- */
275
- animation?: boolean
276
- }
277
-
278
- export interface TaskLinkConfig<D = any> extends VxeGanttDefines.LinkStyleConfig {
279
- /**
280
- * 是否启用
281
- */
282
- enabled?: boolean
283
- /**
284
- * 当鼠标点击依赖线时,是否要高亮当前依赖线
285
- */
286
- isCurrent?: boolean
287
- /**
288
- * 当鼠标移到依赖线时,是否要高亮当前依赖线
289
- */
290
- isHover?: boolean
291
- /**
292
- * 是否允许双击依赖线删除
293
- */
294
- isDblclickToRemove?: boolean
295
- /**
296
- * 依赖线被删除之前的方法,可以通过返回 false 阻止删除
297
- */
298
- beforeRemoveMethod?(params: {
299
- $gantt: VxeGanttConstructor<D>
300
- linkItem: VxeGanttDefines.LinkConfObj
301
- fromRow: D
302
- toRow: D
303
- }): Promise<boolean> | boolean
304
- /**
305
- * 依赖线删除之后的方法
306
- */
307
- afterRemoveMethod?(params: {
308
- $gantt: VxeGanttConstructor<D>
309
- linkItem: VxeGanttDefines.LinkConfObj
310
- fromRow: D
311
- toRow: D
312
- }): void
313
- /**
314
- * 拖拽开始时是否允许依赖线创建的方法,该方法的返回值用来决定是否允许被拖拽
315
- */
316
- createStartMethod?(params: {
317
- $gantt: VxeGanttConstructor<D>
318
- fromRow: D
319
- fromPoint: 'start' | 'end'
320
- }): boolean
321
- /**
322
- * 拖拽依赖线创建结束时的方法,该方法的返回值用来决定是否允依赖线许被创建
323
- */
324
- createEndMethod?(params: {
325
- $gantt: VxeGanttConstructor<D>
326
- fromRow: D
327
- fromPoint: 'start' | 'end'
328
- toRow: D
329
- toPoint: 'start' | 'end'
330
- }): Promise<boolean> | boolean
331
- /**
332
- * 自定义拖拽结束时依赖线创建被赋值的方法
333
- */
334
- createSetMethod?(params: {
335
- $gantt: VxeGanttConstructor<D>
336
- fromRow: D
337
- fromPoint: 'start' | 'end'
338
- toRow: D
339
- toPoint: 'start' | 'end'
340
- link: {
341
- from: string
342
- to: string
343
- type: VxeGanttDependencyType
344
- }
345
- }): void
346
- }
347
-
348
- export interface TaskBarConfig<D = any> {
349
- /**
350
- * 是否显示进度条
351
- */
352
- showProgress?: boolean
353
- /**
354
- * 是否在任务条显示内容
355
- */
356
- showContent?: boolean
357
- /**
358
- * 是否显示关键路径
359
- */
360
- showCriticalPath?: boolean
361
- /**
362
- * 是否在任务条显示提示信息
363
- */
364
- showTooltip?: boolean
365
- /**
366
- * 自定义任务条内容方法
367
- */
368
- contentMethod?(params: {
369
- scaleType: VxeGanttDefines.ColumnScaleType
370
- title: string
371
- progress?: string | number
372
- row: D
373
- }): string | number
374
- /**
375
- * 任务条样式
376
- */
377
- barStyle?: VxeGanttDefines.DefaultBarStyleConfig | ((params: {
378
- source: string
379
- type: string
380
- scaleType: VxeGanttDefines.ColumnScaleType
381
- $gantt: VxeGanttConstructor<D>
382
- row: D
383
- rowIndex: number
384
- $rowIndex: number
385
- _rowIndex: number
386
- }) => void | null | undefined | VxeGanttDefines.DefaultBarStyleConfig)
387
- /**
388
- * 是否启用拖拽移动日期
389
- */
390
- moveable?: boolean
391
- /**
392
- * 是否启用拖拽调整日期
393
- */
394
- resizable?: boolean
395
- /**
396
- * 是否允许自定义创建依赖线
397
- */
398
- linkCreatable?: boolean
399
- }
400
-
401
- export interface TaskCriticalPathConfig {
402
- /**
403
- * 线颜色
404
- */
405
- lineColor?: string
406
- /**
407
- * 线宽度
408
- */
409
- lineWidth?: number | string
410
- /**
411
- * 线类型
412
- */
413
- lineType?: VxeGanttDefines.LineType
414
- /**
415
- * 是否高亮关键任务条
416
- */
417
- // highlightTasks?: boolean
418
- /**
419
- * 是否高亮关键依赖线
420
- */
421
- // highlightLinks?: boolean
422
- }
423
-
424
- /**
425
- * 里程碑类型配置项
426
- */
427
- export interface TaskBarMilestoneConfig<D = any> {
428
- /**
429
- * 自定义图标
430
- */
431
- icon?: string | ((params: {
432
- $gantt: VxeGanttConstructor<D>
433
- row: D
434
- }) => string)
435
- /**
436
- * 图标状态颜色
437
- */
438
- iconStatus?: VxeComponentStatusType | ((params: {
439
- $gantt: VxeGanttConstructor<D>
440
- row: D
441
- }) => VxeComponentStatusType)
442
- /**
443
- * 自定义图标样式
444
- */
445
- iconStyle?: CSSStyleDeclaration | ((params: {
446
- $gantt: VxeGanttConstructor<D>
447
- row: D
448
- }) => void | null | Partial<CSSStyleDeclaration>)
449
- /**
450
- * 是否显示图标
451
- */
452
- showIcon?: boolean
453
- /**
454
- * 里程碑任务条样式
455
- */
456
- barStyle?: VxeGanttDefines.MilestoneBarStyleConfig | ((params: {
457
- source: string
458
- type: string
459
- scaleType: VxeGanttDefines.ColumnScaleType
460
- row: D
461
- rowIndex: number
462
- $rowIndex: number
463
- _rowIndex: number
464
- }) => void | null | undefined | VxeGanttDefines.MilestoneBarStyleConfig)
465
- }
466
-
467
- /**
468
- * 子视图类型配置项
469
- */
470
- export interface TaskBarSubviewConfig<D = any> {
471
- /**
472
- * 是否启用
473
- */
474
- enabled?: boolean
475
- /**
476
- * 是否显示任务总览
477
- */
478
- showOverview?: boolean
479
- /**
480
- * 子视图任务条样式
481
- */
482
- barStyle?: VxeGanttDefines.SubviewBarStyleConfig | ((params: {
483
- source: string
484
- type: string
485
- scaleType: VxeGanttDefines.ColumnScaleType
486
- row: D
487
- rowIndex: number
488
- $rowIndex: number
489
- _rowIndex: number
490
- }) => void | null | undefined | VxeGanttDefines.SubviewBarStyleConfig)
491
- }
492
-
493
- export interface TaskBarTooltipConfig<D = any> {
494
- theme?: VxeTooltipPropTypes.Theme
495
- enterable?: VxeTooltipPropTypes.Enterable
496
- enterDelay?: VxeTooltipPropTypes.EnterDelay
497
- leaveDelay?: VxeTooltipPropTypes.LeaveDelay
498
- width?: VxeTooltipPropTypes.Width
499
- height?: VxeTooltipPropTypes.Height
500
- minWidth?: VxeTooltipPropTypes.MinWidth
501
- minHeight?: VxeTooltipPropTypes.MinHeight
502
- maxWidth?: VxeTooltipPropTypes.MaxWidth
503
- maxHeight?: VxeTooltipPropTypes.MaxHeight
504
- useHtml?: VxeTooltipPropTypes.UseHtml
505
- contentMethod?(params: {
506
- $gantt: VxeGanttConstructor<D>
507
- scaleType: VxeGanttDefines.ColumnScaleType
508
- row: D
509
- rowIndex: number
510
- $rowIndex: number
511
- _rowIndex: number
512
- }): string | null | void
513
- /**
514
- * 已废弃,请使用 useHtml
515
- * @deprecated
516
- */
517
- useHTML?: VxeTooltipPropTypes.UseHTML
518
- }
519
-
520
- export interface TaskBarResizeConfig<D = any> {
521
- /**
522
- * 拖拽模式
523
- */
524
- mode?: 'scale' | 'progress' | 'default' | '' | null
525
- /**
526
- * 是否允许拖拽调整任务起始日期
527
- */
528
- allowStart?: boolean
529
- /**
530
- * 是否允许拖拽调整任务条结束日期
531
- */
532
- allowEnd?: boolean
533
- /**
534
- * 显示 Tooltip 提示
535
- */
536
- showTooltip?: boolean
537
- /**
538
- * 拖拽调整任务后自动更新依赖线关联任务的日期
539
- */
540
- isSyncLinkTask?: boolean
541
- /**
542
- * 拖拽调整任务自动根据依赖线的紧前紧后关系来限制可拖拽日期范围
543
- */
544
- isLimitByLink?: boolean
545
- /**
546
- * 可拖拽的最小宽度大小
547
- */
548
- minWidthSize?: number
549
- /**
550
- * 拖拽开始时是否允许行拖拽调整任务日期的方法,该方法的返回值用来决定是否允许被拖拽
551
- */
552
- resizeStartMethod?(params: {
553
- $gantt: VxeGanttConstructor<D>
554
- resizeType: 'start' | 'end'
555
- row: D
556
- startDate: Date
557
- endDate: Date
558
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
559
- }): boolean
560
- /**
561
- * 拖拽结束时是否允许行拖拽调整任务日期的方法,该方法的返回值用来决定是否允许被拖拽调整日期范围
562
- */
563
- resizeEndMethod?(params: {
564
- $gantt: VxeGanttConstructor<D>
565
- resizeType: 'start' | 'end'
566
- row: D
567
- startDate: Date
568
- endDate: Date
569
- targetStartDate: Date
570
- targetEndDate: Date
571
- offsetSize: number
572
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
573
- }): Promise<boolean> | boolean
574
- /**
575
- * 自定义拖拽结束时赋值的方法
576
- */
577
- resizeSetMethod?(params: {
578
- $gantt: VxeGanttConstructor<D>
579
- resizeType: 'start' | 'end'
580
- row: D
581
- startDate: Date
582
- endDate: Date
583
- targetStartDate: Date
584
- targetEndDate: Date
585
- startValue: any
586
- endValue: any
587
- offsetSize: number
588
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
589
- }): void
590
- }
591
-
592
- export interface TaskBarResizeTooltipConfig<D = any> extends Omit<VxeTooltipProps, 'content' | 'transfer' | 'appendTo'> {
593
- /**
594
- * 自定义内容
595
- */
596
- contentMethod?: (params: {
597
- $gantt: VxeGanttConstructor<D>
598
- resizeType: 'start' | 'end'
599
- row: D
600
- startDate: Date
601
- endDate: Date
602
- targetStartDate: Date
603
- targetEndDate: Date
604
- offsetSize: number
605
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
606
- }) => string | number | null | undefined
607
- }
608
-
609
- export interface TaskBarMoveConfig<D = any> {
610
- /**
611
- * 拖拽模式
612
- */
613
- mode?: 'scale' | 'progress' | 'default' | '' | null
614
- /**
615
- * 拖拽移动任务后自动更新依赖线关联任务的日期
616
- */
617
- isSyncLinkTask?: boolean
618
- /**
619
- * 拖拽移动任务自动根据依赖线的紧前紧后关系来限制可拖拽日期范围
620
- */
621
- isLimitByLink?: boolean
622
- /**
623
- * 显示 Tooltip 提示
624
- */
625
- showTooltip?: boolean
626
- /**
627
- * 拖拽开始时是否允许行拖拽移动任务日期的方法,该方法的返回值用来决定是否允许被拖拽
628
- */
629
- moveStartMethod?(params: {
630
- $gantt: VxeGanttConstructor<D>
631
- row: D
632
- startDate: Date
633
- endDate: Date
634
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
635
- }): boolean
636
- /**
637
- * 拖拽移动任务日期结束时的方法,该方法的返回值用来决定是否允许被拖拽移动到指定日期
638
- */
639
- moveEndMethod?(params: {
640
- $gantt: VxeGanttConstructor<D>
641
- row: D
642
- startDate: Date
643
- endDate: Date
644
- targetStartDate: Date
645
- targetEndDate: Date
646
- offsetSize: number
647
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
648
- }): Promise<boolean> | boolean
649
- /**
650
- * 自定义拖拽结束时任务日期被赋值的方法
651
- */
652
- moveSetMethod?(params: {
653
- $gantt: VxeGanttConstructor<D>
654
- row: D
655
- startDate: Date
656
- endDate: Date
657
- targetStartDate: Date
658
- targetEndDate: Date
659
- startValue: any
660
- endValue: any
661
- offsetSize: number
662
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
663
- }): void
664
- }
665
-
666
- export interface TaskBarMoveTooltipConfig<D = any> extends Omit<VxeTooltipProps, 'content' | 'transfer' | 'appendTo'> {
667
- /**
668
- * 自定义内容
669
- */
670
- contentMethod?: (params: {
671
- $gantt: VxeGanttConstructor<D>
672
- row: D
673
- startDate: Date
674
- endDate: Date
675
- targetStartDate: Date
676
- targetEndDate: Date
677
- offsetSize: number
678
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
679
- }) => string | number | null | undefined
680
- }
681
- }
682
-
683
- export interface VxeGanttProps<D = any> extends Omit<VxeGridProps<D>, 'layouts'> {
684
- /**
685
- * 依赖线
686
- */
687
- links?: VxeGanttPropTypes.Links<D>
688
- layouts?: VxeGanttPropTypes.Layouts
689
- taskConfig?: VxeGanttPropTypes.TaskConfig
690
- taskViewScaleConfig?: VxeGanttPropTypes.TaskViewScaleConfig
691
- taskNowLineConfig?: VxeGanttPropTypes.TaskNowLineConfig
692
- taskViewConfig?: VxeGanttPropTypes.TaskViewConfig<D>
693
- taskSplitConfig?: VxeGanttPropTypes.TaskSplitConfig
694
- taskLinkConfig?: VxeGanttPropTypes.TaskLinkConfig
695
- taskBarConfig?: VxeGanttPropTypes.TaskBarConfig<D>
696
- taskBarMilestoneConfig?: VxeGanttPropTypes.TaskBarMilestoneConfig<D>
697
- taskCriticalPathConfig?: VxeGanttPropTypes.TaskCriticalPathConfig
698
- taskBarSubviewConfig?: VxeGanttPropTypes.TaskBarSubviewConfig<D>
699
- taskBarTooltipConfig?: VxeGanttPropTypes.TaskBarTooltipConfig<D>
700
- taskBarResizeConfig?: VxeGanttPropTypes.TaskBarResizeConfig<D>
701
- taskBarResizeTooltipConfig?: VxeGanttPropTypes.TaskBarResizeTooltipConfig<D>
702
- taskBarMoveConfig?: VxeGanttPropTypes.TaskBarMoveConfig<D>
703
- taskBarMoveTooltipConfig?: VxeGanttPropTypes.TaskBarMoveTooltipConfig<D>
704
- }
705
-
706
- export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
707
- computeTaskOpts: ComputedRef<VxeGanttPropTypes.TaskConfig>
708
- computeTaskNowLineOpts: ComputedRef<VxeGanttPropTypes.TaskNowLineConfig>
709
- computeTaskViewOpts: ComputedRef<VxeGanttPropTypes.TaskViewConfig<D>>
710
- computeTaskViewScaleOpts: ComputedRef<VxeGanttPropTypes.TaskViewScaleConfig>
711
- computeTaskBarOpts: ComputedRef<VxeGanttPropTypes.TaskBarConfig<D>>
712
- computeTaskBarMoveOpts: ComputedRef<VxeGanttPropTypes.TaskBarMoveConfig<D>>
713
- computeTaskBarMoveTooltipOpts: ComputedRef<VxeGanttPropTypes.TaskBarMoveTooltipConfig<D>>
714
- computeTaskBarResizeOpts: ComputedRef<VxeGanttPropTypes.TaskBarResizeConfig<D>>
715
- computeTaskBarResizeTooltipOpts: ComputedRef<VxeGanttPropTypes.TaskBarResizeTooltipConfig<D>>
716
- computeTaskSplitOpts: ComputedRef<VxeGanttPropTypes.TaskSplitConfig>
717
- computeTaskBarMilestoneOpts: ComputedRef<VxeGanttPropTypes.TaskBarMilestoneConfig<D>>
718
- computeTaskCriticalPathOpts: ComputedRef<VxeGanttPropTypes.TaskCriticalPathConfig>
719
- computeTaskBarSubviewOpts: ComputedRef<VxeGanttPropTypes.TaskBarSubviewConfig<D>>
720
- computeTaskBarTooltipOpts: ComputedRef<VxeGanttPropTypes.TaskBarTooltipConfig>
721
- computeTaskLinkOpts: ComputedRef<VxeGanttPropTypes.TaskLinkConfig>
722
- computeTaskViewScales: ComputedRef<VxeGanttDefines.ColumnScaleType[] | VxeGanttDefines.ColumnScaleConfig[] | undefined>
723
- computeDateFormat: ComputedRef<string>
724
- computeScaleUnit: ComputedRef<VxeGanttDefines.ColumnScaleType>
725
- computeMinScale: ComputedRef<VxeGanttDefines.ColumnScaleObj>
726
- computeScaleStep: ComputedRef<number>
727
- computeWeekScale: ComputedRef<VxeGanttDefines.ColumnScaleObj | null | undefined>
728
- computeTitleField: ComputedRef<string>
729
- computeStartField: ComputedRef<string>
730
- computeEndField: ComputedRef<string>
731
- computeTypeField: ComputedRef<string>
732
- computeProgressField: ComputedRef<string>
733
- computeScrollbarOpts: ComputedRef<VxeTablePropTypes.ScrollbarConfig>
734
- computeScrollbarXOpts: ComputedRef<VxeTablePropTypes.ScrollbarXConfig>
735
- computeScrollbarYOpts: ComputedRef<VxeTablePropTypes.ScrollbarYConfig>
736
- computeScrollbarXToTop: ComputedRef<boolean>
737
- computeScrollbarYToLeft: ComputedRef<boolean>
738
- }
739
- export interface VxeGanttPrivateComputed<D = any> extends GanttPrivateComputed<D> { }
740
-
741
- export interface GanttReactData<D = any> extends GridReactData<D> {
742
- showLeftView: boolean
743
- showRightView: boolean
744
- taskScaleList: VxeGanttDefines.ColumnScaleObj[]
745
- tableLinks: VxeGanttDefines.LinkConfObj[]
746
- // 是否存在纵向滚动条
747
- overflowY: boolean
748
- // 是否存在横向滚动条
749
- overflowX: boolean
750
- // 纵向滚动条的宽度
751
- scrollbarWidth: number
752
- // 横向滚动条的高度
753
- scrollbarHeight: number
754
-
755
- // 存放 bar tooltip 相关信息
756
- barTipStore: {
757
- row: D | null
758
- content: string
759
- visible: boolean
760
- params?: null | {
761
- row: D | null
762
- rowIndex: number
763
- $rowIndex: number
764
- _rowIndex: number
765
- }
766
- }
767
-
768
- dragLinkFromStore: {
769
- rowid: string | null
770
- type: 0 | 1
771
- }
772
- activeLink: VxeGanttDefines.LinkConfObj | null
773
- activeBarRowid: any
774
- isActiveCeLe: boolean
775
- linkList: VxeGanttDefines.LinkConfObj[]
776
- upLinkFlag: number
777
-
778
- showSplitAnimat: boolean
779
-
780
- nowTime: number
781
- currLeftSpacing: number
782
- currRightSpacing: number
783
-
784
- // 关键路径
785
- criticalLinks: VxeGanttPropTypes.Link[]
786
- criticalRowIds: string[]
787
- criticalPathFlag: number
788
- }
789
-
790
- export interface GanttInternalData extends GridInternalData {
791
- linkFromConfMaps: Record<string, VxeGanttDefines.LinkConfObj[]>
792
- linkToConfMaps: Record<string, VxeGanttDefines.LinkConfObj[]>
793
- linkUniqueMaps: Record<string, VxeGanttDefines.LinkConfObj>
794
- resizeTableWidth: number
795
- barTipTimeout?: any
796
-
797
- dragBarRow?: any
798
- dragLineRow?: any
799
- dragLinkToStore: {
800
- rowid: string | null
801
- type: 0 | 1
802
- }
803
-
804
- // 关键路径
805
- criticalRowList: any[]
806
- criticalRowMaps: Map<string, any>
807
- criticalLinkKeyMaps: Map<string, VxeGanttPropTypes.Link>
808
-
809
- _taTime?: any
810
- _msTout?: any
811
- }
812
-
813
- export interface GanttMethods<D = any> extends Omit<GridMethods<D>, 'dispatchEvent'> {
814
- dispatchEvent(type: ValueOf<VxeGanttEmits>, params: Record<string, any>, evnt: Event | null): void
815
- /**
816
- * 刷新任务视图
817
- */
818
- refreshTaskView(): Promise<any>
819
-
820
- /**
821
- * 表格视图是否显示
822
- */
823
- hasTableViewVisible(): boolean
824
- /**
825
- * 显示表格视图
826
- */
827
- showTableView(): Promise<void>
828
- /**
829
- * 隐藏表格视图
830
- */
831
- hideTableView(): Promise<void>
832
- /**
833
- * 任务视图是否显示
834
- */
835
- hasTaskViewVisible(): boolean
836
- /**
837
- * 显示任务视图
838
- */
839
- showTaskView(): Promise<void>
840
- /**
841
- * 隐藏任务视图
842
- */
843
- hideTaskView(): Promise<void>
844
- /**
845
- * 手动关闭任务条提示
846
- */
847
- closeTaskBarTooltip(): Promise<void>
848
- /**
849
- * 如果有滚动条,则滚动到对应的任务视图
850
- */
851
- scrollToTaskView(rowOrRowid: any): Promise<any>
852
- /**
853
- * 如果任务视图有横向滚动条,则滚动到任务视图对应的日期
854
- */
855
- scrollToDateView(colDate: string | Date | number): Promise<any>
856
- /**
857
- * 获取关键路径
858
- */
859
- getCriticalPath(): {
860
- rowIds: string[]
861
- rows: D[]
862
- links: VxeGanttPropTypes.Links
863
- }
864
- }
865
- export interface VxeGanttMethods<D = any> extends GanttMethods<D>, Omit<VxeGridMethods<D>, 'dispatchEvent'> { }
866
-
867
- export interface GanttPrivateMethods<D = any> extends GridPrivateMethods<D> {
868
- callSlot<T = any>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
869
-
870
- /**
871
- * @private
872
- */
873
- handleTaskCellClickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
874
- /**
875
- * @private
876
- */
877
- handleTaskCellDblclickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
878
- /**
879
- * @private
880
- */
881
- handleTaskHeaderContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskHeaderContextmenuParams): void
882
- /**
883
- * @private
884
- */
885
- handleTaskBodyContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskBodyContextmenuParams): void
886
- /**
887
- * @private
888
- */
889
- handleTaskFooterContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskFooterContextmenuParams): void
890
- /**
891
- * @private
892
- */
893
- handleTaskBarContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskBarContextmenuParams): void
894
- /**
895
- * @private
896
- */
897
- handleTaskBarClickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarClickParams): void
898
- /**
899
- * @private
900
- */
901
- handleTaskBarDblclickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarClickParams): void
902
- /**
903
- * @private
904
- */
905
- triggerTaskBarTooltipEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarMouseoverParams): void
906
- /**
907
- * @private
908
- */
909
- handleTaskBarTooltipLeaveEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarMouseoverParams): void
910
- }
911
- export interface VxeGanttPrivateMethods<D = any> extends GanttPrivateMethods<D> {}
912
-
913
- export type VxeGanttEmits = [
914
- ...VxeGridEmits,
915
-
916
- 'task-cell-click',
917
- 'task-cell-dblclick',
918
- 'task-bar-mouseenter',
919
- 'task-bar-mouseleave',
920
- 'task-bar-click',
921
- 'task-bar-dblclick',
922
- 'task-view-cell-click',
923
- 'task-view-cell-dblclick',
924
- 'task-move-start',
925
- 'task-move-drag',
926
- 'task-move-end',
927
- 'task-resize-start',
928
- 'task-resize-drag',
929
- 'task-resize-end',
930
- 'task-link-click',
931
- 'task-link-dblclick',
932
- 'task-link-remove'
933
- ]
934
-
935
- /**
936
- * 依赖线枚举类型
937
- */
938
- export enum VxeGanttDependencyType {
939
- /**
940
- * 结束后才开始,表示一个任务必须在另一个任务开始之前完成
941
- */
942
- FinishToStart = 0,
943
- /**
944
- * 开始到结束,表示从某个过程的开始到结束的整个过程
945
- */
946
- StartToFinish = 1,
947
- /**
948
- * 开始后才开始,表示一个活动结束了,另一个活动才能开始,它们之间按先后顺序进行
949
- */
950
- StartToStart = 2,
951
- /**
952
- * 完成到完成,表示一个任务必须在另一个任务完成之后才能完成
953
- */
954
- FinishToFinish = 3
955
- }
956
-
957
- /**
958
- * 任务渲染类型
959
- */
960
- export enum VxeGanttTaskType {
961
- /**
962
- * 里程碑类型,该类型节点不需要结束日期
963
- */
964
- Milestone = 'milestone',
965
- /**
966
- * 子视图类型,该类型会将子任务渲染到一行,无需开始日期和结束日期
967
- */
968
- Subview = 'subview'
969
- }
970
-
971
- export namespace VxeGanttDefines {
972
- export interface GanttEventParams<D = any> extends VxeComponentEventParams {
973
- $gantt: VxeGanttConstructor<D>
974
- }
975
-
976
- export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Gantt' | 'Bottom' | 'Pager'
977
-
978
- export interface LinkConfObj<D = any> extends VxeGanttPropTypes.Link<D> {
979
- key: string
980
- leColorKey: string
981
- leStatus: VxeComponentStatusType | undefined
982
- leColor: string | undefined
983
- leType: LineType | undefined
984
- leWidth: string | number | undefined
985
- swArrow: boolean | undefined
986
- }
987
-
988
- export type LineType = 'dashed' | 'solid' | 'flowDashed'
989
-
990
- export interface LinkStyleConfig {
991
- /**
992
- * 线颜色
993
- */
994
- lineColor?: string
995
- /**
996
- * 线状态颜色,如果需要自定义颜色使用 lineColor
997
- */
998
- lineStatus?: VxeComponentStatusType
999
- /**
1000
- * 线宽度
1001
- */
1002
- lineWidth?: number | string
1003
- /**
1004
- * 线类型
1005
- */
1006
- lineType?: LineType
1007
- /**
1008
- * 显示箭头
1009
- */
1010
- showArrow?: boolean
1011
- }
1012
-
1013
- export interface LinkInfoObj<D = any> {
1014
- row: D
1015
- rowLinks: VxeGanttPropTypes.Link[]
1016
- allLinks: VxeGanttPropTypes.Link[]
1017
- allRows: D[]
1018
-
1019
- /**
1020
- * 已废弃
1021
- * @deprecated
1022
- */
1023
- toLinks: VxeGanttPropTypes.Link[]
1024
- /**
1025
- * 已废弃
1026
- * @deprecated
1027
- */
1028
- fromLinks: VxeGanttPropTypes.Link[]
1029
- /**
1030
- * 已废弃
1031
- * @deprecated
1032
- */
1033
- toRows: D[]
1034
- /**
1035
- * 已废弃
1036
- * @deprecated
1037
- */
1038
- fromRows: D[]
1039
- }
1040
-
1041
- export interface DefaultBarStyleConfig {
1042
- /**
1043
- * 圆角
1044
- */
1045
- round?: boolean
1046
- /**
1047
- * 任务条的背景颜色
1048
- */
1049
- bgColor?: string
1050
- /**
1051
- * 任务条的字体颜色
1052
- */
1053
- fontColor?: string
1054
- /**
1055
- * 已完成部分任务条的背景颜色
1056
- */
1057
- completedBgColor?: string
1058
- /**
1059
- * 子任务视图概况任务条的背景颜色
1060
- */
1061
- overviewBgColor?: string
1062
- /**
1063
- * 给任务条附加 style
1064
- */
1065
- style?: Partial<CSSStyleDeclaration> | null
1066
- }
1067
-
1068
- export interface SubviewBarStyleConfig {
1069
- /**
1070
- * 给任务条附加 style
1071
- */
1072
- style?: Partial<CSSStyleDeclaration> | null
1073
- }
1074
-
1075
- export interface MilestoneBarStyleConfig {
1076
- /**
1077
- * 给任务条附加 style
1078
- */
1079
- style?: Partial<CSSStyleDeclaration> | null
1080
- }
1081
-
1082
- export interface GroupColumn<D = any> {
1083
- scaleItem: ColumnScaleObj
1084
- columns: ViewColumn<D>[]
1085
- }
1086
-
1087
- export interface ViewColumn<D = any> {
1088
- field: string
1089
- title: string
1090
- dateObj: VxeGanttDefines.ScaleDateObj
1091
- startDateObj: VxeGanttDefines.ScaleDateObj
1092
- endDateObj: VxeGanttDefines.ScaleDateObj
1093
- childCount?: number
1094
- children?: ViewColumn<D>[]
1095
- }
1096
-
1097
- export interface ScaleDateObj {
1098
- date: Date
1099
- yy: string
1100
- yyyy: string
1101
- M: string
1102
- MM: string
1103
- d: string
1104
- dd: string
1105
- H: string
1106
- HH: string
1107
- m: string
1108
- mm: string
1109
- s: string
1110
- ss: string
1111
- q: number
1112
- W: string
1113
- WW: string
1114
- e: number
1115
- E: number
1116
- }
1117
-
1118
- export interface ScaleDefaultOptions {
1119
- /**
1120
- * 日期跨度间隔
1121
- */
1122
- step?: number
1123
- /**
1124
- * 日期绑定值的格式
1125
- */
1126
- valueFormat?: string
1127
- /**
1128
- * 自定义时间轴-列头单元格标题
1129
- */
1130
- titleMethod?: (params: VxeGanttSlotTypes.TaskViewCellTitleSlotParams) => string | number
1131
- /**
1132
- * 自定义时间轴-自定义标题日期格式
1133
- */
1134
- titleFormat?: string
1135
- /**
1136
- * 自定义时间轴-列头单元格样式
1137
- */
1138
- headerCellStyle?: CSSStyleDeclaration | ((params: VxeGanttSlotTypes.TaskViewHeaderCellStyleSlotParams) => void | null | Partial<CSSStyleDeclaration>)
1139
- /**
1140
- * 自定义插槽模板
1141
- */
1142
- slots?: {
1143
- /**
1144
- * 自定义标题
1145
- */
1146
- title?: string | ((params: VxeGanttSlotTypes.TaskViewCellTitleSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
1147
- }
1148
- }
1149
-
1150
- export interface ScaleWeekOptions extends ScaleDefaultOptions {
1151
- /**
1152
- * 设置每周的起始日期是星期几
1153
- */
1154
- startDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6
1155
- }
1156
-
1157
- /**
1158
- * 日期轴类型
1159
- */
1160
- export type ColumnScaleType = 'second' | 'minute' | 'hour' | 'date' | 'day' | 'week' | 'month' | 'quarter' | 'year'
1161
-
1162
- export interface ColumnScaleConfig extends ScaleDefaultOptions, ScaleWeekOptions {
1163
- type: ColumnScaleType
1164
- align?: VxeComponentAlignType
1165
- }
1166
-
1167
- export interface ColumnScaleObj extends ScaleDefaultOptions, ScaleWeekOptions {
1168
- type: ColumnScaleType
1169
- align?: VxeComponentAlignType
1170
- level: number
1171
- }
1172
-
1173
- export interface RowCacheItem<D = any> {
1174
- row: D
1175
- rowid: string
1176
- oLeftSize: number
1177
- oWidthSize: number
1178
- }
1179
-
1180
- export interface TaskCellClickParams<D = any> {
1181
- row: D
1182
- column: VxeGanttPropTypes.Column<D>
1183
- }
1184
- export interface TaskBarClickParams<D = any> {
1185
- row: D
1186
- }
1187
- export interface TaskCellClickEventParams<D = any> extends TaskCellClickParams<D>, GanttEventParams {}
1188
- export interface TaskCellDblclickEventParams<D = any> extends TaskCellClickEventParams<D> {}
1189
- export interface TaskBarClickEventParams<D = any> extends TaskBarClickParams<D>, GanttEventParams {}
1190
- export interface TaskBarDblclickEventParams<D = any> extends TaskBarClickEventParams<D> {}
1191
-
1192
- export interface TaskBarMouseoverParams<D = any> extends GanttEventParams {
1193
- scaleType: VxeGanttDefines.ColumnScaleType
1194
- row: D
1195
- rowIndex: number
1196
- $rowIndex: number
1197
- _rowIndex: number
1198
- }
1199
-
1200
- export interface TaskHeaderContextmenuParams<D = any> {
1201
- source: string
1202
- type: string
1203
- column: ViewColumn<D>
1204
- $rowIndex: number
1205
- }
1206
- export interface TaskBodyContextmenuParams<D = any> {
1207
- source: string
1208
- type: string
1209
- row?: D
1210
- rowIndex: number
1211
- $rowIndex: number
1212
- _rowIndex: number
1213
- column?: ViewColumn<D>
1214
- }
1215
- export interface TaskFooterContextmenuParams<D = any> {
1216
- source: string
1217
- type: string
1218
- column?: ViewColumn<D>
1219
- $rowIndex: number
1220
- }
1221
- export interface TaskBarContextmenuParams<D = any> {
1222
- source: string
1223
- type: string
1224
- row: D
1225
- rowIndex: number
1226
- $rowIndex: number
1227
- _rowIndex: number
1228
- }
1229
-
1230
- export interface TaskViewCellClickEventParams<D = any> extends GanttEventParams<D> {
1231
- row: D
1232
- column: ViewColumn<D>
1233
- }
1234
- export interface TaskViewCellDblclickEventParams<D = any> extends TaskViewCellClickEventParams<D> {}
1235
-
1236
- export interface TaskMoveStartEventParams<D = any> extends GanttEventParams<D> {
1237
- $gantt: VxeGanttConstructor<D>
1238
- row: D
1239
- startDate: Date
1240
- endDate: Date
1241
- }
1242
- export interface TaskMoveDragEventParams<D = any> extends TaskMoveStartEventParams<D> {
1243
- targetStartDate: Date
1244
- targetEndDate: Date
1245
- offsetSize: number
1246
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
1247
- }
1248
- export interface TaskMoveEndEventParams<D = any> extends TaskMoveStartEventParams<D> {
1249
- targetStartDate: Date
1250
- targetEndDate: Date
1251
- offsetSize: number
1252
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
1253
- }
1254
- export interface TaskResizeStartEventParams<D = any> extends GanttEventParams<D> {
1255
- $gantt: VxeGanttConstructor<D>
1256
- resizeType: 'start' | 'end'
1257
- row: D
1258
- startDate: Date
1259
- endDate: Date
1260
- }
1261
- export interface TaskResizeDragEventParams<D = any> extends TaskResizeStartEventParams<D> {
1262
- targetStartDate: Date
1263
- targetEndDate: Date
1264
- offsetSize: number
1265
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
1266
- }
1267
- export interface TaskResizeEndEventParams<D = any> extends TaskResizeStartEventParams<D> {
1268
- targetStartDate: Date
1269
- targetEndDate: Date
1270
- offsetSize: number
1271
- linkInfo: VxeGanttDefines.LinkInfoObj<D>
1272
- }
1273
-
1274
- export interface TaskLinkClickEventParams<D = any> extends GanttEventParams<D> {
1275
- linkItem: VxeGanttDefines.LinkConfObj
1276
- fromRow: D
1277
- toRow: D
1278
- }
1279
- export interface TaskLinkDblclickEventParams<D = any> extends TaskLinkClickEventParams<D> {}
1280
- export interface TaskLinkRemoveEventParams<D = any> extends TaskLinkClickEventParams<D> {}
1281
- }
1282
-
1283
- export interface VxeGanttEventProps<D = any> extends VxeGridEventProps<D> {
1284
- onTaskCellClick?: VxeGanttEvents.TaskCellClick<D>
1285
- onTaskCellDblclick?: VxeGanttEvents.TaskCellDblclick<D>
1286
- onTaskBarClick?: VxeGanttEvents.TaskBarClick<D>
1287
- onTaskBarDblclick?: VxeGanttEvents.TaskBarDblclick<D>
1288
- onTaskViewCellClick?: VxeGanttEvents.TaskViewCellClick<D>
1289
- onTaskViewCellDblclick?: VxeGanttEvents.TaskViewCellDblclick<D>
1290
- onTaskMoveStart?: VxeGanttEvents.TaskMoveStart<D>
1291
- onTaskMoveDrag?: VxeGanttEvents.TaskMoveDrag<D>
1292
- onTaskMoveEnd?: VxeGanttEvents.TaskMoveEnd<D>
1293
- onTaskResizeStart?: VxeGanttEvents.TaskResizeStart<D>
1294
- onTaskResizeDrag?: VxeGanttEvents.TaskResizeDrag<D>
1295
- onTaskResizeEnd?: VxeGanttEvents.TaskResizeEnd<D>
1296
- onTaskLinkClick?: VxeGanttEvents.TaskLinkRemove<D>
1297
- onTaskLinkDblclick?: VxeGanttEvents.TaskLinkDblclick<D>
1298
- onTaskLinkRemove?: VxeGanttEvents.TaskLinkRemove<D>
1299
- }
1300
-
1301
- export interface VxeGanttListeners<D = any> extends VxeGridListeners<D> {
1302
- taskCellClick?: VxeGanttEvents.TaskCellClick<D>
1303
- taskCellDblclick?: VxeGanttEvents.TaskCellDblclick<D>
1304
- taskBarClick?: VxeGanttEvents.TaskBarClick<D>
1305
- taskBarDblclick?: VxeGanttEvents.TaskBarDblclick<D>
1306
- taskViewCellClick?: VxeGanttEvents.TaskViewCellClick<D>
1307
- taskViewCellDblclick?: VxeGanttEvents.TaskViewCellDblclick<D>
1308
- taskMoveStart?: VxeGanttEvents.TaskMoveStart<D>
1309
- taskMoveDrag?: VxeGanttEvents.TaskMoveDrag<D>
1310
- taskMoveEnd?: VxeGanttEvents.TaskMoveEnd<D>
1311
- taskResizeStart?: VxeGanttEvents.TaskResizeStart<D>
1312
- taskResizeDrag?: VxeGanttEvents.TaskResizeDrag<D>
1313
- taskResizeEnd?: VxeGanttEvents.TaskResizeEnd<D>
1314
- taskLinkClick?: VxeGanttEvents.TaskLinkClick<D>
1315
- taskLinkDblclick?: VxeGanttEvents.TaskLinkDblclick<D>
1316
- taskLinkRemove?: VxeGanttEvents.TaskLinkRemove<D>
1317
- }
1318
-
1319
- export namespace VxeGanttEvents {
1320
- export type TaskCellClick<D = any> = (params: VxeGanttDefines.TaskCellClickEventParams<D>) => void
1321
- export type TaskCellDblclick<D = any> = (params: VxeGanttDefines.TaskCellDblclickEventParams<D>) => void
1322
- export type TaskBarClick<D = any> = (params: VxeGanttDefines.TaskBarClickEventParams<D>) => void
1323
- export type TaskBarDblclick<D = any> = (params: VxeGanttDefines.TaskBarDblclickEventParams<D>) => void
1324
- export type TaskViewCellClick<D = any> = (params: VxeGanttDefines.TaskViewCellClickEventParams<D>) => void
1325
- export type TaskViewCellDblclick<D = any> = (params: VxeGanttDefines.TaskViewCellDblclickEventParams<D>) => void
1326
- export type TaskMoveStart<D = any> = (params: VxeGanttDefines.TaskMoveStartEventParams<D>) => void
1327
- export type TaskMoveDrag<D = any> = (params: VxeGanttDefines.TaskMoveDragEventParams<D>) => void
1328
- export type TaskMoveEnd<D = any> = (params: VxeGanttDefines.TaskMoveEndEventParams<D>) => void
1329
- export type TaskResizeStart<D = any> = (params: VxeGanttDefines.TaskResizeStartEventParams<D>) => void
1330
- export type TaskResizeDrag<D = any> = (params: VxeGanttDefines.TaskResizeDragEventParams<D>) => void
1331
- export type TaskResizeEnd<D = any> = (params: VxeGanttDefines.TaskResizeEndEventParams<D>) => void
1332
- export type TaskLinkClick<D = any> = (params: VxeGanttDefines.TaskLinkClickEventParams<D>) => void
1333
- export type TaskLinkDblclick<D = any> = (params: VxeGanttDefines.TaskLinkDblclickEventParams<D>) => void
1334
- export type TaskLinkRemove<D = any> = (params: VxeGanttDefines.TaskLinkRemoveEventParams<D>) => void
1335
- }
1336
-
1337
- export namespace VxeGanttSlotTypes {
1338
- export interface DefaultSlotParams<D = any> {
1339
- $gantt: VxeGanttConstructor<D>
1340
- }
1341
-
1342
- export interface TaskBarSlotParams<D = any> {
1343
- row: D
1344
- }
1345
-
1346
- export interface TaskBarOverviewSlotParams<D = any> {
1347
- row: D
1348
- }
1349
-
1350
- export interface TaskViewCellTitleSlotParams {
1351
- title: string | number
1352
- dateObj: VxeGanttDefines.ScaleDateObj
1353
- startDateObj: VxeGanttDefines.ScaleDateObj
1354
- endDateObj: VxeGanttDefines.ScaleDateObj
1355
- scaleObj: VxeGanttDefines.ColumnScaleObj
1356
- $rowIndex: number
1357
- }
1358
- export interface TaskViewHeaderCellStyleSlotParams extends TaskViewCellTitleSlotParams {}
1359
-
1360
- export interface TaskBarTooltipSlotParams<D = any> {
1361
- row: D
1362
- rowIndex: number
1363
- $rowIndex: number
1364
- _rowIndex: number
1365
- tooltipContent: string
1366
- }
1367
-
1368
- export interface TaskTaskNowLineSlotParams {
1369
- }
1370
- }
1371
-
1372
- export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
1373
- /**
1374
- * 自定义任务模板
1375
- */
1376
- taskBar?(params: VxeGanttSlotTypes.TaskBarSlotParams<D>): any
1377
- 'task-bar'?(params: VxeGanttSlotTypes.TaskBarSlotParams<D>): any
1378
- /**
1379
- * 自定义任务总览模板
1380
- */
1381
- taskBarOverview?(params: VxeGanttSlotTypes.TaskBarOverviewSlotParams<D>): any
1382
- 'task-bar-overview'?(params: VxeGanttSlotTypes.TaskBarOverviewSlotParams<D>): any
1383
- /**
1384
- * 自定义任务提示模板
1385
- */
1386
- taskBarTooltip?(params: VxeGanttSlotTypes.TaskBarTooltipSlotParams<D>): any
1387
- 'task-bar-tooltip'?(params: VxeGanttSlotTypes.TaskBarTooltipSlotParams<D>): any
1388
- /**
1389
- * 自定义任务此刻线模板
1390
- */
1391
- taskNowLine?(params: VxeGanttSlotTypes.TaskTaskNowLineSlotParams): any
1392
- 'task-now-line'?(params: VxeGanttSlotTypes.TaskTaskNowLineSlotParams): any
1393
- }
1394
-
1395
- export * from './gantt-module'
1396
- export * from './gantt-plugins'
1397
-
1398
- export const Gantt: typeof VxeGantt
1399
- export default VxeGantt
1
+ import { RenderFunction, SetupContext, ComputedRef, Ref } from 'vue'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSlotType, VxeComponentAlignType, VxeComponentStatusType } from '@vxe-ui/core'
3
+ import { GridPrivateRef, VxeGridProps, VxeGridPropTypes, GridPrivateComputed, GridReactData, GridInternalData, GridMethods, GridPrivateMethods, VxeGridEmits, VxeGridSlots, VxeGridListeners, VxeGridEventProps, VxeGridMethods } from './grid'
4
+ import { VxeTablePropTypes } from './table'
5
+ import { VxeGanttViewInstance, VxeGanttViewPrivateMethods } from './gantt-module/gantt-view'
6
+ import { VxeTooltipPropTypes, VxeTooltipProps } from './tooltip'
7
+
8
+ /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
9
+
10
+ export declare const VxeGantt: DefineVxeComponentApp<VxeGanttProps, VxeGanttEventProps, VxeGanttSlots, VxeGanttMethods>
11
+ export type VxeGanttComponent = DefineVxeComponentOptions<VxeGanttProps, VxeGanttEventProps>
12
+
13
+ export type VxeGanttInstance<D = any> = DefineVxeComponentInstance<VxeGanttProps<D>, VxeGanttConstructor<D>>
14
+
15
+ export interface VxeGanttConstructor<D = any> extends VxeComponentBaseOptions, VxeGanttMethods<D> {
16
+ props: VxeGanttProps
17
+ context: SetupContext<VxeGanttEmits>
18
+ reactData: GanttReactData
19
+ internalData: GanttInternalData
20
+ getRefMaps(): GanttPrivateRef
21
+ getComputeMaps(): GanttPrivateComputed
22
+ renderVN: RenderFunction
23
+ }
24
+
25
+ export interface GanttPrivateRef<D = any> extends GridPrivateRef<D> {
26
+ refGanttView: Ref<(VxeGanttViewInstance & VxeGanttViewPrivateMethods) | undefined>
27
+ refGanttContainerElem: Ref<HTMLDivElement | undefined>
28
+ refClassifyWrapperElem: Ref<HTMLDivElement | undefined>
29
+ }
30
+ export interface VxeGanttPrivateRef<D = any> extends GanttPrivateRef<D> {}
31
+
32
+ export namespace VxeGanttPropTypes {
33
+ export type Size = VxeGridPropTypes.Size
34
+ export type Layouts = VxeGanttDefines.LayoutKey[] | VxeGanttDefines.LayoutKey[][]
35
+ export type Column<D = any> = VxeGridPropTypes.Column<D>
36
+ export type Columns<D = any> = Column<D>[]
37
+ export interface Link<D = any> extends VxeGanttDefines.LinkStyleConfig {
38
+ /**
39
+ * 线类型 (0 = FinishToStart), (1 = StartToFinish), (2 = StartToStart), (3 = FinishToFinish)
40
+ */
41
+ type: VxeGanttDependencyType
42
+ /**
43
+ * 从指定行开始线连接
44
+ */
45
+ from: D | string | number
46
+ /**
47
+ * 到目标行结束线连接
48
+ */
49
+ to: D | string | number
50
+ }
51
+ export type Links<D = any> = Link<D>[]
52
+ export interface PagerConfig extends VxeGridPropTypes.PagerConfig {}
53
+ export interface ProxyConfig<D = any> extends VxeGridPropTypes.ProxyConfig<D> {}
54
+ export interface ToolbarConfig extends VxeGridPropTypes.ToolbarConfig {}
55
+ export interface FormConfig extends VxeGridPropTypes.FormConfig {}
56
+ export interface ZoomConfig extends VxeGridPropTypes.ZoomConfig {}
57
+
58
+ export interface TaskConfig {
59
+ /**
60
+ * 标题的字段名
61
+ */
62
+ titleField?: string
63
+ /**
64
+ * 开始日期的字段名
65
+ */
66
+ startField?: string
67
+ /**
68
+ * 结束日期的字段名
69
+ */
70
+ endField?: string
71
+ /**
72
+ * 任务类型
73
+ */
74
+ typeField?: string
75
+ /**
76
+ * 进度的字段名
77
+ */
78
+ progressField?: string
79
+ /**
80
+ * 自定义解析日期的格式 yyyy-MM-dd HH:mm:ss
81
+ */
82
+ dateFormat?: string
83
+ }
84
+
85
+ export interface TaskViewScaleConfig {
86
+ /**
87
+ * 年配置
88
+ */
89
+ year?: VxeGanttDefines.ScaleDefaultOptions
90
+ /**
91
+ * 季度配置
92
+ */
93
+ quarter?: VxeGanttDefines.ScaleDefaultOptions
94
+ /**
95
+ * 月配置
96
+ */
97
+ month?: VxeGanttDefines.ScaleDefaultOptions
98
+ /**
99
+ * 周配置
100
+ */
101
+ week?: VxeGanttDefines.ScaleWeekOptions
102
+ /**
103
+ * 星期配置
104
+ */
105
+ day?: VxeGanttDefines.ScaleDefaultOptions
106
+ /**
107
+ * 天配置
108
+ */
109
+ date?: VxeGanttDefines.ScaleDefaultOptions
110
+ /**
111
+ * 小时配置
112
+ */
113
+ hour?: VxeGanttDefines.ScaleDefaultOptions
114
+ /**
115
+ * 分钟配置
116
+ */
117
+ minute?: VxeGanttDefines.ScaleDefaultOptions
118
+ /**
119
+ * 秒配置
120
+ */
121
+ second?: VxeGanttDefines.ScaleDefaultOptions
122
+ }
123
+
124
+ export interface TaskNowLineConfig {
125
+ /**
126
+ * 此刻线的显示方式:start(显示到左侧),center(显示居中),end(显示到右侧),progress(显示实际进度)
127
+ */
128
+ mode?: 'start' | 'progress' | 'center' | 'end' | '' | null
129
+ /**
130
+ * 字体颜色
131
+ */
132
+ fontColor?: string
133
+ /**
134
+ * 线背景颜色
135
+ */
136
+ bgColor?: string
137
+ /**
138
+ * 线宽度
139
+ */
140
+ width?: number | string
141
+ }
142
+
143
+ export interface TaskViewConfig<D = any> {
144
+ /**
145
+ * 高亮此刻线
146
+ */
147
+ showNowLine?: boolean
148
+ /**
149
+ * 日期轴配置项
150
+ */
151
+ scales?: VxeGanttDefines.ColumnScaleType[] | VxeGanttDefines.ColumnScaleConfig[]
152
+ /**
153
+ * 表格样式
154
+ */
155
+ tableStyle?: {
156
+ /**
157
+ * 边框
158
+ */
159
+ border?: VxeTablePropTypes.Border
160
+ /**
161
+ * 宽度
162
+ */
163
+ width?: number | string
164
+ minWidth?: number | string
165
+ maxWidth?: number | string
166
+ }
167
+ /**
168
+ * 网格样式
169
+ */
170
+ gridding?: {
171
+ /**
172
+ * 左侧间距多少列
173
+ */
174
+ leftSpacing?: number
175
+ /**
176
+ * 右侧间距多少列
177
+ */
178
+ rightSpacing?: number
179
+ }
180
+ /**
181
+ * 任务视图样式
182
+ */
183
+ viewStyle?: {
184
+ /**
185
+ * 边框
186
+ */
187
+ border?: VxeTablePropTypes.Border
188
+ /**
189
+ * 单元格宽度
190
+ */
191
+ cellWidth?: number | string
192
+ /**
193
+ * 给行附加 className
194
+ */
195
+ rowClassName?: string | ((params: { source: string; type: string; scaleType: VxeGanttDefines.ColumnScaleType; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }) => void | null | string | { [key: string]: boolean | null | undefined })
196
+ /**
197
+ * 行样式
198
+ */
199
+ rowStyle?: Partial<CSSStyleDeclaration> | ((params: { source: string; type: string; scaleType: VxeGanttDefines.ColumnScaleType; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }) => void | null | Partial<CSSStyleDeclaration>)
200
+ /**
201
+ * 给单元格附加 className
202
+ */
203
+ cellClassName?:
204
+ | string
205
+ | ((params: {
206
+ source: string
207
+ type: string
208
+ scaleType: VxeGanttDefines.ColumnScaleType
209
+ dateObj: VxeGanttDefines.ScaleDateObj
210
+ startDateObj: VxeGanttDefines.ScaleDateObj
211
+ endDateObj: VxeGanttDefines.ScaleDateObj
212
+ column?: VxeGanttDefines.ViewColumn<D>
213
+ row: D
214
+ rowIndex: number
215
+ $rowIndex: number
216
+ _rowIndex: number
217
+ }) => void | null | string | { [key: string]: boolean | null | undefined })
218
+ /**
219
+ * 单元格样式
220
+ */
221
+ cellStyle?:
222
+ | Partial<CSSStyleDeclaration>
223
+ | ((params: {
224
+ source: string
225
+ type: string
226
+ scaleType: VxeGanttDefines.ColumnScaleType
227
+ dateObj: VxeGanttDefines.ScaleDateObj
228
+ startDateObj: VxeGanttDefines.ScaleDateObj
229
+ endDateObj: VxeGanttDefines.ScaleDateObj
230
+ column?: VxeGanttDefines.ViewColumn<D>
231
+ row: D
232
+ rowIndex: number
233
+ $rowIndex: number
234
+ _rowIndex: number
235
+ }) => void | null | Partial<CSSStyleDeclaration>)
236
+ }
237
+ }
238
+
239
+ export interface TaskSplitConfig {
240
+ /**
241
+ * 是否启用
242
+ */
243
+ enabled?: boolean
244
+ /**
245
+ * 是否允许拖拽调整视图宽度
246
+ */
247
+ resize?: boolean
248
+ /**
249
+ * 是否自动隐藏折叠按钮
250
+ */
251
+ autoHideCollapseButton?: boolean
252
+ /**
253
+ * 是否显示左侧表格的折叠按钮
254
+ */
255
+ showCollapseTableButton?: boolean
256
+ /**
257
+ * 是否显示右侧任务的折叠按钮
258
+ */
259
+ showCollapseTaskButton?: boolean
260
+ /**
261
+ * 是否显示折叠动画
262
+ */
263
+ animation?: boolean
264
+ }
265
+
266
+ export interface TaskLinkConfig<D = any> extends VxeGanttDefines.LinkStyleConfig {
267
+ /**
268
+ * 是否启用
269
+ */
270
+ enabled?: boolean
271
+ /**
272
+ * 当鼠标点击依赖线时,是否要高亮当前依赖线
273
+ */
274
+ isCurrent?: boolean
275
+ /**
276
+ * 当鼠标移到依赖线时,是否要高亮当前依赖线
277
+ */
278
+ isHover?: boolean
279
+ /**
280
+ * 是否允许双击依赖线删除
281
+ */
282
+ isDblclickToRemove?: boolean
283
+ /**
284
+ * 依赖线被删除之前的方法,可以通过返回 false 阻止删除
285
+ */
286
+ beforeRemoveMethod?(params: { $gantt: VxeGanttConstructor<D>; linkItem: VxeGanttDefines.LinkConfObj; fromRow: D; toRow: D }): Promise<boolean> | boolean
287
+ /**
288
+ * 依赖线删除之后的方法
289
+ */
290
+ afterRemoveMethod?(params: { $gantt: VxeGanttConstructor<D>; linkItem: VxeGanttDefines.LinkConfObj; fromRow: D; toRow: D }): void
291
+ /**
292
+ * 拖拽开始时是否允许依赖线创建的方法,该方法的返回值用来决定是否允许被拖拽
293
+ */
294
+ createStartMethod?(params: { $gantt: VxeGanttConstructor<D>; fromRow: D; fromPoint: 'start' | 'end' }): boolean
295
+ /**
296
+ * 拖拽依赖线创建结束时的方法,该方法的返回值用来决定是否允依赖线许被创建
297
+ */
298
+ createEndMethod?(params: { $gantt: VxeGanttConstructor<D>; fromRow: D; fromPoint: 'start' | 'end'; toRow: D; toPoint: 'start' | 'end' }): Promise<boolean> | boolean
299
+ /**
300
+ * 自定义拖拽结束时依赖线创建被赋值的方法
301
+ */
302
+ createSetMethod?(params: {
303
+ $gantt: VxeGanttConstructor<D>
304
+ fromRow: D
305
+ fromPoint: 'start' | 'end'
306
+ toRow: D
307
+ toPoint: 'start' | 'end'
308
+ link: {
309
+ from: string
310
+ to: string
311
+ type: VxeGanttDependencyType
312
+ }
313
+ }): void
314
+ }
315
+
316
+ export interface TaskBarConfig<D = any> {
317
+ /**
318
+ * 是否显示进度条
319
+ */
320
+ showProgress?: boolean
321
+ /**
322
+ * 是否在任务条显示内容
323
+ */
324
+ showContent?: boolean
325
+ /**
326
+ * 是否显示关键路径
327
+ */
328
+ showCriticalPath?: boolean
329
+ /**
330
+ * 是否在任务条显示提示信息
331
+ */
332
+ showTooltip?: boolean
333
+ /**
334
+ * 自定义任务条内容方法
335
+ */
336
+ contentMethod?(params: { scaleType: VxeGanttDefines.ColumnScaleType; title: string; progress?: string | number; row: D }): string | number
337
+ /**
338
+ * 任务条样式
339
+ */
340
+ barStyle?:
341
+ | VxeGanttDefines.DefaultBarStyleConfig
342
+ | ((params: { source: string; type: string; scaleType: VxeGanttDefines.ColumnScaleType; $gantt: VxeGanttConstructor<D>; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }) => void | null | undefined | VxeGanttDefines.DefaultBarStyleConfig)
343
+ /**
344
+ * 是否启用拖拽移动日期
345
+ */
346
+ moveable?: boolean
347
+ /**
348
+ * 是否启用拖拽调整日期
349
+ */
350
+ resizable?: boolean
351
+ /**
352
+ * 是否允许自定义创建依赖线
353
+ */
354
+ linkCreatable?: boolean
355
+ }
356
+
357
+ export interface TaskCriticalPathConfig {
358
+ /**
359
+ * 线颜色
360
+ */
361
+ lineColor?: string
362
+ /**
363
+ * 线宽度
364
+ */
365
+ lineWidth?: number | string
366
+ /**
367
+ * 线类型
368
+ */
369
+ lineType?: VxeGanttDefines.LineType
370
+ /**
371
+ * 是否高亮关键任务条
372
+ */
373
+ // highlightTasks?: boolean
374
+ /**
375
+ * 是否高亮关键依赖线
376
+ */
377
+ // highlightLinks?: boolean
378
+ }
379
+
380
+ /**
381
+ * 里程碑类型配置项
382
+ */
383
+ export interface TaskBarMilestoneConfig<D = any> {
384
+ /**
385
+ * 自定义图标
386
+ */
387
+ icon?: string | ((params: { $gantt: VxeGanttConstructor<D>; row: D }) => string)
388
+ /**
389
+ * 图标状态颜色
390
+ */
391
+ iconStatus?: VxeComponentStatusType | ((params: { $gantt: VxeGanttConstructor<D>; row: D }) => VxeComponentStatusType)
392
+ /**
393
+ * 自定义图标样式
394
+ */
395
+ iconStyle?: CSSStyleDeclaration | ((params: { $gantt: VxeGanttConstructor<D>; row: D }) => void | null | Partial<CSSStyleDeclaration>)
396
+ /**
397
+ * 是否显示图标
398
+ */
399
+ showIcon?: boolean
400
+ /**
401
+ * 里程碑任务条样式
402
+ */
403
+ barStyle?: VxeGanttDefines.MilestoneBarStyleConfig | ((params: { source: string; type: string; scaleType: VxeGanttDefines.ColumnScaleType; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }) => void | null | undefined | VxeGanttDefines.MilestoneBarStyleConfig)
404
+ }
405
+
406
+ /**
407
+ * 子视图类型配置项
408
+ */
409
+ export interface TaskBarSubviewConfig<D = any> {
410
+ /**
411
+ * 是否启用
412
+ */
413
+ enabled?: boolean
414
+ /**
415
+ * 是否显示任务总览
416
+ */
417
+ showOverview?: boolean
418
+ /**
419
+ * 子视图任务条样式
420
+ */
421
+ barStyle?: VxeGanttDefines.SubviewBarStyleConfig | ((params: { source: string; type: string; scaleType: VxeGanttDefines.ColumnScaleType; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }) => void | null | undefined | VxeGanttDefines.SubviewBarStyleConfig)
422
+ }
423
+
424
+ export interface TaskBarTooltipConfig<D = any> {
425
+ theme?: VxeTooltipPropTypes.Theme
426
+ enterable?: VxeTooltipPropTypes.Enterable
427
+ enterDelay?: VxeTooltipPropTypes.EnterDelay
428
+ leaveDelay?: VxeTooltipPropTypes.LeaveDelay
429
+ width?: VxeTooltipPropTypes.Width
430
+ height?: VxeTooltipPropTypes.Height
431
+ minWidth?: VxeTooltipPropTypes.MinWidth
432
+ minHeight?: VxeTooltipPropTypes.MinHeight
433
+ maxWidth?: VxeTooltipPropTypes.MaxWidth
434
+ maxHeight?: VxeTooltipPropTypes.MaxHeight
435
+ useHtml?: VxeTooltipPropTypes.UseHtml
436
+ contentMethod?(params: { $gantt: VxeGanttConstructor<D>; scaleType: VxeGanttDefines.ColumnScaleType; row: D; rowIndex: number; $rowIndex: number; _rowIndex: number }): string | null | void
437
+ /**
438
+ * 已废弃,请使用 useHtml
439
+ * @deprecated
440
+ */
441
+ useHTML?: VxeTooltipPropTypes.UseHTML
442
+ }
443
+
444
+ export interface TaskBarResizeConfig<D = any> {
445
+ /**
446
+ * 拖拽模式
447
+ */
448
+ mode?: 'scale' | 'progress' | 'default' | '' | null
449
+ /**
450
+ * 是否允许拖拽调整任务起始日期
451
+ */
452
+ allowStart?: boolean
453
+ /**
454
+ * 是否允许拖拽调整任务条结束日期
455
+ */
456
+ allowEnd?: boolean
457
+ /**
458
+ * 显示 Tooltip 提示
459
+ */
460
+ showTooltip?: boolean
461
+ /**
462
+ * 拖拽调整任务后自动更新依赖线关联任务的日期
463
+ */
464
+ isSyncLinkTask?: boolean
465
+ /**
466
+ * 拖拽调整任务自动根据依赖线的紧前紧后关系来限制可拖拽日期范围
467
+ */
468
+ isLimitByLink?: boolean
469
+ /**
470
+ * 可拖拽的最小宽度大小
471
+ */
472
+ minWidthSize?: number
473
+ /**
474
+ * 拖拽开始时是否允许行拖拽调整任务日期的方法,该方法的返回值用来决定是否允许被拖拽
475
+ */
476
+ resizeStartMethod?(params: { $gantt: VxeGanttConstructor<D>; resizeType: 'start' | 'end'; row: D; startDate: Date; endDate: Date; linkInfo: VxeGanttDefines.LinkInfoObj<D> }): boolean
477
+ /**
478
+ * 拖拽结束时是否允许行拖拽调整任务日期的方法,该方法的返回值用来决定是否允许被拖拽调整日期范围
479
+ */
480
+ resizeEndMethod?(params: { $gantt: VxeGanttConstructor<D>; resizeType: 'start' | 'end'; row: D; startDate: Date; endDate: Date; targetStartDate: Date; targetEndDate: Date; offsetSize: number; linkInfo: VxeGanttDefines.LinkInfoObj<D> }): Promise<boolean> | boolean
481
+ /**
482
+ * 自定义拖拽结束时赋值的方法
483
+ */
484
+ resizeSetMethod?(params: { $gantt: VxeGanttConstructor<D>; resizeType: 'start' | 'end'; row: D; startDate: Date; endDate: Date; targetStartDate: Date; targetEndDate: Date; startValue: any; endValue: any; offsetSize: number; linkInfo: VxeGanttDefines.LinkInfoObj<D> }): void
485
+ }
486
+
487
+ export interface TaskBarResizeTooltipConfig<D = any> extends Omit<VxeTooltipProps, 'content' | 'transfer' | 'appendTo'> {
488
+ /**
489
+ * 自定义内容
490
+ */
491
+ contentMethod?: (params: { $gantt: VxeGanttConstructor<D>; resizeType: 'start' | 'end'; row: D; startDate: Date; endDate: Date; targetStartDate: Date; targetEndDate: Date; offsetSize: number; linkInfo: VxeGanttDefines.LinkInfoObj<D> }) => string | number | null | undefined
492
+ }
493
+
494
+ export interface TaskBarMoveConfig<D = any> {
495
+ /**
496
+ * 拖拽模式
497
+ */
498
+ mode?: 'scale' | 'progress' | 'default' | '' | null
499
+ /**
500
+ * 拖拽移动任务后自动更新依赖线关联任务的日期
501
+ */
502
+ isSyncLinkTask?: boolean
503
+ /**
504
+ * 拖拽移动任务自动根据依赖线的紧前紧后关系来限制可拖拽日期范围
505
+ */
506
+ isLimitByLink?: boolean
507
+ /**
508
+ * 显示 Tooltip 提示
509
+ */
510
+ showTooltip?: boolean
511
+ /**
512
+ * 拖拽开始时是否允许行拖拽移动任务日期的方法,该方法的返回值用来决定是否允许被拖拽
513
+ */
514
+ moveStartMethod?(params: { $gantt: VxeGanttConstructor<D>; row: D; startDate: Date; endDate: Date; linkInfo: VxeGanttDefines.LinkInfoObj<D> }): boolean
515
+ /**
516
+ * 拖拽移动任务日期结束时的方法,该方法的返回值用来决定是否允许被拖拽移动到指定日期
517
+ */
518
+ moveEndMethod?(params: { $gantt: VxeGanttConstructor<D>; row: D; startDate: Date; endDate: Date; targetStartDate: Date; targetEndDate: Date; offsetSize: number; linkInfo: VxeGanttDefines.LinkInfoObj<D> }): Promise<boolean> | boolean
519
+ /**
520
+ * 自定义拖拽结束时任务日期被赋值的方法
521
+ */
522
+ moveSetMethod?(params: { $gantt: VxeGanttConstructor<D>; row: D; startDate: Date; endDate: Date; targetStartDate: Date; targetEndDate: Date; startValue: any; endValue: any; offsetSize: number; linkInfo: VxeGanttDefines.LinkInfoObj<D> }): void
523
+ }
524
+
525
+ export interface TaskBarMoveTooltipConfig<D = any> extends Omit<VxeTooltipProps, 'content' | 'transfer' | 'appendTo'> {
526
+ /**
527
+ * 自定义内容
528
+ */
529
+ contentMethod?: (params: { $gantt: VxeGanttConstructor<D>; row: D; startDate: Date; endDate: Date; targetStartDate: Date; targetEndDate: Date; offsetSize: number; linkInfo: VxeGanttDefines.LinkInfoObj<D> }) => string | number | null | undefined
530
+ }
531
+ }
532
+
533
+ export interface VxeGanttProps<D = any> extends Omit<VxeGridProps<D>, 'layouts'> {
534
+ /**
535
+ * 依赖线
536
+ */
537
+ links?: VxeGanttPropTypes.Links<D>
538
+ layouts?: VxeGanttPropTypes.Layouts
539
+ taskConfig?: VxeGanttPropTypes.TaskConfig
540
+ taskViewScaleConfig?: VxeGanttPropTypes.TaskViewScaleConfig
541
+ taskNowLineConfig?: VxeGanttPropTypes.TaskNowLineConfig
542
+ taskViewConfig?: VxeGanttPropTypes.TaskViewConfig<D>
543
+ taskSplitConfig?: VxeGanttPropTypes.TaskSplitConfig
544
+ taskLinkConfig?: VxeGanttPropTypes.TaskLinkConfig
545
+ taskBarConfig?: VxeGanttPropTypes.TaskBarConfig<D>
546
+ taskBarMilestoneConfig?: VxeGanttPropTypes.TaskBarMilestoneConfig<D>
547
+ taskCriticalPathConfig?: VxeGanttPropTypes.TaskCriticalPathConfig
548
+ taskBarSubviewConfig?: VxeGanttPropTypes.TaskBarSubviewConfig<D>
549
+ taskBarTooltipConfig?: VxeGanttPropTypes.TaskBarTooltipConfig<D>
550
+ taskBarResizeConfig?: VxeGanttPropTypes.TaskBarResizeConfig<D>
551
+ taskBarResizeTooltipConfig?: VxeGanttPropTypes.TaskBarResizeTooltipConfig<D>
552
+ taskBarMoveConfig?: VxeGanttPropTypes.TaskBarMoveConfig<D>
553
+ taskBarMoveTooltipConfig?: VxeGanttPropTypes.TaskBarMoveTooltipConfig<D>
554
+ }
555
+
556
+ export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
557
+ computeTaskOpts: ComputedRef<VxeGanttPropTypes.TaskConfig>
558
+ computeTaskNowLineOpts: ComputedRef<VxeGanttPropTypes.TaskNowLineConfig>
559
+ computeTaskViewOpts: ComputedRef<VxeGanttPropTypes.TaskViewConfig<D>>
560
+ computeTaskViewScaleOpts: ComputedRef<VxeGanttPropTypes.TaskViewScaleConfig>
561
+ computeTaskBarOpts: ComputedRef<VxeGanttPropTypes.TaskBarConfig<D>>
562
+ computeTaskBarMoveOpts: ComputedRef<VxeGanttPropTypes.TaskBarMoveConfig<D>>
563
+ computeTaskBarMoveTooltipOpts: ComputedRef<VxeGanttPropTypes.TaskBarMoveTooltipConfig<D>>
564
+ computeTaskBarResizeOpts: ComputedRef<VxeGanttPropTypes.TaskBarResizeConfig<D>>
565
+ computeTaskBarResizeTooltipOpts: ComputedRef<VxeGanttPropTypes.TaskBarResizeTooltipConfig<D>>
566
+ computeTaskSplitOpts: ComputedRef<VxeGanttPropTypes.TaskSplitConfig>
567
+ computeTaskBarMilestoneOpts: ComputedRef<VxeGanttPropTypes.TaskBarMilestoneConfig<D>>
568
+ computeTaskCriticalPathOpts: ComputedRef<VxeGanttPropTypes.TaskCriticalPathConfig>
569
+ computeTaskBarSubviewOpts: ComputedRef<VxeGanttPropTypes.TaskBarSubviewConfig<D>>
570
+ computeTaskBarTooltipOpts: ComputedRef<VxeGanttPropTypes.TaskBarTooltipConfig>
571
+ computeTaskLinkOpts: ComputedRef<VxeGanttPropTypes.TaskLinkConfig>
572
+ computeTaskViewScales: ComputedRef<VxeGanttDefines.ColumnScaleType[] | VxeGanttDefines.ColumnScaleConfig[] | undefined>
573
+ computeDateFormat: ComputedRef<string>
574
+ computeScaleUnit: ComputedRef<VxeGanttDefines.ColumnScaleType>
575
+ computeMinScale: ComputedRef<VxeGanttDefines.ColumnScaleObj>
576
+ computeScaleStep: ComputedRef<number>
577
+ computeWeekScale: ComputedRef<VxeGanttDefines.ColumnScaleObj | null | undefined>
578
+ computeTitleField: ComputedRef<string>
579
+ computeStartField: ComputedRef<string>
580
+ computeEndField: ComputedRef<string>
581
+ computeTypeField: ComputedRef<string>
582
+ computeProgressField: ComputedRef<string>
583
+ computeScrollbarOpts: ComputedRef<VxeTablePropTypes.ScrollbarConfig>
584
+ computeScrollbarXOpts: ComputedRef<VxeTablePropTypes.ScrollbarXConfig>
585
+ computeScrollbarYOpts: ComputedRef<VxeTablePropTypes.ScrollbarYConfig>
586
+ computeScrollbarXToTop: ComputedRef<boolean>
587
+ computeScrollbarYToLeft: ComputedRef<boolean>
588
+ }
589
+ export interface VxeGanttPrivateComputed<D = any> extends GanttPrivateComputed<D> {}
590
+
591
+ export interface GanttReactData<D = any> extends GridReactData<D> {
592
+ showLeftView: boolean
593
+ showRightView: boolean
594
+ taskScaleList: VxeGanttDefines.ColumnScaleObj[]
595
+ tableLinks: VxeGanttDefines.LinkConfObj[]
596
+ // 是否存在纵向滚动条
597
+ overflowY: boolean
598
+ // 是否存在横向滚动条
599
+ overflowX: boolean
600
+ // 纵向滚动条的宽度
601
+ scrollbarWidth: number
602
+ // 横向滚动条的高度
603
+ scrollbarHeight: number
604
+
605
+ // 存放 bar tooltip 相关信息
606
+ barTipStore: {
607
+ row: D | null
608
+ content: string
609
+ visible: boolean
610
+ params?: null | {
611
+ row: D | null
612
+ rowIndex: number
613
+ $rowIndex: number
614
+ _rowIndex: number
615
+ }
616
+ }
617
+
618
+ dragLinkFromStore: {
619
+ rowid: string | null
620
+ type: 0 | 1
621
+ }
622
+ activeLink: VxeGanttDefines.LinkConfObj | null
623
+ activeBarRowid: any
624
+ isActiveCeLe: boolean
625
+ linkList: VxeGanttDefines.LinkConfObj[]
626
+ upLinkFlag: number
627
+
628
+ showSplitAnimat: boolean
629
+
630
+ nowTime: number
631
+ currLeftSpacing: number
632
+ currRightSpacing: number
633
+
634
+ // 关键路径
635
+ criticalLinks: VxeGanttPropTypes.Link[]
636
+ criticalRowIds: string[]
637
+ criticalPathFlag: number
638
+ }
639
+
640
+ export interface GanttInternalData extends GridInternalData {
641
+ linkFromConfMaps: Record<string, VxeGanttDefines.LinkConfObj[]>
642
+ linkToConfMaps: Record<string, VxeGanttDefines.LinkConfObj[]>
643
+ linkUniqueMaps: Record<string, VxeGanttDefines.LinkConfObj>
644
+ resizeTableWidth: number
645
+ barTipTimeout?: any
646
+
647
+ dragBarRow?: any
648
+ dragLineRow?: any
649
+ dragLinkToStore: {
650
+ rowid: string | null
651
+ type: 0 | 1
652
+ }
653
+
654
+ // 关键路径
655
+ criticalRowList: any[]
656
+ criticalRowMaps: Map<string, any>
657
+ criticalLinkKeyMaps: Map<string, VxeGanttPropTypes.Link>
658
+
659
+ _taTime?: any
660
+ _msTout?: any
661
+ }
662
+
663
+ export interface GanttMethods<D = any> extends Omit<GridMethods<D>, 'dispatchEvent'> {
664
+ dispatchEvent(type: ValueOf<VxeGanttEmits>, params: Record<string, any>, evnt: Event | null): void
665
+ /**
666
+ * 刷新任务视图
667
+ */
668
+ refreshTaskView(): Promise<any>
669
+
670
+ /**
671
+ * 表格视图是否显示
672
+ */
673
+ hasTableViewVisible(): boolean
674
+ /**
675
+ * 显示表格视图
676
+ */
677
+ showTableView(): Promise<void>
678
+ /**
679
+ * 隐藏表格视图
680
+ */
681
+ hideTableView(): Promise<void>
682
+ /**
683
+ * 任务视图是否显示
684
+ */
685
+ hasTaskViewVisible(): boolean
686
+ /**
687
+ * 显示任务视图
688
+ */
689
+ showTaskView(): Promise<void>
690
+ /**
691
+ * 隐藏任务视图
692
+ */
693
+ hideTaskView(): Promise<void>
694
+ /**
695
+ * 手动关闭任务条提示
696
+ */
697
+ closeTaskBarTooltip(): Promise<void>
698
+ /**
699
+ * 如果有滚动条,则滚动到对应的任务视图
700
+ */
701
+ scrollToTaskView(rowOrRowid: any): Promise<any>
702
+ /**
703
+ * 如果任务视图有横向滚动条,则滚动到任务视图对应的日期
704
+ */
705
+ scrollToDateView(colDate: string | Date | number): Promise<any>
706
+ /**
707
+ * 获取关键路径
708
+ */
709
+ getCriticalPath(): {
710
+ rowIds: string[]
711
+ rows: D[]
712
+ links: VxeGanttPropTypes.Links
713
+ }
714
+ }
715
+ export interface VxeGanttMethods<D = any> extends GanttMethods<D>, Omit<VxeGridMethods<D>, 'dispatchEvent'> {}
716
+
717
+ export interface GanttPrivateMethods<D = any> extends GridPrivateMethods<D> {
718
+ callSlot<T = any>(slotFunc: ((params: T) => VxeComponentSlotType | VxeComponentSlotType[]) | string | null, params: T): VxeComponentSlotType[]
719
+
720
+ /**
721
+ * @private
722
+ */
723
+ handleTaskCellClickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
724
+ /**
725
+ * @private
726
+ */
727
+ handleTaskCellDblclickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskCellClickParams): void
728
+ /**
729
+ * @private
730
+ */
731
+ handleTaskHeaderContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskHeaderContextmenuParams): void
732
+ /**
733
+ * @private
734
+ */
735
+ handleTaskBodyContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskBodyContextmenuParams): void
736
+ /**
737
+ * @private
738
+ */
739
+ handleTaskFooterContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskFooterContextmenuParams): void
740
+ /**
741
+ * @private
742
+ */
743
+ handleTaskBarContextmenuEvent(evnt: Event, params: VxeGanttDefines.TaskBarContextmenuParams): void
744
+ /**
745
+ * @private
746
+ */
747
+ handleTaskBarClickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarClickParams): void
748
+ /**
749
+ * @private
750
+ */
751
+ handleTaskBarDblclickEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarClickParams): void
752
+ /**
753
+ * @private
754
+ */
755
+ triggerTaskBarTooltipEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarMouseoverParams): void
756
+ /**
757
+ * @private
758
+ */
759
+ handleTaskBarTooltipLeaveEvent(evnt: MouseEvent, params: VxeGanttDefines.TaskBarMouseoverParams): void
760
+ }
761
+ export interface VxeGanttPrivateMethods<D = any> extends GanttPrivateMethods<D> {}
762
+
763
+ export type VxeGanttEmits = [
764
+ ...VxeGridEmits,
765
+
766
+ 'task-cell-click',
767
+ 'task-cell-dblclick',
768
+ 'task-bar-mouseenter',
769
+ 'task-bar-mouseleave',
770
+ 'task-bar-click',
771
+ 'task-bar-dblclick',
772
+ 'task-view-cell-click',
773
+ 'task-view-cell-dblclick',
774
+ 'task-move-start',
775
+ 'task-move-drag',
776
+ 'task-move-end',
777
+ 'task-resize-start',
778
+ 'task-resize-drag',
779
+ 'task-resize-end',
780
+ 'task-link-click',
781
+ 'task-link-dblclick',
782
+ 'task-link-remove'
783
+ ]
784
+
785
+ /**
786
+ * 依赖线枚举类型
787
+ */
788
+ export enum VxeGanttDependencyType {
789
+ /**
790
+ * 结束后才开始,表示一个任务必须在另一个任务开始之前完成
791
+ */
792
+ FinishToStart = 0,
793
+ /**
794
+ * 开始到结束,表示从某个过程的开始到结束的整个过程
795
+ */
796
+ StartToFinish = 1,
797
+ /**
798
+ * 开始后才开始,表示一个活动结束了,另一个活动才能开始,它们之间按先后顺序进行
799
+ */
800
+ StartToStart = 2,
801
+ /**
802
+ * 完成到完成,表示一个任务必须在另一个任务完成之后才能完成
803
+ */
804
+ FinishToFinish = 3
805
+ }
806
+
807
+ /**
808
+ * 任务渲染类型
809
+ */
810
+ export enum VxeGanttTaskType {
811
+ /**
812
+ * 里程碑类型,该类型节点不需要结束日期
813
+ */
814
+ Milestone = 'milestone',
815
+ /**
816
+ * 子视图类型,该类型会将子任务渲染到一行,无需开始日期和结束日期
817
+ */
818
+ Subview = 'subview'
819
+ }
820
+
821
+ export namespace VxeGanttDefines {
822
+ export interface GanttEventParams<D = any> extends VxeComponentEventParams {
823
+ $gantt: VxeGanttConstructor<D>
824
+ }
825
+
826
+ export type LayoutKey = 'Form' | 'Toolbar' | 'Top' | 'Gantt' | 'Bottom' | 'Pager'
827
+
828
+ export interface LinkConfObj<D = any> extends VxeGanttPropTypes.Link<D> {
829
+ key: string
830
+ leColorKey: string
831
+ leStatus: VxeComponentStatusType | undefined
832
+ leColor: string | undefined
833
+ leType: LineType | undefined
834
+ leWidth: string | number | undefined
835
+ swArrow: boolean | undefined
836
+ }
837
+
838
+ export type LineType = 'dashed' | 'solid' | 'flowDashed'
839
+
840
+ export interface LinkStyleConfig {
841
+ /**
842
+ * 线颜色
843
+ */
844
+ lineColor?: string
845
+ /**
846
+ * 线状态颜色,如果需要自定义颜色使用 lineColor
847
+ */
848
+ lineStatus?: VxeComponentStatusType
849
+ /**
850
+ * 线宽度
851
+ */
852
+ lineWidth?: number | string
853
+ /**
854
+ * 线类型
855
+ */
856
+ lineType?: LineType
857
+ /**
858
+ * 显示箭头
859
+ */
860
+ showArrow?: boolean
861
+ }
862
+
863
+ export interface LinkInfoObj<D = any> {
864
+ row: D
865
+ rowLinks: VxeGanttPropTypes.Link[]
866
+ allLinks: VxeGanttPropTypes.Link[]
867
+ allRows: D[]
868
+
869
+ /**
870
+ * 已废弃
871
+ * @deprecated
872
+ */
873
+ toLinks: VxeGanttPropTypes.Link[]
874
+ /**
875
+ * 已废弃
876
+ * @deprecated
877
+ */
878
+ fromLinks: VxeGanttPropTypes.Link[]
879
+ /**
880
+ * 已废弃
881
+ * @deprecated
882
+ */
883
+ toRows: D[]
884
+ /**
885
+ * 已废弃
886
+ * @deprecated
887
+ */
888
+ fromRows: D[]
889
+ }
890
+
891
+ export interface DefaultBarStyleConfig {
892
+ /**
893
+ * 圆角
894
+ */
895
+ round?: boolean
896
+ /**
897
+ * 任务条的背景颜色
898
+ */
899
+ bgColor?: string
900
+ /**
901
+ * 任务条的字体颜色
902
+ */
903
+ fontColor?: string
904
+ /**
905
+ * 已完成部分任务条的背景颜色
906
+ */
907
+ completedBgColor?: string
908
+ /**
909
+ * 子任务视图概况任务条的背景颜色
910
+ */
911
+ overviewBgColor?: string
912
+ /**
913
+ * 给任务条附加 style
914
+ */
915
+ style?: Partial<CSSStyleDeclaration> | null
916
+ }
917
+
918
+ export interface SubviewBarStyleConfig {
919
+ /**
920
+ * 给任务条附加 style
921
+ */
922
+ style?: Partial<CSSStyleDeclaration> | null
923
+ }
924
+
925
+ export interface MilestoneBarStyleConfig {
926
+ /**
927
+ * 给任务条附加 style
928
+ */
929
+ style?: Partial<CSSStyleDeclaration> | null
930
+ }
931
+
932
+ export interface GroupColumn<D = any> {
933
+ scaleItem: ColumnScaleObj
934
+ columns: ViewColumn<D>[]
935
+ }
936
+
937
+ export interface ViewColumn<D = any> {
938
+ field: string
939
+ title: string
940
+ dateObj: VxeGanttDefines.ScaleDateObj
941
+ startDateObj: VxeGanttDefines.ScaleDateObj
942
+ endDateObj: VxeGanttDefines.ScaleDateObj
943
+ childCount?: number
944
+ children?: ViewColumn<D>[]
945
+ }
946
+
947
+ export interface ScaleDateObj {
948
+ date: Date
949
+ yy: string
950
+ yyyy: string
951
+ M: string
952
+ MM: string
953
+ d: string
954
+ dd: string
955
+ H: string
956
+ HH: string
957
+ m: string
958
+ mm: string
959
+ s: string
960
+ ss: string
961
+ q: number
962
+ W: string
963
+ WW: string
964
+ e: number
965
+ E: number
966
+ }
967
+
968
+ export interface ScaleDefaultOptions {
969
+ /**
970
+ * 日期跨度间隔
971
+ */
972
+ step?: number
973
+ /**
974
+ * 日期绑定值的格式
975
+ */
976
+ valueFormat?: string
977
+ /**
978
+ * 自定义时间轴-列头单元格标题
979
+ */
980
+ titleMethod?: (params: VxeGanttSlotTypes.TaskViewCellTitleSlotParams) => string | number
981
+ /**
982
+ * 自定义时间轴-自定义标题日期格式
983
+ */
984
+ titleFormat?: string
985
+ /**
986
+ * 自定义时间轴-列头单元格样式
987
+ */
988
+ headerCellStyle?: CSSStyleDeclaration | ((params: VxeGanttSlotTypes.TaskViewHeaderCellStyleSlotParams) => void | null | Partial<CSSStyleDeclaration>)
989
+ /**
990
+ * 自定义插槽模板
991
+ */
992
+ slots?: {
993
+ /**
994
+ * 自定义标题
995
+ */
996
+ title?: string | ((params: VxeGanttSlotTypes.TaskViewCellTitleSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
997
+ }
998
+ }
999
+
1000
+ export interface ScaleWeekOptions extends ScaleDefaultOptions {
1001
+ /**
1002
+ * 设置每周的起始日期是星期几
1003
+ */
1004
+ startDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6
1005
+ }
1006
+
1007
+ /**
1008
+ * 日期轴类型
1009
+ */
1010
+ export type ColumnScaleType = 'second' | 'minute' | 'hour' | 'date' | 'day' | 'week' | 'month' | 'quarter' | 'year'
1011
+
1012
+ export interface ColumnScaleConfig extends ScaleDefaultOptions, ScaleWeekOptions {
1013
+ type: ColumnScaleType
1014
+ align?: VxeComponentAlignType
1015
+ }
1016
+
1017
+ export interface ColumnScaleObj extends ScaleDefaultOptions, ScaleWeekOptions {
1018
+ type: ColumnScaleType
1019
+ align?: VxeComponentAlignType
1020
+ level: number
1021
+ }
1022
+
1023
+ export interface RowCacheItem<D = any> {
1024
+ row: D
1025
+ rowid: string
1026
+ oLeftSize: number
1027
+ oWidthSize: number
1028
+ }
1029
+
1030
+ export interface TaskCellClickParams<D = any> {
1031
+ row: D
1032
+ column: VxeGanttPropTypes.Column<D>
1033
+ }
1034
+ export interface TaskBarClickParams<D = any> {
1035
+ row: D
1036
+ }
1037
+ export interface TaskCellClickEventParams<D = any> extends TaskCellClickParams<D>, GanttEventParams {}
1038
+ export interface TaskCellDblclickEventParams<D = any> extends TaskCellClickEventParams<D> {}
1039
+ export interface TaskBarClickEventParams<D = any> extends TaskBarClickParams<D>, GanttEventParams {}
1040
+ export interface TaskBarDblclickEventParams<D = any> extends TaskBarClickEventParams<D> {}
1041
+
1042
+ export interface TaskBarMouseoverParams<D = any> extends GanttEventParams {
1043
+ scaleType: VxeGanttDefines.ColumnScaleType
1044
+ row: D
1045
+ rowIndex: number
1046
+ $rowIndex: number
1047
+ _rowIndex: number
1048
+ }
1049
+
1050
+ export interface TaskHeaderContextmenuParams<D = any> {
1051
+ source: string
1052
+ type: string
1053
+ column: ViewColumn<D>
1054
+ $rowIndex: number
1055
+ }
1056
+ export interface TaskBodyContextmenuParams<D = any> {
1057
+ source: string
1058
+ type: string
1059
+ row?: D
1060
+ rowIndex: number
1061
+ $rowIndex: number
1062
+ _rowIndex: number
1063
+ column?: ViewColumn<D>
1064
+ }
1065
+ export interface TaskFooterContextmenuParams<D = any> {
1066
+ source: string
1067
+ type: string
1068
+ column?: ViewColumn<D>
1069
+ $rowIndex: number
1070
+ }
1071
+ export interface TaskBarContextmenuParams<D = any> {
1072
+ source: string
1073
+ type: string
1074
+ row: D
1075
+ rowIndex: number
1076
+ $rowIndex: number
1077
+ _rowIndex: number
1078
+ }
1079
+
1080
+ export interface TaskViewCellClickEventParams<D = any> extends GanttEventParams<D> {
1081
+ row: D
1082
+ column: ViewColumn<D>
1083
+ }
1084
+ export interface TaskViewCellDblclickEventParams<D = any> extends TaskViewCellClickEventParams<D> {}
1085
+
1086
+ export interface TaskMoveStartEventParams<D = any> extends GanttEventParams<D> {
1087
+ $gantt: VxeGanttConstructor<D>
1088
+ row: D
1089
+ startDate: Date
1090
+ endDate: Date
1091
+ }
1092
+ export interface TaskMoveDragEventParams<D = any> extends TaskMoveStartEventParams<D> {
1093
+ targetStartDate: Date
1094
+ targetEndDate: Date
1095
+ offsetSize: number
1096
+ linkInfo: VxeGanttDefines.LinkInfoObj<D>
1097
+ }
1098
+ export interface TaskMoveEndEventParams<D = any> extends TaskMoveStartEventParams<D> {
1099
+ targetStartDate: Date
1100
+ targetEndDate: Date
1101
+ offsetSize: number
1102
+ linkInfo: VxeGanttDefines.LinkInfoObj<D>
1103
+ }
1104
+ export interface TaskResizeStartEventParams<D = any> extends GanttEventParams<D> {
1105
+ $gantt: VxeGanttConstructor<D>
1106
+ resizeType: 'start' | 'end'
1107
+ row: D
1108
+ startDate: Date
1109
+ endDate: Date
1110
+ }
1111
+ export interface TaskResizeDragEventParams<D = any> extends TaskResizeStartEventParams<D> {
1112
+ targetStartDate: Date
1113
+ targetEndDate: Date
1114
+ offsetSize: number
1115
+ linkInfo: VxeGanttDefines.LinkInfoObj<D>
1116
+ }
1117
+ export interface TaskResizeEndEventParams<D = any> extends TaskResizeStartEventParams<D> {
1118
+ targetStartDate: Date
1119
+ targetEndDate: Date
1120
+ offsetSize: number
1121
+ linkInfo: VxeGanttDefines.LinkInfoObj<D>
1122
+ }
1123
+
1124
+ export interface TaskLinkClickEventParams<D = any> extends GanttEventParams<D> {
1125
+ linkItem: VxeGanttDefines.LinkConfObj
1126
+ fromRow: D
1127
+ toRow: D
1128
+ }
1129
+ export interface TaskLinkDblclickEventParams<D = any> extends TaskLinkClickEventParams<D> {}
1130
+ export interface TaskLinkRemoveEventParams<D = any> extends TaskLinkClickEventParams<D> {}
1131
+ }
1132
+
1133
+ export interface VxeGanttEventProps<D = any> extends VxeGridEventProps<D> {
1134
+ onTaskCellClick?: VxeGanttEvents.TaskCellClick<D>
1135
+ onTaskCellDblclick?: VxeGanttEvents.TaskCellDblclick<D>
1136
+ onTaskBarClick?: VxeGanttEvents.TaskBarClick<D>
1137
+ onTaskBarDblclick?: VxeGanttEvents.TaskBarDblclick<D>
1138
+ onTaskViewCellClick?: VxeGanttEvents.TaskViewCellClick<D>
1139
+ onTaskViewCellDblclick?: VxeGanttEvents.TaskViewCellDblclick<D>
1140
+ onTaskMoveStart?: VxeGanttEvents.TaskMoveStart<D>
1141
+ onTaskMoveDrag?: VxeGanttEvents.TaskMoveDrag<D>
1142
+ onTaskMoveEnd?: VxeGanttEvents.TaskMoveEnd<D>
1143
+ onTaskResizeStart?: VxeGanttEvents.TaskResizeStart<D>
1144
+ onTaskResizeDrag?: VxeGanttEvents.TaskResizeDrag<D>
1145
+ onTaskResizeEnd?: VxeGanttEvents.TaskResizeEnd<D>
1146
+ onTaskLinkClick?: VxeGanttEvents.TaskLinkRemove<D>
1147
+ onTaskLinkDblclick?: VxeGanttEvents.TaskLinkDblclick<D>
1148
+ onTaskLinkRemove?: VxeGanttEvents.TaskLinkRemove<D>
1149
+ }
1150
+
1151
+ export interface VxeGanttListeners<D = any> extends VxeGridListeners<D> {
1152
+ taskCellClick?: VxeGanttEvents.TaskCellClick<D>
1153
+ taskCellDblclick?: VxeGanttEvents.TaskCellDblclick<D>
1154
+ taskBarClick?: VxeGanttEvents.TaskBarClick<D>
1155
+ taskBarDblclick?: VxeGanttEvents.TaskBarDblclick<D>
1156
+ taskViewCellClick?: VxeGanttEvents.TaskViewCellClick<D>
1157
+ taskViewCellDblclick?: VxeGanttEvents.TaskViewCellDblclick<D>
1158
+ taskMoveStart?: VxeGanttEvents.TaskMoveStart<D>
1159
+ taskMoveDrag?: VxeGanttEvents.TaskMoveDrag<D>
1160
+ taskMoveEnd?: VxeGanttEvents.TaskMoveEnd<D>
1161
+ taskResizeStart?: VxeGanttEvents.TaskResizeStart<D>
1162
+ taskResizeDrag?: VxeGanttEvents.TaskResizeDrag<D>
1163
+ taskResizeEnd?: VxeGanttEvents.TaskResizeEnd<D>
1164
+ taskLinkClick?: VxeGanttEvents.TaskLinkClick<D>
1165
+ taskLinkDblclick?: VxeGanttEvents.TaskLinkDblclick<D>
1166
+ taskLinkRemove?: VxeGanttEvents.TaskLinkRemove<D>
1167
+ }
1168
+
1169
+ export namespace VxeGanttEvents {
1170
+ export type TaskCellClick<D = any> = (params: VxeGanttDefines.TaskCellClickEventParams<D>) => void
1171
+ export type TaskCellDblclick<D = any> = (params: VxeGanttDefines.TaskCellDblclickEventParams<D>) => void
1172
+ export type TaskBarClick<D = any> = (params: VxeGanttDefines.TaskBarClickEventParams<D>) => void
1173
+ export type TaskBarDblclick<D = any> = (params: VxeGanttDefines.TaskBarDblclickEventParams<D>) => void
1174
+ export type TaskViewCellClick<D = any> = (params: VxeGanttDefines.TaskViewCellClickEventParams<D>) => void
1175
+ export type TaskViewCellDblclick<D = any> = (params: VxeGanttDefines.TaskViewCellDblclickEventParams<D>) => void
1176
+ export type TaskMoveStart<D = any> = (params: VxeGanttDefines.TaskMoveStartEventParams<D>) => void
1177
+ export type TaskMoveDrag<D = any> = (params: VxeGanttDefines.TaskMoveDragEventParams<D>) => void
1178
+ export type TaskMoveEnd<D = any> = (params: VxeGanttDefines.TaskMoveEndEventParams<D>) => void
1179
+ export type TaskResizeStart<D = any> = (params: VxeGanttDefines.TaskResizeStartEventParams<D>) => void
1180
+ export type TaskResizeDrag<D = any> = (params: VxeGanttDefines.TaskResizeDragEventParams<D>) => void
1181
+ export type TaskResizeEnd<D = any> = (params: VxeGanttDefines.TaskResizeEndEventParams<D>) => void
1182
+ export type TaskLinkClick<D = any> = (params: VxeGanttDefines.TaskLinkClickEventParams<D>) => void
1183
+ export type TaskLinkDblclick<D = any> = (params: VxeGanttDefines.TaskLinkDblclickEventParams<D>) => void
1184
+ export type TaskLinkRemove<D = any> = (params: VxeGanttDefines.TaskLinkRemoveEventParams<D>) => void
1185
+ }
1186
+
1187
+ export namespace VxeGanttSlotTypes {
1188
+ export interface DefaultSlotParams<D = any> {
1189
+ $gantt: VxeGanttConstructor<D>
1190
+ }
1191
+
1192
+ export interface TaskBarSlotParams<D = any> {
1193
+ row: D
1194
+ }
1195
+
1196
+ export interface TaskBarOverviewSlotParams<D = any> {
1197
+ row: D
1198
+ }
1199
+
1200
+ export interface TaskViewCellTitleSlotParams {
1201
+ title: string | number
1202
+ dateObj: VxeGanttDefines.ScaleDateObj
1203
+ startDateObj: VxeGanttDefines.ScaleDateObj
1204
+ endDateObj: VxeGanttDefines.ScaleDateObj
1205
+ scaleObj: VxeGanttDefines.ColumnScaleObj
1206
+ $rowIndex: number
1207
+ }
1208
+ export interface TaskViewHeaderCellStyleSlotParams extends TaskViewCellTitleSlotParams {}
1209
+
1210
+ export interface TaskBarTooltipSlotParams<D = any> {
1211
+ row: D
1212
+ rowIndex: number
1213
+ $rowIndex: number
1214
+ _rowIndex: number
1215
+ tooltipContent: string
1216
+ }
1217
+
1218
+ export interface TaskTaskNowLineSlotParams {}
1219
+ }
1220
+
1221
+ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
1222
+ /**
1223
+ * 自定义任务模板
1224
+ */
1225
+ taskBar?(params: VxeGanttSlotTypes.TaskBarSlotParams<D>): any
1226
+ 'task-bar'?(params: VxeGanttSlotTypes.TaskBarSlotParams<D>): any
1227
+ /**
1228
+ * 自定义任务总览模板
1229
+ */
1230
+ taskBarOverview?(params: VxeGanttSlotTypes.TaskBarOverviewSlotParams<D>): any
1231
+ 'task-bar-overview'?(params: VxeGanttSlotTypes.TaskBarOverviewSlotParams<D>): any
1232
+ /**
1233
+ * 自定义任务提示模板
1234
+ */
1235
+ taskBarTooltip?(params: VxeGanttSlotTypes.TaskBarTooltipSlotParams<D>): any
1236
+ 'task-bar-tooltip'?(params: VxeGanttSlotTypes.TaskBarTooltipSlotParams<D>): any
1237
+ /**
1238
+ * 自定义任务此刻线模板
1239
+ */
1240
+ taskNowLine?(params: VxeGanttSlotTypes.TaskTaskNowLineSlotParams): any
1241
+ 'task-now-line'?(params: VxeGanttSlotTypes.TaskTaskNowLineSlotParams): any
1242
+ }
1243
+
1244
+ export * from './gantt-module'
1245
+ export * from './gantt-plugins'
1246
+
1247
+ export const Gantt: typeof VxeGantt
1248
+ export default VxeGantt