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