vft 0.0.249 → 0.0.252
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/index.css +1 -1
- package/es/components/alert/alert.vue.d.ts +1 -11
- package/es/components/alert/alert.vue2.js +13 -65
- package/es/components/alert/index.d.ts +28 -76
- package/es/components/autocomplete/autocomplete.vue.d.ts +14 -14
- package/es/components/autocomplete/autocomplete.vue2.js +194 -199
- package/es/components/autocomplete/index.d.ts +42 -42
- package/es/components/backtop/backtop.vue.d.ts +1 -15
- package/es/components/backtop/backtop.vue2.js +17 -106
- package/es/components/backtop/index.d.ts +3 -9
- package/es/components/backtop/types.d.ts +14 -0
- package/es/components/backtop/types.js +1 -0
- package/es/components/button/button-custom.d.ts +1 -1
- package/es/components/button/button.vue.d.ts +3 -50
- package/es/components/button/button.vue2.js +1 -1
- package/es/components/button/index.d.ts +39 -40
- package/es/components/button/types.d.ts +47 -1
- package/es/components/button/use-button.d.ts +5 -5
- package/es/components/card/index.d.ts +3 -3
- package/es/components/carousel/carousel.vue.d.ts +1 -1
- package/es/components/carousel/index.d.ts +18 -18
- package/es/components/carousel/use-carousel.js +2 -3
- package/es/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +42 -42
- package/es/components/color-picker/components/hue-slider.vue.d.ts +3 -3
- package/es/components/color-picker/components/predefine.vue.d.ts +3 -3
- package/es/components/color-picker/components/sv-panel.vue.d.ts +3 -3
- package/es/components/config-provider/hooks/use-global-config.d.ts +3 -3
- package/es/components/context-menu/context-menu.vue2.js +36 -124
- package/es/components/context-menu/index.js +5 -101
- package/es/components/context-menu/types.d.ts +1 -1
- package/es/components/context-menu/types.js +1 -98
- package/es/components/date-picker/composables/use-basic-date-table.d.ts +188 -0
- package/es/components/date-picker/composables/use-basic-date-table.js +183 -0
- package/es/components/date-picker/composables/use-month-range-header.d.ts +1 -1
- package/es/components/date-picker/composables/use-panel-date-range.d.ts +29 -0
- package/es/components/date-picker/composables/use-panel-date-range.js +72 -0
- package/es/components/date-picker/composables/use-range-picker.d.ts +46 -42
- package/es/components/date-picker/composables/use-range-picker.js +65 -52
- package/es/components/date-picker/composables/use-shortcut.js +4 -4
- package/es/components/date-picker/composables/use-year-range-header.d.ts +16 -0
- package/es/components/date-picker/composables/use-year-range-header.js +35 -0
- package/es/components/date-picker/constants.d.ts +2 -15
- package/es/components/date-picker/constants.js +3 -16
- package/es/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -1
- package/es/components/date-picker/date-picker-com/basic-cell-render.js +16 -19
- package/es/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +14 -23
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +73 -176
- package/es/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +2 -2
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +93 -71
- package/es/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +50 -9
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +108 -57
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +13 -3
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +329 -277
- package/es/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +16 -3
- package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +422 -281
- package/es/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -3
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +137 -113
- package/es/components/date-picker/date-picker-com/panel-year-range.vue.d.ts +35 -0
- package/es/components/date-picker/date-picker-com/panel-year-range.vue.js +4 -0
- package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +210 -0
- package/es/components/date-picker/date-picker.d.ts +70 -40
- package/es/components/date-picker/date-picker.js +59 -50
- package/es/components/date-picker/date-picker.type.d.ts +2 -1
- package/es/components/date-picker/index.d.ts +126 -68
- package/es/components/date-picker/index.js +7 -7
- package/es/components/date-picker/instance.d.ts +9 -0
- package/es/components/date-picker/instance.js +1 -0
- package/es/components/date-picker/panel-utils.d.ts +48 -0
- package/es/components/date-picker/panel-utils.js +9 -6
- package/es/components/date-picker/props/basic-cell.d.ts +2 -1
- package/es/components/date-picker/props/basic-date-table.d.ts +7 -2
- package/es/components/date-picker/props/basic-date-table.js +6 -5
- package/es/components/date-picker/props/basic-month-table.d.ts +3 -2
- package/es/components/date-picker/props/basic-year-table.d.ts +23 -5
- package/es/components/date-picker/props/basic-year-table.js +5 -6
- package/es/components/date-picker/props/date-picker.d.ts +26 -12
- package/es/components/date-picker/props/date-picker.js +3 -0
- package/es/components/date-picker/props/panel-date-pick.d.ts +6 -1
- package/es/components/date-picker/props/panel-date-range.d.ts +7 -1
- package/es/components/date-picker/props/panel-month-range.d.ts +3 -1
- package/es/components/date-picker/props/panel-month-range.js +7 -3
- package/es/components/date-picker/props/panel-year-range.d.ts +14 -0
- package/es/components/date-picker/props/panel-year-range.js +17 -0
- package/es/components/date-picker/props/shared.d.ts +9 -2
- package/es/components/date-picker/props/shared.js +29 -12
- package/es/components/date-picker/style/css.d.ts +4 -0
- package/es/components/date-picker/style/css.js +5 -0
- package/es/components/date-picker/utils.d.ts +9 -2
- package/es/components/date-picker/utils.js +66 -33
- package/es/components/date-time-select/date-time-select.vue2.js +1 -1
- package/es/components/date-time-select/index.d.ts +1 -0
- package/es/components/date-time-select/types.d.ts +4 -0
- package/es/components/dialog/dialog-content.vue2.js +2 -3
- package/es/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
- package/es/components/dropdown/dropdown-item-impl.vue.js +12 -12
- package/es/components/dropdown/dropdown-item-impl.vue2.js +6 -6
- package/es/components/dropdown/dropdown.vue.d.ts +6 -29
- package/es/components/dropdown/dropdown.vue2.js +146 -149
- package/es/components/footer-layout/footer-layout.vue2.js +19 -108
- package/es/components/form/form-item.vue.d.ts +2 -3
- package/es/components/form/form-item.vue2.js +140 -135
- package/es/components/form/form-label-wrap.js +27 -27
- package/es/components/form/form.vue2.js +71 -65
- package/es/components/form/hooks/use-form-common-props.js +3 -4
- package/es/components/form/hooks/use-form-item.js +12 -13
- package/es/components/form/index.d.ts +75 -48
- package/es/components/form/types.d.ts +7 -1
- package/es/components/form/utils.d.ts +1 -1
- package/es/components/form/utils.js +33 -28
- package/es/components/header-layout/header-layout.vue2.js +26 -114
- package/es/components/icon/icon.vue2.js +20 -19
- package/es/components/icon/index.d.ts +0 -1
- package/es/components/icon/index.js +3 -4
- package/es/components/index.js +323 -319
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/link/index.d.ts +3 -3
- package/es/components/md-code-demo/md-code-demo.js +12 -13
- package/es/components/md-container/md-container.vue2.js +52 -138
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +17 -17
- package/es/components/menu/index.js +1 -1
- package/es/components/menu/menu-item.vue.d.ts +1 -1
- package/es/components/menu/menu-item.vue2.js +45 -132
- package/es/components/menu/sub-menu.vue.d.ts +2 -1
- package/es/components/menu/sub-menu.vue2.js +76 -163
- package/es/components/modal/index.d.ts +33 -45
- package/es/components/modal/modal-footer-action.vue2.js +26 -112
- package/es/components/modal/modal.vue.d.ts +2 -2
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +57 -144
- package/es/components/multiple-tabs/tab-content.vue2.js +19 -113
- package/es/components/multiple-tabs/use/use-tab-dropdown.js +37 -132
- package/es/components/popconfirm/index.d.ts +24 -24
- package/es/components/popconfirm/popconfirm.vue.d.ts +2 -2
- package/es/components/popover/index.d.ts +5 -5
- package/es/components/popover/popover.vue.d.ts +2 -2
- package/es/components/popper/composables/use-content.js +2 -3
- package/es/components/popper/trigger.vue2.js +7 -8
- package/es/components/progress/index.d.ts +3 -3
- package/es/components/result/result.vue.d.ts +1 -1
- package/es/components/result/result.vue2.js +20 -109
- package/es/components/roving-focus-group/index.js +11 -11
- package/es/components/roving-focus-group/roving-focus-group.vue.js +5 -5
- package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -3
- package/es/components/scrollbar/index.js +9 -10
- package/es/components/select/defaults.d.ts +99 -15
- package/es/components/select/defaults.js +90 -12
- package/es/components/select/group-item.vue.d.ts +10 -5
- package/es/components/select/group-item.vue.js +9 -19
- package/es/components/select/group-item.vue2.js +4 -2
- package/es/components/select/index.d.ts +2782 -0
- package/es/components/select/index.js +2 -2
- package/es/components/select/option-item.vue.d.ts +40 -26
- package/es/components/select/option-item.vue.js +12 -12
- package/es/components/select/option-item.vue2.js +15 -12
- package/es/components/select/select-dropdown.d.ts +29 -3
- package/es/components/select/select-dropdown.js +120 -129
- package/es/components/select/select.types.d.ts +19 -11
- package/es/components/select/select.vue.d.ts +2778 -0
- package/es/components/select/select.vue.js +261 -251
- package/es/components/select/select.vue2.js +49 -45
- package/es/components/select/token.d.ts +10 -12
- package/es/components/select/token.js +4 -2
- package/es/components/select/useAllowCreate.d.ts +3 -3
- package/es/components/select/useAllowCreate.js +32 -29
- package/es/components/select/useOption.d.ts +3 -3
- package/es/components/select/useProps.d.ts +21 -0
- package/es/components/select/useProps.js +22 -0
- package/es/components/select/useSelect.d.ts +940 -121
- package/es/components/select/useSelect.js +396 -302
- package/es/components/side-menu/side-menu.vue2.js +77 -165
- package/es/components/steps/index.d.ts +12 -12
- package/es/components/super-form/component-map.js +52 -141
- package/es/components/super-form/style/css.js +4 -4
- package/es/components/super-form/super-form-action.vue2.js +39 -126
- package/es/components/super-form/super-form-item.vue2.js +161 -248
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/super-form/super-form.vue2.js +116 -202
- package/es/components/super-form/types.d.ts +3 -1
- package/es/components/switch/index.d.ts +6 -6
- package/es/components/table/field.js +82 -176
- package/es/components/table/index.d.ts +24 -24
- package/es/components/table/table.vue.d.ts +1 -1
- package/es/components/tabs/tab-nav.vue.d.ts +2 -2
- package/es/components/tabs/tab-nav.vue2.js +98 -187
- package/es/components/tabs/tabs.vue.d.ts +2 -1
- package/es/components/time-picker/common/picker-range-trigger.vue.d.ts +84 -0
- package/es/components/time-picker/common/picker-range-trigger.vue.js +4 -0
- package/es/components/time-picker/common/picker-range-trigger.vue2.js +100 -0
- package/es/components/time-picker/common/picker.vue.d.ts +71 -41
- package/es/components/time-picker/common/picker.vue2.js +285 -289
- package/es/components/time-picker/common/props.d.ts +76 -12
- package/es/components/time-picker/common/props.js +78 -35
- package/es/components/time-picker/composables/use-time-panel.d.ts +4 -4
- package/es/components/time-picker/composables/use-time-picker.d.ts +28 -29
- package/es/components/time-picker/constants.d.ts +5 -0
- package/es/components/time-picker/constants.js +15 -10
- package/es/components/time-picker/index.d.ts +120 -74
- package/es/components/time-picker/index.js +28 -23
- package/es/components/time-picker/props/basic-time-spinner.d.ts +5 -4
- package/es/components/time-picker/props/panel-time-picker.d.ts +2 -1
- package/es/components/time-picker/props/panel-time-range.d.ts +2 -1
- package/es/components/time-picker/props/shared.d.ts +4 -5
- package/es/components/time-picker/style/css.d.ts +3 -0
- package/es/components/time-picker/style/css.js +3 -0
- package/es/components/time-picker/style/index.d.ts +3 -0
- package/es/components/time-picker/style/index.js +3 -0
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
- package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +135 -128
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +4 -4
- package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +36 -35
- package/es/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +4 -4
- package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +109 -108
- package/es/components/time-picker/time-picker.d.ts +60 -37
- package/es/components/time-picker/time-picker.js +28 -30
- package/es/components/time-picker/utils.d.ts +5 -2
- package/es/components/time-picker/utils.js +17 -16
- package/es/components/time-select/time-select.vue.d.ts +1 -1
- package/es/components/timeline/index.d.ts +6 -6
- package/es/components/tooltip/content.vue2.js +47 -48
- package/es/components/tooltip/index.d.ts +3 -3
- package/es/components/tooltip/tooltip.vue.d.ts +1 -1
- package/es/components/tooltip/tooltip.vue2.js +77 -78
- package/es/components/tooltip/utils.js +4 -5
- package/es/components/tree/tree-node.vue.d.ts +33 -33
- package/es/components/tree/tree-node.vue.js +11 -11
- package/es/components/tree/tree-node.vue2.js +15 -15
- package/es/components/upload/index.d.ts +15 -15
- package/es/components/upload/upload-content.vue.d.ts +1 -1
- package/es/components/upload/upload.vue.d.ts +1 -1
- package/es/components/virtual-list/builders/build-grid.d.ts +9 -9
- package/es/components/virtual-list/builders/build-grid.js +222 -214
- package/es/components/virtual-list/builders/build-list.d.ts +13 -13
- package/es/components/virtual-list/builders/build-list.js +206 -198
- package/es/components/virtual-list/components/dynamic-size-grid.d.ts +6 -6
- package/es/components/virtual-list/components/dynamic-size-grid.js +12 -12
- package/es/components/virtual-list/components/dynamic-size-list.d.ts +13 -12
- package/es/components/virtual-list/components/dynamic-size-list.js +7 -7
- package/es/components/virtual-list/components/fixed-size-grid.d.ts +6 -6
- package/es/components/virtual-list/components/fixed-size-list.d.ts +13 -12
- package/es/components/virtual-list/components/fixed-size-list.js +8 -8
- package/es/components/virtual-list/components/scrollbar.js +59 -66
- package/es/components/virtual-list/defaults.d.ts +0 -4
- package/es/components/virtual-list/defaults.js +11 -15
- package/es/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/es/components/virtual-list/hooks/use-cache.js +6 -6
- package/es/components/virtual-list/hooks/use-wheel.js +1 -1
- package/es/components/virtual-list/index.d.ts +6 -4
- package/es/components/virtual-list/index.js +4 -4
- package/es/components/virtual-list/props.d.ts +11 -7
- package/es/components/virtual-list/props.js +24 -30
- package/es/components/virtual-list/types.d.ts +1 -1
- package/es/components/virtual-list/utils.d.ts +1 -2
- package/es/components/virtual-list/utils.js +16 -18
- package/es/hooks/index.d.ts +3 -1
- package/es/hooks/index.js +49 -46
- package/es/hooks/use-calc-input-width/index.d.ts +7 -0
- package/es/hooks/use-calc-input-width/index.js +17 -0
- package/es/hooks/use-composition/index.d.ts +12 -0
- package/es/hooks/use-composition/index.js +28 -0
- package/es/hooks/use-delayed-toggle/index.d.ts +8 -4
- package/es/hooks/use-delayed-toggle/index.js +52 -17
- package/es/hooks/use-empty-values/index.d.ts +16 -0
- package/es/hooks/use-empty-values/index.js +37 -0
- package/es/hooks/use-focus-controller/index.d.ts +27 -0
- package/es/hooks/use-focus-controller/index.js +38 -0
- package/es/hooks/use-id/index.d.ts +1 -1
- package/es/hooks/use-id/index.js +11 -11
- package/es/hooks/use-namespace/index.d.ts +5 -6
- package/es/hooks/use-namespace/index.js +13 -15
- package/es/index.js +459 -451
- package/es/package.json.d.ts +2 -2
- package/es/package.json.js +1 -1
- package/es/utils/helper.d.ts +1 -0
- package/es/utils/helper.js +3 -2
- package/es/utils/index.js +49 -48
- package/lib/components/alert/alert.vue.d.ts +1 -11
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/alert/index.d.ts +28 -76
- package/lib/components/autocomplete/autocomplete.vue.d.ts +14 -14
- package/lib/components/autocomplete/autocomplete.vue2.cjs +1 -1
- package/lib/components/autocomplete/index.d.ts +42 -42
- package/lib/components/backtop/backtop.vue.d.ts +1 -15
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/backtop/index.d.ts +3 -9
- package/lib/components/backtop/types.cjs +1 -0
- package/lib/components/backtop/types.d.ts +14 -0
- package/lib/components/button/button-custom.d.ts +1 -1
- package/lib/components/button/button.vue.d.ts +3 -50
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/button/index.d.ts +39 -40
- package/lib/components/button/types.d.ts +47 -1
- package/lib/components/button/use-button.d.ts +5 -5
- package/lib/components/card/index.d.ts +3 -3
- package/lib/components/carousel/carousel.vue.d.ts +1 -1
- package/lib/components/carousel/index.d.ts +18 -18
- package/lib/components/carousel/use-carousel.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +42 -42
- package/lib/components/color-picker/components/hue-slider.vue.d.ts +3 -3
- package/lib/components/color-picker/components/predefine.vue.d.ts +3 -3
- package/lib/components/color-picker/components/sv-panel.vue.d.ts +3 -3
- package/lib/components/config-provider/hooks/use-global-config.d.ts +3 -3
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/context-menu/index.cjs +1 -1
- package/lib/components/context-menu/types.cjs +1 -1
- package/lib/components/context-menu/types.d.ts +1 -1
- package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -0
- package/lib/components/date-picker/composables/use-basic-date-table.d.ts +188 -0
- package/lib/components/date-picker/composables/use-month-range-header.d.ts +1 -1
- package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -0
- package/lib/components/date-picker/composables/use-panel-date-range.d.ts +29 -0
- package/lib/components/date-picker/composables/use-range-picker.cjs +1 -1
- package/lib/components/date-picker/composables/use-range-picker.d.ts +46 -42
- package/lib/components/date-picker/composables/use-shortcut.cjs +1 -1
- package/lib/components/date-picker/composables/use-year-range-header.cjs +1 -0
- package/lib/components/date-picker/composables/use-year-range-header.d.ts +16 -0
- package/lib/components/date-picker/constants.cjs +1 -1
- package/lib/components/date-picker/constants.d.ts +2 -15
- package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-cell-render.d.ts +3 -1
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue.d.ts +14 -23
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue.d.ts +2 -2
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue.d.ts +50 -9
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.d.ts +13 -3
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue.d.ts +16 -3
- package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue.d.ts +6 -3
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-year-range.vue.cjs +1 -0
- package/lib/components/date-picker/date-picker-com/panel-year-range.vue.d.ts +35 -0
- package/lib/components/date-picker/date-picker-com/panel-year-range.vue2.cjs +1 -0
- package/lib/components/date-picker/date-picker.cjs +1 -1
- package/lib/components/date-picker/date-picker.d.ts +70 -40
- package/lib/components/date-picker/date-picker.type.d.ts +2 -1
- package/lib/components/date-picker/index.cjs +1 -1
- package/lib/components/date-picker/index.d.ts +126 -68
- package/lib/components/date-picker/instance.cjs +1 -0
- package/lib/components/date-picker/instance.d.ts +9 -0
- package/lib/components/date-picker/panel-utils.cjs +1 -1
- package/lib/components/date-picker/panel-utils.d.ts +48 -0
- package/lib/components/date-picker/props/basic-cell.d.ts +2 -1
- package/lib/components/date-picker/props/basic-date-table.cjs +1 -1
- package/lib/components/date-picker/props/basic-date-table.d.ts +7 -2
- package/lib/components/date-picker/props/basic-month-table.d.ts +3 -2
- package/lib/components/date-picker/props/basic-year-table.cjs +1 -1
- package/lib/components/date-picker/props/basic-year-table.d.ts +23 -5
- package/lib/components/date-picker/props/date-picker.d.ts +26 -12
- package/lib/components/date-picker/props/panel-date-pick.d.ts +6 -1
- package/lib/components/date-picker/props/panel-date-range.d.ts +7 -1
- package/lib/components/date-picker/props/panel-month-range.cjs +1 -1
- package/lib/components/date-picker/props/panel-month-range.d.ts +3 -1
- package/lib/components/date-picker/props/panel-year-range.cjs +1 -0
- package/lib/components/date-picker/props/panel-year-range.d.ts +14 -0
- package/lib/components/date-picker/props/shared.cjs +1 -1
- package/lib/components/date-picker/props/shared.d.ts +9 -2
- package/lib/components/date-picker/style/css.cjs +1 -1
- package/lib/components/date-picker/style/css.d.ts +4 -0
- package/lib/components/date-picker/utils.cjs +1 -1
- package/lib/components/date-picker/utils.d.ts +9 -2
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/date-time-select/index.d.ts +1 -0
- package/lib/components/date-time-select/types.d.ts +4 -0
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.cjs +1 -1
- package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +4 -4
- package/lib/components/dropdown/dropdown-item-impl.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue.d.ts +6 -29
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue.d.ts +2 -3
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form-label-wrap.cjs +1 -1
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/form/hooks/use-form-common-props.cjs +1 -1
- package/lib/components/form/hooks/use-form-item.cjs +1 -1
- package/lib/components/form/index.d.ts +75 -48
- package/lib/components/form/types.d.ts +7 -1
- package/lib/components/form/utils.cjs +1 -1
- package/lib/components/form/utils.d.ts +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon/index.cjs +1 -1
- package/lib/components/icon/index.d.ts +0 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/link/index.d.ts +3 -3
- package/lib/components/md-code-demo/md-code-demo.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue.d.ts +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue.d.ts +2 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/modal/index.d.ts +33 -45
- package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
- package/lib/components/modal/modal.vue.d.ts +2 -2
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +24 -24
- package/lib/components/popconfirm/popconfirm.vue.d.ts +2 -2
- package/lib/components/popover/index.d.ts +5 -5
- package/lib/components/popover/popover.vue.d.ts +2 -2
- package/lib/components/popper/composables/use-content.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/progress/index.d.ts +3 -3
- package/lib/components/result/result.vue.d.ts +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
- package/lib/components/scrollbar/index.cjs +1 -1
- package/lib/components/select/defaults.cjs +1 -1
- package/lib/components/select/defaults.d.ts +99 -15
- package/lib/components/select/group-item.vue.cjs +1 -1
- package/lib/components/select/group-item.vue.d.ts +10 -5
- package/lib/components/select/group-item.vue2.cjs +1 -1
- package/lib/components/select/index.cjs +1 -1
- package/lib/components/select/index.d.ts +2782 -0
- package/lib/components/select/option-item.vue.cjs +1 -1
- package/lib/components/select/option-item.vue.d.ts +40 -26
- package/lib/components/select/option-item.vue2.cjs +1 -1
- package/lib/components/select/select-dropdown.cjs +1 -1
- package/lib/components/select/select-dropdown.d.ts +29 -3
- package/lib/components/select/select.types.d.ts +19 -11
- package/lib/components/select/select.vue.cjs +1 -1
- package/lib/components/select/select.vue.d.ts +2778 -0
- package/lib/components/select/select.vue2.cjs +1 -1
- package/lib/components/select/token.cjs +1 -1
- package/lib/components/select/token.d.ts +10 -12
- package/lib/components/select/useAllowCreate.cjs +1 -1
- package/lib/components/select/useAllowCreate.d.ts +3 -3
- package/lib/components/select/useOption.d.ts +3 -3
- package/lib/components/select/useProps.cjs +1 -0
- package/lib/components/select/useProps.d.ts +21 -0
- package/lib/components/select/useSelect.cjs +1 -1
- package/lib/components/select/useSelect.d.ts +940 -121
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/steps/index.d.ts +12 -12
- package/lib/components/super-form/component-map.cjs +1 -1
- package/lib/components/super-form/style/css.cjs +1 -1
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/super-form/super-form.vue2.cjs +1 -1
- package/lib/components/super-form/types.d.ts +3 -1
- package/lib/components/switch/index.d.ts +6 -6
- package/lib/components/table/field.cjs +1 -1
- package/lib/components/table/index.d.ts +24 -24
- package/lib/components/table/table.vue.d.ts +1 -1
- package/lib/components/tabs/tab-nav.vue.d.ts +2 -2
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue.d.ts +2 -1
- package/lib/components/time-picker/common/picker-range-trigger.vue.cjs +1 -0
- package/lib/components/time-picker/common/picker-range-trigger.vue.d.ts +84 -0
- package/lib/components/time-picker/common/picker-range-trigger.vue2.cjs +1 -0
- package/lib/components/time-picker/common/picker.vue.d.ts +71 -41
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-picker/common/props.cjs +1 -1
- package/lib/components/time-picker/common/props.d.ts +76 -12
- package/lib/components/time-picker/composables/use-time-panel.d.ts +4 -4
- package/lib/components/time-picker/composables/use-time-picker.d.ts +28 -29
- package/lib/components/time-picker/constants.cjs +1 -1
- package/lib/components/time-picker/constants.d.ts +5 -0
- package/lib/components/time-picker/index.cjs +1 -1
- package/lib/components/time-picker/index.d.ts +120 -74
- package/lib/components/time-picker/props/basic-time-spinner.d.ts +5 -4
- package/lib/components/time-picker/props/panel-time-picker.d.ts +2 -1
- package/lib/components/time-picker/props/panel-time-range.d.ts +2 -1
- package/lib/components/time-picker/props/shared.d.ts +4 -5
- package/lib/components/time-picker/style/css.cjs +1 -1
- package/lib/components/time-picker/style/css.d.ts +3 -0
- package/lib/components/time-picker/style/index.cjs +1 -1
- package/lib/components/time-picker/style/index.d.ts +3 -0
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.d.ts +6 -6
- package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.d.ts +4 -4
- package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue.d.ts +4 -4
- package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
- package/lib/components/time-picker/time-picker.cjs +1 -1
- package/lib/components/time-picker/time-picker.d.ts +60 -37
- package/lib/components/time-picker/utils.cjs +1 -1
- package/lib/components/time-picker/utils.d.ts +5 -2
- package/lib/components/time-select/time-select.vue.d.ts +1 -1
- package/lib/components/timeline/index.d.ts +6 -6
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/index.d.ts +3 -3
- package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/utils.cjs +1 -1
- package/lib/components/tree/tree-node.vue.cjs +1 -1
- package/lib/components/tree/tree-node.vue.d.ts +33 -33
- package/lib/components/tree/tree-node.vue2.cjs +1 -1
- package/lib/components/upload/index.d.ts +15 -15
- package/lib/components/upload/upload-content.vue.d.ts +1 -1
- package/lib/components/upload/upload.vue.d.ts +1 -1
- package/lib/components/virtual-list/builders/build-grid.cjs +1 -1
- package/lib/components/virtual-list/builders/build-grid.d.ts +9 -9
- package/lib/components/virtual-list/builders/build-list.cjs +1 -1
- package/lib/components/virtual-list/builders/build-list.d.ts +13 -13
- package/lib/components/virtual-list/components/dynamic-size-grid.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-grid.d.ts +6 -6
- package/lib/components/virtual-list/components/dynamic-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/dynamic-size-list.d.ts +13 -12
- package/lib/components/virtual-list/components/fixed-size-grid.d.ts +6 -6
- package/lib/components/virtual-list/components/fixed-size-list.cjs +1 -1
- package/lib/components/virtual-list/components/fixed-size-list.d.ts +13 -12
- package/lib/components/virtual-list/components/scrollbar.cjs +1 -1
- package/lib/components/virtual-list/defaults.cjs +1 -1
- package/lib/components/virtual-list/defaults.d.ts +0 -4
- package/lib/components/virtual-list/hooks/use-cache.cjs +1 -1
- package/lib/components/virtual-list/hooks/use-cache.d.ts +1 -1
- package/lib/components/virtual-list/hooks/use-wheel.cjs +1 -1
- package/lib/components/virtual-list/index.cjs +1 -1
- package/lib/components/virtual-list/index.d.ts +6 -4
- package/lib/components/virtual-list/props.cjs +1 -1
- package/lib/components/virtual-list/props.d.ts +11 -7
- package/lib/components/virtual-list/types.d.ts +1 -1
- package/lib/components/virtual-list/utils.cjs +1 -1
- package/lib/components/virtual-list/utils.d.ts +1 -2
- package/lib/hooks/index.cjs +1 -1
- package/lib/hooks/index.d.ts +3 -1
- package/lib/hooks/use-calc-input-width/index.cjs +1 -0
- package/lib/hooks/use-calc-input-width/index.d.ts +7 -0
- package/lib/hooks/use-composition/index.cjs +1 -0
- package/lib/hooks/use-composition/index.d.ts +12 -0
- package/lib/hooks/use-delayed-toggle/index.cjs +1 -1
- package/lib/hooks/use-delayed-toggle/index.d.ts +8 -4
- package/lib/hooks/use-empty-values/index.cjs +1 -0
- package/lib/hooks/use-empty-values/index.d.ts +16 -0
- package/lib/hooks/use-focus-controller/index.cjs +1 -0
- package/lib/hooks/use-focus-controller/index.d.ts +27 -0
- package/lib/hooks/use-id/index.cjs +2 -2
- package/lib/hooks/use-id/index.d.ts +1 -1
- package/lib/hooks/use-namespace/index.cjs +1 -1
- package/lib/hooks/use-namespace/index.d.ts +5 -6
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +2 -2
- package/lib/utils/helper.cjs +1 -1
- package/lib/utils/helper.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/common/var.scss +41 -0
- package/theme-style/src/date-picker/date-picker.scss +31 -31
- package/theme-style/src/date-picker/date-range-picker.scss +60 -37
- package/theme-style/src/date-picker/date-table.scss +20 -20
- package/theme-style/src/date-picker/month-table.scss +40 -25
- package/theme-style/src/date-picker/picker-panel.scss +27 -28
- package/theme-style/src/date-picker/picker.scss +60 -56
- package/theme-style/src/date-picker/time-picker.scss +21 -21
- package/theme-style/src/date-picker/time-range-picker.scss +6 -6
- package/theme-style/src/date-picker/time-spinner.scss +24 -22
- package/theme-style/src/date-picker/year-table.scss +61 -14
- package/theme-style/src/option-group.scss +7 -28
- package/theme-style/src/option.scss +46 -12
- package/theme-style/src/select-dropdown-v2.scss +31 -37
- package/theme-style/src/select.scss +136 -220
- package/theme-style/src/tabs.scss +6 -66
- package/theme-style/src/tabss.scss +4 -4
- package/theme-style/vft-date-picker.css +1 -1
- package/theme-style/vft-option-group.css +1 -1
- package/theme-style/vft-option.css +1 -1
- package/theme-style/vft-select-dropdown-v2.css +1 -1
- package/theme-style/vft-select.css +1 -1
- package/theme-style/vft-tabs.css +1 -1
- package/theme-style/vft-tabss.css +1 -1
- package/theme-style/vft-time-picker.css +1 -1
- package/theme-style/vft-time-select.css +1 -1
- package/web-types.json +1 -1
- package/es/components/select/useInput.d.ts +0 -5
- package/es/components/select/useInput.js +0 -20
- package/es/components/select/util.d.ts +0 -2
- package/es/components/select/util.js +0 -18
- package/lib/components/select/useInput.cjs +0 -1
- package/lib/components/select/useInput.d.ts +0 -5
- package/lib/components/select/util.cjs +0 -1
- package/lib/components/select/util.d.ts +0 -2
|
@@ -1,456 +1,508 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { VftIcon as z } from "../../icon/index.js";
|
|
6
|
-
import { VftInput as ye } from "../../input/index.js";
|
|
7
|
-
import "../../time-picker/index.js";
|
|
8
|
-
import "../../tooltip/index.js";
|
|
9
|
-
import { EVENT_CODE as p } from "../../../constants/aria.js";
|
|
1
|
+
import { defineComponent as nt, useAttrs as rt, useSlots as st, ref as g, inject as ee, toRef as ut, computed as m, watch as x, createElementBlock as I, openBlock as C, normalizeClass as i, unref as o, createElementVNode as h, withDirectives as P, renderSlot as it, createCommentVNode as K, Fragment as ct, renderList as dt, toDisplayString as te, createVNode as T, vShow as N, withKeys as he, createBlock as ae, withCtx as ye, createTextVNode as ke, nextTick as z } from "vue";
|
|
2
|
+
import w from "dayjs";
|
|
3
|
+
import { VftButton as we } from "../../button/index.js";
|
|
4
|
+
import { ClickOutside as vt } from "@vft/directives";
|
|
10
5
|
import "@vueuse/core";
|
|
6
|
+
import { isArray as A, isFunction as be } from "@vft/utils";
|
|
7
|
+
import { EVENT_CODE as k } from "../../../constants/aria.js";
|
|
11
8
|
import "../../../utils/ns-cover.js";
|
|
12
9
|
import "lodash-es";
|
|
13
|
-
import { useNamespace as
|
|
10
|
+
import { useNamespace as Ve } from "../../../hooks/use-namespace/index.js";
|
|
14
11
|
import "../../../hooks/use-model-toggle/index.js";
|
|
15
12
|
import "@popperjs/core";
|
|
16
13
|
import "../../../hooks/use-z-index/index.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
|
|
14
|
+
import { VftInput as De } from "../../input/index.js";
|
|
15
|
+
import "../../time-picker/index.js";
|
|
16
|
+
import { VftIcon as L } from "../../icon/index.js";
|
|
17
|
+
import "../../tooltip/index.js";
|
|
18
|
+
import { panelDatePickProps as mt } from "../props/panel-date-pick.js";
|
|
19
|
+
import { getValidDateOfMonth as ge, getValidDateOfYear as Ce, correctlyParseUserInput as Te } from "../utils.js";
|
|
20
|
+
import { ROOT_PICKER_IS_DEFAULT_FORMAT_INJECTION_KEY as ft } from "../constants.js";
|
|
21
|
+
import pt from "./basic-date-table.vue2.js";
|
|
22
|
+
import ht from "./basic-month-table.vue2.js";
|
|
23
|
+
import yt from "./basic-year-table.vue2.js";
|
|
24
|
+
import { PICKER_BASE_INJECTION_KEY as kt } from "../../time-picker/constants.js";
|
|
25
|
+
import { TOOLTIP_INJECTION_KEY as wt } from "../../tooltip/constants.js";
|
|
26
|
+
import { extractTimeFormat as bt, extractDateFormat as Vt } from "../../time-picker/utils.js";
|
|
27
|
+
import Dt from "../../time-picker/time-picker-com/panel-time-pick.vue2.js";
|
|
28
|
+
const gt = ["onClick"], Xt = /* @__PURE__ */ nt({
|
|
27
29
|
__name: "panel-date-pick",
|
|
28
|
-
props:
|
|
30
|
+
props: mt,
|
|
29
31
|
emits: ["pick", "set-picker-option", "panel-change"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
+
setup(Pe, { emit: Fe }) {
|
|
33
|
+
const $e = (e, t, l) => !0, n = Pe, b = Fe, f = Ve("picker-panel"), V = Ve("date-picker"), Ie = rt(), Ne = st(), d = g("zh-cn"), le = ee(kt), oe = ee(
|
|
34
|
+
ft
|
|
35
|
+
), Ee = ee(wt), { shortcuts: ne, disabledDate: c, cellClassName: Me, defaultTime: J } = le.props, E = ut(le.props, "defaultValue"), S = g(), a = g(w().locale(d.value)), W = g(!1);
|
|
36
|
+
let H = !1;
|
|
37
|
+
const re = m(() => w(J).locale(d.value)), Oe = m(() => a.value.month()), se = m(() => a.value.year()), ue = g([]), F = g(null), $ = g(null), q = (e) => ue.value.length > 0 ? $e(e, ue.value, n.format || "HH:mm:ss") : !0, ie = (e) => J && !fe.value && !W.value && !H ? re.value.year(e.year()).month(e.month()).date(e.date()) : M.value ? e.millisecond(0) : e.startOf("day"), v = (e, ...t) => {
|
|
32
38
|
if (!e)
|
|
33
|
-
|
|
34
|
-
else if (
|
|
35
|
-
const
|
|
36
|
-
|
|
39
|
+
b("pick", e, ...t);
|
|
40
|
+
else if (A(e)) {
|
|
41
|
+
const l = e.map(ie);
|
|
42
|
+
b("pick", l, ...t);
|
|
37
43
|
} else
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
if (
|
|
44
|
+
b("pick", ie(e), ...t);
|
|
45
|
+
F.value = null, $.value = null, W.value = !1, H = !1;
|
|
46
|
+
}, Ye = async (e, t) => {
|
|
47
|
+
if (u.value === "date") {
|
|
42
48
|
e = e;
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
} else
|
|
46
|
-
},
|
|
49
|
+
let l = n.parsedValue ? n.parsedValue.year(e.year()).month(e.month()).date(e.date()) : e;
|
|
50
|
+
q(l), a.value = l, v(l, M.value || t), n.type === "datetime" && (await z(), Y());
|
|
51
|
+
} else u.value === "week" ? v(e.date) : u.value === "dates" && v(e, !0);
|
|
52
|
+
}, ce = (e) => {
|
|
47
53
|
const t = e ? "add" : "subtract";
|
|
48
|
-
a.value = a.value[t](1, "month"),
|
|
49
|
-
},
|
|
50
|
-
const t = a.value,
|
|
51
|
-
a.value = s.value === "year" ? t[
|
|
52
|
-
}, s =
|
|
54
|
+
a.value = a.value[t](1, "month"), U("month");
|
|
55
|
+
}, de = (e) => {
|
|
56
|
+
const t = a.value, l = e ? "add" : "subtract";
|
|
57
|
+
a.value = s.value === "year" ? t[l](10, "year") : t[l](1, "year"), U("year");
|
|
58
|
+
}, s = g("date"), _e = m(() => {
|
|
53
59
|
const e = "年";
|
|
54
60
|
if (s.value === "year") {
|
|
55
|
-
const t = Math.floor(
|
|
61
|
+
const t = Math.floor(se.value / 10) * 10;
|
|
56
62
|
return `${t} ${e} - ${t + 9} ${e}`;
|
|
57
63
|
}
|
|
58
|
-
return `${
|
|
59
|
-
}),
|
|
60
|
-
const t =
|
|
64
|
+
return `${se.value} ${e}`;
|
|
65
|
+
}), Re = (e) => {
|
|
66
|
+
const t = be(e.value) ? e.value() : e.value;
|
|
61
67
|
if (t) {
|
|
62
|
-
|
|
68
|
+
H = !0, v(w(t).locale(d.value));
|
|
63
69
|
return;
|
|
64
70
|
}
|
|
65
71
|
e.onClick && e.onClick({
|
|
66
|
-
attrs:
|
|
67
|
-
slots:
|
|
68
|
-
emit:
|
|
72
|
+
attrs: Ie,
|
|
73
|
+
slots: Ne,
|
|
74
|
+
emit: b
|
|
69
75
|
});
|
|
70
|
-
},
|
|
71
|
-
const { type: e } =
|
|
72
|
-
return ["week", "month", "year", "dates"].includes(e) ? e : "date";
|
|
73
|
-
}),
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
}, u = m(() => {
|
|
77
|
+
const { type: e } = n;
|
|
78
|
+
return ["week", "month", "months", "year", "years", "dates"].includes(e) ? e : "date";
|
|
79
|
+
}), G = m(() => u.value === "dates" || u.value === "months" || u.value === "years"), Ke = m(() => u.value === "date" ? s.value : u.value), ve = m(() => !!ne.length), Se = async (e, t) => {
|
|
80
|
+
u.value === "month" ? (a.value = ge(
|
|
81
|
+
a.value,
|
|
82
|
+
a.value.year(),
|
|
83
|
+
e,
|
|
84
|
+
d.value,
|
|
85
|
+
c
|
|
86
|
+
), v(a.value, !1)) : u.value === "months" ? v(e, t ?? !0) : (a.value = ge(
|
|
87
|
+
a.value,
|
|
88
|
+
a.value.year(),
|
|
89
|
+
e,
|
|
90
|
+
d.value,
|
|
91
|
+
c
|
|
92
|
+
), s.value = "date", ["month", "year", "date", "week"].includes(u.value) && (v(a.value, !0), await z(), Y())), U("month");
|
|
93
|
+
}, Be = async (e, t) => {
|
|
94
|
+
if (u.value === "year") {
|
|
95
|
+
const l = a.value.startOf("year").year(e);
|
|
96
|
+
a.value = Ce(l, d.value, c), v(a.value, !1);
|
|
97
|
+
} else if (u.value === "years")
|
|
98
|
+
v(e, t ?? !0);
|
|
99
|
+
else {
|
|
100
|
+
const l = a.value.year(e);
|
|
101
|
+
a.value = Ce(l, d.value, c), s.value = "month", ["month", "year", "date", "week"].includes(u.value) && (v(a.value, !0), await z(), Y());
|
|
102
|
+
}
|
|
103
|
+
U("year");
|
|
104
|
+
}, B = async (e) => {
|
|
105
|
+
s.value = e, await z(), Y();
|
|
79
106
|
}, M = m(
|
|
80
|
-
() =>
|
|
81
|
-
),
|
|
82
|
-
|
|
83
|
-
|
|
107
|
+
() => n.type === "datetime" || n.type === "datetimerange"
|
|
108
|
+
), Ue = m(() => {
|
|
109
|
+
const e = M.value || u.value === "dates", t = u.value === "years", l = u.value === "months", p = s.value === "date", y = s.value === "year", _ = s.value === "month";
|
|
110
|
+
return e && p || t && y || l && _;
|
|
111
|
+
}), xe = m(() => c ? n.parsedValue ? A(n.parsedValue) ? c(n.parsedValue[0].toDate()) : c(n.parsedValue.toDate()) : !0 : !1), ze = () => {
|
|
112
|
+
if (G.value)
|
|
113
|
+
v(n.parsedValue);
|
|
84
114
|
else {
|
|
85
|
-
let e =
|
|
115
|
+
let e = n.parsedValue;
|
|
86
116
|
if (!e) {
|
|
87
|
-
const t =
|
|
88
|
-
e = t.year(
|
|
117
|
+
const t = w(J).locale(d.value), l = Z();
|
|
118
|
+
e = t.year(l.year()).month(l.month()).date(l.date());
|
|
89
119
|
}
|
|
90
|
-
a.value = e,
|
|
120
|
+
a.value = e, v(e);
|
|
91
121
|
}
|
|
92
|
-
},
|
|
93
|
-
const t =
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
if (F.value) return F.value;
|
|
97
|
-
if (!(!u.parsedValue && !N.value))
|
|
98
|
-
return (u.parsedValue || a.value).format(
|
|
99
|
-
H.value
|
|
100
|
-
);
|
|
101
|
-
}), Ke = m(() => {
|
|
122
|
+
}, Ae = m(() => c ? c(w().locale(d.value).toDate()) : !1), Le = () => {
|
|
123
|
+
const t = w().locale(d.value).toDate();
|
|
124
|
+
W.value = !0, (!c || !c(t)) && q(t) && (a.value = w().locale(d.value), v(a.value));
|
|
125
|
+
}, Q = m(() => n.timeFormat || bt(n.format)), me = m(() => n.dateFormat || Vt(n.format)), fe = m(() => {
|
|
102
126
|
if ($.value) return $.value;
|
|
103
|
-
if (!(!
|
|
104
|
-
return (
|
|
105
|
-
|
|
127
|
+
if (!(!n.parsedValue && !E.value))
|
|
128
|
+
return (n.parsedValue || a.value).format(
|
|
129
|
+
Q.value
|
|
106
130
|
);
|
|
107
|
-
}),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
131
|
+
}), Je = m(() => {
|
|
132
|
+
if (F.value) return F.value;
|
|
133
|
+
if (!(!n.parsedValue && !E.value))
|
|
134
|
+
return (n.parsedValue || a.value).format(
|
|
135
|
+
me.value
|
|
136
|
+
);
|
|
137
|
+
}), O = g(!1), We = () => {
|
|
138
|
+
O.value = !0;
|
|
139
|
+
}, He = () => {
|
|
140
|
+
O.value = !1;
|
|
141
|
+
}, X = (e) => ({
|
|
112
142
|
hour: e.hour(),
|
|
113
143
|
minute: e.minute(),
|
|
114
144
|
second: e.second(),
|
|
115
145
|
year: e.year(),
|
|
116
146
|
month: e.month(),
|
|
117
147
|
date: e.date()
|
|
118
|
-
}),
|
|
119
|
-
const { hour:
|
|
120
|
-
a.value =
|
|
121
|
-
},
|
|
122
|
-
const t =
|
|
123
|
-
if (t.isValid() &&
|
|
124
|
-
const { year:
|
|
125
|
-
a.value = t.year(
|
|
148
|
+
}), qe = (e, t, l) => {
|
|
149
|
+
const { hour: p, minute: y, second: _ } = X(e), j = n.parsedValue ? n.parsedValue.hour(p).minute(y).second(_) : e;
|
|
150
|
+
a.value = j, v(a.value, !0), l || (O.value = t);
|
|
151
|
+
}, Ge = (e) => {
|
|
152
|
+
const t = w(e, Q.value).locale(d.value);
|
|
153
|
+
if (t.isValid() && q(t)) {
|
|
154
|
+
const { year: l, month: p, date: y } = X(a.value);
|
|
155
|
+
a.value = t.year(l).month(p).date(y), $.value = null, O.value = !1, v(a.value, !0);
|
|
126
156
|
}
|
|
127
|
-
},
|
|
128
|
-
const t =
|
|
157
|
+
}, Qe = (e) => {
|
|
158
|
+
const t = Te(
|
|
159
|
+
e,
|
|
160
|
+
me.value,
|
|
161
|
+
d.value,
|
|
162
|
+
oe
|
|
163
|
+
);
|
|
129
164
|
if (t.isValid()) {
|
|
130
|
-
if (
|
|
165
|
+
if (c && c(t.toDate()))
|
|
131
166
|
return;
|
|
132
|
-
const { hour:
|
|
133
|
-
a.value = t.hour(
|
|
167
|
+
const { hour: l, minute: p, second: y } = X(a.value);
|
|
168
|
+
a.value = t.hour(l).minute(p).second(y), F.value = null, v(a.value, !0);
|
|
134
169
|
}
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
170
|
+
}, Xe = (e) => w.isDayjs(e) && e.isValid() && (c ? !c(e.toDate()) : !0), Ze = (e) => A(e) ? e.map((t) => t.format(n.format)) : e.format(n.format), je = (e) => Te(
|
|
171
|
+
e,
|
|
172
|
+
n.format,
|
|
173
|
+
d.value,
|
|
174
|
+
oe
|
|
175
|
+
), Z = () => {
|
|
176
|
+
const e = w(E.value).locale(d.value);
|
|
177
|
+
if (!E.value) {
|
|
178
|
+
const t = re.value;
|
|
179
|
+
return w().hour(t.hour()).minute(t.minute()).second(t.second()).locale(d.value);
|
|
140
180
|
}
|
|
141
181
|
return e;
|
|
142
|
-
},
|
|
143
|
-
["week", "month", "year", "date"].includes(
|
|
144
|
-
},
|
|
182
|
+
}, Y = () => {
|
|
183
|
+
["week", "month", "year", "date"].includes(u.value) && S.value?.focus();
|
|
184
|
+
}, et = () => {
|
|
185
|
+
Y(), u.value === "week" && pe(k.down);
|
|
186
|
+
}, tt = (e) => {
|
|
145
187
|
const { code: t } = e;
|
|
146
188
|
[
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
].includes(t) && (
|
|
189
|
+
k.up,
|
|
190
|
+
k.down,
|
|
191
|
+
k.left,
|
|
192
|
+
k.right,
|
|
193
|
+
k.home,
|
|
194
|
+
k.end,
|
|
195
|
+
k.pageUp,
|
|
196
|
+
k.pageDown
|
|
197
|
+
].includes(t) && (pe(t), e.stopPropagation(), e.preventDefault()), [k.enter, k.space, k.numpadEnter].includes(
|
|
156
198
|
t
|
|
157
|
-
) &&
|
|
158
|
-
},
|
|
159
|
-
const { up: t, down:
|
|
199
|
+
) && F.value === null && $.value === null && (e.preventDefault(), v(a.value, !1));
|
|
200
|
+
}, pe = (e) => {
|
|
201
|
+
const { up: t, down: l, left: p, right: y, home: _, end: j, pageUp: at, pageDown: lt } = k, ot = {
|
|
160
202
|
year: {
|
|
161
203
|
[t]: -4,
|
|
162
|
-
[
|
|
163
|
-
[
|
|
164
|
-
[
|
|
165
|
-
offset: (
|
|
204
|
+
[l]: 4,
|
|
205
|
+
[p]: -1,
|
|
206
|
+
[y]: 1,
|
|
207
|
+
offset: (r, D) => r.setFullYear(r.getFullYear() + D)
|
|
166
208
|
},
|
|
167
209
|
month: {
|
|
168
210
|
[t]: -4,
|
|
169
|
-
[
|
|
170
|
-
[
|
|
171
|
-
[
|
|
172
|
-
offset: (
|
|
211
|
+
[l]: 4,
|
|
212
|
+
[p]: -1,
|
|
213
|
+
[y]: 1,
|
|
214
|
+
offset: (r, D) => r.setMonth(r.getMonth() + D)
|
|
173
215
|
},
|
|
174
216
|
week: {
|
|
175
217
|
[t]: -1,
|
|
176
|
-
[
|
|
177
|
-
[
|
|
178
|
-
[
|
|
179
|
-
offset: (
|
|
218
|
+
[l]: 1,
|
|
219
|
+
[p]: -1,
|
|
220
|
+
[y]: 1,
|
|
221
|
+
offset: (r, D) => r.setDate(r.getDate() + D * 7)
|
|
180
222
|
},
|
|
181
223
|
date: {
|
|
182
224
|
[t]: -7,
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
[
|
|
186
|
-
[
|
|
187
|
-
[
|
|
188
|
-
[
|
|
189
|
-
[
|
|
190
|
-
offset: (
|
|
225
|
+
[l]: 7,
|
|
226
|
+
[p]: -1,
|
|
227
|
+
[y]: 1,
|
|
228
|
+
[_]: (r) => -r.getDay(),
|
|
229
|
+
[j]: (r) => -r.getDay() + 6,
|
|
230
|
+
[at]: (r) => -new Date(r.getFullYear(), r.getMonth(), 0).getDate(),
|
|
231
|
+
[lt]: (r) => new Date(r.getFullYear(), r.getMonth() + 1, 0).getDate(),
|
|
232
|
+
offset: (r, D) => r.setDate(r.getDate() + D)
|
|
191
233
|
}
|
|
192
|
-
},
|
|
193
|
-
for (; Math.abs(a.value.diff(
|
|
194
|
-
const
|
|
195
|
-
if (!
|
|
196
|
-
if (
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
),
|
|
234
|
+
}, R = a.value.toDate();
|
|
235
|
+
for (; Math.abs(a.value.diff(R, "year", !0)) < 1; ) {
|
|
236
|
+
const r = ot[Ke.value];
|
|
237
|
+
if (!r) return;
|
|
238
|
+
if (r.offset(
|
|
239
|
+
R,
|
|
240
|
+
be(r[e]) ? r[e](R) : r[e] ?? 0
|
|
241
|
+
), c && c(R))
|
|
200
242
|
break;
|
|
201
|
-
const
|
|
202
|
-
a.value =
|
|
243
|
+
const D = w(R).locale(d.value);
|
|
244
|
+
a.value = D, b("pick", D, !0);
|
|
203
245
|
break;
|
|
204
246
|
}
|
|
205
|
-
},
|
|
206
|
-
|
|
247
|
+
}, U = (e) => {
|
|
248
|
+
b(
|
|
207
249
|
"panel-change",
|
|
208
250
|
a.value.toDate(),
|
|
209
251
|
e,
|
|
210
252
|
s.value
|
|
211
253
|
);
|
|
212
254
|
};
|
|
213
|
-
return
|
|
214
|
-
() =>
|
|
255
|
+
return x(
|
|
256
|
+
() => u.value,
|
|
215
257
|
(e) => {
|
|
216
258
|
if (["month", "year"].includes(e)) {
|
|
217
259
|
s.value = e;
|
|
218
260
|
return;
|
|
261
|
+
} else if (e === "years") {
|
|
262
|
+
s.value = "year";
|
|
263
|
+
return;
|
|
264
|
+
} else if (e === "months") {
|
|
265
|
+
s.value = "month";
|
|
266
|
+
return;
|
|
219
267
|
}
|
|
220
268
|
s.value = "date";
|
|
221
269
|
},
|
|
222
270
|
{ immediate: !0 }
|
|
223
|
-
),
|
|
271
|
+
), x(
|
|
224
272
|
() => s.value,
|
|
225
273
|
() => {
|
|
226
|
-
|
|
274
|
+
Ee?.updatePopper();
|
|
227
275
|
}
|
|
228
|
-
),
|
|
229
|
-
() =>
|
|
276
|
+
), x(
|
|
277
|
+
() => E.value,
|
|
230
278
|
(e) => {
|
|
231
|
-
e && (a.value =
|
|
279
|
+
e && (a.value = Z());
|
|
232
280
|
},
|
|
233
281
|
{ immediate: !0 }
|
|
234
|
-
),
|
|
235
|
-
() =>
|
|
282
|
+
), x(
|
|
283
|
+
() => n.parsedValue,
|
|
236
284
|
(e) => {
|
|
237
285
|
if (e) {
|
|
238
|
-
if (
|
|
286
|
+
if (G.value || A(e)) return;
|
|
239
287
|
a.value = e;
|
|
240
288
|
} else
|
|
241
|
-
a.value =
|
|
289
|
+
a.value = Z();
|
|
242
290
|
},
|
|
243
291
|
{ immediate: !0 }
|
|
244
|
-
),
|
|
245
|
-
class:
|
|
246
|
-
|
|
247
|
-
|
|
292
|
+
), b("set-picker-option", ["isValidValue", Xe]), b("set-picker-option", ["formatToString", Ze]), b("set-picker-option", ["parseUserInput", je]), b("set-picker-option", ["handleFocusPicker", et]), (e, t) => (C(), I("div", {
|
|
293
|
+
class: i([
|
|
294
|
+
o(f).b(),
|
|
295
|
+
o(V).b(),
|
|
248
296
|
{
|
|
249
|
-
"has-sidebar": e.$slots.sidebar ||
|
|
297
|
+
"has-sidebar": e.$slots.sidebar || ve.value,
|
|
250
298
|
"has-time": M.value
|
|
251
299
|
}
|
|
252
300
|
])
|
|
253
301
|
}, [
|
|
254
|
-
|
|
255
|
-
class:
|
|
302
|
+
h("div", {
|
|
303
|
+
class: i(o(f).e("body-wrapper"))
|
|
256
304
|
}, [
|
|
257
|
-
|
|
258
|
-
class:
|
|
305
|
+
it(e.$slots, "sidebar", {
|
|
306
|
+
class: i(o(f).e("sidebar"))
|
|
259
307
|
}),
|
|
260
|
-
|
|
308
|
+
ve.value ? (C(), I("div", {
|
|
261
309
|
key: 0,
|
|
262
|
-
class:
|
|
310
|
+
class: i(o(f).e("sidebar"))
|
|
263
311
|
}, [
|
|
264
|
-
(C(!0),
|
|
265
|
-
key:
|
|
312
|
+
(C(!0), I(ct, null, dt(o(ne), (l, p) => (C(), I("button", {
|
|
313
|
+
key: p,
|
|
266
314
|
type: "button",
|
|
267
|
-
class:
|
|
268
|
-
onClick: (
|
|
269
|
-
},
|
|
270
|
-
], 2)) :
|
|
271
|
-
|
|
272
|
-
class:
|
|
315
|
+
class: i(o(f).e("shortcut")),
|
|
316
|
+
onClick: (y) => Re(l)
|
|
317
|
+
}, te(l.text), 11, gt))), 128))
|
|
318
|
+
], 2)) : K("", !0),
|
|
319
|
+
h("div", {
|
|
320
|
+
class: i(o(f).e("body"))
|
|
273
321
|
}, [
|
|
274
|
-
M.value ? (C(),
|
|
322
|
+
M.value ? (C(), I("div", {
|
|
275
323
|
key: 0,
|
|
276
|
-
class:
|
|
324
|
+
class: i(o(V).e("time-header"))
|
|
277
325
|
}, [
|
|
278
|
-
|
|
279
|
-
class:
|
|
326
|
+
h("span", {
|
|
327
|
+
class: i(o(V).e("editor-wrap"))
|
|
280
328
|
}, [
|
|
281
|
-
T(
|
|
329
|
+
T(o(De), {
|
|
282
330
|
placeholder: "选择日期",
|
|
283
|
-
"model-value":
|
|
331
|
+
"model-value": Je.value,
|
|
284
332
|
size: "small",
|
|
285
333
|
"validate-event": !1,
|
|
286
|
-
onInput: t[0] || (t[0] = (
|
|
287
|
-
onChange:
|
|
334
|
+
onInput: t[0] || (t[0] = (l) => F.value = l),
|
|
335
|
+
onChange: Qe
|
|
288
336
|
}, null, 8, ["model-value"])
|
|
289
337
|
], 2),
|
|
290
|
-
P((C(),
|
|
291
|
-
class:
|
|
338
|
+
P((C(), I("span", {
|
|
339
|
+
class: i(o(V).e("editor-wrap"))
|
|
292
340
|
}, [
|
|
293
|
-
T(
|
|
341
|
+
T(o(De), {
|
|
294
342
|
placeholder: "选择时间",
|
|
295
|
-
"model-value":
|
|
343
|
+
"model-value": fe.value,
|
|
296
344
|
size: "small",
|
|
297
345
|
"validate-event": !1,
|
|
298
|
-
onFocus:
|
|
299
|
-
onInput: t[1] || (t[1] = (
|
|
300
|
-
onChange:
|
|
346
|
+
onFocus: We,
|
|
347
|
+
onInput: t[1] || (t[1] = (l) => $.value = l),
|
|
348
|
+
onChange: Ge
|
|
301
349
|
}, null, 8, ["model-value"]),
|
|
302
|
-
T(
|
|
303
|
-
visible:
|
|
304
|
-
format:
|
|
305
|
-
"time-arrow-control": l(Pe),
|
|
350
|
+
T(o(Dt), {
|
|
351
|
+
visible: O.value,
|
|
352
|
+
format: Q.value,
|
|
306
353
|
"parsed-value": a.value,
|
|
307
|
-
onPick:
|
|
308
|
-
}, null, 8, ["visible", "format", "
|
|
354
|
+
onPick: qe
|
|
355
|
+
}, null, 8, ["visible", "format", "parsed-value"])
|
|
309
356
|
], 2)), [
|
|
310
|
-
[
|
|
357
|
+
[o(vt), He]
|
|
311
358
|
])
|
|
312
|
-
], 2)) :
|
|
313
|
-
P(
|
|
314
|
-
class:
|
|
315
|
-
|
|
316
|
-
(s.value === "year" || s.value === "month") &&
|
|
359
|
+
], 2)) : K("", !0),
|
|
360
|
+
P(h("div", {
|
|
361
|
+
class: i([
|
|
362
|
+
o(V).e("header"),
|
|
363
|
+
(s.value === "year" || s.value === "month") && o(V).e("header--bordered")
|
|
317
364
|
])
|
|
318
365
|
}, [
|
|
319
|
-
|
|
320
|
-
class:
|
|
366
|
+
h("span", {
|
|
367
|
+
class: i(o(V).e("prev-btn"))
|
|
321
368
|
}, [
|
|
322
|
-
|
|
369
|
+
h("button", {
|
|
323
370
|
type: "button",
|
|
324
|
-
class:
|
|
325
|
-
onClick: t[2] || (t[2] = (
|
|
371
|
+
class: i(["d-arrow-left", o(f).e("icon-btn")]),
|
|
372
|
+
onClick: t[2] || (t[2] = (l) => de(!1))
|
|
326
373
|
}, [
|
|
327
|
-
T(
|
|
374
|
+
T(o(L), { icon: "icon-d-arrow-left" })
|
|
328
375
|
], 2),
|
|
329
|
-
P(
|
|
376
|
+
P(h("button", {
|
|
330
377
|
type: "button",
|
|
331
|
-
class:
|
|
332
|
-
onClick: t[3] || (t[3] = (
|
|
378
|
+
class: i([o(f).e("icon-btn"), "arrow-left"]),
|
|
379
|
+
onClick: t[3] || (t[3] = (l) => ce(!1))
|
|
333
380
|
}, [
|
|
334
|
-
T(
|
|
381
|
+
T(o(L), { icon: "icon-arrow-left" })
|
|
335
382
|
], 2), [
|
|
336
|
-
[
|
|
383
|
+
[N, s.value === "date"]
|
|
337
384
|
])
|
|
338
385
|
], 2),
|
|
339
|
-
|
|
386
|
+
h("span", {
|
|
340
387
|
role: "button",
|
|
341
|
-
class:
|
|
388
|
+
class: i(o(V).e("header-label")),
|
|
342
389
|
"aria-live": "polite",
|
|
343
390
|
tabindex: "0",
|
|
344
|
-
onKeydown: t[4] || (t[4] =
|
|
345
|
-
onClick: t[5] || (t[5] = (
|
|
346
|
-
},
|
|
347
|
-
P(
|
|
391
|
+
onKeydown: t[4] || (t[4] = he((l) => B("year"), ["enter"])),
|
|
392
|
+
onClick: t[5] || (t[5] = (l) => B("year"))
|
|
393
|
+
}, te(_e.value), 35),
|
|
394
|
+
P(h("span", {
|
|
348
395
|
role: "button",
|
|
349
396
|
"aria-live": "polite",
|
|
350
397
|
tabindex: "0",
|
|
351
|
-
class:
|
|
352
|
-
|
|
398
|
+
class: i([
|
|
399
|
+
o(V).e("header-label"),
|
|
353
400
|
{ active: s.value === "month" }
|
|
354
401
|
]),
|
|
355
|
-
onKeydown: t[6] || (t[6] =
|
|
356
|
-
onClick: t[7] || (t[7] = (
|
|
357
|
-
},
|
|
358
|
-
[
|
|
402
|
+
onKeydown: t[6] || (t[6] = he((l) => B("month"), ["enter"])),
|
|
403
|
+
onClick: t[7] || (t[7] = (l) => B("month"))
|
|
404
|
+
}, te(Oe.value + 1), 35), [
|
|
405
|
+
[N, s.value === "date"]
|
|
359
406
|
]),
|
|
360
|
-
|
|
361
|
-
class:
|
|
407
|
+
h("span", {
|
|
408
|
+
class: i(o(V).e("next-btn"))
|
|
362
409
|
}, [
|
|
363
|
-
P(
|
|
410
|
+
P(h("button", {
|
|
364
411
|
type: "button",
|
|
365
|
-
class:
|
|
366
|
-
onClick: t[8] || (t[8] = (
|
|
412
|
+
class: i([o(f).e("icon-btn"), "arrow-right"]),
|
|
413
|
+
onClick: t[8] || (t[8] = (l) => ce(!0))
|
|
367
414
|
}, [
|
|
368
|
-
T(
|
|
415
|
+
T(o(L), { icon: "icon-arrow-right" })
|
|
369
416
|
], 2), [
|
|
370
|
-
[
|
|
417
|
+
[N, s.value === "date"]
|
|
371
418
|
]),
|
|
372
|
-
|
|
419
|
+
h("button", {
|
|
373
420
|
type: "button",
|
|
374
|
-
class:
|
|
375
|
-
onClick: t[9] || (t[9] = (
|
|
421
|
+
class: i([o(f).e("icon-btn"), "d-arrow-right"]),
|
|
422
|
+
onClick: t[9] || (t[9] = (l) => de(!0))
|
|
376
423
|
}, [
|
|
377
|
-
T(
|
|
424
|
+
T(o(L), { icon: "icon-d-arrow-right" })
|
|
378
425
|
], 2)
|
|
379
426
|
], 2)
|
|
380
427
|
], 2), [
|
|
381
|
-
[
|
|
428
|
+
[N, s.value !== "time"]
|
|
382
429
|
]),
|
|
383
|
-
|
|
384
|
-
class:
|
|
385
|
-
onKeydown:
|
|
430
|
+
h("div", {
|
|
431
|
+
class: i(o(f).e("content")),
|
|
432
|
+
onKeydown: tt
|
|
386
433
|
}, [
|
|
387
|
-
s.value === "date" ? (C(),
|
|
434
|
+
s.value === "date" ? (C(), ae(pt, {
|
|
388
435
|
key: 0,
|
|
389
436
|
ref_key: "currentViewRef",
|
|
390
|
-
ref:
|
|
391
|
-
"selection-mode":
|
|
437
|
+
ref: S,
|
|
438
|
+
"selection-mode": u.value,
|
|
392
439
|
date: a.value,
|
|
393
440
|
"parsed-value": e.parsedValue,
|
|
394
|
-
"disabled-date":
|
|
395
|
-
"cell-class-name":
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
441
|
+
"disabled-date": o(c),
|
|
442
|
+
"cell-class-name": o(Me),
|
|
443
|
+
"show-week-number": e.showWeekNumber,
|
|
444
|
+
onPick: Ye
|
|
445
|
+
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date", "cell-class-name", "show-week-number"])) : K("", !0),
|
|
446
|
+
s.value === "year" ? (C(), ae(yt, {
|
|
399
447
|
key: 1,
|
|
400
448
|
ref_key: "currentViewRef",
|
|
401
|
-
ref:
|
|
449
|
+
ref: S,
|
|
450
|
+
"selection-mode": u.value,
|
|
402
451
|
date: a.value,
|
|
403
|
-
"disabled-date":
|
|
452
|
+
"disabled-date": o(c),
|
|
404
453
|
"parsed-value": e.parsedValue,
|
|
405
|
-
onPick:
|
|
406
|
-
}, null, 8, ["date", "disabled-date", "parsed-value"])) :
|
|
407
|
-
s.value === "month" ? (C(),
|
|
454
|
+
onPick: Be
|
|
455
|
+
}, null, 8, ["selection-mode", "date", "disabled-date", "parsed-value"])) : K("", !0),
|
|
456
|
+
s.value === "month" ? (C(), ae(ht, {
|
|
408
457
|
key: 2,
|
|
409
458
|
ref_key: "currentViewRef",
|
|
410
|
-
ref:
|
|
459
|
+
ref: S,
|
|
460
|
+
"selection-mode": u.value,
|
|
411
461
|
date: a.value,
|
|
412
462
|
"parsed-value": e.parsedValue,
|
|
413
|
-
"disabled-date":
|
|
414
|
-
onPick:
|
|
415
|
-
}, null, 8, ["date", "parsed-value", "disabled-date"])) :
|
|
463
|
+
"disabled-date": o(c),
|
|
464
|
+
onPick: Se
|
|
465
|
+
}, null, 8, ["selection-mode", "date", "parsed-value", "disabled-date"])) : K("", !0)
|
|
416
466
|
], 34)
|
|
417
467
|
], 2)
|
|
418
468
|
], 2),
|
|
419
|
-
P(
|
|
420
|
-
class:
|
|
469
|
+
P(h("div", {
|
|
470
|
+
class: i(o(f).e("footer"))
|
|
421
471
|
}, [
|
|
422
|
-
P(T(
|
|
472
|
+
P(T(o(we), {
|
|
423
473
|
text: "",
|
|
424
474
|
size: "small",
|
|
425
|
-
class:
|
|
426
|
-
|
|
475
|
+
class: i(o(f).e("link-btn")),
|
|
476
|
+
disabled: Ae.value,
|
|
477
|
+
onClick: Le
|
|
427
478
|
}, {
|
|
428
|
-
default:
|
|
429
|
-
|
|
479
|
+
default: ye(() => t[10] || (t[10] = [
|
|
480
|
+
ke(" 现在 ")
|
|
430
481
|
])),
|
|
431
482
|
_: 1,
|
|
432
483
|
__: [10]
|
|
433
|
-
}, 8, ["class"]), [
|
|
434
|
-
[
|
|
484
|
+
}, 8, ["class", "disabled"]), [
|
|
485
|
+
[N, !G.value && e.showNow]
|
|
435
486
|
]),
|
|
436
|
-
T(
|
|
487
|
+
T(o(we), {
|
|
437
488
|
plain: "",
|
|
438
489
|
size: "small",
|
|
439
|
-
class:
|
|
440
|
-
|
|
490
|
+
class: i(o(f).e("link-btn")),
|
|
491
|
+
disabled: xe.value,
|
|
492
|
+
onClick: ze
|
|
441
493
|
}, {
|
|
442
|
-
default:
|
|
443
|
-
|
|
494
|
+
default: ye(() => t[11] || (t[11] = [
|
|
495
|
+
ke(" 确认 ")
|
|
444
496
|
])),
|
|
445
497
|
_: 1,
|
|
446
498
|
__: [11]
|
|
447
|
-
}, 8, ["class"])
|
|
499
|
+
}, 8, ["class", "disabled"])
|
|
448
500
|
], 2), [
|
|
449
|
-
[
|
|
501
|
+
[N, Ue.value]
|
|
450
502
|
])
|
|
451
503
|
], 2));
|
|
452
504
|
}
|
|
453
505
|
});
|
|
454
506
|
export {
|
|
455
|
-
|
|
507
|
+
Xt as default
|
|
456
508
|
};
|