vxe-pc-ui 4.20.24 → 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 +15151 -10366
- 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.d.ts +3 -0
- package/es/index.esm.js +12 -0
- package/es/index.js +12 -0
- 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 +43 -26
- 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 +115 -64
- 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 +12 -0
- package/lib/index.js +12 -0
- package/lib/index.umd.js +15359 -10558
- 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 +57 -40
- 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 +116 -65
- 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 -4
- 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 -245
- 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.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/dist/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/dist/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/es/icon/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/es/icon/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/es/icon/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/es/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/es/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/es/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/es/vxe-icon/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/es/vxe-icon/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/es/vxe-icon/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/lib/icon/style/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/lib/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/lib/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/lib/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1792979107495.ttf → iconfont.1793007755017.ttf} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1792979107495.woff → iconfont.1793007755017.woff} +0 -0
- /package/lib/vxe-icon/style/{iconfont.1792979107495.woff2 → iconfont.1793007755017.woff2} +0 -0
|
@@ -34,10 +34,11 @@ module.exports = __toCommonJS(date_panel_exports);
|
|
|
34
34
|
var import_vue = require("vue");
|
|
35
35
|
var import_comp = require("../../ui/src/comp");
|
|
36
36
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
-
var
|
|
37
|
+
var import_core = require("@vxe-ui/core");
|
|
38
38
|
var import_util = require("./util");
|
|
39
39
|
var import_log = require("../../ui/src/log");
|
|
40
40
|
var import_scrollbar = __toESM(require("../../scrollbar"));
|
|
41
|
+
const { getConfig, getI18n, createEvent, useFns, renderEmptyElement } = import_core.VxeUI;
|
|
41
42
|
const { errLog } = (0, import_log.createComponentLog)("date-panel");
|
|
42
43
|
var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
43
44
|
name: "VxeDatePanel",
|
|
@@ -51,21 +52,21 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
51
52
|
cellClassName: [String, Function],
|
|
52
53
|
size: {
|
|
53
54
|
type: String,
|
|
54
|
-
default: () =>
|
|
55
|
+
default: () => getConfig().datePanel.size || getConfig().size
|
|
55
56
|
},
|
|
56
57
|
multiple: Boolean,
|
|
57
58
|
limitCount: {
|
|
58
59
|
type: [String, Number],
|
|
59
|
-
default: () =>
|
|
60
|
+
default: () => getConfig().datePanel.limitCount
|
|
60
61
|
},
|
|
61
62
|
// date、week、month、quarter、year
|
|
62
63
|
startDate: {
|
|
63
64
|
type: [String, Number, Date],
|
|
64
|
-
default: () =>
|
|
65
|
+
default: () => getConfig().datePanel.startDate
|
|
65
66
|
},
|
|
66
67
|
endDate: {
|
|
67
68
|
type: [String, Number, Date],
|
|
68
|
-
default: () =>
|
|
69
|
+
default: () => getConfig().datePanel.endDate
|
|
69
70
|
},
|
|
70
71
|
defaultMode: String,
|
|
71
72
|
defaultDate: [String, Number, Date],
|
|
@@ -74,7 +75,7 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
74
75
|
maxDate: [String, Number, Date],
|
|
75
76
|
startDay: {
|
|
76
77
|
type: [String, Number],
|
|
77
|
-
default: () =>
|
|
78
|
+
default: () => getConfig().datePanel.startDay
|
|
78
79
|
},
|
|
79
80
|
labelFormat: String,
|
|
80
81
|
valueFormat: String,
|
|
@@ -86,24 +87,14 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
86
87
|
// week
|
|
87
88
|
selectDay: {
|
|
88
89
|
type: [String, Number],
|
|
89
|
-
default: () =>
|
|
90
|
+
default: () => getConfig().datePanel.selectDay
|
|
90
91
|
}
|
|
91
92
|
},
|
|
92
|
-
emits: [
|
|
93
|
-
"update:modelValue",
|
|
94
|
-
"change",
|
|
95
|
-
"click",
|
|
96
|
-
"clear",
|
|
97
|
-
"date-prev",
|
|
98
|
-
"date-today",
|
|
99
|
-
"date-next",
|
|
100
|
-
"confirm",
|
|
101
|
-
"revert"
|
|
102
|
-
],
|
|
93
|
+
emits: ["update:modelValue", "change", "click", "clear", "date-prev", "date-today", "date-next", "confirm", "revert"],
|
|
103
94
|
setup(props, context) {
|
|
104
95
|
const { emit } = context;
|
|
105
96
|
const xID = import_xe_utils.default.uniqueId();
|
|
106
|
-
const { computeSize } =
|
|
97
|
+
const { computeSize } = useFns.useSize(props);
|
|
107
98
|
const reactData = (0, import_vue.reactive)({
|
|
108
99
|
visiblePanel: false,
|
|
109
100
|
isAniVisible: false,
|
|
@@ -124,8 +115,8 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
124
115
|
hpTimeout: void 0
|
|
125
116
|
};
|
|
126
117
|
const defaultFuncProps = {
|
|
127
|
-
festivalMethod:
|
|
128
|
-
disabledMethod:
|
|
118
|
+
festivalMethod: getConfig().datePanel.festivalMethod,
|
|
119
|
+
disabledMethod: getConfig().datePanel.disabledMethod
|
|
129
120
|
};
|
|
130
121
|
const refElem = (0, import_vue.ref)();
|
|
131
122
|
const refPanelWrapper = (0, import_vue.ref)();
|
|
@@ -155,6 +146,7 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
155
146
|
const dateValueFormat = computeDateValueFormat.value;
|
|
156
147
|
const restList = [];
|
|
157
148
|
if (modelValue && isDatePanelType) {
|
|
149
|
+
;
|
|
158
150
|
(import_xe_utils.default.isArray(modelValue) ? modelValue : import_xe_utils.default.toValueString(modelValue).split(",")).forEach((val) => {
|
|
159
151
|
let strVal = val;
|
|
160
152
|
if (val) {
|
|
@@ -193,7 +185,7 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
193
185
|
return false;
|
|
194
186
|
});
|
|
195
187
|
const computeTimeOpts = (0, import_vue.computed)(() => {
|
|
196
|
-
return Object.assign({},
|
|
188
|
+
return Object.assign({}, getConfig().datePanel.timeConfig, props.timeConfig);
|
|
197
189
|
});
|
|
198
190
|
const computeDateValueFormat = (0, import_vue.computed)(() => {
|
|
199
191
|
const { type, valueFormat } = props;
|
|
@@ -248,7 +240,7 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
248
240
|
const { labelFormat } = props;
|
|
249
241
|
const isDatePanelType = computeIsDatePanelType.value;
|
|
250
242
|
if (isDatePanelType) {
|
|
251
|
-
return labelFormat ||
|
|
243
|
+
return labelFormat || getI18n(`vxe.input.date.labelFormat.${props.type}`);
|
|
252
244
|
}
|
|
253
245
|
return "";
|
|
254
246
|
});
|
|
@@ -289,12 +281,12 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
289
281
|
month = selectMonth.getMonth() + 1;
|
|
290
282
|
}
|
|
291
283
|
if (datePanelType === "quarter" || datePanelType === "month") {
|
|
292
|
-
y =
|
|
284
|
+
y = getI18n("vxe.datePicker.yearTitle", [year]);
|
|
293
285
|
} else if (datePanelType === "year") {
|
|
294
286
|
y = yearList.length ? `${yearList[0].year} - ${yearList[yearList.length - 1].year}` : "";
|
|
295
287
|
} else {
|
|
296
|
-
y =
|
|
297
|
-
m = month ?
|
|
288
|
+
y = getI18n("vxe.datePicker.yearTitle", [year]);
|
|
289
|
+
m = month ? getI18n(`vxe.input.date.m${month}`) : "-";
|
|
298
290
|
}
|
|
299
291
|
}
|
|
300
292
|
return {
|
|
@@ -330,7 +322,7 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
330
322
|
return weekDatas.map((day) => {
|
|
331
323
|
return {
|
|
332
324
|
value: day,
|
|
333
|
-
label:
|
|
325
|
+
label: getI18n(`vxe.input.date.weeks.w${day}`)
|
|
334
326
|
};
|
|
335
327
|
});
|
|
336
328
|
}
|
|
@@ -340,7 +332,7 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
340
332
|
const isDatePanelType = computeIsDatePanelType.value;
|
|
341
333
|
if (isDatePanelType) {
|
|
342
334
|
const dateHeaders = computeDateHeaders.value;
|
|
343
|
-
return [{ label:
|
|
335
|
+
return [{ label: getI18n("vxe.input.date.weeks.w") }].concat(dateHeaders);
|
|
344
336
|
}
|
|
345
337
|
return [];
|
|
346
338
|
});
|
|
@@ -1170,7 +1162,7 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1170
1162
|
}
|
|
1171
1163
|
};
|
|
1172
1164
|
const dispatchEvent = (type, params, evnt) => {
|
|
1173
|
-
emit(type,
|
|
1165
|
+
emit(type, createEvent(evnt, { $datePanel: $xeDatePanel }, params));
|
|
1174
1166
|
};
|
|
1175
1167
|
const datePanelMethods = {
|
|
1176
1168
|
dispatchEvent,
|
|
@@ -1207,41 +1199,72 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1207
1199
|
const festivalItem = festivalRest ? import_xe_utils.default.isString(festivalRest) ? { label: festivalRest } : festivalRest : {};
|
|
1208
1200
|
const extraItem = festivalItem.extra ? import_xe_utils.default.isString(festivalItem.extra) ? { label: festivalItem.extra } : festivalItem.extra : null;
|
|
1209
1201
|
labelVNs.push(
|
|
1210
|
-
(0, import_vue.h)(
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1202
|
+
(0, import_vue.h)(
|
|
1203
|
+
"div",
|
|
1204
|
+
{
|
|
1205
|
+
class: [
|
|
1206
|
+
"vxe-date-panel--label",
|
|
1207
|
+
{
|
|
1208
|
+
"is-notice": festivalItem.notice
|
|
1209
|
+
}
|
|
1210
|
+
]
|
|
1211
|
+
},
|
|
1212
|
+
extraItem && extraItem.label ? [
|
|
1213
|
+
(0, import_vue.h)(
|
|
1214
|
+
"div",
|
|
1215
|
+
{
|
|
1216
|
+
class: "vxe-date-panel--label--number"
|
|
1217
|
+
},
|
|
1218
|
+
`${label}`
|
|
1219
|
+
),
|
|
1220
|
+
(0, import_vue.h)(
|
|
1221
|
+
"div",
|
|
1222
|
+
{
|
|
1223
|
+
class: ["vxe-date-panel--label--extra", extraItem.important ? "is-important" : "", extraItem.className],
|
|
1224
|
+
style: extraItem.style
|
|
1225
|
+
},
|
|
1226
|
+
import_xe_utils.default.toValueString(extraItem.label)
|
|
1227
|
+
)
|
|
1228
|
+
] : `${label}`
|
|
1229
|
+
)
|
|
1223
1230
|
);
|
|
1224
1231
|
const festivalLabel = festivalItem.label;
|
|
1225
1232
|
if (festivalLabel) {
|
|
1226
1233
|
const festivalLabels = import_xe_utils.default.toValueString(festivalLabel).split(",");
|
|
1227
1234
|
labelVNs.push(
|
|
1228
|
-
(0, import_vue.h)(
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1235
|
+
(0, import_vue.h)(
|
|
1236
|
+
"div",
|
|
1237
|
+
{
|
|
1238
|
+
class: ["vxe-date-panel--festival", festivalItem.important ? "is-important" : "", festivalItem.className],
|
|
1239
|
+
style: festivalItem.style
|
|
1240
|
+
},
|
|
1241
|
+
[
|
|
1242
|
+
festivalLabels.length > 1 ? (0, import_vue.h)(
|
|
1243
|
+
"div",
|
|
1244
|
+
{
|
|
1245
|
+
class: ["vxe-date-panel--festival--overlap", `overlap--${festivalLabels.length}`]
|
|
1246
|
+
},
|
|
1247
|
+
festivalLabels.map((label2) => (0, import_vue.h)("div", label2.substring(0, 3)))
|
|
1248
|
+
) : (0, import_vue.h)(
|
|
1249
|
+
"div",
|
|
1250
|
+
{
|
|
1251
|
+
class: "vxe-date-panel--festival--label"
|
|
1252
|
+
},
|
|
1253
|
+
festivalLabels[0].substring(0, 3)
|
|
1254
|
+
)
|
|
1255
|
+
]
|
|
1256
|
+
)
|
|
1238
1257
|
);
|
|
1239
1258
|
}
|
|
1240
1259
|
} else {
|
|
1241
1260
|
labelVNs.push(
|
|
1242
|
-
(0, import_vue.h)(
|
|
1243
|
-
|
|
1244
|
-
|
|
1261
|
+
(0, import_vue.h)(
|
|
1262
|
+
"div",
|
|
1263
|
+
{
|
|
1264
|
+
class: "vxe-date-panel--label"
|
|
1265
|
+
},
|
|
1266
|
+
`${label}`
|
|
1267
|
+
)
|
|
1245
1268
|
);
|
|
1246
1269
|
}
|
|
1247
1270
|
return labelVNs;
|
|
@@ -1256,67 +1279,111 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1256
1279
|
const overCount = computeOverCount.value;
|
|
1257
1280
|
const matchFormat = "yyyyMMdd";
|
|
1258
1281
|
return [
|
|
1259
|
-
(0, import_vue.h)(
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
(0, import_vue.h)(
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
(0, import_vue.h)(
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1282
|
+
(0, import_vue.h)(
|
|
1283
|
+
"div",
|
|
1284
|
+
{
|
|
1285
|
+
class: ["vxe-date-panel--view-wrapper", `type--${datePanelType}`]
|
|
1286
|
+
},
|
|
1287
|
+
[
|
|
1288
|
+
(0, import_vue.h)(
|
|
1289
|
+
"div",
|
|
1290
|
+
{
|
|
1291
|
+
class: "vxe-date-panel--view-header"
|
|
1292
|
+
},
|
|
1293
|
+
[
|
|
1294
|
+
(0, import_vue.h)(
|
|
1295
|
+
"div",
|
|
1296
|
+
{
|
|
1297
|
+
class: "vxe-date-panel--view-row"
|
|
1298
|
+
},
|
|
1299
|
+
dateHeaders.map((item) => {
|
|
1300
|
+
return (0, import_vue.h)(
|
|
1301
|
+
"div",
|
|
1302
|
+
{
|
|
1303
|
+
class: "vxe-date-panel--view-item",
|
|
1304
|
+
style: {
|
|
1305
|
+
width: `${100 / dateHeaders.length}%`
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
[
|
|
1309
|
+
(0, import_vue.h)(
|
|
1310
|
+
"div",
|
|
1311
|
+
{
|
|
1312
|
+
class: "vxe-date-panel--view-item-inner"
|
|
1313
|
+
},
|
|
1314
|
+
[
|
|
1315
|
+
(0, import_vue.h)(
|
|
1316
|
+
"div",
|
|
1317
|
+
{
|
|
1318
|
+
class: "vxe-date-panel--view-item-label"
|
|
1319
|
+
},
|
|
1320
|
+
item.label
|
|
1321
|
+
)
|
|
1322
|
+
]
|
|
1323
|
+
)
|
|
1324
|
+
]
|
|
1325
|
+
);
|
|
1326
|
+
})
|
|
1327
|
+
)
|
|
1328
|
+
]
|
|
1329
|
+
),
|
|
1330
|
+
(0, import_vue.h)(
|
|
1331
|
+
"div",
|
|
1332
|
+
{
|
|
1333
|
+
class: "vxe-date-panel--view-body"
|
|
1334
|
+
},
|
|
1335
|
+
dayDatas.map((rows) => {
|
|
1336
|
+
return (0, import_vue.h)(
|
|
1337
|
+
"div",
|
|
1338
|
+
{
|
|
1339
|
+
class: "vxe-date-panel--view-row",
|
|
1340
|
+
style: {
|
|
1341
|
+
height: `${100 / dayDatas.length}%`
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
rows.map((item) => {
|
|
1345
|
+
const isSelected = multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat);
|
|
1346
|
+
return (0, import_vue.h)(
|
|
1347
|
+
"div",
|
|
1348
|
+
{
|
|
1349
|
+
class: [
|
|
1350
|
+
"vxe-date-panel--view-item",
|
|
1351
|
+
cellClassName ? import_xe_utils.default.isFunction(cellClassName) ? `${cellClassName({ $datePanel: $xeDatePanel, type, viewType: datePanelType, date: item.date }) || ""}` : `${cellClassName || ""}` : "",
|
|
1352
|
+
{
|
|
1353
|
+
"is--prev": item.isPrev,
|
|
1354
|
+
"is--current": item.isCurrent,
|
|
1355
|
+
"is--now": item.isNow,
|
|
1356
|
+
"is--next": item.isNext,
|
|
1357
|
+
"is--range-disabled": isRangeDisabled(item),
|
|
1358
|
+
"is--disabled": isDateDisabled(item),
|
|
1359
|
+
"is--selected": isSelected,
|
|
1360
|
+
"is--over": overCount && !isSelected,
|
|
1361
|
+
"is--hover": !overCount && import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1362
|
+
}
|
|
1363
|
+
],
|
|
1364
|
+
style: {
|
|
1365
|
+
width: `${100 / rows.length}%`
|
|
1366
|
+
},
|
|
1367
|
+
onClick: () => dateSelectEvent(item),
|
|
1368
|
+
onMouseenter: () => dateMouseenterEvent(item),
|
|
1369
|
+
onMouseleave: dateMouseleaveEvent
|
|
1370
|
+
},
|
|
1371
|
+
[
|
|
1372
|
+
(0, import_vue.h)(
|
|
1373
|
+
"div",
|
|
1374
|
+
{
|
|
1375
|
+
class: "vxe-date-panel--view-item-inner"
|
|
1376
|
+
},
|
|
1377
|
+
renderDateLabel(item, item.label)
|
|
1378
|
+
)
|
|
1379
|
+
]
|
|
1380
|
+
);
|
|
1381
|
+
})
|
|
1382
|
+
);
|
|
1383
|
+
})
|
|
1384
|
+
)
|
|
1385
|
+
]
|
|
1386
|
+
)
|
|
1320
1387
|
];
|
|
1321
1388
|
};
|
|
1322
1389
|
const renderDateWeekTable = () => {
|
|
@@ -1329,69 +1396,113 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1329
1396
|
const overCount = computeOverCount.value;
|
|
1330
1397
|
const matchFormat = "yyyyMMdd";
|
|
1331
1398
|
return [
|
|
1332
|
-
(0, import_vue.h)(
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
(0, import_vue.h)(
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
(
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1399
|
+
(0, import_vue.h)(
|
|
1400
|
+
"div",
|
|
1401
|
+
{
|
|
1402
|
+
class: ["vxe-date-panel--view-wrapper", `type--${datePanelType}`]
|
|
1403
|
+
},
|
|
1404
|
+
[
|
|
1405
|
+
(0, import_vue.h)(
|
|
1406
|
+
"div",
|
|
1407
|
+
{
|
|
1408
|
+
class: "vxe-date-panel--view-header"
|
|
1409
|
+
},
|
|
1410
|
+
[
|
|
1411
|
+
(0, import_vue.h)(
|
|
1412
|
+
"div",
|
|
1413
|
+
{
|
|
1414
|
+
class: "vxe-date-panel--view-row"
|
|
1415
|
+
},
|
|
1416
|
+
weekHeaders.map((item, rIndex) => {
|
|
1417
|
+
return (0, import_vue.h)(
|
|
1418
|
+
"div",
|
|
1419
|
+
{
|
|
1420
|
+
class: "vxe-date-panel--view-item",
|
|
1421
|
+
style: {
|
|
1422
|
+
width: `${rIndex ? 13 : 9}%`
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
[
|
|
1426
|
+
(0, import_vue.h)(
|
|
1427
|
+
"div",
|
|
1428
|
+
{
|
|
1429
|
+
class: "vxe-date-panel--view-item-inner"
|
|
1430
|
+
},
|
|
1431
|
+
[
|
|
1432
|
+
(0, import_vue.h)(
|
|
1433
|
+
"div",
|
|
1434
|
+
{
|
|
1435
|
+
class: "vxe-date-panel--view-item-label"
|
|
1436
|
+
},
|
|
1437
|
+
item.label
|
|
1438
|
+
)
|
|
1439
|
+
]
|
|
1440
|
+
)
|
|
1441
|
+
]
|
|
1442
|
+
);
|
|
1443
|
+
})
|
|
1444
|
+
)
|
|
1445
|
+
]
|
|
1446
|
+
),
|
|
1447
|
+
(0, import_vue.h)(
|
|
1448
|
+
"div",
|
|
1449
|
+
{
|
|
1450
|
+
class: "vxe-date-panel--view-body"
|
|
1451
|
+
},
|
|
1452
|
+
weekDates.map((rows) => {
|
|
1453
|
+
const isSelected = multiple ? rows.some((item) => dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat))) : rows.some((item) => import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat));
|
|
1454
|
+
const isHover = rows.some((item) => import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat));
|
|
1455
|
+
const isNowWeek = rows.some((item) => item.isNow);
|
|
1456
|
+
return (0, import_vue.h)(
|
|
1457
|
+
"div",
|
|
1458
|
+
{
|
|
1459
|
+
class: "vxe-date-panel--view-row",
|
|
1460
|
+
style: {
|
|
1461
|
+
height: `${100 / weekDates.length}%`
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
rows.map((item, rIndex) => {
|
|
1465
|
+
return (0, import_vue.h)(
|
|
1466
|
+
"div",
|
|
1467
|
+
{
|
|
1468
|
+
class: [
|
|
1469
|
+
"vxe-date-panel--view-item",
|
|
1470
|
+
cellClassName ? import_xe_utils.default.isFunction(cellClassName) ? `${cellClassName({ $datePanel: $xeDatePanel, type, viewType: datePanelType, date: item.date }) || ""}` : `${cellClassName || ""}` : "",
|
|
1471
|
+
{
|
|
1472
|
+
"is--prev": item.isPrev,
|
|
1473
|
+
"is--current": item.isCurrent,
|
|
1474
|
+
"is--now": rIndex ? item.isNow : isNowWeek,
|
|
1475
|
+
"is--next": item.isNext,
|
|
1476
|
+
"is--range-disabled": isRangeDisabled(item),
|
|
1477
|
+
"is--disabled": isDateDisabled(item),
|
|
1478
|
+
"is--selected": isSelected,
|
|
1479
|
+
"is--over": overCount && !isSelected,
|
|
1480
|
+
"is--hover": !overCount && isHover
|
|
1481
|
+
}
|
|
1482
|
+
],
|
|
1483
|
+
style: {
|
|
1484
|
+
width: `${rIndex ? 13 : 9}%`
|
|
1485
|
+
},
|
|
1486
|
+
onClick: () => dateSelectEvent(item),
|
|
1487
|
+
onMouseenter: () => dateMouseenterEvent(item),
|
|
1488
|
+
onMouseleave: dateMouseleaveEvent
|
|
1489
|
+
},
|
|
1490
|
+
[
|
|
1491
|
+
(0, import_vue.h)(
|
|
1492
|
+
"div",
|
|
1493
|
+
{
|
|
1494
|
+
class: "vxe-date-panel--view-item-inner"
|
|
1495
|
+
},
|
|
1496
|
+
renderDateLabel(item, item.label)
|
|
1497
|
+
)
|
|
1498
|
+
]
|
|
1499
|
+
);
|
|
1500
|
+
})
|
|
1501
|
+
);
|
|
1502
|
+
})
|
|
1503
|
+
)
|
|
1504
|
+
]
|
|
1505
|
+
)
|
|
1395
1506
|
];
|
|
1396
1507
|
};
|
|
1397
1508
|
const renderDateMonthTable = () => {
|
|
@@ -1403,45 +1514,69 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1403
1514
|
const overCount = computeOverCount.value;
|
|
1404
1515
|
const matchFormat = "yyyyMM";
|
|
1405
1516
|
return [
|
|
1406
|
-
(0, import_vue.h)(
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1517
|
+
(0, import_vue.h)(
|
|
1518
|
+
"div",
|
|
1519
|
+
{
|
|
1520
|
+
class: ["vxe-date-panel--view-wrapper", `type--${datePanelType}`]
|
|
1521
|
+
},
|
|
1522
|
+
[
|
|
1523
|
+
(0, import_vue.h)(
|
|
1524
|
+
"div",
|
|
1525
|
+
{
|
|
1526
|
+
class: "vxe-date-panel--view-body"
|
|
1527
|
+
},
|
|
1528
|
+
monthDatas.map((rows) => {
|
|
1529
|
+
return (0, import_vue.h)(
|
|
1530
|
+
"div",
|
|
1531
|
+
{
|
|
1532
|
+
class: "vxe-date-panel--view-row",
|
|
1533
|
+
style: {
|
|
1534
|
+
height: `${100 / monthDatas.length}%`
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
rows.map((item) => {
|
|
1538
|
+
const isSelected = multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat);
|
|
1539
|
+
return (0, import_vue.h)(
|
|
1540
|
+
"div",
|
|
1541
|
+
{
|
|
1542
|
+
class: [
|
|
1543
|
+
"vxe-date-panel--view-item",
|
|
1544
|
+
cellClassName ? import_xe_utils.default.isFunction(cellClassName) ? `${cellClassName({ $datePanel: $xeDatePanel, type, viewType: datePanelType, date: item.date }) || ""}` : `${cellClassName || ""}` : "",
|
|
1545
|
+
{
|
|
1546
|
+
"is--prev": item.isPrev,
|
|
1547
|
+
"is--current": item.isCurrent,
|
|
1548
|
+
"is--now": item.isNow,
|
|
1549
|
+
"is--next": item.isNext,
|
|
1550
|
+
"is--range-disabled": isRangeDisabled(item),
|
|
1551
|
+
"is--disabled": isDateDisabled(item),
|
|
1552
|
+
"is--selected": isSelected,
|
|
1553
|
+
"is--over": overCount && !isSelected,
|
|
1554
|
+
"is--hover": !overCount && import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1555
|
+
}
|
|
1556
|
+
],
|
|
1557
|
+
style: {
|
|
1558
|
+
width: `${100 / rows.length}%`
|
|
1559
|
+
},
|
|
1560
|
+
onClick: () => dateSelectEvent(item),
|
|
1561
|
+
onMouseenter: () => dateMouseenterEvent(item),
|
|
1562
|
+
onMouseleave: dateMouseleaveEvent
|
|
1563
|
+
},
|
|
1564
|
+
[
|
|
1565
|
+
(0, import_vue.h)(
|
|
1566
|
+
"div",
|
|
1567
|
+
{
|
|
1568
|
+
class: "vxe-date-panel--view-item-inner"
|
|
1569
|
+
},
|
|
1570
|
+
renderDateLabel(item, getI18n(`vxe.input.date.months.m${item.month}`))
|
|
1571
|
+
)
|
|
1572
|
+
]
|
|
1573
|
+
);
|
|
1574
|
+
})
|
|
1575
|
+
);
|
|
1576
|
+
})
|
|
1577
|
+
)
|
|
1578
|
+
]
|
|
1579
|
+
)
|
|
1445
1580
|
];
|
|
1446
1581
|
};
|
|
1447
1582
|
const renderDateQuarterTable = () => {
|
|
@@ -1453,45 +1588,69 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1453
1588
|
const overCount = computeOverCount.value;
|
|
1454
1589
|
const matchFormat = "yyyyq";
|
|
1455
1590
|
return [
|
|
1456
|
-
(0, import_vue.h)(
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1591
|
+
(0, import_vue.h)(
|
|
1592
|
+
"div",
|
|
1593
|
+
{
|
|
1594
|
+
class: ["vxe-date-panel--view-wrapper", `type--${datePanelType}`]
|
|
1595
|
+
},
|
|
1596
|
+
[
|
|
1597
|
+
(0, import_vue.h)(
|
|
1598
|
+
"div",
|
|
1599
|
+
{
|
|
1600
|
+
class: "vxe-date-panel--view-body"
|
|
1601
|
+
},
|
|
1602
|
+
quarterDatas.map((rows) => {
|
|
1603
|
+
return (0, import_vue.h)(
|
|
1604
|
+
"div",
|
|
1605
|
+
{
|
|
1606
|
+
class: "vxe-date-panel--view-row",
|
|
1607
|
+
style: {
|
|
1608
|
+
height: `${100 / quarterDatas.length}%`
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
rows.map((item) => {
|
|
1612
|
+
const isSelected = multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat);
|
|
1613
|
+
return (0, import_vue.h)(
|
|
1614
|
+
"div",
|
|
1615
|
+
{
|
|
1616
|
+
class: [
|
|
1617
|
+
"vxe-date-panel--view-item",
|
|
1618
|
+
cellClassName ? import_xe_utils.default.isFunction(cellClassName) ? `${cellClassName({ $datePanel: $xeDatePanel, type, viewType: datePanelType, date: item.date }) || ""}` : `${cellClassName || ""}` : "",
|
|
1619
|
+
{
|
|
1620
|
+
"is--prev": item.isPrev,
|
|
1621
|
+
"is--current": item.isCurrent,
|
|
1622
|
+
"is--now": item.isNow,
|
|
1623
|
+
"is--next": item.isNext,
|
|
1624
|
+
"is--range-disabled": isRangeDisabled(item),
|
|
1625
|
+
"is--disabled": isDateDisabled(item),
|
|
1626
|
+
"is--selected": isSelected,
|
|
1627
|
+
"is--over": overCount && !isSelected,
|
|
1628
|
+
"is--hover": !overCount && import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1629
|
+
}
|
|
1630
|
+
],
|
|
1631
|
+
style: {
|
|
1632
|
+
width: `${100 / rows.length}%`
|
|
1633
|
+
},
|
|
1634
|
+
onClick: () => dateSelectEvent(item),
|
|
1635
|
+
onMouseenter: () => dateMouseenterEvent(item),
|
|
1636
|
+
onMouseleave: dateMouseleaveEvent
|
|
1637
|
+
},
|
|
1638
|
+
[
|
|
1639
|
+
(0, import_vue.h)(
|
|
1640
|
+
"div",
|
|
1641
|
+
{
|
|
1642
|
+
class: "vxe-date-panel--view-item-inner"
|
|
1643
|
+
},
|
|
1644
|
+
renderDateLabel(item, getI18n(`vxe.input.date.quarters.q${item.quarter}`))
|
|
1645
|
+
)
|
|
1646
|
+
]
|
|
1647
|
+
);
|
|
1648
|
+
})
|
|
1649
|
+
);
|
|
1650
|
+
})
|
|
1651
|
+
)
|
|
1652
|
+
]
|
|
1653
|
+
)
|
|
1495
1654
|
];
|
|
1496
1655
|
};
|
|
1497
1656
|
const renderDateYearTable = () => {
|
|
@@ -1503,45 +1662,69 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1503
1662
|
const overCount = computeOverCount.value;
|
|
1504
1663
|
const matchFormat = "yyyy";
|
|
1505
1664
|
return [
|
|
1506
|
-
(0, import_vue.h)(
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1665
|
+
(0, import_vue.h)(
|
|
1666
|
+
"div",
|
|
1667
|
+
{
|
|
1668
|
+
class: ["vxe-date-panel--view-wrapper", `type--${datePanelType}`]
|
|
1669
|
+
},
|
|
1670
|
+
[
|
|
1671
|
+
(0, import_vue.h)(
|
|
1672
|
+
"div",
|
|
1673
|
+
{
|
|
1674
|
+
class: "vxe-date-panel--view-body"
|
|
1675
|
+
},
|
|
1676
|
+
yearDatas.map((rows) => {
|
|
1677
|
+
return (0, import_vue.h)(
|
|
1678
|
+
"div",
|
|
1679
|
+
{
|
|
1680
|
+
class: "vxe-date-panel--view-row",
|
|
1681
|
+
style: {
|
|
1682
|
+
height: `${100 / yearDatas.length}%`
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
rows.map((item) => {
|
|
1686
|
+
const isSelected = multiple ? dateListValue.some((val) => import_xe_utils.default.isDateSame(val, item.date, matchFormat)) : import_xe_utils.default.isDateSame(dateValue, item.date, matchFormat);
|
|
1687
|
+
return (0, import_vue.h)(
|
|
1688
|
+
"div",
|
|
1689
|
+
{
|
|
1690
|
+
class: [
|
|
1691
|
+
"vxe-date-panel--view-item",
|
|
1692
|
+
cellClassName ? import_xe_utils.default.isFunction(cellClassName) ? `${cellClassName({ $datePanel: $xeDatePanel, type, viewType: datePanelType, date: item.date }) || ""}` : `${cellClassName || ""}` : "",
|
|
1693
|
+
{
|
|
1694
|
+
"is--prev": item.isPrev,
|
|
1695
|
+
"is--current": item.isCurrent,
|
|
1696
|
+
"is--now": item.isNow,
|
|
1697
|
+
"is--next": item.isNext,
|
|
1698
|
+
"is--range-disabled": isRangeDisabled(item),
|
|
1699
|
+
"is--disabled": isDateDisabled(item),
|
|
1700
|
+
"is--selected": isSelected,
|
|
1701
|
+
"is--over": overCount && !isSelected,
|
|
1702
|
+
"is--hover": !overCount && import_xe_utils.default.isDateSame(datePanelValue, item.date, matchFormat)
|
|
1703
|
+
}
|
|
1704
|
+
],
|
|
1705
|
+
style: {
|
|
1706
|
+
width: `${100 / rows.length}%`
|
|
1707
|
+
},
|
|
1708
|
+
onClick: () => dateSelectEvent(item),
|
|
1709
|
+
onMouseenter: () => dateMouseenterEvent(item),
|
|
1710
|
+
onMouseleave: dateMouseleaveEvent
|
|
1711
|
+
},
|
|
1712
|
+
[
|
|
1713
|
+
(0, import_vue.h)(
|
|
1714
|
+
"div",
|
|
1715
|
+
{
|
|
1716
|
+
class: "vxe-date-panel--view-item-inner"
|
|
1717
|
+
},
|
|
1718
|
+
renderDateLabel(item, item.year)
|
|
1719
|
+
)
|
|
1720
|
+
]
|
|
1721
|
+
);
|
|
1722
|
+
})
|
|
1723
|
+
);
|
|
1724
|
+
})
|
|
1725
|
+
)
|
|
1726
|
+
]
|
|
1727
|
+
)
|
|
1545
1728
|
];
|
|
1546
1729
|
};
|
|
1547
1730
|
const renderDateTable = () => {
|
|
@@ -1564,63 +1747,113 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1564
1747
|
const isDisabledNextDateBtn = computeIsDisabledNextDateBtn.value;
|
|
1565
1748
|
const selectDatePanelObj = computeSelectDatePanelObj.value;
|
|
1566
1749
|
return [
|
|
1567
|
-
(0, import_vue.h)(
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1750
|
+
(0, import_vue.h)(
|
|
1751
|
+
"div",
|
|
1752
|
+
{
|
|
1753
|
+
class: "vxe-date-panel--picker-header"
|
|
1754
|
+
},
|
|
1755
|
+
[
|
|
1756
|
+
(0, import_vue.h)(
|
|
1757
|
+
"div",
|
|
1758
|
+
{
|
|
1759
|
+
class: "vxe-date-panel--picker-type-wrapper"
|
|
1760
|
+
},
|
|
1761
|
+
[
|
|
1762
|
+
datePanelType === "year" ? (0, import_vue.h)(
|
|
1763
|
+
"span",
|
|
1764
|
+
{
|
|
1765
|
+
class: "vxe-date-panel--picker-label"
|
|
1766
|
+
},
|
|
1767
|
+
selectDatePanelObj.y
|
|
1768
|
+
) : (0, import_vue.h)(
|
|
1769
|
+
"span",
|
|
1770
|
+
{
|
|
1771
|
+
class: "vxe-date-panel--picker-btns"
|
|
1772
|
+
},
|
|
1773
|
+
[
|
|
1774
|
+
(0, import_vue.h)(
|
|
1775
|
+
"span",
|
|
1776
|
+
{
|
|
1777
|
+
class: "vxe-date-panel--picker-btn",
|
|
1778
|
+
onClick: dateToggleYearTypeEvent
|
|
1779
|
+
},
|
|
1780
|
+
selectDatePanelObj.y
|
|
1781
|
+
),
|
|
1782
|
+
selectDatePanelObj.m ? (0, import_vue.h)(
|
|
1783
|
+
"span",
|
|
1784
|
+
{
|
|
1785
|
+
class: "vxe-date-panel--picker-btn",
|
|
1786
|
+
onClick: dateToggleMonthTypeEvent
|
|
1787
|
+
},
|
|
1788
|
+
selectDatePanelObj.m
|
|
1789
|
+
) : renderEmptyElement($xeDatePanel)
|
|
1790
|
+
]
|
|
1791
|
+
)
|
|
1792
|
+
]
|
|
1793
|
+
),
|
|
1794
|
+
(0, import_vue.h)(
|
|
1795
|
+
"div",
|
|
1796
|
+
{
|
|
1797
|
+
class: "vxe-date-panel--picker-btn-wrapper"
|
|
1798
|
+
},
|
|
1799
|
+
[
|
|
1800
|
+
(0, import_vue.h)(
|
|
1801
|
+
"span",
|
|
1802
|
+
{
|
|
1803
|
+
class: [
|
|
1804
|
+
"vxe-date-panel--picker-btn vxe-date-panel--picker-prev-btn",
|
|
1805
|
+
{
|
|
1806
|
+
"is--disabled": isDisabledPrevDateBtn
|
|
1807
|
+
}
|
|
1808
|
+
],
|
|
1809
|
+
onClick: datePrevEvent
|
|
1810
|
+
},
|
|
1811
|
+
[
|
|
1812
|
+
(0, import_vue.h)("i", {
|
|
1813
|
+
class: "vxe-icon-caret-left"
|
|
1814
|
+
})
|
|
1815
|
+
]
|
|
1816
|
+
),
|
|
1817
|
+
(0, import_vue.h)(
|
|
1818
|
+
"span",
|
|
1819
|
+
{
|
|
1820
|
+
class: "vxe-date-panel--picker-btn vxe-date-panel--picker-current-btn",
|
|
1821
|
+
onClick: dateTodayMonthEvent
|
|
1822
|
+
},
|
|
1823
|
+
[
|
|
1824
|
+
(0, import_vue.h)("i", {
|
|
1825
|
+
class: "vxe-icon-dot"
|
|
1826
|
+
})
|
|
1827
|
+
]
|
|
1828
|
+
),
|
|
1829
|
+
(0, import_vue.h)(
|
|
1830
|
+
"span",
|
|
1831
|
+
{
|
|
1832
|
+
class: [
|
|
1833
|
+
"vxe-date-panel--picker-btn vxe-date-panel--picker-next-btn",
|
|
1834
|
+
{
|
|
1835
|
+
"is--disabled": isDisabledNextDateBtn
|
|
1836
|
+
}
|
|
1837
|
+
],
|
|
1838
|
+
onClick: dateNextEvent
|
|
1839
|
+
},
|
|
1840
|
+
[
|
|
1841
|
+
(0, import_vue.h)("i", {
|
|
1842
|
+
class: "vxe-icon-caret-right"
|
|
1843
|
+
})
|
|
1844
|
+
]
|
|
1845
|
+
)
|
|
1846
|
+
]
|
|
1847
|
+
)
|
|
1848
|
+
]
|
|
1849
|
+
),
|
|
1850
|
+
(0, import_vue.h)(
|
|
1851
|
+
"div",
|
|
1852
|
+
{
|
|
1853
|
+
class: "vxe-date-panel--picker-body"
|
|
1854
|
+
},
|
|
1855
|
+
renderDateTable()
|
|
1856
|
+
)
|
|
1624
1857
|
];
|
|
1625
1858
|
};
|
|
1626
1859
|
const renderTimePanel = () => {
|
|
@@ -1633,132 +1866,209 @@ var date_panel_default = (0, import_comp.defineVxeComponent)({
|
|
|
1633
1866
|
const hasTimeSecond = computeHasTimeSecond.value;
|
|
1634
1867
|
const secondList = computeSecondList.value;
|
|
1635
1868
|
return [
|
|
1636
|
-
type === "time" ?
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1869
|
+
type === "time" ? renderEmptyElement($xeDatePanel) : (0, import_vue.h)(
|
|
1870
|
+
"div",
|
|
1871
|
+
{
|
|
1872
|
+
class: "vxe-date-panel--time-header"
|
|
1873
|
+
},
|
|
1874
|
+
[
|
|
1875
|
+
(0, import_vue.h)(
|
|
1876
|
+
"div",
|
|
1877
|
+
{
|
|
1878
|
+
class: "vxe-date-panel--time-title"
|
|
1879
|
+
},
|
|
1880
|
+
dateTimeLabel
|
|
1881
|
+
)
|
|
1882
|
+
]
|
|
1883
|
+
),
|
|
1884
|
+
(0, import_vue.h)(
|
|
1885
|
+
"div",
|
|
1886
|
+
{
|
|
1887
|
+
ref: refInputTimeBody,
|
|
1888
|
+
class: "vxe-date-panel--time-body"
|
|
1889
|
+
},
|
|
1890
|
+
[
|
|
1891
|
+
(0, import_vue.h)(
|
|
1892
|
+
import_scrollbar.default,
|
|
1893
|
+
{
|
|
1894
|
+
autoHide: true,
|
|
1895
|
+
class: "vxe-date-panel--time-hour-list",
|
|
1896
|
+
viewClassName: "vxe-date-panel--time-list-view",
|
|
1897
|
+
viewInnerClassName: "vxe-date-panel--time-list-inner"
|
|
1898
|
+
},
|
|
1899
|
+
{
|
|
1900
|
+
default: () => {
|
|
1901
|
+
return hourList.map((item, index) => {
|
|
1902
|
+
return (0, import_vue.h)(
|
|
1903
|
+
"div",
|
|
1904
|
+
{
|
|
1905
|
+
key: index,
|
|
1906
|
+
class: [
|
|
1907
|
+
"vxe-date-panel--time-item",
|
|
1908
|
+
{
|
|
1909
|
+
"is--disabled": item.disabled,
|
|
1910
|
+
"is--selected": datetimePanelValue && datetimePanelValue.getHours() === item.value
|
|
1911
|
+
}
|
|
1912
|
+
],
|
|
1913
|
+
onClick: (evnt) => dateHourEvent(evnt, item)
|
|
1914
|
+
},
|
|
1915
|
+
item.label
|
|
1916
|
+
);
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
),
|
|
1921
|
+
hasTimeMinute ? (0, import_vue.h)(
|
|
1922
|
+
import_scrollbar.default,
|
|
1923
|
+
{
|
|
1924
|
+
autoHide: true,
|
|
1925
|
+
class: "vxe-date-panel--time-minute-list",
|
|
1926
|
+
viewClassName: "vxe-date-panel--time-list-view",
|
|
1927
|
+
viewInnerClassName: "vxe-date-panel--time-list-inner"
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
default: () => {
|
|
1931
|
+
return minuteList.map((item, index) => {
|
|
1932
|
+
return (0, import_vue.h)(
|
|
1933
|
+
"div",
|
|
1934
|
+
{
|
|
1935
|
+
key: index,
|
|
1936
|
+
class: [
|
|
1937
|
+
"vxe-date-panel--time-item",
|
|
1938
|
+
{
|
|
1939
|
+
"is--disabled": item.disabled,
|
|
1940
|
+
"is--selected": datetimePanelValue && datetimePanelValue.getMinutes() === item.value
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1943
|
+
onClick: (evnt) => dateMinuteEvent(evnt, item)
|
|
1944
|
+
},
|
|
1945
|
+
item.label
|
|
1946
|
+
);
|
|
1947
|
+
});
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
) : renderEmptyElement($xeDatePanel),
|
|
1951
|
+
hasTimeMinute && hasTimeSecond ? (0, import_vue.h)(
|
|
1952
|
+
import_scrollbar.default,
|
|
1953
|
+
{
|
|
1954
|
+
autoHide: true,
|
|
1955
|
+
class: "vxe-date-panel--time-second-list",
|
|
1956
|
+
viewClassName: "vxe-date-panel--time-list-view",
|
|
1957
|
+
viewInnerClassName: "vxe-date-panel--time-list-inner"
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
default: () => {
|
|
1961
|
+
return secondList.map((item, index) => {
|
|
1962
|
+
return (0, import_vue.h)(
|
|
1963
|
+
"div",
|
|
1964
|
+
{
|
|
1965
|
+
key: index,
|
|
1966
|
+
class: [
|
|
1967
|
+
"vxe-date-panel--time-item",
|
|
1968
|
+
{
|
|
1969
|
+
"is--disabled": item.disabled,
|
|
1970
|
+
"is--selected": datetimePanelValue && datetimePanelValue.getSeconds() === item.value
|
|
1971
|
+
}
|
|
1972
|
+
],
|
|
1973
|
+
onClick: (evnt) => dateSecondEvent(evnt, item)
|
|
1974
|
+
},
|
|
1975
|
+
item.label
|
|
1976
|
+
);
|
|
1977
|
+
});
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
) : renderEmptyElement($xeDatePanel)
|
|
1981
|
+
]
|
|
1982
|
+
)
|
|
1705
1983
|
];
|
|
1706
1984
|
};
|
|
1707
1985
|
const renderPickerPanel = () => {
|
|
1708
1986
|
const { type } = props;
|
|
1709
1987
|
if (type === "datetime") {
|
|
1710
|
-
return (0, import_vue.h)(
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1988
|
+
return (0, import_vue.h)(
|
|
1989
|
+
"div",
|
|
1990
|
+
{
|
|
1991
|
+
key: type,
|
|
1992
|
+
ref: refPanelWrapper,
|
|
1993
|
+
class: "vxe-date-panel--time-layout-wrapper"
|
|
1994
|
+
},
|
|
1995
|
+
[
|
|
1996
|
+
(0, import_vue.h)(
|
|
1997
|
+
"div",
|
|
1998
|
+
{
|
|
1999
|
+
class: "vxe-date-panel--time-left-wrapper"
|
|
2000
|
+
},
|
|
2001
|
+
renderDatePanel()
|
|
2002
|
+
),
|
|
2003
|
+
(0, import_vue.h)(
|
|
2004
|
+
"div",
|
|
2005
|
+
{
|
|
2006
|
+
class: "vxe-date-panel--time-right-wrapper"
|
|
2007
|
+
},
|
|
2008
|
+
renderTimePanel()
|
|
2009
|
+
)
|
|
2010
|
+
]
|
|
2011
|
+
);
|
|
1722
2012
|
} else if (type === "time") {
|
|
1723
|
-
return (0, import_vue.h)(
|
|
1724
|
-
|
|
2013
|
+
return (0, import_vue.h)(
|
|
2014
|
+
"div",
|
|
2015
|
+
{
|
|
2016
|
+
key: type,
|
|
2017
|
+
ref: refPanelWrapper,
|
|
2018
|
+
class: "vxe-date-panel--wrapper"
|
|
2019
|
+
},
|
|
2020
|
+
renderTimePanel()
|
|
2021
|
+
);
|
|
2022
|
+
}
|
|
2023
|
+
return (0, import_vue.h)(
|
|
2024
|
+
"div",
|
|
2025
|
+
{
|
|
2026
|
+
key: type || "default",
|
|
1725
2027
|
ref: refPanelWrapper,
|
|
1726
2028
|
class: "vxe-date-panel--wrapper"
|
|
1727
|
-
},
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
key: type || "default",
|
|
1731
|
-
ref: refPanelWrapper,
|
|
1732
|
-
class: "vxe-date-panel--wrapper"
|
|
1733
|
-
}, renderDatePanel());
|
|
2029
|
+
},
|
|
2030
|
+
renderDatePanel()
|
|
2031
|
+
);
|
|
1734
2032
|
};
|
|
1735
2033
|
const renderVN = () => {
|
|
1736
2034
|
const { type } = props;
|
|
1737
2035
|
const vSize = computeSize.value;
|
|
1738
|
-
return (0, import_vue.h)(
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
2036
|
+
return (0, import_vue.h)(
|
|
2037
|
+
"div",
|
|
2038
|
+
{
|
|
2039
|
+
class: [
|
|
2040
|
+
"vxe-date-panel",
|
|
2041
|
+
`type--${type}`,
|
|
2042
|
+
{
|
|
2043
|
+
[`size--${vSize}`]: vSize
|
|
2044
|
+
}
|
|
2045
|
+
]
|
|
2046
|
+
},
|
|
2047
|
+
[renderPickerPanel()]
|
|
2048
|
+
);
|
|
1745
2049
|
};
|
|
1746
|
-
(0, import_vue.watch)(
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
2050
|
+
(0, import_vue.watch)(
|
|
2051
|
+
() => props.modelValue,
|
|
2052
|
+
(val) => {
|
|
2053
|
+
updateModelValue(val);
|
|
2054
|
+
changeValue();
|
|
2055
|
+
}
|
|
2056
|
+
);
|
|
2057
|
+
(0, import_vue.watch)(
|
|
2058
|
+
() => props.type,
|
|
2059
|
+
() => {
|
|
2060
|
+
Object.assign(reactData, {
|
|
2061
|
+
inputLabel: "",
|
|
2062
|
+
datetimePanelValue: null,
|
|
2063
|
+
datePanelValue: null,
|
|
2064
|
+
datePanelLabel: "",
|
|
2065
|
+
datePanelType: "day",
|
|
2066
|
+
selectMonth: null,
|
|
2067
|
+
currentDate: null
|
|
2068
|
+
});
|
|
2069
|
+
initValue();
|
|
2070
|
+
}
|
|
2071
|
+
);
|
|
1762
2072
|
(0, import_vue.watch)(computeDateLabelFormat, () => {
|
|
1763
2073
|
const isDatePanelType = computeIsDatePanelType.value;
|
|
1764
2074
|
if (isDatePanelType) {
|