vxe-pc-ui 3.13.11 → 3.13.13

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