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