vft 0.0.71 → 0.0.73
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/es/component.js +56 -40
- package/es/components/aside/style/css.js +2 -0
- package/es/components/aside/style/index.js +2 -0
- package/es/components/back-top/back-top.vue2.js +8 -2
- package/es/components/col/col.vue.js +4 -0
- package/es/components/col/col.vue2.js +60 -0
- package/es/components/col/index.js +12 -0
- package/es/components/col/style/css.js +2 -0
- package/es/components/col/style/index.js +2 -0
- package/es/components/col/types.js +1 -0
- package/es/components/color-picker/utils/color.js +41 -51
- package/es/components/container/aside.vue.js +4 -0
- package/es/components/container/aside.vue2.js +37 -0
- package/es/components/container/container.vue.js +4 -0
- package/es/components/container/container.vue2.js +33 -0
- package/es/components/container/footer.vue.js +4 -0
- package/es/components/container/footer.vue2.js +39 -0
- package/es/components/container/header.vue.js +4 -0
- package/es/components/container/header.vue2.js +39 -0
- package/es/components/container/index.js +25 -0
- package/es/components/container/main.vue.js +4 -0
- package/es/components/container/main.vue2.js +26 -0
- package/es/components/container/style/css.js +6 -0
- package/es/components/container/style/index.js +6 -0
- package/es/components/context-menu/context-menu.vue2.js +20 -14
- package/es/components/date-picker/composables/use-month-range-header.js +29 -0
- package/es/components/date-picker/composables/use-range-picker.js +68 -0
- package/es/components/date-picker/composables/use-shortcut.js +24 -0
- package/es/components/date-picker/constants.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +37 -0
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +206 -0
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +131 -0
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +85 -0
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +455 -0
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +383 -0
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +170 -0
- package/es/components/date-picker/date-picker.js +81 -0
- package/es/components/date-picker/date-picker.type.js +1 -0
- package/es/components/date-picker/index.js +14 -0
- package/es/components/date-picker/panel-utils.js +17 -0
- package/es/components/date-picker/props/basic-cell.js +14 -0
- package/es/components/date-picker/props/basic-date-table.js +18 -0
- package/es/components/date-picker/props/basic-month-table.js +14 -0
- package/es/components/date-picker/props/basic-year-table.js +15 -0
- package/es/components/date-picker/props/date-picker.js +18 -0
- package/es/components/date-picker/props/panel-date-pick.js +23 -0
- package/es/components/date-picker/props/panel-date-range.js +14 -0
- package/es/components/date-picker/props/panel-month-range.js +14 -0
- package/es/components/date-picker/props/shared.js +56 -0
- package/es/components/date-picker/style/css.js +2 -0
- package/es/components/date-picker/style/index.js +7 -0
- package/es/components/date-picker/utils.js +49 -0
- package/es/components/date-time-select/date-time-select.vue2.js +69 -63
- package/es/components/date-time-select/style/index.js +6 -0
- package/es/components/footer/style/css.js +2 -0
- package/es/components/footer/style/index.js +2 -0
- package/es/components/footer-layout/footer-layout.vue2.js +105 -35
- package/es/components/header/style/css.js +2 -0
- package/es/components/header/style/index.js +2 -0
- package/es/components/header-layout/header-layout.vue2.js +122 -37
- package/es/components/horizontal-menu/horizontal-menu.vue.js +4 -0
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +115 -0
- package/es/components/horizontal-menu/index.js +12 -0
- package/es/components/horizontal-menu/style/css.js +6 -0
- package/es/components/horizontal-menu/style/index.js +6 -0
- package/es/components/index.js +254 -209
- package/es/components/input/input.vue2.js +184 -178
- package/es/components/link/link.vue2.js +24 -24
- package/es/components/logo/logo.vue2.js +21 -21
- package/es/components/main/style/css.js +2 -0
- package/es/components/main/style/index.js +2 -0
- package/es/components/md-container/md-container.vue2.js +65 -59
- package/es/components/md-container/toc.js +1 -1
- package/es/components/menu/menu-item.vue2.js +89 -62
- package/es/components/menu/menu.vue2.js +100 -106
- package/es/components/menu/sub-menu.vue2.js +83 -76
- package/es/components/menu/utils/menu-item.js +15 -19
- package/es/components/menu/utils/submenu.js +20 -25
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -39
- package/es/components/result/result.vue2.js +8 -2
- package/es/components/row/constants.js +4 -0
- package/es/components/row/index.js +14 -0
- package/es/components/row/row.vue.js +4 -0
- package/es/components/row/row.vue2.js +49 -0
- package/es/components/row/style/css.js +2 -0
- package/es/components/row/style/index.js +2 -0
- package/es/components/row/types.js +1 -0
- package/es/components/search/search.vue2.js +126 -114
- package/es/components/side-menu/side-menu.vue2.js +212 -146
- package/es/components/side-menu/use-drag-line.js +29 -28
- package/es/components/tabs/tab-nav.vue2.js +48 -42
- package/es/components/time-picker/common/picker.vue.js +4 -0
- package/es/components/time-picker/common/picker.vue2.js +438 -0
- package/es/components/time-picker/common/props.js +201 -0
- package/es/components/time-picker/composables/use-time-panel.js +60 -0
- package/es/components/time-picker/composables/use-time-picker.js +40 -0
- package/es/components/time-picker/constants.js +17 -0
- package/es/components/time-picker/index.js +31 -0
- package/es/components/time-picker/props/basic-time-spinner.js +31 -0
- package/es/components/time-picker/props/panel-time-picker.js +17 -0
- package/es/components/time-picker/props/panel-time-range.js +16 -0
- package/es/components/time-picker/props/shared.js +40 -0
- package/es/components/time-picker/style/css.js +2 -0
- package/es/components/time-picker/style/index.js +2 -0
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.js +4 -0
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +227 -0
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.js +4 -0
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +107 -0
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.js +4 -0
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +190 -0
- package/es/components/time-picker/time-picker.js +70 -0
- package/es/components/time-picker/types.js +1 -0
- package/es/components/time-picker/utils.js +35 -0
- package/es/components/time-select/style/css.js +2 -0
- package/es/components/time-select/style/index.js +2 -0
- package/es/components/time-select/time-select.js +54 -0
- package/es/components/time-select/time-select.vue.js +4 -0
- package/es/components/time-select/time-select.vue2.js +104 -0
- package/es/components/time-select/utils.js +40 -0
- package/es/components/tooltip/index.js +5 -3
- package/es/index.js +381 -336
- package/es/package.json.js +1 -1
- package/global.d.ts +73 -2
- package/lib/component.cjs +1 -1
- package/lib/components/aside/style/css.cjs +1 -0
- package/lib/components/aside/style/index.cjs +1 -0
- package/lib/components/back-top/back-top.vue2.cjs +1 -1
- package/lib/components/col/col.vue.cjs +1 -0
- package/lib/components/col/col.vue2.cjs +1 -0
- package/lib/components/col/index.cjs +1 -0
- package/lib/components/col/style/css.cjs +1 -0
- package/lib/components/col/style/index.cjs +1 -0
- package/lib/components/col/types.cjs +1 -0
- package/lib/components/color-picker/utils/color.cjs +1 -1
- package/lib/components/container/aside.vue.cjs +1 -0
- package/lib/components/container/aside.vue2.cjs +1 -0
- package/lib/components/container/container.vue.cjs +1 -0
- package/lib/components/container/container.vue2.cjs +1 -0
- package/lib/components/container/footer.vue.cjs +1 -0
- package/lib/components/container/footer.vue2.cjs +1 -0
- package/lib/components/container/header.vue.cjs +1 -0
- package/lib/components/container/header.vue2.cjs +1 -0
- package/lib/components/container/index.cjs +1 -0
- package/lib/components/container/main.vue.cjs +1 -0
- package/lib/components/container/main.vue2.cjs +1 -0
- package/lib/components/container/style/css.cjs +1 -0
- package/lib/components/container/style/index.cjs +1 -0
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -0
- package/lib/components/date-picker/composables/use-range-picker.cjs +1 -0
- package/lib/components/date-picker/composables/use-shortcut.cjs +1 -0
- package/lib/components/date-picker/constants.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker.cjs +1 -0
- package/lib/components/date-picker/date-picker.type.cjs +1 -0
- package/lib/components/date-picker/index.cjs +1 -0
- package/lib/components/date-picker/panel-utils.cjs +1 -0
- package/lib/components/date-picker/props/basic-cell.cjs +1 -0
- package/lib/components/date-picker/props/basic-date-table.cjs +1 -0
- package/lib/components/date-picker/props/basic-month-table.cjs +1 -0
- package/lib/components/date-picker/props/basic-year-table.cjs +1 -0
- package/lib/components/date-picker/props/date-picker.cjs +1 -0
- package/lib/components/date-picker/props/panel-date-pick.cjs +1 -0
- package/lib/components/date-picker/props/panel-date-range.cjs +1 -0
- package/lib/components/date-picker/props/panel-month-range.cjs +1 -0
- package/lib/components/date-picker/props/shared.cjs +1 -0
- package/lib/components/date-picker/style/css.cjs +1 -0
- package/lib/components/date-picker/style/index.cjs +1 -0
- package/lib/components/date-picker/utils.cjs +1 -0
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/style/index.cjs +1 -1
- package/lib/components/footer/style/css.cjs +1 -0
- package/lib/components/footer/style/index.cjs +1 -0
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/header/style/css.cjs +1 -0
- package/lib/components/header/style/index.cjs +1 -0
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue.cjs +1 -0
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -0
- package/lib/components/horizontal-menu/index.cjs +1 -0
- package/lib/components/horizontal-menu/style/css.cjs +1 -0
- package/lib/components/horizontal-menu/style/index.cjs +1 -0
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/main/style/css.cjs +1 -0
- package/lib/components/main/style/index.cjs +1 -0
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-container/toc.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/menu/utils/menu-item.cjs +1 -1
- package/lib/components/menu/utils/submenu.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/row/constants.cjs +1 -0
- package/lib/components/row/index.cjs +1 -0
- package/lib/components/row/row.vue.cjs +1 -0
- package/lib/components/row/row.vue2.cjs +1 -0
- package/lib/components/row/style/css.cjs +1 -0
- package/lib/components/row/style/index.cjs +1 -0
- package/lib/components/row/types.cjs +1 -0
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/use-drag-line.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue.cjs +1 -0
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -0
- package/lib/components/time-picker/common/props.cjs +1 -0
- package/lib/components/time-picker/composables/use-time-panel.cjs +1 -0
- package/lib/components/time-picker/composables/use-time-picker.cjs +1 -0
- package/lib/components/time-picker/constants.cjs +1 -0
- package/lib/components/time-picker/index.cjs +1 -0
- package/lib/components/time-picker/props/basic-time-spinner.cjs +1 -0
- package/lib/components/time-picker/props/panel-time-picker.cjs +1 -0
- package/lib/components/time-picker/props/panel-time-range.cjs +1 -0
- package/lib/components/time-picker/props/shared.cjs +1 -0
- package/lib/components/time-picker/style/css.cjs +1 -0
- package/lib/components/time-picker/style/index.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.cjs +1 -0
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -0
- package/lib/components/time-picker/time-picker.cjs +1 -0
- package/lib/components/time-picker/types.cjs +1 -0
- package/lib/components/time-picker/utils.cjs +1 -0
- package/lib/components/time-select/style/css.cjs +1 -0
- package/lib/components/time-select/style/index.cjs +1 -0
- package/lib/components/time-select/time-select.cjs +1 -0
- package/lib/components/time-select/time-select.vue.cjs +1 -0
- package/lib/components/time-select/time-select.vue2.cjs +1 -0
- package/lib/components/time-select/utils.cjs +1 -0
- package/lib/components/tooltip/index.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +7 -7
- package/tags.json +1 -1
- package/theme-style/base.css +1 -1
- package/theme-style/display.css +1 -0
- package/theme-style/index.css +1 -1
- package/theme-style/src/affix.scss +7 -0
- package/theme-style/src/aside.scss +8 -0
- package/theme-style/src/autocomplete.scss +83 -0
- package/theme-style/src/back-top.scss +7 -6
- package/theme-style/src/badge.scss +57 -0
- package/theme-style/src/breadcrumb-item.scss +0 -0
- package/theme-style/src/breadcrumb.scss +61 -0
- package/theme-style/src/calendar.scss +80 -0
- package/theme-style/src/card.scss +38 -0
- package/theme-style/src/carousel-item.scss +50 -0
- package/theme-style/src/carousel.scss +174 -0
- package/theme-style/src/cascader-panel.scss +138 -0
- package/theme-style/src/cascader.scss +216 -0
- package/theme-style/src/check-tag.scss +29 -0
- package/theme-style/src/col.scss +52 -0
- package/theme-style/src/collapse-item.scss +0 -0
- package/theme-style/src/collapse.scss +67 -0
- package/theme-style/src/color-picker.scss +2 -2
- package/theme-style/src/common/popup.scss +47 -0
- package/theme-style/src/common/var.scss +381 -6
- package/theme-style/src/container.scss +14 -0
- package/theme-style/src/date-picker/date-picker.scss +110 -0
- package/theme-style/src/date-picker/date-range-picker.scss +113 -0
- package/theme-style/src/date-picker/date-table.scss +162 -0
- package/theme-style/src/date-picker/month-table.scss +90 -0
- package/theme-style/src/date-picker/picker-panel.scss +131 -0
- package/theme-style/src/date-picker/picker.scss +210 -0
- package/theme-style/src/date-picker/time-picker.scss +90 -0
- package/theme-style/src/date-picker/time-range-picker.scss +33 -0
- package/theme-style/src/date-picker/time-spinner.scss +111 -0
- package/theme-style/src/date-picker/year-table.scss +60 -0
- package/theme-style/src/date-picker.scss +9 -0
- package/theme-style/src/date-time-select.scss +1 -1
- package/theme-style/src/display.scss +12 -0
- package/theme-style/src/drawer.scss +160 -0
- package/theme-style/src/footer-layout.scss +4 -9
- package/theme-style/src/footer.scss +11 -0
- package/theme-style/src/header-layout.scss +26 -15
- package/theme-style/src/header.scss +11 -0
- package/theme-style/src/horizontal-menu.scss +90 -0
- package/theme-style/src/icon.scss +6 -6
- package/theme-style/src/index.scss +123 -76
- package/theme-style/src/infinite-scroll.scss +0 -0
- package/theme-style/src/input-number.scss +175 -0
- package/theme-style/src/input.scss +2 -4
- package/theme-style/src/list-cell.scss +3 -3
- package/theme-style/src/loading.scss +1 -1
- package/theme-style/src/main.scss +10 -0
- package/theme-style/src/md/code.scss +3 -3
- package/theme-style/src/md/demo-block.scss +2 -2
- package/theme-style/src/md/pswp.scss +4 -4
- package/theme-style/src/md/scroll-bar.scss +1 -1
- package/theme-style/src/md/table.scss +3 -3
- package/theme-style/src/md/toc.scss +3 -3
- package/theme-style/src/md-container.scss +6 -8
- package/theme-style/src/menu.scss +43 -17
- package/theme-style/src/message-box.scss +258 -0
- package/theme-style/src/mixins/_col.scss +38 -0
- package/theme-style/src/mixins/mixins.scss +25 -0
- package/theme-style/src/notification.scss +105 -0
- package/theme-style/src/option.scss +36 -0
- package/theme-style/src/pagination.scss +0 -2
- package/theme-style/src/progress.scss +169 -0
- package/theme-style/src/rate.scss +101 -0
- package/theme-style/src/reset.scss +92 -0
- package/theme-style/src/row.scss +31 -0
- package/theme-style/src/search.scss +6 -5
- package/theme-style/src/select-dropdown.scss +2 -2
- package/theme-style/src/side-menu.scss +9 -3
- package/theme-style/src/slider.scss +211 -0
- package/theme-style/src/space.scss +20 -0
- package/theme-style/src/spinner.scss +43 -0
- package/theme-style/src/statistic.scss +35 -0
- package/theme-style/src/step.scss +316 -0
- package/theme-style/src/steps.scss +21 -0
- package/theme-style/src/tabs.scss +2 -2
- package/theme-style/src/time-picker.scss +5 -0
- package/theme-style/src/time-select.scss +37 -0
- package/theme-style/src/timeline-item.scss +85 -0
- package/theme-style/src/timeline.scss +46 -0
- package/theme-style/src/transfer.scss +206 -0
- package/theme-style/src/tree-select.scss +36 -0
- package/theme-style/src/tree.scss +131 -0
- package/theme-style/src/upload.scss +621 -0
- package/theme-style/vft-affix.css +1 -0
- package/theme-style/vft-aside.css +1 -0
- package/theme-style/vft-autocomplete.css +1 -0
- package/theme-style/vft-back-top.css +1 -1
- package/theme-style/vft-badge.css +1 -0
- package/theme-style/vft-breadcrumb-item.css +0 -0
- package/theme-style/vft-breadcrumb.css +1 -0
- package/theme-style/vft-calendar.css +1 -0
- package/theme-style/vft-card.css +1 -0
- package/theme-style/vft-carousel-item.css +1 -0
- package/theme-style/vft-carousel.css +1 -0
- package/theme-style/vft-cascader-panel.css +1 -0
- package/theme-style/vft-cascader.css +1 -0
- package/theme-style/vft-check-tag.css +1 -0
- package/theme-style/vft-col.css +1 -0
- package/theme-style/vft-collapse-item.css +0 -0
- package/theme-style/vft-collapse.css +1 -0
- package/theme-style/vft-color-picker.css +1 -1
- package/theme-style/vft-container.css +1 -0
- package/theme-style/vft-date-picker.css +1 -0
- package/theme-style/vft-drawer.css +1 -0
- package/theme-style/vft-footer-layout.css +1 -1
- package/theme-style/vft-footer.css +1 -0
- package/theme-style/vft-header-layout.css +1 -1
- package/theme-style/vft-header.css +1 -0
- package/theme-style/vft-horizontal-menu.css +1 -0
- package/theme-style/vft-infinite-scroll.css +0 -0
- package/theme-style/vft-input-number.css +1 -0
- package/theme-style/vft-main.css +1 -0
- package/theme-style/vft-md-container.css +1 -1
- package/theme-style/vft-menu.css +1 -1
- package/theme-style/vft-message-box.css +1 -0
- package/theme-style/vft-notification.css +1 -0
- package/theme-style/vft-option.css +1 -0
- package/theme-style/vft-pagination.css +1 -1
- package/theme-style/vft-progress.css +1 -0
- package/theme-style/vft-rate.css +1 -0
- package/theme-style/vft-reset.css +1 -0
- package/theme-style/vft-row.css +1 -0
- package/theme-style/vft-search.css +1 -1
- package/theme-style/vft-select-dropdown.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-side-menu.css +1 -1
- package/theme-style/vft-slider.css +1 -0
- package/theme-style/vft-space.css +1 -0
- package/theme-style/vft-spinner.css +1 -0
- package/theme-style/vft-statistic.css +1 -0
- package/theme-style/vft-step.css +1 -0
- package/theme-style/vft-steps.css +1 -0
- package/theme-style/vft-time-picker.css +1 -0
- package/theme-style/vft-time-select.css +1 -0
- package/theme-style/vft-timeline-item.css +1 -0
- package/theme-style/vft-timeline.css +1 -0
- package/theme-style/vft-transfer.css +1 -0
- package/theme-style/vft-tree-select.css +1 -0
- package/theme-style/vft-tree.css +1 -0
- package/theme-style/vft-upload.css +1 -0
- package/theme-style/vft-var.css +1 -1
- package/web-types.json +1 -1
- package/theme-style/src/md/list.scss +0 -21
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { defineComponent as qe, inject as Ge, toRef as de, ref as T, computed as v, resolveComponent as ce, openBlock as h, createElementBlock as b, normalizeClass as u, unref as e, createElementVNode as m, renderSlot as He, Fragment as Je, renderList as Qe, toDisplayString as K, createCommentVNode as C, createVNode as c, withDirectives as ve, withCtx as q, createBlock as We, createTextVNode as me } from "vue";
|
|
2
|
+
import M from "dayjs";
|
|
3
|
+
import { ClickOutside as fe } from "@vft/directives";
|
|
4
|
+
import { isArray as pe } from "@vft/utils";
|
|
5
|
+
import { VftButton as he } from "../../button/index.js";
|
|
6
|
+
import { VftIcon as w } from "../../icon/index.js";
|
|
7
|
+
import { VftInput as F } from "../../input/index.js";
|
|
8
|
+
import "../../time-picker/index.js";
|
|
9
|
+
import { panelDateRangeProps as Xe } from "../props/panel-date-range.js";
|
|
10
|
+
import { useRangePicker as Ze } from "../composables/use-range-picker.js";
|
|
11
|
+
import { isValidRange as be, getDefaultValue as je } from "../utils.js";
|
|
12
|
+
import ge from "./basic-date-table.vue2.js";
|
|
13
|
+
import ke from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
14
|
+
import { extractTimeFormat as ea, extractDateFormat as aa } from "../../time-picker/utils.js";
|
|
15
|
+
const la = ["onClick"], ta = ["disabled"], na = ["disabled"], oa = ["disabled"], ra = ["disabled"], E = "month", wa = /* @__PURE__ */ qe({
|
|
16
|
+
__name: "panel-date-range",
|
|
17
|
+
props: Xe,
|
|
18
|
+
emits: ["pick", "set-picker-option", "calendar-change", "panel-change"],
|
|
19
|
+
setup(ye, { emit: P }) {
|
|
20
|
+
const p = ye, A = Ge("EP_PICKER_BASE"), { disabledDate: Y, cellClassName: G, format: D, defaultTime: U, arrowControl: H, clearable: Ce } = A.props, J = de(A.props, "shortcuts"), Q = de(A.props, "defaultValue"), g = T("zh-cn"), t = T(M().locale(g.value)), n = T(M().locale(g.value).add(1, E)), {
|
|
21
|
+
minDate: o,
|
|
22
|
+
maxDate: r,
|
|
23
|
+
rangeState: x,
|
|
24
|
+
ppNs: d,
|
|
25
|
+
drpNs: f,
|
|
26
|
+
handleChangeRange: W,
|
|
27
|
+
handleRangeConfirm: X,
|
|
28
|
+
handleShortcutClick: we,
|
|
29
|
+
onSelect: Z
|
|
30
|
+
} = Ze(p, {
|
|
31
|
+
defaultValue: Q,
|
|
32
|
+
leftDate: t,
|
|
33
|
+
rightDate: n,
|
|
34
|
+
unit: E,
|
|
35
|
+
onParsedValueChanged: Ke
|
|
36
|
+
}), I = T({
|
|
37
|
+
min: null,
|
|
38
|
+
max: null
|
|
39
|
+
}), k = T({
|
|
40
|
+
min: null,
|
|
41
|
+
max: null
|
|
42
|
+
}), Pe = v(() => `${t.value.year()} 年 月${t.value.month() + 1})}`), xe = v(() => `${n.value.year()} 年 月${n.value.month() + 1})}`), j = v(() => t.value.year()), L = v(() => t.value.month()), ee = v(() => n.value.year()), ae = v(() => n.value.month()), le = v(() => !!J.value.length), Ve = v(() => I.value.min !== null ? I.value.min : o.value ? o.value.format(O.value) : ""), Te = v(() => I.value.max !== null ? I.value.max : r.value || o.value ? (r.value || o.value).format(O.value) : ""), Me = v(() => k.value.min !== null ? k.value.min : o.value ? o.value.format(B.value) : ""), De = v(() => k.value.max !== null ? k.value.max : r.value || o.value ? (r.value || o.value).format(B.value) : ""), B = v(() => ea(D)), O = v(() => aa(D)), Ie = () => {
|
|
43
|
+
t.value = t.value.subtract(1, "year"), p.unlinkPanels || (n.value = t.value.add(1, "month")), y("year");
|
|
44
|
+
}, Se = () => {
|
|
45
|
+
t.value = t.value.subtract(1, "month"), p.unlinkPanels || (n.value = t.value.add(1, "month")), y("month");
|
|
46
|
+
}, $e = () => {
|
|
47
|
+
p.unlinkPanels ? n.value = n.value.add(1, "year") : (t.value = t.value.add(1, "year"), n.value = t.value.add(1, "month")), y("year");
|
|
48
|
+
}, Ne = () => {
|
|
49
|
+
p.unlinkPanels ? n.value = n.value.add(1, "month") : (t.value = t.value.add(1, "month"), n.value = t.value.add(1, "month")), y("month");
|
|
50
|
+
}, Be = () => {
|
|
51
|
+
t.value = t.value.add(1, "year"), y("year");
|
|
52
|
+
}, Ye = () => {
|
|
53
|
+
t.value = t.value.add(1, "month"), y("month");
|
|
54
|
+
}, ze = () => {
|
|
55
|
+
n.value = n.value.subtract(1, "year"), y("year");
|
|
56
|
+
}, Re = () => {
|
|
57
|
+
n.value = n.value.subtract(1, "month"), y("month");
|
|
58
|
+
}, y = (l) => {
|
|
59
|
+
P("panel-change", [t.value.toDate(), n.value.toDate()], l);
|
|
60
|
+
}, z = v(() => {
|
|
61
|
+
const l = (L.value + 1) % 12, a = L.value + 1 >= 12 ? 1 : 0;
|
|
62
|
+
return p.unlinkPanels && new Date(j.value + a, l) < new Date(ee.value, ae.value);
|
|
63
|
+
}), R = v(() => p.unlinkPanels && ee.value * 12 + ae.value - (j.value * 12 + L.value + 1) >= 12), _e = v(() => !(o.value && r.value && !x.value.selecting && be([o.value, r.value]))), _ = v(() => p.type === "datetime" || p.type === "datetimerange"), te = (l, a) => {
|
|
64
|
+
if (l)
|
|
65
|
+
return U ? M(U[a] || U).locale(g.value).year(l.year()).month(l.month()).date(l.date()) : l;
|
|
66
|
+
}, ne = (l, a = !0) => {
|
|
67
|
+
const s = l.minDate, V = l.maxDate, i = te(s, 0), N = te(V, 1);
|
|
68
|
+
r.value === N && o.value === i || (P("calendar-change", [s.toDate(), V && V.toDate()]), r.value = N, o.value = i, !(!a || _.value) && X());
|
|
69
|
+
}, S = T(!1), $ = T(!1), Fe = () => {
|
|
70
|
+
S.value = !1;
|
|
71
|
+
}, Ee = () => {
|
|
72
|
+
$.value = !1;
|
|
73
|
+
}, oe = (l, a) => {
|
|
74
|
+
I.value[a] = l;
|
|
75
|
+
const s = M(l, O.value).locale(g.value);
|
|
76
|
+
if (s.isValid()) {
|
|
77
|
+
if (Y && Y(s.toDate()))
|
|
78
|
+
return;
|
|
79
|
+
a === "min" ? (t.value = s, o.value = (o.value || t.value).year(s.year()).month(s.month()).date(s.date()), p.unlinkPanels || (n.value = s.add(1, "month"), r.value = o.value.add(1, "month"))) : (n.value = s, r.value = (r.value || n.value).year(s.year()).month(s.month()).date(s.date()), p.unlinkPanels || (t.value = s.subtract(1, "month"), o.value = r.value.subtract(1, "month")));
|
|
80
|
+
}
|
|
81
|
+
}, re = (l, a) => {
|
|
82
|
+
I.value[a] = null;
|
|
83
|
+
}, se = (l, a) => {
|
|
84
|
+
k.value[a] = l;
|
|
85
|
+
const s = M(l, B.value).locale(g.value);
|
|
86
|
+
s.isValid() && (a === "min" ? (S.value = !0, o.value = (o.value || t.value).hour(s.hour()).minute(s.minute()).second(s.second()), (!r.value || r.value.isBefore(o.value)) && (r.value = o.value)) : ($.value = !0, r.value = (r.value || n.value).hour(s.hour()).minute(s.minute()).second(s.second()), n.value = r.value, r.value && r.value.isBefore(o.value) && (o.value = r.value)));
|
|
87
|
+
}, ue = (l, a) => {
|
|
88
|
+
k.value[a] = null, a === "min" ? (t.value = o.value, S.value = !1) : (n.value = r.value, $.value = !1);
|
|
89
|
+
}, Ae = (l, a, s) => {
|
|
90
|
+
k.value.min || (l && (t.value = l, o.value = (o.value || t.value).hour(l.hour()).minute(l.minute()).second(l.second())), s || (S.value = a), (!r.value || r.value.isBefore(o.value)) && (r.value = o.value, n.value = l));
|
|
91
|
+
}, Ue = (l, a, s) => {
|
|
92
|
+
k.value.max || (l && (n.value = l, r.value = (r.value || n.value).hour(l.hour()).minute(l.minute()).second(l.second())), s || ($.value = a), r.value && r.value.isBefore(o.value) && (o.value = r.value));
|
|
93
|
+
}, ie = () => {
|
|
94
|
+
t.value = je(e(Q), {
|
|
95
|
+
lang: e(g),
|
|
96
|
+
unit: "month",
|
|
97
|
+
unlinkPanels: p.unlinkPanels
|
|
98
|
+
})[0], n.value = t.value.add(1, "month"), P("pick", null);
|
|
99
|
+
}, Le = (l) => pe(l) ? l.map((a) => a.format(D)) : l.format(D), Oe = (l) => pe(l) ? l.map((a) => M(a, D).locale(g.value)) : M(l, D).locale(g.value);
|
|
100
|
+
function Ke(l, a) {
|
|
101
|
+
if (p.unlinkPanels && a) {
|
|
102
|
+
const s = (l == null ? void 0 : l.year()) || 0, V = (l == null ? void 0 : l.month()) || 0, i = a.year(), N = a.month();
|
|
103
|
+
n.value = s === i && V === N ? a.add(1, E) : a;
|
|
104
|
+
} else
|
|
105
|
+
n.value = t.value.add(1, E), a && (n.value = n.value.hour(a.hour()).minute(a.minute()).second(a.second()));
|
|
106
|
+
}
|
|
107
|
+
return P("set-picker-option", ["isValidValue", be]), P("set-picker-option", ["parseUserInput", Oe]), P("set-picker-option", ["formatToString", Le]), P("set-picker-option", ["handleClear", ie]), (l, a) => {
|
|
108
|
+
const s = ce("arrow-right"), V = ce("el-icon");
|
|
109
|
+
return h(), b("div", {
|
|
110
|
+
class: u([
|
|
111
|
+
e(d).b(),
|
|
112
|
+
e(f).b(),
|
|
113
|
+
{
|
|
114
|
+
"has-sidebar": l.$slots.sidebar || e(le),
|
|
115
|
+
"has-time": e(_)
|
|
116
|
+
}
|
|
117
|
+
])
|
|
118
|
+
}, [
|
|
119
|
+
m("div", {
|
|
120
|
+
class: u(e(d).e("body-wrapper"))
|
|
121
|
+
}, [
|
|
122
|
+
He(l.$slots, "sidebar", {
|
|
123
|
+
class: u(e(d).e("sidebar"))
|
|
124
|
+
}),
|
|
125
|
+
e(le) ? (h(), b("div", {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: u(e(d).e("sidebar"))
|
|
128
|
+
}, [
|
|
129
|
+
(h(!0), b(Je, null, Qe(e(J), (i, N) => (h(), b("button", {
|
|
130
|
+
key: N,
|
|
131
|
+
type: "button",
|
|
132
|
+
class: u(e(d).e("shortcut")),
|
|
133
|
+
onClick: (sa) => e(we)(i)
|
|
134
|
+
}, K(i.text), 11, la))), 128))
|
|
135
|
+
], 2)) : C("", !0),
|
|
136
|
+
m("div", {
|
|
137
|
+
class: u(e(d).e("body"))
|
|
138
|
+
}, [
|
|
139
|
+
e(_) ? (h(), b("div", {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: u(e(f).e("time-header"))
|
|
142
|
+
}, [
|
|
143
|
+
m("span", {
|
|
144
|
+
class: u(e(f).e("editors-wrap"))
|
|
145
|
+
}, [
|
|
146
|
+
m("span", {
|
|
147
|
+
class: u(e(f).e("time-picker-wrap"))
|
|
148
|
+
}, [
|
|
149
|
+
c(e(F), {
|
|
150
|
+
size: "small",
|
|
151
|
+
disabled: e(x).selecting,
|
|
152
|
+
placeholder: "开始日期",
|
|
153
|
+
class: u(e(f).e("editor")),
|
|
154
|
+
"model-value": e(Ve),
|
|
155
|
+
"validate-event": !1,
|
|
156
|
+
onInput: a[0] || (a[0] = (i) => oe(i, "min")),
|
|
157
|
+
onChange: a[1] || (a[1] = (i) => re(i, "min"))
|
|
158
|
+
}, null, 8, ["disabled", "class", "model-value"])
|
|
159
|
+
], 2),
|
|
160
|
+
ve((h(), b("span", {
|
|
161
|
+
class: u(e(f).e("time-picker-wrap"))
|
|
162
|
+
}, [
|
|
163
|
+
c(e(F), {
|
|
164
|
+
size: "small",
|
|
165
|
+
class: u(e(f).e("editor")),
|
|
166
|
+
disabled: e(x).selecting,
|
|
167
|
+
placeholder: "开始时间",
|
|
168
|
+
"model-value": e(Me),
|
|
169
|
+
"validate-event": !1,
|
|
170
|
+
onFocus: a[2] || (a[2] = (i) => S.value = !0),
|
|
171
|
+
onInput: a[3] || (a[3] = (i) => se(i, "min")),
|
|
172
|
+
onChange: a[4] || (a[4] = (i) => ue(i, "min"))
|
|
173
|
+
}, null, 8, ["class", "disabled", "model-value"]),
|
|
174
|
+
c(e(ke), {
|
|
175
|
+
visible: S.value,
|
|
176
|
+
format: e(B),
|
|
177
|
+
"datetime-role": "start",
|
|
178
|
+
"time-arrow-control": e(H),
|
|
179
|
+
"parsed-value": t.value,
|
|
180
|
+
onPick: Ae
|
|
181
|
+
}, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
|
|
182
|
+
], 2)), [
|
|
183
|
+
[e(fe), Fe]
|
|
184
|
+
])
|
|
185
|
+
], 2),
|
|
186
|
+
m("span", null, [
|
|
187
|
+
c(V, null, {
|
|
188
|
+
default: q(() => [
|
|
189
|
+
c(s)
|
|
190
|
+
]),
|
|
191
|
+
_: 1
|
|
192
|
+
})
|
|
193
|
+
]),
|
|
194
|
+
m("span", {
|
|
195
|
+
class: u([e(f).e("editors-wrap"), "is-right"])
|
|
196
|
+
}, [
|
|
197
|
+
m("span", {
|
|
198
|
+
class: u(e(f).e("time-picker-wrap"))
|
|
199
|
+
}, [
|
|
200
|
+
c(e(F), {
|
|
201
|
+
size: "small",
|
|
202
|
+
class: u(e(f).e("editor")),
|
|
203
|
+
disabled: e(x).selecting,
|
|
204
|
+
placeholder: "结束日期",
|
|
205
|
+
"model-value": e(Te),
|
|
206
|
+
readonly: !e(o),
|
|
207
|
+
"validate-event": !1,
|
|
208
|
+
onInput: a[5] || (a[5] = (i) => oe(i, "max")),
|
|
209
|
+
onChange: a[6] || (a[6] = (i) => re(i, "max"))
|
|
210
|
+
}, null, 8, ["class", "disabled", "model-value", "readonly"])
|
|
211
|
+
], 2),
|
|
212
|
+
ve((h(), b("span", {
|
|
213
|
+
class: u(e(f).e("time-picker-wrap"))
|
|
214
|
+
}, [
|
|
215
|
+
c(e(F), {
|
|
216
|
+
size: "small",
|
|
217
|
+
class: u(e(f).e("editor")),
|
|
218
|
+
disabled: e(x).selecting,
|
|
219
|
+
placeholder: "结束时间",
|
|
220
|
+
"model-value": e(De),
|
|
221
|
+
readonly: !e(o),
|
|
222
|
+
"validate-event": !1,
|
|
223
|
+
onFocus: a[7] || (a[7] = (i) => e(o) && ($.value = !0)),
|
|
224
|
+
onInput: a[8] || (a[8] = (i) => se(i, "max")),
|
|
225
|
+
onChange: a[9] || (a[9] = (i) => ue(i, "max"))
|
|
226
|
+
}, null, 8, ["class", "disabled", "model-value", "readonly"]),
|
|
227
|
+
c(e(ke), {
|
|
228
|
+
"datetime-role": "end",
|
|
229
|
+
visible: $.value,
|
|
230
|
+
format: e(B),
|
|
231
|
+
"time-arrow-control": e(H),
|
|
232
|
+
"parsed-value": n.value,
|
|
233
|
+
onPick: Ue
|
|
234
|
+
}, null, 8, ["visible", "format", "time-arrow-control", "parsed-value"])
|
|
235
|
+
], 2)), [
|
|
236
|
+
[e(fe), Ee]
|
|
237
|
+
])
|
|
238
|
+
], 2)
|
|
239
|
+
], 2)) : C("", !0),
|
|
240
|
+
m("div", {
|
|
241
|
+
class: u([[e(d).e("content"), e(f).e("content")], "is-left"])
|
|
242
|
+
}, [
|
|
243
|
+
m("div", {
|
|
244
|
+
class: u(e(f).e("header"))
|
|
245
|
+
}, [
|
|
246
|
+
m("button", {
|
|
247
|
+
type: "button",
|
|
248
|
+
class: u([e(d).e("icon-btn"), "d-arrow-left"]),
|
|
249
|
+
onClick: Ie
|
|
250
|
+
}, [
|
|
251
|
+
c(e(w), { icon: "ico-ep:d-arrow-left" })
|
|
252
|
+
], 2),
|
|
253
|
+
m("button", {
|
|
254
|
+
type: "button",
|
|
255
|
+
class: u([e(d).e("icon-btn"), "arrow-left"]),
|
|
256
|
+
onClick: Se
|
|
257
|
+
}, [
|
|
258
|
+
c(e(w), { icon: "ico-ep:arrow-left" })
|
|
259
|
+
], 2),
|
|
260
|
+
l.unlinkPanels ? (h(), b("button", {
|
|
261
|
+
key: 0,
|
|
262
|
+
type: "button",
|
|
263
|
+
disabled: !e(R),
|
|
264
|
+
class: u([[e(d).e("icon-btn"), { "is-disabled": !e(R) }], "d-arrow-right"]),
|
|
265
|
+
onClick: Be
|
|
266
|
+
}, [
|
|
267
|
+
c(e(w), { icon: "ico-ep:d-arrow-right" })
|
|
268
|
+
], 10, ta)) : C("", !0),
|
|
269
|
+
l.unlinkPanels ? (h(), b("button", {
|
|
270
|
+
key: 1,
|
|
271
|
+
type: "button",
|
|
272
|
+
disabled: !e(z),
|
|
273
|
+
class: u([[e(d).e("icon-btn"), { "is-disabled": !e(z) }], "arrow-right"]),
|
|
274
|
+
onClick: Ye
|
|
275
|
+
}, [
|
|
276
|
+
c(e(w), { icon: "ico-ep:arrow-right" })
|
|
277
|
+
], 10, na)) : C("", !0),
|
|
278
|
+
m("div", null, K(e(Pe)), 1)
|
|
279
|
+
], 2),
|
|
280
|
+
c(ge, {
|
|
281
|
+
"selection-mode": "range",
|
|
282
|
+
date: t.value,
|
|
283
|
+
"min-date": e(o),
|
|
284
|
+
"max-date": e(r),
|
|
285
|
+
"range-state": e(x),
|
|
286
|
+
"disabled-date": e(Y),
|
|
287
|
+
"cell-class-name": e(G),
|
|
288
|
+
onChangerange: e(W),
|
|
289
|
+
onPick: ne,
|
|
290
|
+
onSelect: e(Z)
|
|
291
|
+
}, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
|
|
292
|
+
], 2),
|
|
293
|
+
m("div", {
|
|
294
|
+
class: u([[e(d).e("content"), e(f).e("content")], "is-right"])
|
|
295
|
+
}, [
|
|
296
|
+
m("div", {
|
|
297
|
+
class: u(e(f).e("header"))
|
|
298
|
+
}, [
|
|
299
|
+
l.unlinkPanels ? (h(), b("button", {
|
|
300
|
+
key: 0,
|
|
301
|
+
type: "button",
|
|
302
|
+
disabled: !e(R),
|
|
303
|
+
class: u([[e(d).e("icon-btn"), { "is-disabled": !e(R) }], "d-arrow-left"]),
|
|
304
|
+
onClick: ze
|
|
305
|
+
}, [
|
|
306
|
+
c(e(w), { icon: "ico-ep:d-arrow-left" })
|
|
307
|
+
], 10, oa)) : C("", !0),
|
|
308
|
+
l.unlinkPanels ? (h(), b("button", {
|
|
309
|
+
key: 1,
|
|
310
|
+
type: "button",
|
|
311
|
+
disabled: !e(z),
|
|
312
|
+
class: u([[e(d).e("icon-btn"), { "is-disabled": !e(z) }], "arrow-left"]),
|
|
313
|
+
onClick: Re
|
|
314
|
+
}, [
|
|
315
|
+
c(e(w), { icon: "ico-ep:arrow-left" })
|
|
316
|
+
], 10, ra)) : C("", !0),
|
|
317
|
+
m("button", {
|
|
318
|
+
type: "button",
|
|
319
|
+
class: u([e(d).e("icon-btn"), "d-arrow-right"]),
|
|
320
|
+
onClick: $e
|
|
321
|
+
}, [
|
|
322
|
+
c(e(w), { icon: "ico-ep:arrow-right" })
|
|
323
|
+
], 2),
|
|
324
|
+
m("button", {
|
|
325
|
+
type: "button",
|
|
326
|
+
class: u([e(d).e("icon-btn"), "arrow-right"]),
|
|
327
|
+
onClick: Ne
|
|
328
|
+
}, [
|
|
329
|
+
c(e(w), { icon: "ico-ep:arrow-right" })
|
|
330
|
+
], 2),
|
|
331
|
+
m("div", null, K(e(xe)), 1)
|
|
332
|
+
], 2),
|
|
333
|
+
c(ge, {
|
|
334
|
+
"selection-mode": "range",
|
|
335
|
+
date: n.value,
|
|
336
|
+
"min-date": e(o),
|
|
337
|
+
"max-date": e(r),
|
|
338
|
+
"range-state": e(x),
|
|
339
|
+
"disabled-date": e(Y),
|
|
340
|
+
"cell-class-name": e(G),
|
|
341
|
+
onChangerange: e(W),
|
|
342
|
+
onPick: ne,
|
|
343
|
+
onSelect: e(Z)
|
|
344
|
+
}, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "cell-class-name", "onChangerange", "onSelect"])
|
|
345
|
+
], 2)
|
|
346
|
+
], 2)
|
|
347
|
+
], 2),
|
|
348
|
+
e(_) ? (h(), b("div", {
|
|
349
|
+
key: 0,
|
|
350
|
+
class: u(e(d).e("footer"))
|
|
351
|
+
}, [
|
|
352
|
+
e(Ce) ? (h(), We(e(he), {
|
|
353
|
+
key: 0,
|
|
354
|
+
text: "",
|
|
355
|
+
size: "small",
|
|
356
|
+
class: u(e(d).e("link-btn")),
|
|
357
|
+
onClick: ie
|
|
358
|
+
}, {
|
|
359
|
+
default: q(() => [
|
|
360
|
+
me("清除")
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
}, 8, ["class"])) : C("", !0),
|
|
364
|
+
c(e(he), {
|
|
365
|
+
plain: "",
|
|
366
|
+
size: "small",
|
|
367
|
+
class: u(e(d).e("link-btn")),
|
|
368
|
+
disabled: e(_e),
|
|
369
|
+
onClick: a[10] || (a[10] = (i) => e(X)(!1))
|
|
370
|
+
}, {
|
|
371
|
+
default: q(() => [
|
|
372
|
+
me("确认")
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
}, 8, ["class", "disabled"])
|
|
376
|
+
], 2)) : C("", !0)
|
|
377
|
+
], 2);
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
export {
|
|
382
|
+
wa as default
|
|
383
|
+
};
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { defineComponent as I, ref as C, inject as Z, toRef as L, computed as j, openBlock as i, createElementBlock as d, normalizeClass as a, unref as e, createElementVNode as s, renderSlot as ee, Fragment as te, renderList as ne, toDisplayString as P, createCommentVNode as y, createVNode as c } from "vue";
|
|
2
|
+
import z from "dayjs";
|
|
3
|
+
import { VftIcon as k } from "../../icon/index.js";
|
|
4
|
+
import { panelMonthRangeProps as ae, panelMonthRangeEmits as oe } from "../props/panel-month-range.js";
|
|
5
|
+
import { useMonthRangeHeader as re } from "../composables/use-month-range-header.js";
|
|
6
|
+
import { useRangePicker as se } from "../composables/use-range-picker.js";
|
|
7
|
+
import A from "./basic-month-table.vue2.js";
|
|
8
|
+
const le = ["onClick"], ie = ["disabled"], de = ["disabled"], v = "year", ce = I({
|
|
9
|
+
name: "DatePickerMonthRange"
|
|
10
|
+
}), ve = /* @__PURE__ */ I({
|
|
11
|
+
...ce,
|
|
12
|
+
props: ae,
|
|
13
|
+
emits: oe,
|
|
14
|
+
setup(T, { emit: F }) {
|
|
15
|
+
const p = T, S = C("zh-cn"), w = Z("EP_PICKER_BASE"), { shortcuts: R, disabledDate: Y, format: H } = w.props, K = L(w.props, "defaultValue"), g = C(z().locale(S.value)), u = C(z().locale(S.value).add(1, v)), {
|
|
16
|
+
minDate: b,
|
|
17
|
+
maxDate: f,
|
|
18
|
+
rangeState: _,
|
|
19
|
+
ppNs: o,
|
|
20
|
+
drpNs: m,
|
|
21
|
+
handleChangeRange: N,
|
|
22
|
+
handleRangeConfirm: q,
|
|
23
|
+
handleShortcutClick: G,
|
|
24
|
+
onSelect: V
|
|
25
|
+
} = se(p, {
|
|
26
|
+
defaultValue: K,
|
|
27
|
+
leftDate: g,
|
|
28
|
+
rightDate: u,
|
|
29
|
+
unit: v,
|
|
30
|
+
onParsedValueChanged: X
|
|
31
|
+
}), x = j(() => !!R.length), {
|
|
32
|
+
leftPrevYear: D,
|
|
33
|
+
rightNextYear: E,
|
|
34
|
+
leftNextYear: B,
|
|
35
|
+
rightPrevYear: M,
|
|
36
|
+
leftLabel: J,
|
|
37
|
+
rightLabel: O,
|
|
38
|
+
leftYear: Q,
|
|
39
|
+
rightYear: U
|
|
40
|
+
} = re({
|
|
41
|
+
unlinkPanels: L(p, "unlinkPanels"),
|
|
42
|
+
leftDate: g,
|
|
43
|
+
rightDate: u
|
|
44
|
+
}), h = j(() => p.unlinkPanels && U.value > Q.value + 1), $ = (r, t = !0) => {
|
|
45
|
+
const n = r.minDate, l = r.maxDate;
|
|
46
|
+
f.value === l && b.value === n || (f.value = l, b.value = n, t && q());
|
|
47
|
+
}, W = (r) => r.map((t) => t.format(H));
|
|
48
|
+
function X(r, t) {
|
|
49
|
+
if (p.unlinkPanels && t) {
|
|
50
|
+
const n = (r == null ? void 0 : r.year()) || 0, l = t.year();
|
|
51
|
+
u.value = n === l ? t.add(1, v) : t;
|
|
52
|
+
} else
|
|
53
|
+
u.value = g.value.add(1, v);
|
|
54
|
+
}
|
|
55
|
+
return F("set-picker-option", ["formatToString", W]), (r, t) => (i(), d("div", {
|
|
56
|
+
class: a([
|
|
57
|
+
e(o).b(),
|
|
58
|
+
e(m).b(),
|
|
59
|
+
{
|
|
60
|
+
"has-sidebar": !!r.$slots.sidebar || e(x)
|
|
61
|
+
}
|
|
62
|
+
])
|
|
63
|
+
}, [
|
|
64
|
+
s("div", {
|
|
65
|
+
class: a(e(o).e("body-wrapper"))
|
|
66
|
+
}, [
|
|
67
|
+
ee(r.$slots, "sidebar", {
|
|
68
|
+
class: a(e(o).e("sidebar"))
|
|
69
|
+
}),
|
|
70
|
+
e(x) ? (i(), d("div", {
|
|
71
|
+
key: 0,
|
|
72
|
+
class: a(e(o).e("sidebar"))
|
|
73
|
+
}, [
|
|
74
|
+
(i(!0), d(te, null, ne(e(R), (n, l) => (i(), d("button", {
|
|
75
|
+
key: l,
|
|
76
|
+
type: "button",
|
|
77
|
+
class: a(e(o).e("shortcut")),
|
|
78
|
+
onClick: (ue) => e(G)(n)
|
|
79
|
+
}, P(n.text), 11, le))), 128))
|
|
80
|
+
], 2)) : y("", !0),
|
|
81
|
+
s("div", {
|
|
82
|
+
class: a(e(o).e("body"))
|
|
83
|
+
}, [
|
|
84
|
+
s("div", {
|
|
85
|
+
class: a([[e(o).e("content"), e(m).e("content")], "is-left"])
|
|
86
|
+
}, [
|
|
87
|
+
s("div", {
|
|
88
|
+
class: a(e(m).e("header"))
|
|
89
|
+
}, [
|
|
90
|
+
s("button", {
|
|
91
|
+
type: "button",
|
|
92
|
+
class: a([e(o).e("icon-btn"), "d-arrow-left"]),
|
|
93
|
+
onClick: t[0] || (t[0] = //@ts-ignore
|
|
94
|
+
(...n) => e(D) && e(D)(...n))
|
|
95
|
+
}, [
|
|
96
|
+
c(e(k), { icon: "ico-ep:d-arrow-left" })
|
|
97
|
+
], 2),
|
|
98
|
+
r.unlinkPanels ? (i(), d("button", {
|
|
99
|
+
key: 0,
|
|
100
|
+
type: "button",
|
|
101
|
+
disabled: !e(h),
|
|
102
|
+
class: a([[
|
|
103
|
+
e(o).e("icon-btn"),
|
|
104
|
+
{ [e(o).is("disabled")]: !e(h) }
|
|
105
|
+
], "d-arrow-right"]),
|
|
106
|
+
onClick: t[1] || (t[1] = //@ts-ignore
|
|
107
|
+
(...n) => e(B) && e(B)(...n))
|
|
108
|
+
}, [
|
|
109
|
+
c(e(k), { icon: "ico-ep:d-arrow-right" })
|
|
110
|
+
], 10, ie)) : y("", !0),
|
|
111
|
+
s("div", null, P(e(J)), 1)
|
|
112
|
+
], 2),
|
|
113
|
+
c(A, {
|
|
114
|
+
"selection-mode": "range",
|
|
115
|
+
date: g.value,
|
|
116
|
+
"min-date": e(b),
|
|
117
|
+
"max-date": e(f),
|
|
118
|
+
"range-state": e(_),
|
|
119
|
+
"disabled-date": e(Y),
|
|
120
|
+
onChangerange: e(N),
|
|
121
|
+
onPick: $,
|
|
122
|
+
onSelect: e(V)
|
|
123
|
+
}, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "onChangerange", "onSelect"])
|
|
124
|
+
], 2),
|
|
125
|
+
s("div", {
|
|
126
|
+
class: a([[e(o).e("content"), e(m).e("content")], "is-right"])
|
|
127
|
+
}, [
|
|
128
|
+
s("div", {
|
|
129
|
+
class: a(e(m).e("header"))
|
|
130
|
+
}, [
|
|
131
|
+
r.unlinkPanels ? (i(), d("button", {
|
|
132
|
+
key: 0,
|
|
133
|
+
type: "button",
|
|
134
|
+
disabled: !e(h),
|
|
135
|
+
class: a([[e(o).e("icon-btn"), { "is-disabled": !e(h) }], "d-arrow-left"]),
|
|
136
|
+
onClick: t[2] || (t[2] = //@ts-ignore
|
|
137
|
+
(...n) => e(M) && e(M)(...n))
|
|
138
|
+
}, [
|
|
139
|
+
c(e(k), { icon: "ico-ep:d-arrow-left" })
|
|
140
|
+
], 10, de)) : y("", !0),
|
|
141
|
+
s("button", {
|
|
142
|
+
type: "button",
|
|
143
|
+
class: a([e(o).e("icon-btn"), "d-arrow-right"]),
|
|
144
|
+
onClick: t[3] || (t[3] = //@ts-ignore
|
|
145
|
+
(...n) => e(E) && e(E)(...n))
|
|
146
|
+
}, [
|
|
147
|
+
c(e(k), { icon: "ico-ep:d-arrow-right" })
|
|
148
|
+
], 2),
|
|
149
|
+
s("div", null, P(e(O)), 1)
|
|
150
|
+
], 2),
|
|
151
|
+
c(A, {
|
|
152
|
+
"selection-mode": "range",
|
|
153
|
+
date: u.value,
|
|
154
|
+
"min-date": e(b),
|
|
155
|
+
"max-date": e(f),
|
|
156
|
+
"range-state": e(_),
|
|
157
|
+
"disabled-date": e(Y),
|
|
158
|
+
onChangerange: e(N),
|
|
159
|
+
onPick: $,
|
|
160
|
+
onSelect: e(V)
|
|
161
|
+
}, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "onChangerange", "onSelect"])
|
|
162
|
+
], 2)
|
|
163
|
+
], 2)
|
|
164
|
+
], 2)
|
|
165
|
+
], 2));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export {
|
|
169
|
+
ve as default
|
|
170
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineComponent as c, provide as p, reactive as u, toRef as O, ref as P, createVNode as n, mergeProps as E } from "vue";
|
|
2
|
+
import r from "dayjs";
|
|
3
|
+
import x from "dayjs/plugin/customParseFormat.js";
|
|
4
|
+
import _ from "dayjs/plugin/advancedFormat.js";
|
|
5
|
+
import k from "dayjs/plugin/localeData.js";
|
|
6
|
+
import T from "dayjs/plugin/weekOfYear.js";
|
|
7
|
+
import A from "dayjs/plugin/weekYear.js";
|
|
8
|
+
import C from "dayjs/plugin/dayOfYear.js";
|
|
9
|
+
import D from "dayjs/plugin/isSameOrAfter.js";
|
|
10
|
+
import v from "dayjs/plugin/isSameOrBefore.js";
|
|
11
|
+
import { useNamespace as y } from "../../hooks/use-namespace/index.js";
|
|
12
|
+
import "@popperjs/core";
|
|
13
|
+
import "lodash";
|
|
14
|
+
import "../../hooks/use-z-index/index.js";
|
|
15
|
+
import "@vueuse/core";
|
|
16
|
+
import "@vft/utils";
|
|
17
|
+
import "../../utils/ns-cover.js";
|
|
18
|
+
import "../time-picker/index.js";
|
|
19
|
+
import { ROOT_PICKER_INJECTION_KEY as F } from "./constants.js";
|
|
20
|
+
import { datePickerProps as R } from "./props/date-picker.js";
|
|
21
|
+
import { getPanel as N } from "./panel-utils.js";
|
|
22
|
+
import { DEFAULT_FORMATS_DATEPICKER as V, DEFAULT_FORMATS_DATE as g } from "../time-picker/constants.js";
|
|
23
|
+
import h from "../time-picker/common/picker.vue2.js";
|
|
24
|
+
r.extend(k);
|
|
25
|
+
r.extend(_);
|
|
26
|
+
r.extend(x);
|
|
27
|
+
r.extend(T);
|
|
28
|
+
r.extend(A);
|
|
29
|
+
r.extend(C);
|
|
30
|
+
r.extend(D);
|
|
31
|
+
r.extend(v);
|
|
32
|
+
const te = /* @__PURE__ */ c({
|
|
33
|
+
name: "ElDatePicker",
|
|
34
|
+
install: null,
|
|
35
|
+
props: R,
|
|
36
|
+
emits: ["update:modelValue"],
|
|
37
|
+
setup(o, {
|
|
38
|
+
expose: i,
|
|
39
|
+
emit: f,
|
|
40
|
+
slots: a
|
|
41
|
+
}) {
|
|
42
|
+
const d = y("picker-panel");
|
|
43
|
+
p("ElPopperOptions", u(O(o, "popperOptions"))), p(F, {
|
|
44
|
+
slots: a,
|
|
45
|
+
pickerNs: d
|
|
46
|
+
});
|
|
47
|
+
const t = P();
|
|
48
|
+
i({
|
|
49
|
+
focus: (e = !0) => {
|
|
50
|
+
var m;
|
|
51
|
+
(m = t.value) == null || m.focus(e);
|
|
52
|
+
},
|
|
53
|
+
handleOpen: () => {
|
|
54
|
+
var e;
|
|
55
|
+
(e = t.value) == null || e.handleOpen();
|
|
56
|
+
},
|
|
57
|
+
handleClose: () => {
|
|
58
|
+
var e;
|
|
59
|
+
(e = t.value) == null || e.handleClose();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const l = (e) => {
|
|
63
|
+
f("update:modelValue", e);
|
|
64
|
+
};
|
|
65
|
+
return () => {
|
|
66
|
+
const e = o.format ?? (V[o.type] || g), m = N(o.type);
|
|
67
|
+
return n(h, E(o, {
|
|
68
|
+
format: e,
|
|
69
|
+
type: o.type,
|
|
70
|
+
ref: t,
|
|
71
|
+
"onUpdate:modelValue": l
|
|
72
|
+
}), {
|
|
73
|
+
default: (s) => n(m, s, null),
|
|
74
|
+
"range-separator": a["range-separator"]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
te as default
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import o from "./date-picker.js";
|
|
2
|
+
import { ROOT_PICKER_INJECTION_KEY as m } from "./constants.js";
|
|
3
|
+
import { datePickerProps as p } from "./props/date-picker.js";
|
|
4
|
+
const e = o;
|
|
5
|
+
e.install = (t) => {
|
|
6
|
+
t.component(e.name, e);
|
|
7
|
+
};
|
|
8
|
+
const a = e;
|
|
9
|
+
export {
|
|
10
|
+
m as ROOT_PICKER_INJECTION_KEY,
|
|
11
|
+
a as VftDatePicker,
|
|
12
|
+
p as datePickerProps,
|
|
13
|
+
e as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import r from "./date-picker-com/panel-date-pick.vue2.js";
|
|
2
|
+
import t from "./date-picker-com/panel-date-range.vue2.js";
|
|
3
|
+
import n from "./date-picker-com/panel-month-range.vue2.js";
|
|
4
|
+
const c = function(e) {
|
|
5
|
+
switch (e) {
|
|
6
|
+
case "daterange":
|
|
7
|
+
case "datetimerange":
|
|
8
|
+
return t;
|
|
9
|
+
case "monthrange":
|
|
10
|
+
return n;
|
|
11
|
+
default:
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
c as getPanel
|
|
17
|
+
};
|