vxe-pc-ui 4.14.4 → 4.14.6

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