bkui-vue 2.0.1-beta.9 → 2.0.1-beta.91
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/README.md +15 -0
- package/dist/index.cjs.js +167 -167
- package/dist/index.esm.js +32344 -31644
- package/dist/index.umd.js +167 -167
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +262 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.d.ts +5 -12
- package/lib/alert/alert.variable.css +262 -1
- package/lib/alert/index.d.ts +11 -26
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +395 -4
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +262 -1
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +397 -6
- package/lib/button/button.css +417 -243
- package/lib/button/button.d.ts +8 -8
- package/lib/button/button.less +74 -71
- package/lib/button/button.variable.css +450 -145
- package/lib/button/index.d.ts +11 -11
- package/lib/button/index.js +6 -7
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +396 -5
- package/lib/cascader/cascader-panel.d.ts +6 -1
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.d.ts +5 -1
- package/lib/cascader/cascader.variable.css +415 -24
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/index.js +110 -40
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +0 -16
- package/lib/checkbox/checkbox.css +147 -9
- package/lib/checkbox/checkbox.d.ts +39 -7
- package/lib/checkbox/checkbox.less +12 -0
- package/lib/checkbox/checkbox.variable.css +270 -1
- package/lib/checkbox/index.d.ts +57 -22
- package/lib/checkbox/index.js +21 -8
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +262 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse-panel.d.ts +5 -5
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +262 -1
- package/lib/collapse/index.d.ts +5 -5
- package/lib/collapse/index.js +4 -2
- package/lib/collapse/props.d.ts +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +262 -1
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/color-picker.variable.css +262 -1
- package/lib/color-picker/index.d.ts +23 -0
- package/lib/color-picker/index.js +52 -45
- package/lib/components.d.ts +30 -32
- package/lib/components.js +29 -31
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +262 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/container.css +130 -0
- package/lib/container/container.variable.css +392 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.d.ts +3 -11
- package/lib/date-picker/date-picker.variable.css +262 -1
- package/lib/date-picker/index.d.ts +10 -24
- package/lib/date-picker/index.js +258 -219
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +5 -5
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -10
- package/lib/date-picker/panel/time.d.ts +2 -11
- package/lib/date-picker/props.d.ts +1 -5
- package/lib/date-picker/time-picker.d.ts +3 -10
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.d.ts +47 -31
- package/lib/dialog/dialog.variable.css +400 -9
- package/lib/dialog/index.d.ts +101 -67
- package/lib/dialog/index.js +25 -23
- package/lib/dialog/props.d.ts +20 -13
- package/lib/directives/index.d.ts +4 -3
- package/lib/directives/index.js +198 -176
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +262 -1
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.d.ts +11 -11
- package/lib/dropdown/dropdown.variable.css +392 -1
- package/lib/dropdown/index.d.ts +26 -26
- package/lib/dropdown/index.js +10 -8
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +262 -1
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +262 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +7 -19
- package/lib/form/form.css +130 -0
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +262 -1
- package/lib/form/index.d.ts +7 -14
- package/lib/form/index.js +22 -21
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.css +130 -0
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +262 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +392 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +17 -18
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/info-box/info-box.variable.css +262 -1
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +63 -516
- package/lib/input/input.css +225 -73
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.less +30 -1
- package/lib/input/input.variable.css +487 -74
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.css +146 -16
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +262 -1
- package/lib/loading/index.d.ts +12 -11
- package/lib/loading/index.js +10 -8
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.d.ts +8 -8
- package/lib/loading/loading.variable.css +408 -17
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.d.ts +1 -0
- package/lib/menu/index.js +2 -3
- package/lib/menu/menu.css +148 -18
- package/lib/menu/menu.variable.css +410 -19
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.d.ts +1 -0
- package/lib/menu/submenu.variable.css +262 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.css +153 -22
- package/lib/message/message.less +3 -2
- package/lib/message/message.variable.css +264 -2
- package/lib/message/messageConstructor.d.ts +16 -16
- package/lib/modal/index.d.ts +62 -21
- package/lib/modal/index.js +49 -28
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.d.ts +24 -8
- package/lib/modal/modal.variable.css +396 -5
- package/lib/modal/props.mixin.d.ts +10 -3
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +262 -1
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +262 -1
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/overflow-title/components/overflow-title.d.ts +29 -20
- package/lib/overflow-title/index.d.ts +59 -42
- package/lib/overflow-title/index.js +75 -18
- package/lib/overflow-title/props.d.ts +28 -23
- package/lib/pagination/index.d.ts +0 -19
- package/lib/pagination/index.js +76 -23
- package/lib/pagination/pagination.css +139 -9
- package/lib/pagination/pagination.d.ts +0 -13
- package/lib/pagination/pagination.less +14 -13
- package/lib/pagination/pagination.variable.css +270 -9
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +127 -58
- package/lib/pop-confirm/index.d.ts +11 -43
- package/lib/pop-confirm/index.js +27 -28
- package/lib/pop-confirm/pop-confirm.css +133 -1
- package/lib/pop-confirm/pop-confirm.d.ts +5 -19
- package/lib/pop-confirm/pop-confirm.less +3 -1
- package/lib/pop-confirm/pop-confirm.variable.css +265 -2
- package/lib/pop-confirm/props.d.ts +5 -11
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +5 -2
- package/lib/popover/index.d.ts +74 -30
- package/lib/popover/index.js +127 -58
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.d.ts +32 -12
- package/lib/popover/popover.variable.css +262 -1
- package/lib/popover/props.d.ts +14 -6
- package/lib/popover/use-floating.d.ts +5 -2
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +262 -1
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +396 -5
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +28 -17
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +262 -1
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +262 -1
- package/lib/resize-layout/index.d.ts +34 -11
- package/lib/resize-layout/index.js +33 -14
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.d.ts +16 -5
- package/lib/resize-layout/resize-layout.variable.css +262 -1
- package/lib/scrollbar/css/scrollbar.css +239 -0
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/css/scrollbar.variable.css +499 -0
- package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
- package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
- package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
- package/lib/scrollbar/handlers/touch.d.ts +4 -0
- package/lib/scrollbar/helper/class-names.d.ts +21 -0
- package/lib/scrollbar/helper/css.d.ts +3 -0
- package/lib/scrollbar/helper/dom.d.ts +4 -0
- package/lib/scrollbar/helper/event-manager.d.ts +20 -0
- package/lib/scrollbar/helper/util.d.ts +11 -0
- package/lib/scrollbar/index.d.ts +133 -13
- package/lib/scrollbar/index.js +1332 -18434
- package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
- package/lib/scrollbar/update-geometry.d.ts +8 -0
- package/lib/search-select/index.d.ts +100 -78
- package/lib/search-select/index.js +344 -213
- package/lib/search-select/input.d.ts +17 -6
- package/lib/search-select/menu.d.ts +13 -1
- package/lib/search-select/search-select.css +163 -35
- package/lib/search-select/search-select.d.ts +33 -43
- package/lib/search-select/search-select.less +2 -2
- package/lib/search-select/search-select.variable.css +425 -36
- package/lib/search-select/selected.d.ts +35 -10
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +251 -91
- package/lib/select/index.js +313 -200
- package/lib/select/option.d.ts +5 -6
- package/lib/select/select.css +175 -43
- package/lib/select/select.d.ts +104 -34
- package/lib/select/select.less +7 -4
- package/lib/select/select.variable.css +437 -44
- package/lib/select/selectTagInput.d.ts +7 -6
- package/lib/select/type.d.ts +10 -11
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +2 -1
- package/lib/shared/index.js +111 -47
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +53 -52
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +52 -18
- package/lib/sideslider/index.js +12 -11
- package/lib/sideslider/sideslider.css +138 -9
- package/lib/sideslider/sideslider.d.ts +24 -8
- package/lib/sideslider/sideslider.less +7 -8
- package/lib/sideslider/sideslider.variable.css +269 -9
- package/lib/slider/index.js +21 -23
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +262 -1
- package/lib/steps/index.d.ts +14 -29
- package/lib/steps/index.js +3 -4
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.d.ts +8 -18
- package/lib/steps/steps.variable.css +262 -1
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +262 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +262 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +262 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +262 -1
- package/lib/{scrollbar/scrollbar.variable.css → styles/themes/themes.css} +2 -76
- package/lib/styles/themes/themes.less +299 -129
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +262 -1
- package/lib/switcher/index.d.ts +11 -11
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.d.ts +9 -9
- package/lib/switcher/switcher.variable.css +409 -18
- package/lib/tab/index.d.ts +49 -119
- package/lib/tab/index.js +60 -49
- package/lib/tab/props.d.ts +27 -52
- package/lib/tab/tab-nav.d.ts +26 -66
- package/lib/tab/tab-panel.d.ts +27 -5
- package/lib/tab/tab.css +211 -17
- package/lib/tab/tab.d.ts +10 -54
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +326 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-cell.d.ts +22 -0
- package/lib/table/components/table-column.d.ts +23 -126
- package/lib/table/const.d.ts +23 -10
- package/lib/table/events.d.ts +16 -112
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +69 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +16 -0
- package/lib/table/hooks/use-layout.d.ts +25 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +21 -0
- package/lib/table/hooks/use-rows.d.ts +30 -0
- package/lib/table/hooks/use-settings.d.ts +136 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +112 -634
- package/lib/table/index.js +4090 -3559
- package/lib/table/plugins/head-filter.css +135 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.less +4 -0
- package/lib/table/plugins/head-filter.variable.css +267 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +262 -1
- package/lib/table/plugins/settings.css +131 -0
- package/lib/table/plugins/settings.less +1 -0
- package/lib/table/plugins/settings.variable.css +263 -1
- package/lib/table/props.d.ts +125 -62
- package/lib/table/table.css +753 -431
- package/lib/table/table.d.ts +51 -185
- package/lib/table/table.less +244 -112
- package/lib/table/table.variable.css +1058 -475
- package/lib/table/utils.d.ts +49 -21
- package/lib/table-column/index.d.ts +30 -289
- package/lib/table-column/index.js +17385 -46
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -3
- package/lib/tag/tag.css +136 -6
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +263 -2
- package/lib/tag-input/common.d.ts +2 -2
- package/lib/tag-input/index.d.ts +77 -19
- package/lib/tag-input/index.js +78 -54
- package/lib/tag-input/tag-input.css +157 -27
- package/lib/tag-input/tag-input.d.ts +39 -23
- package/lib/tag-input/tag-input.less +9 -9
- package/lib/tag-input/tag-input.variable.css +271 -10
- package/lib/tag-input/tag-props.d.ts +17 -4
- package/lib/time-picker/index.d.ts +10 -21
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +262 -1
- package/lib/timeline/index.js +2 -2
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +262 -1
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +262 -1
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +41 -27
- package/lib/tree/index.js +102 -55
- package/lib/tree/props.d.ts +18 -11
- package/lib/tree/tree.css +242 -78
- package/lib/tree/tree.d.ts +17 -17
- package/lib/tree/tree.variable.css +504 -79
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +10 -9
- package/lib/tree/use-node-async.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +42 -34
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +8 -5
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +52 -6
- package/lib/upload/index.js +134 -55
- package/lib/upload/props.d.ts +11 -2
- package/lib/upload/upload-list.d.ts +11 -1
- package/lib/upload/upload-trigger.d.ts +11 -1
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.d.ts +24 -3
- package/lib/upload/upload.type.d.ts +12 -6
- package/lib/upload/upload.variable.css +419 -28
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +12 -46
- package/lib/virtual-render/index.js +17468 -148
- package/lib/virtual-render/props.d.ts +2 -9
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +4 -17
- package/lib/virtual-render/v-virtual-render.d.ts +7 -1
- package/lib/virtual-render/virtual-render.css +225 -69
- package/lib/virtual-render/virtual-render.d.ts +6 -22
- package/lib/virtual-render/virtual-render.less +2 -11
- package/lib/virtual-render/virtual-render.variable.css +487 -70
- package/lib/volar.components.d.ts +2 -0
- package/package.json +17 -55
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -75
- package/lib/scrollbar/scrollbar.less +0 -94
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -275
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
package/lib/date-picker/index.js
CHANGED
@@ -173,7 +173,7 @@ function _toConsumableArray(arr) {
|
|
173
173
|
;// CONCATENATED MODULE: external "vue"
|
174
174
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
175
175
|
var external_vue_y = x => () => x
|
176
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
176
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
177
177
|
;// CONCATENATED MODULE: external "../config-provider"
|
178
178
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
179
179
|
var config_provider_y = x => () => x
|
@@ -431,8 +431,8 @@ var pickerDropdownProps = {
|
|
431
431
|
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
432
432
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
433
433
|
"ref": "refContentRef",
|
434
|
-
"class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
|
435
434
|
"style": this.styles,
|
435
|
+
"class": [this.resolveClassName('date-picker-dropdown'), this.className, this.extPopoverCls],
|
436
436
|
"onClick": this.onClick
|
437
437
|
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : '']);
|
438
438
|
}
|
@@ -448,46 +448,46 @@ var pickerDropdownProps = {
|
|
448
448
|
*/
|
449
449
|
var dateIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
450
450
|
"class": "picker-icon",
|
451
|
+
"viewBox": "0 0 1024 1024",
|
451
452
|
"x": "0px",
|
452
|
-
"y": "0px"
|
453
|
-
"viewBox": "0 0 1024 1024"
|
453
|
+
"y": "0px"
|
454
454
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
455
455
|
"id": "date"
|
456
456
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
457
|
-
"
|
458
|
-
"
|
457
|
+
"d": "M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z",
|
458
|
+
"fill": "#c4c6cc"
|
459
459
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
460
|
-
"x": "416",
|
461
|
-
"y": "128",
|
462
|
-
"fill": "#c4c6cc",
|
463
460
|
"width": "192",
|
464
|
-
"height": "64"
|
465
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
466
|
-
"x": "288",
|
467
|
-
"y": "96",
|
461
|
+
"height": "64",
|
468
462
|
"fill": "#c4c6cc",
|
469
|
-
"
|
470
|
-
"
|
463
|
+
"x": "416",
|
464
|
+
"y": "128"
|
471
465
|
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
472
|
-
"
|
473
|
-
"
|
466
|
+
"width": "64",
|
467
|
+
"height": "128",
|
474
468
|
"fill": "#c4c6cc",
|
469
|
+
"x": "288",
|
470
|
+
"y": "96"
|
471
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("rect", {
|
475
472
|
"width": "64",
|
476
|
-
"height": "128"
|
473
|
+
"height": "128",
|
474
|
+
"fill": "#c4c6cc",
|
475
|
+
"x": "672",
|
476
|
+
"y": "96"
|
477
477
|
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
478
478
|
"fill": "#c4c6cc",
|
479
479
|
"points": "403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"
|
480
480
|
}, null)])])]);
|
481
481
|
var timeIcon = (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("svg", {
|
482
482
|
"class": "picker-icon",
|
483
|
+
"viewBox": "0 0 1024 1024",
|
483
484
|
"x": "0px",
|
484
|
-
"y": "0px"
|
485
|
-
"viewBox": "0 0 1024 1024"
|
485
|
+
"y": "0px"
|
486
486
|
}, [(0,external_vue_namespaceObject.createVNode)("g", {
|
487
487
|
"id": "time"
|
488
488
|
}, [(0,external_vue_namespaceObject.createVNode)("path", {
|
489
|
-
"
|
490
|
-
"
|
489
|
+
"d": "M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z",
|
490
|
+
"fill": "#c4c6cc"
|
491
491
|
}, null), (0,external_vue_namespaceObject.createVNode)("polygon", {
|
492
492
|
"fill": "#c4c6cc",
|
493
493
|
"points": "512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"
|
@@ -603,17 +603,17 @@ var confirmProps = {
|
|
603
603
|
_this$$slots$confirm2,
|
604
604
|
_this$$slots;
|
605
605
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
606
|
-
"class": this.resolveClassName('picker-confirm'),
|
607
606
|
"ref": "elRef",
|
607
|
+
"class": this.resolveClassName('picker-confirm'),
|
608
608
|
"onKeydown": this.handleTab
|
609
609
|
}, [this.showTime ? // <a href="javascript: void(0);" class="bk-picker-confirm-time" disabled onClick={this.handleToggleTime}>
|
610
610
|
// {this.labels.time}
|
611
611
|
// </a>
|
612
612
|
(0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
613
|
-
"text": true,
|
614
|
-
"theme": "primary",
|
615
613
|
"class": this.resolveClassName('picker-confirm-time'),
|
616
614
|
"disabled": this.timeDisabled,
|
615
|
+
"theme": "primary",
|
616
|
+
"text": true,
|
617
617
|
"onClick": this.handleToggleTime
|
618
618
|
}, {
|
619
619
|
"default": function _default() {
|
@@ -625,12 +625,13 @@ var confirmProps = {
|
|
625
625
|
"href": "javascript: void(0);",
|
626
626
|
"onClick": this.handleClear,
|
627
627
|
"onKeydown": this.handleClear
|
628
|
-
}, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", {
|
629
|
-
"href": "javascript: void(0);",
|
628
|
+
}, [this.labels.clear]) : '', (0,external_vue_namespaceObject.createVNode)("a", (0,external_vue_namespaceObject.mergeProps)({
|
630
629
|
"class": "confirm",
|
631
|
-
"
|
632
|
-
"
|
633
|
-
},
|
630
|
+
"href": "javascript: void(0);",
|
631
|
+
"onClick": this.handleSuccess
|
632
|
+
}, {
|
633
|
+
onKeydown_enter: this.handleSuccess
|
634
|
+
}), [this.labels.ok])])]);
|
634
635
|
}
|
635
636
|
}));
|
636
637
|
;// CONCATENATED MODULE: external "js-calendar"
|
@@ -667,7 +668,6 @@ const external_date_fns_namespaceObject = external_date_fns_x({ ["format"]: () =
|
|
667
668
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
668
669
|
* IN THE SOFTWARE.
|
669
670
|
*/
|
670
|
-
/* eslint-disable no-param-reassign, no-multi-assign */
|
671
671
|
/**
|
672
672
|
* @file fecha
|
673
673
|
* https://github.com/taylorhakes/fecha
|
@@ -677,7 +677,6 @@ var token = /d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^
|
|
677
677
|
var twoDigits = /\d\d?/;
|
678
678
|
var threeDigits = /\d{3}/;
|
679
679
|
var fourDigits = /\d{4}/;
|
680
|
-
// eslint-disable-next-line max-len
|
681
680
|
var word = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
|
682
681
|
var noop = function noop() {};
|
683
682
|
function shorten(arr, sLen) {
|
@@ -2040,10 +2039,6 @@ var datePickerProps = {
|
|
2040
2039
|
return true;
|
2041
2040
|
}
|
2042
2041
|
},
|
2043
|
-
transfer: {
|
2044
|
-
type: Boolean,
|
2045
|
-
"default": false
|
2046
|
-
},
|
2047
2042
|
appendToBody: {
|
2048
2043
|
type: Boolean,
|
2049
2044
|
"default": false
|
@@ -2544,18 +2539,18 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2544
2539
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2545
2540
|
"class": this.resolveClassName('time-picker-cells-title-wrapper')
|
2546
2541
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2547
|
-
"
|
2548
|
-
"
|
2542
|
+
"style": this.styles,
|
2543
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 0 ? 'active' : '']
|
2549
2544
|
}, [this.t.hour]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2550
|
-
"
|
2551
|
-
"
|
2545
|
+
"style": this.styles,
|
2546
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 1 ? 'active' : '']
|
2552
2547
|
}, [this.t.min]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2553
|
-
"
|
2554
|
-
"
|
2548
|
+
"style": this.styles,
|
2549
|
+
"class": [this.resolveClassName('time-picker-cells-title'), this.focusedColumn === 2 ? 'active' : '']
|
2555
2550
|
}, [this.t.sec]), [[external_vue_namespaceObject.vShow, this.showSeconds]])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2556
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2557
2551
|
"ref": "hoursRef",
|
2558
|
-
"style": this.styles
|
2552
|
+
"style": this.styles,
|
2553
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2559
2554
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2560
2555
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2561
2556
|
}, [this.hoursList.map(function (item) {
|
@@ -2566,9 +2561,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2566
2561
|
}
|
2567
2562
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2568
2563
|
})])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2569
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2570
2564
|
"ref": "minutesRef",
|
2571
|
-
"style": this.styles
|
2565
|
+
"style": this.styles,
|
2566
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2572
2567
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2573
2568
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2574
2569
|
}, [this.minutesList.map(function (item) {
|
@@ -2579,9 +2574,9 @@ var timeParts = ['hours', 'minutes', 'seconds'];
|
|
2579
2574
|
}
|
2580
2575
|
}, [_this2.padTime(item.text)]), [[external_vue_namespaceObject.vShow, !item.hide]]);
|
2581
2576
|
})])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2582
|
-
"class": this.resolveClassName('time-picker-cells-list'),
|
2583
2577
|
"ref": "secondsRef",
|
2584
|
-
"style": this.styles
|
2578
|
+
"style": this.styles,
|
2579
|
+
"class": this.resolveClassName('time-picker-cells-list')
|
2585
2580
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
2586
2581
|
"class": this.resolveClassName('time-picker-cells-ul')
|
2587
2582
|
}, [this.secondsList.map(function (item) {
|
@@ -2691,12 +2686,10 @@ var timeProps = {
|
|
2691
2686
|
// const parentProvide = injectStrict(timePickerKey);
|
2692
2687
|
var parentProvide = (0,external_vue_namespaceObject.inject)(timePickerKey);
|
2693
2688
|
var timeSpinnerRef = (0,external_vue_namespaceObject.ref)(null);
|
2689
|
+
var visibleDate = (0,external_vue_namespaceObject.ref)(src_fecha.format(parentProvide.panelDate, props.format));
|
2694
2690
|
var showSeconds = (0,external_vue_namespaceObject.computed)(function () {
|
2695
2691
|
return !(props.format || '').match(/mm$/);
|
2696
2692
|
});
|
2697
|
-
var visibleDate = (0,external_vue_namespaceObject.computed)(function () {
|
2698
|
-
return src_fecha.format(parentProvide.panelDate, props.format);
|
2699
|
-
});
|
2700
2693
|
var timeSlots = (0,external_vue_namespaceObject.computed)(function () {
|
2701
2694
|
if (!props.value[0]) {
|
2702
2695
|
return [];
|
@@ -2750,6 +2743,10 @@ var timeProps = {
|
|
2750
2743
|
var newVal = dates[0] || initTime();
|
2751
2744
|
newVal = new Date(newVal);
|
2752
2745
|
state.date = newVal;
|
2746
|
+
parentProvide.panelDate = newVal;
|
2747
|
+
visibleDate.value = src_fecha.format(parentProvide.panelDate, props.format);
|
2748
|
+
}, {
|
2749
|
+
immediate: true
|
2753
2750
|
});
|
2754
2751
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
2755
2752
|
if (parentProvide && parentProvide.parentName === 'DatePanel') {
|
@@ -2790,27 +2787,27 @@ var timeProps = {
|
|
2790
2787
|
e.preventDefault();
|
2791
2788
|
}
|
2792
2789
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2793
|
-
"class": this.resolveClassName('picker-panel-body'),
|
2794
2790
|
"style": {
|
2795
2791
|
width: "".concat(this.width, "px")
|
2796
|
-
}
|
2792
|
+
},
|
2793
|
+
"class": this.resolveClassName('picker-panel-body')
|
2797
2794
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2798
2795
|
"class": this.resolveClassName('time-picker-header')
|
2799
2796
|
}, [this.visibleDate]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
2800
2797
|
"class": this.resolveClassName('picker-panel-content')
|
2801
2798
|
}, [(0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
2802
2799
|
"ref": "timeSpinnerRef",
|
2803
|
-
"showSeconds": this.showSeconds,
|
2804
|
-
"steps": this.steps,
|
2805
|
-
"hours": this.timeSlots[0],
|
2806
|
-
"minutes": this.timeSlots[1],
|
2807
|
-
"seconds": this.timeSlots[2],
|
2808
2800
|
"disabledHours": this.disabledHMS.disabledHours,
|
2809
2801
|
"disabledMinutes": this.disabledHMS.disabledMinutes,
|
2810
2802
|
"disabledSeconds": this.disabledHMS.disabledSeconds,
|
2811
2803
|
"hideDisabledOptions": this.hideDisabledOptions,
|
2812
|
-
"
|
2813
|
-
"
|
2804
|
+
"hours": this.timeSlots[0],
|
2805
|
+
"minutes": this.timeSlots[1],
|
2806
|
+
"seconds": this.timeSlots[2],
|
2807
|
+
"showSeconds": this.showSeconds,
|
2808
|
+
"steps": this.steps,
|
2809
|
+
"onChange": this.handleChange,
|
2810
|
+
"onPick-click": this.handlePickClick
|
2814
2811
|
}, null)])])]);
|
2815
2812
|
}
|
2816
2813
|
}));
|
@@ -2844,6 +2841,7 @@ function date_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
2844
2841
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2845
2842
|
* IN THE SOFTWARE.
|
2846
2843
|
*/
|
2844
|
+
// import type { Placement } from '@popperjs/core';
|
2847
2845
|
|
2848
2846
|
|
2849
2847
|
|
@@ -3129,8 +3127,8 @@ var datePanelProps = {
|
|
3129
3127
|
}
|
3130
3128
|
}, [shortcut.text]);
|
3131
3129
|
})]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
3132
|
-
"
|
3133
|
-
"
|
3130
|
+
"style": "width: 261px;",
|
3131
|
+
"class": this.resolveClassName('picker-panel-body')
|
3134
3132
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
3135
3133
|
"class": this.resolveClassName('date-picker-header')
|
3136
3134
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -3193,29 +3191,29 @@ var datePanelProps = {
|
|
3193
3191
|
switch (_this2.pickerTable) {
|
3194
3192
|
case 'date-table':
|
3195
3193
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
3196
|
-
"tableDate": _this2.panelDate,
|
3197
3194
|
"disabledDate": _this2.disabledDate,
|
3198
|
-
"selectionMode": _this2.selectionMode,
|
3199
|
-
"modelValue": _this2.dates,
|
3200
3195
|
"focusedDate": _this2.focusedDate,
|
3196
|
+
"modelValue": _this2.dates,
|
3197
|
+
"selectionMode": _this2.selectionMode,
|
3198
|
+
"tableDate": _this2.panelDate,
|
3201
3199
|
"onPick": _this2.panelPickerHandlers
|
3202
3200
|
}, null);
|
3203
3201
|
case 'year-table':
|
3204
3202
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
3205
|
-
"tableDate": _this2.panelDate,
|
3206
3203
|
"disabledDate": _this2.disabledDate,
|
3207
|
-
"selectionMode": _this2.selectionMode,
|
3208
|
-
"modelValue": _this2.dates,
|
3209
3204
|
"focusedDate": _this2.focusedDate,
|
3205
|
+
"modelValue": _this2.dates,
|
3206
|
+
"selectionMode": _this2.selectionMode,
|
3207
|
+
"tableDate": _this2.panelDate,
|
3210
3208
|
"onPick": _this2.panelPickerHandlers
|
3211
3209
|
}, null);
|
3212
3210
|
case 'month-table':
|
3213
3211
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
3214
|
-
"tableDate": _this2.panelDate,
|
3215
3212
|
"disabledDate": _this2.disabledDate,
|
3216
|
-
"selectionMode": _this2.selectionMode,
|
3217
|
-
"modelValue": _this2.dates,
|
3218
3213
|
"focusedDate": _this2.focusedDate,
|
3214
|
+
"modelValue": _this2.dates,
|
3215
|
+
"selectionMode": _this2.selectionMode,
|
3216
|
+
"tableDate": _this2.panelDate,
|
3219
3217
|
"onPick": _this2.panelPickerHandlers
|
3220
3218
|
}, null);
|
3221
3219
|
default:
|
@@ -3223,23 +3221,23 @@ var datePanelProps = {
|
|
3223
3221
|
}
|
3224
3222
|
}() : (0,external_vue_namespaceObject.createVNode)(time, {
|
3225
3223
|
"ref": "timePickerRef",
|
3226
|
-
"
|
3224
|
+
"disabledDate": this.disabledDate,
|
3227
3225
|
"format": this.format,
|
3228
3226
|
"selectionMode": this.selectionMode,
|
3229
|
-
"
|
3227
|
+
"value": this.dates,
|
3230
3228
|
"onPick": this.handlePick,
|
3231
|
-
"onPick-click": this.handlePickClick,
|
3232
3229
|
"onPick-clear": this.handlePickClear,
|
3230
|
+
"onPick-click": this.handlePickClick,
|
3233
3231
|
"onPick-success": this.handlePickSuccess,
|
3234
3232
|
"onPick-toggle-time": this.handleToggleTime
|
3235
3233
|
}, null)]), this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
3236
3234
|
"clearable": this.clearable,
|
3235
|
+
"isTime": this.isTime,
|
3237
3236
|
"showTime": this.showTime,
|
3238
3237
|
"timeDisabled": this.timeDisabled,
|
3239
|
-
"isTime": this.isTime,
|
3240
|
-
"onPick-toggle-time": this.handleToggleTime,
|
3241
3238
|
"onPick-clear": this.handlePickClear,
|
3242
|
-
"onPick-success": this.handlePickSuccess
|
3239
|
+
"onPick-success": this.handlePickSuccess,
|
3240
|
+
"onPick-toggle-time": this.handleToggleTime
|
3243
3241
|
}, this.$slots) : '']), this.hasShortcuts ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3244
3242
|
"class": this.resolveClassName('picker-panel-sidebar')
|
3245
3243
|
}, [(_this$$slots$shortcut = (_this$$slots$shortcut2 = (_this$$slots = this.$slots).shortcuts) === null || _this$$slots$shortcut2 === void 0 ? void 0 : _this$$slots$shortcut2.call(_this$$slots)) !== null && _this$$slots$shortcut !== void 0 ? _this$$slots$shortcut : null]) : null]);
|
@@ -3462,48 +3460,48 @@ var timeRangeProps = {
|
|
3462
3460
|
e.preventDefault();
|
3463
3461
|
}
|
3464
3462
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3465
|
-
"class": this.resolveClassName('picker-panel-body'),
|
3466
3463
|
"style": {
|
3467
3464
|
width: "".concat(this.width * 2, "px")
|
3468
|
-
}
|
3465
|
+
},
|
3466
|
+
"class": this.resolveClassName('picker-panel-body')
|
3469
3467
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3470
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')],
|
3471
3468
|
"style": {
|
3472
3469
|
width: "".concat(this.width, "px")
|
3473
|
-
}
|
3470
|
+
},
|
3471
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
|
3474
3472
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3475
3473
|
"class": "".concat(this.resolveClassName('time-picker-header'))
|
3476
3474
|
}, [this.leftDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3477
3475
|
"ref": "timeSpinnerRef",
|
3478
|
-
"steps": this.steps,
|
3479
|
-
"showSeconds": this.showSeconds,
|
3480
|
-
"hours": this.value[0] && this.dateStart.getHours(),
|
3481
|
-
"minutes": this.value[0] && this.dateStart.getMinutes(),
|
3482
|
-
"seconds": this.value[0] && this.dateStart.getSeconds(),
|
3483
3476
|
"disabledHours": this.disabledHours,
|
3484
3477
|
"disabledMinutes": this.disabledMinutes,
|
3485
3478
|
"disabledSeconds": this.disabledSeconds,
|
3486
3479
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3480
|
+
"hours": this.value[0] && this.dateStart.getHours(),
|
3481
|
+
"minutes": this.value[0] && this.dateStart.getMinutes(),
|
3482
|
+
"seconds": this.value[0] && this.dateStart.getSeconds(),
|
3483
|
+
"showSeconds": this.showSeconds,
|
3484
|
+
"steps": this.steps,
|
3487
3485
|
"onChange": this.handleStartChange,
|
3488
3486
|
"onPick-click": this.handlePickClick
|
3489
3487
|
}, null)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3490
|
-
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')],
|
3491
3488
|
"style": {
|
3492
3489
|
width: "".concat(this.width, "px")
|
3493
|
-
}
|
3490
|
+
},
|
3491
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
|
3494
3492
|
}, [this.showDate ? (0,external_vue_namespaceObject.createVNode)("div", {
|
3495
3493
|
"class": this.resolveClassName('time-picker-header')
|
3496
3494
|
}, [this.rightDatePanelLabel]) : '', (0,external_vue_namespaceObject.createVNode)(time_spinner, {
|
3497
3495
|
"ref": "timeSpinnerEndRef",
|
3498
|
-
"steps": this.steps,
|
3499
|
-
"showSeconds": this.showSeconds,
|
3500
|
-
"hours": this.value[1] && this.dateEnd.getHours(),
|
3501
|
-
"minutes": this.value[1] && this.dateEnd.getMinutes(),
|
3502
|
-
"seconds": this.value[1] && this.dateEnd.getSeconds(),
|
3503
3496
|
"disabledHours": this.disabledHours,
|
3504
3497
|
"disabledMinutes": this.disabledMinutes,
|
3505
3498
|
"disabledSeconds": this.disabledSeconds,
|
3506
3499
|
"hideDisabledOptions": this.hideDisabledOptions,
|
3500
|
+
"hours": this.value[1] && this.dateEnd.getHours(),
|
3501
|
+
"minutes": this.value[1] && this.dateEnd.getMinutes(),
|
3502
|
+
"seconds": this.value[1] && this.dateEnd.getSeconds(),
|
3503
|
+
"showSeconds": this.showSeconds,
|
3504
|
+
"steps": this.steps,
|
3507
3505
|
"onChange": this.handleEndChange,
|
3508
3506
|
"onPick-click": this.handlePickClick
|
3509
3507
|
}, null)])])]);
|
@@ -3515,6 +3513,7 @@ var timeRangeProps = {
|
|
3515
3513
|
|
3516
3514
|
function date_range_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3517
3515
|
function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? date_range_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : date_range_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
3516
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3518
3517
|
/*
|
3519
3518
|
* Tencent is pleased to support the open source community by making
|
3520
3519
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -3541,10 +3540,9 @@ function date_range_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
3541
3540
|
* IN THE SOFTWARE.
|
3542
3541
|
*/
|
3543
3542
|
// import type { Placement } from '@popperjs/core';
|
3544
|
-
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3545
|
-
|
3546
3543
|
|
3547
3544
|
|
3545
|
+
// import { bkZIndexManager, BKPopover, IBKPopover } from '@bkui-vue/shared';
|
3548
3546
|
|
3549
3547
|
|
3550
3548
|
|
@@ -3713,13 +3711,23 @@ var dateRangePanelProps = {
|
|
3713
3711
|
}
|
3714
3712
|
if (props.splitPanels) {
|
3715
3713
|
var otherPanel = panel === 'left' ? 'right' : 'left';
|
3716
|
-
if (panel === 'left' &&
|
3717
|
-
|
3718
|
-
|
3714
|
+
if (panel === 'left' && state.leftPanelDate >= state.rightPanelDate) {
|
3715
|
+
if (state.currentView === 'year') {
|
3716
|
+
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
3717
|
+
changePanelDate(otherPanel, type, 10);
|
3718
|
+
}
|
3719
|
+
} else {
|
3720
|
+
changePanelDate(otherPanel, type, 1);
|
3721
|
+
}
|
3719
3722
|
}
|
3720
|
-
if (panel === 'right' &&
|
3721
|
-
|
3722
|
-
|
3723
|
+
if (panel === 'right' && state.rightPanelDate <= state.leftPanelDate) {
|
3724
|
+
if (state.currentView === 'year') {
|
3725
|
+
if (Math.floor(state.leftPanelDate.getFullYear() / 10) * 10 === Math.floor(state.rightPanelDate.getFullYear() / 10) * 10) {
|
3726
|
+
changePanelDate(otherPanel, type, -10);
|
3727
|
+
}
|
3728
|
+
} else {
|
3729
|
+
changePanelDate(otherPanel, type, -1);
|
3730
|
+
}
|
3723
3731
|
}
|
3724
3732
|
} else {
|
3725
3733
|
var _otherPanel = panel === 'left' ? 'right' : 'left';
|
@@ -4075,8 +4083,8 @@ var dateRangePanelProps = {
|
|
4075
4083
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
4076
4084
|
"class": [this.resolveClassName('picker-panel-body'), this.showTime ? this.resolveClassName('picker-panel-body-time') : this.resolveClassName('picker-panel-body-date')]
|
4077
4085
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4078
|
-
"
|
4079
|
-
"
|
4086
|
+
"style": "width: 261px;",
|
4087
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-left')]
|
4080
4088
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4081
4089
|
"class": this.resolveClassName('date-picker-header')
|
4082
4090
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -4137,34 +4145,34 @@ var dateRangePanelProps = {
|
|
4137
4145
|
switch (_this.leftPickerTable) {
|
4138
4146
|
case 'date-table':
|
4139
4147
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4140
|
-
"selectionMode": "range",
|
4141
|
-
"tableDate": _this.leftPanelDate,
|
4142
4148
|
"disabledDate": _this.disabledDate,
|
4143
|
-
"rangeState": _this.rangeState,
|
4144
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4145
4149
|
"focusedDate": _this.focusedDate,
|
4150
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4151
|
+
"rangeState": _this.rangeState,
|
4152
|
+
"selectionMode": "range",
|
4153
|
+
"tableDate": _this.leftPanelDate,
|
4146
4154
|
"onChangeRange": _this.handleChangeRange,
|
4147
4155
|
"onPick": _this.panelPickerHandlers.left
|
4148
4156
|
}, null);
|
4149
4157
|
case 'month-table':
|
4150
4158
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4151
|
-
"selectionMode": "range",
|
4152
|
-
"tableDate": _this.leftPanelDate,
|
4153
4159
|
"disabledDate": _this.disabledDate,
|
4154
|
-
"rangeState": _this.rangeState,
|
4155
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4156
4160
|
"focusedDate": _this.focusedDate,
|
4161
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4162
|
+
"rangeState": _this.rangeState,
|
4163
|
+
"selectionMode": "range",
|
4164
|
+
"tableDate": _this.leftPanelDate,
|
4157
4165
|
"onChangeRange": _this.handleChangeRange,
|
4158
4166
|
"onPick": _this.panelPickerHandlers.left
|
4159
4167
|
}, null);
|
4160
4168
|
case 'year-table':
|
4161
4169
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4162
|
-
"selectionMode": "range",
|
4163
|
-
"tableDate": _this.leftPanelDate,
|
4164
4170
|
"disabledDate": _this.disabledDate,
|
4165
|
-
"rangeState": _this.rangeState,
|
4166
|
-
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4167
4171
|
"focusedDate": _this.focusedDate,
|
4172
|
+
"modelValue": _this.preSelecting.left ? [_this.dates[0]] : _this.dates,
|
4173
|
+
"rangeState": _this.rangeState,
|
4174
|
+
"selectionMode": "range",
|
4175
|
+
"tableDate": _this.leftPanelDate,
|
4168
4176
|
"onChangeRange": _this.handleChangeRange,
|
4169
4177
|
"onPick": _this.panelPickerHandlers.left
|
4170
4178
|
}, null);
|
@@ -4172,8 +4180,8 @@ var dateRangePanelProps = {
|
|
4172
4180
|
return null;
|
4173
4181
|
}
|
4174
4182
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4175
|
-
"
|
4176
|
-
"
|
4183
|
+
"style": "width: 261px;",
|
4184
|
+
"class": [this.resolveClassName('picker-panel-content'), this.resolveClassName('picker-panel-content-right')]
|
4177
4185
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
4178
4186
|
"class": this.resolveClassName('date-picker-header')
|
4179
4187
|
}, [this.splitPanels || this.rightPickerTable !== 'date-table' && this.rightPickerTable !== 'month-table' && this.rightPickerTable !== 'year-table' ? (0,external_vue_namespaceObject.createVNode)("span", {
|
@@ -4246,34 +4254,34 @@ var dateRangePanelProps = {
|
|
4246
4254
|
switch (_this.rightPickerTable) {
|
4247
4255
|
case 'date-table':
|
4248
4256
|
return (0,external_vue_namespaceObject.createVNode)(date_table, {
|
4249
|
-
"selectionMode": "range",
|
4250
|
-
"tableDate": _this.rightPanelDate,
|
4251
|
-
"disabledDate": _this.disabledDate,
|
4252
|
-
"rangeState": _this.rangeState,
|
4253
4257
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4258
|
+
"disabledDate": _this.disabledDate,
|
4254
4259
|
"focusedDate": _this.focusedDate,
|
4260
|
+
"rangeState": _this.rangeState,
|
4261
|
+
"selectionMode": "range",
|
4262
|
+
"tableDate": _this.rightPanelDate,
|
4255
4263
|
"onChangeRange": _this.handleChangeRange,
|
4256
4264
|
"onPick": _this.panelPickerHandlers.right
|
4257
4265
|
}, null);
|
4258
4266
|
case 'month-table':
|
4259
4267
|
return (0,external_vue_namespaceObject.createVNode)(month_table, {
|
4260
|
-
"selectionMode": "range",
|
4261
|
-
"tableDate": _this.rightPanelDate,
|
4262
|
-
"disabledDate": _this.disabledDate,
|
4263
|
-
"rangeState": _this.rangeState,
|
4264
4268
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4269
|
+
"disabledDate": _this.disabledDate,
|
4265
4270
|
"focusedDate": _this.focusedDate,
|
4271
|
+
"rangeState": _this.rangeState,
|
4272
|
+
"selectionMode": "range",
|
4273
|
+
"tableDate": _this.rightPanelDate,
|
4266
4274
|
"onChangeRange": _this.handleChangeRange,
|
4267
4275
|
"onPick": _this.panelPickerHandlers.right
|
4268
4276
|
}, null);
|
4269
4277
|
case 'year-table':
|
4270
4278
|
return (0,external_vue_namespaceObject.createVNode)(year_table, {
|
4271
|
-
"selectionMode": "range",
|
4272
|
-
"tableDate": _this.rightPanelDate,
|
4273
|
-
"disabledDate": _this.disabledDate,
|
4274
|
-
"rangeState": _this.rangeState,
|
4275
4279
|
"modelValue": _this.preSelecting.right ? [_this.dates[_this.dates.length - 1]] : _this.dates,
|
4280
|
+
"disabledDate": _this.disabledDate,
|
4276
4281
|
"focusedDate": _this.focusedDate,
|
4282
|
+
"rangeState": _this.rangeState,
|
4283
|
+
"selectionMode": "range",
|
4284
|
+
"tableDate": _this.rightPanelDate,
|
4277
4285
|
"onChangeRange": _this.handleChangeRange,
|
4278
4286
|
"onPick": _this.panelPickerHandlers.right
|
4279
4287
|
}, null);
|
@@ -4282,23 +4290,24 @@ var dateRangePanelProps = {
|
|
4282
4290
|
}
|
4283
4291
|
}() : '']), [[external_vue_namespaceObject.vShow, !this.isTime]]), this.isTime ? (0,external_vue_namespaceObject.createVNode)(time_range, {
|
4284
4292
|
"ref": "timePickerRef",
|
4293
|
+
"allowCrossDay": !!this.timePickerOptions.allowCrossDay,
|
4294
|
+
"disabledDate": this.disabledDate,
|
4295
|
+
"format": this.format,
|
4285
4296
|
"selectionMode": this.selectionMode,
|
4286
4297
|
"value": this.dates,
|
4287
|
-
"format": this.format,
|
4288
|
-
"disabledDate": this.disabledDate,
|
4289
4298
|
"onPick": this.handleRangePick,
|
4290
|
-
"onPick-click": this.handlePickClick,
|
4291
4299
|
"onPick-clear": this.handlePickClear,
|
4300
|
+
"onPick-click": this.handlePickClick,
|
4292
4301
|
"onPick-success": this.handlePickSuccess,
|
4293
4302
|
"onPick-toggle-time": this.handleToggleTime
|
4294
4303
|
}, null) : '', this.confirm ? (0,external_vue_namespaceObject.createVNode)(base_confirm, {
|
4295
4304
|
"clearable": this.clearable,
|
4305
|
+
"isTime": this.isTime,
|
4296
4306
|
"showTime": this.showTime,
|
4297
4307
|
"timeDisabled": this.timeDisabled,
|
4298
|
-
"isTime": this.isTime,
|
4299
|
-
"onPick-toggle-time": this.handleToggleTime,
|
4300
4308
|
"onPick-clear": this.handlePickClear,
|
4301
|
-
"onPick-success": this.handlePickSuccess
|
4309
|
+
"onPick-success": this.handlePickSuccess,
|
4310
|
+
"onPick-toggle-time": this.handleToggleTime
|
4302
4311
|
}, this.$slots) : '']), shortcuts]);
|
4303
4312
|
}
|
4304
4313
|
}));
|
@@ -4342,6 +4351,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4342
4351
|
|
4343
4352
|
|
4344
4353
|
|
4354
|
+
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
4345
4355
|
|
4346
4356
|
|
4347
4357
|
|
@@ -4352,7 +4362,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4352
4362
|
clickoutside: directives_namespaceObject.clickoutside
|
4353
4363
|
},
|
4354
4364
|
props: datePickerProps,
|
4355
|
-
emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'pick-first'],
|
4365
|
+
emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'pick-first', 'blur', 'focus'],
|
4356
4366
|
// slots: ['header'],
|
4357
4367
|
slots: Object,
|
4358
4368
|
setup: function setup(props, _ref) {
|
@@ -4505,9 +4515,16 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4505
4515
|
return props.options;
|
4506
4516
|
});
|
4507
4517
|
// 限制 allow-cross-day 属性只在 time-picker 组件 type 为 timerange 时生效
|
4508
|
-
|
4509
|
-
|
4510
|
-
|
4518
|
+
// const allowCrossDayProp = computed(() => (panel.value === 'RangeTimePickerPanel' ? props.allowCrossDay : false));
|
4519
|
+
// const allowCrossDayProp = computed(() => {
|
4520
|
+
// if (panel.value === 'RangeTimePickerPanel') {
|
4521
|
+
// return props.allowCrossDay;
|
4522
|
+
// }
|
4523
|
+
// if (panel.value === 'DateRangePanel') {
|
4524
|
+
// return (props?.timePickerOptions as any)?.allowCrossDay;
|
4525
|
+
// }
|
4526
|
+
// return false;
|
4527
|
+
// });
|
4511
4528
|
var inputRef = (0,external_vue_namespaceObject.ref)(null);
|
4512
4529
|
var inputFocus = function inputFocus() {
|
4513
4530
|
var _inputRef$value;
|
@@ -4602,7 +4619,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4602
4619
|
if (state.visible) {
|
4603
4620
|
var _pickerPanelRef$value;
|
4604
4621
|
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
4605
|
-
if (e && pickerPanel && pickerPanel.contains(e.target)) {
|
4622
|
+
if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
|
4606
4623
|
return;
|
4607
4624
|
}
|
4608
4625
|
state.visible = false;
|
@@ -4625,14 +4642,18 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4625
4642
|
if (visualValue !== null && visualValue !== void 0 && visualValue.value) {
|
4626
4643
|
state.showClose = true;
|
4627
4644
|
}
|
4628
|
-
state.internalValue = state.tmpValue;
|
4645
|
+
// state.internalValue = state.tmpValue;
|
4646
|
+
// console.error('enterenterenterenterenterenterenterenter', e, state.internalValue);
|
4629
4647
|
};
|
4630
4648
|
var handleInputMouseleave = function handleInputMouseleave(_e) {
|
4631
4649
|
// if (e.toElement?.classList.contains('clear-action')) {
|
4632
4650
|
// return;
|
4633
4651
|
// }
|
4634
4652
|
state.showClose = false;
|
4635
|
-
state.internalValue = state.tmpValue;
|
4653
|
+
// state.internalValue = state.tmpValue;
|
4654
|
+
if (state.internalValue !== state.tmpValue) {
|
4655
|
+
handleInputChange(_e);
|
4656
|
+
}
|
4636
4657
|
};
|
4637
4658
|
var emitChange = function emitChange(type) {
|
4638
4659
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
@@ -4654,7 +4675,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4654
4675
|
var newValue = e.target.value;
|
4655
4676
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
4656
4677
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
4657
|
-
var isDisabled = (_props$disabledDate = props.disabledDate) === null || _props$disabledDate === void 0 ? void 0 : _props$disabledDate.call(props, valueToTest);
|
4678
|
+
var isDisabled = !valueToTest ? false : (_props$disabledDate = props.disabledDate) === null || _props$disabledDate === void 0 ? void 0 : _props$disabledDate.call(props, valueToTest);
|
4658
4679
|
var isValidDate = newDate.reduce(function (valid, date) {
|
4659
4680
|
return valid && date instanceof Date;
|
4660
4681
|
}, true);
|
@@ -4672,7 +4693,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4672
4693
|
var newValue = e.target.value;
|
4673
4694
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
4674
4695
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
4675
|
-
var isDisabled = (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
|
4696
|
+
var isDisabled = !valueToTest ? false : (_props$disabledDate2 = props.disabledDate) === null || _props$disabledDate2 === void 0 ? void 0 : _props$disabledDate2.call(props, valueToTest);
|
4676
4697
|
var isValidDate = newDate.reduce(function (valid, date) {
|
4677
4698
|
return valid && date instanceof Date;
|
4678
4699
|
}, true);
|
@@ -4686,6 +4707,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4686
4707
|
}
|
4687
4708
|
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
|
4688
4709
|
state.isFocused = true;
|
4710
|
+
emit('focus');
|
4689
4711
|
if (e && e.type === 'focus') {
|
4690
4712
|
return;
|
4691
4713
|
}
|
@@ -4700,6 +4722,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4700
4722
|
};
|
4701
4723
|
var handleBlur = function handleBlur(e) {
|
4702
4724
|
var _pickerPanelRef$value3, _formItem$validate2;
|
4725
|
+
emit('blur');
|
4703
4726
|
if (state.internalFocus) {
|
4704
4727
|
state.internalFocus = false;
|
4705
4728
|
return;
|
@@ -4868,7 +4891,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4868
4891
|
fontSizeCls: fontSizeCls,
|
4869
4892
|
longWidthCls: longWidthCls,
|
4870
4893
|
localReadonly: localReadonly,
|
4871
|
-
|
4894
|
+
// allowCrossDayProp,
|
4872
4895
|
ownPickerProps: ownPickerProps,
|
4873
4896
|
teleportTo: teleportTo,
|
4874
4897
|
pickerDropdownRef: pickerDropdownRef,
|
@@ -4907,23 +4930,23 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4907
4930
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
4908
4931
|
"onClick": this.handleIconClick
|
4909
4932
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
4910
|
-
"type": "text",
|
4911
|
-
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4912
|
-
"ref": "inputRef",
|
4913
4933
|
"key": this.forceInputRerender,
|
4914
|
-
"
|
4934
|
+
"ref": "inputRef",
|
4935
|
+
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
4915
4936
|
"disabled": this.disabled,
|
4916
4937
|
"placeholder": this.placeholder,
|
4938
|
+
"readonly": this.localReadonly,
|
4939
|
+
"type": "text",
|
4917
4940
|
"value": this.displayValue,
|
4918
|
-
"onFocus": this.handleFocus,
|
4919
|
-
"onClick": this.handleFocus,
|
4920
4941
|
"onBlur": this.handleBlur,
|
4921
|
-
"onKeydown": this.handleKeydown,
|
4922
4942
|
"onChange": this.handleInputChange,
|
4923
|
-
"
|
4943
|
+
"onClick": this.handleFocus,
|
4944
|
+
"onFocus": this.handleFocus,
|
4945
|
+
"onInput": this.handleInputInput,
|
4946
|
+
"onKeydown": this.handleKeydown
|
4924
4947
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
4925
|
-
"
|
4926
|
-
"
|
4948
|
+
"class": "clear-action",
|
4949
|
+
"onClick": this.handleClear
|
4927
4950
|
}, null) : '']);
|
4928
4951
|
// const shortcutsSlot = this.hasShortcuts ? { shortcuts: () => this.$slots.shortcuts?.() || null } : {};
|
4929
4952
|
var shortcutsSlot = this.hasShortcuts ? {
|
@@ -4946,8 +4969,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4946
4969
|
"onMouseenter": this.handleInputMouseenter,
|
4947
4970
|
"onMouseleave": this.handleInputMouseleave
|
4948
4971
|
}, [(_this$$slots$trigger = (_this$$slots$trigger2 = (_this$$slots2 = this.$slots).trigger) === null || _this$$slots$trigger2 === void 0 ? void 0 : _this$$slots$trigger2.call(_this$$slots2, this.displayValue)) !== null && _this$$slots$trigger !== void 0 ? _this$$slots$trigger : defaultTrigger]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
4949
|
-
"
|
4950
|
-
"
|
4972
|
+
"disabled": !this.appendToBody,
|
4973
|
+
"to": this.teleportTo
|
4951
4974
|
}, {
|
4952
4975
|
"default": function _default() {
|
4953
4976
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -4955,48 +4978,48 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
4955
4978
|
}, {
|
4956
4979
|
"default": function _default() {
|
4957
4980
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
4958
|
-
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
4959
4981
|
"ref": "pickerDropdownRef",
|
4960
|
-
"
|
4961
|
-
"
|
4982
|
+
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
4983
|
+
"appendToBody": _this.appendToBody,
|
4962
4984
|
"extPopoverCls": _this.extPopoverCls,
|
4963
|
-
"
|
4985
|
+
"placement": _this.placement,
|
4986
|
+
"triggerRef": _this.triggerRef
|
4964
4987
|
}, {
|
4965
4988
|
"default": function _default() {
|
4966
4989
|
return [_this.hasHeader ? (0,external_vue_namespaceObject.createVNode)("div", {
|
4967
4990
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
4968
4991
|
}, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots3 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots3)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : null]) : null, _this.panel === 'DateRangePanel' ? (0,external_vue_namespaceObject.createVNode)(date_range, {
|
4969
4992
|
"ref": "pickerPanelRef",
|
4970
|
-
"type": _this.type,
|
4971
|
-
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4972
4993
|
"confirm": _this.isConfirm,
|
4973
|
-
"
|
4974
|
-
"
|
4994
|
+
"disabledDate": _this.disabledDate,
|
4995
|
+
"focusedDate": _this.focusedDate,
|
4975
4996
|
"modelValue": _this.internalValue,
|
4976
4997
|
"selectionMode": _this.selectionMode,
|
4998
|
+
"shortcutClose": _this.shortcutClose,
|
4999
|
+
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
5000
|
+
"shortcuts": _this.shortcuts,
|
5001
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4977
5002
|
"startDate": _this.startDate,
|
4978
|
-
"disabledDate": _this.disabledDate,
|
4979
|
-
"focusedDate": _this.focusedDate,
|
4980
5003
|
"timePickerOptions": _this.timePickerOptions,
|
5004
|
+
"type": _this.type,
|
4981
5005
|
"onPick": _this.onPick,
|
4982
5006
|
"onPick-clear": _this.handleClear,
|
5007
|
+
"onPick-first": _this.onPickFirst,
|
4983
5008
|
"onPick-success": _this.onPickSuccess,
|
4984
|
-
"onSelection-mode-change": _this.onSelectionModeChange
|
4985
|
-
"shortcutSelectedIndex": _this.shortcutSelectedIndex,
|
4986
|
-
"onPick-first": _this.onPickFirst
|
5009
|
+
"onSelection-mode-change": _this.onSelectionModeChange
|
4987
5010
|
}, slots) : (0,external_vue_namespaceObject.createVNode)(date, {
|
4988
5011
|
"ref": "pickerPanelRef",
|
4989
5012
|
"clearable": _this.clearable,
|
4990
|
-
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4991
5013
|
"confirm": _this.isConfirm,
|
4992
|
-
"
|
5014
|
+
"disabledDate": _this.disabledDate,
|
5015
|
+
"focusedDate": _this.focusedDate,
|
5016
|
+
"modelValue": _this.internalValue,
|
4993
5017
|
"multiple": _this.multiple,
|
4994
|
-
"shortcutClose": _this.shortcutClose,
|
4995
5018
|
"selectionMode": _this.selectionMode,
|
4996
|
-
"
|
5019
|
+
"shortcutClose": _this.shortcutClose,
|
5020
|
+
"shortcuts": _this.shortcuts,
|
5021
|
+
"showTime": _this.type === 'datetime' || _this.type === 'datetimerange',
|
4997
5022
|
"startDate": _this.startDate,
|
4998
|
-
"disabledDate": _this.disabledDate,
|
4999
|
-
"focusedDate": _this.focusedDate,
|
5000
5023
|
"timePickerOptions": _this.timePickerOptions,
|
5001
5024
|
"onPick": _this.onPick,
|
5002
5025
|
"onPick-clear": _this.handleClear,
|
@@ -5053,6 +5076,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5053
5076
|
|
5054
5077
|
|
5055
5078
|
|
5079
|
+
// import VueTypes, { toType, toValidableType } from 'vue-types';
|
5056
5080
|
|
5057
5081
|
|
5058
5082
|
|
@@ -5063,7 +5087,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5063
5087
|
clickoutside: directives_namespaceObject.clickoutside
|
5064
5088
|
},
|
5065
5089
|
props: time_picker_objectSpread(time_picker_objectSpread(time_picker_objectSpread({}, datePickerProps), timePickerProps), timePanelProps),
|
5066
|
-
emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success'],
|
5090
|
+
emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'blur', 'focus'],
|
5067
5091
|
// slots: ['header'],
|
5068
5092
|
slots: Object,
|
5069
5093
|
setup: function setup(props, _ref) {
|
@@ -5291,6 +5315,17 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5291
5315
|
});
|
5292
5316
|
var pickerPanelRef = (0,external_vue_namespaceObject.ref)(null);
|
5293
5317
|
var handleClose = function handleClose(e) {
|
5318
|
+
if (props.appendToBody) {
|
5319
|
+
var _pickerPanelRef$value;
|
5320
|
+
state.disableCloseUnderTransfer = true;
|
5321
|
+
var pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value = pickerPanelRef.value) === null || _pickerPanelRef$value === void 0 ? void 0 : _pickerPanelRef$value.$el;
|
5322
|
+
if (e && pickerPanel !== null && pickerPanel !== void 0 && pickerPanel.contains(e.target)) {
|
5323
|
+
return;
|
5324
|
+
}
|
5325
|
+
state.visible = false;
|
5326
|
+
e === null || e === void 0 || e.preventDefault();
|
5327
|
+
e === null || e === void 0 || e.stopPropagation();
|
5328
|
+
}
|
5294
5329
|
if (state.disableCloseUnderTransfer) {
|
5295
5330
|
state.disableCloseUnderTransfer = false;
|
5296
5331
|
return false;
|
@@ -5301,9 +5336,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5301
5336
|
return;
|
5302
5337
|
}
|
5303
5338
|
if (state.visible) {
|
5304
|
-
var _pickerPanelRef$
|
5305
|
-
var
|
5306
|
-
if (e &&
|
5339
|
+
var _pickerPanelRef$value2;
|
5340
|
+
var _pickerPanel = pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value2 = pickerPanelRef.value) === null || _pickerPanelRef$value2 === void 0 ? void 0 : _pickerPanelRef$value2.$el;
|
5341
|
+
if (e && _pickerPanel !== null && _pickerPanel !== void 0 && _pickerPanel.contains(e.target)) {
|
5307
5342
|
return;
|
5308
5343
|
}
|
5309
5344
|
state.visible = false;
|
@@ -5351,7 +5386,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5351
5386
|
var handleInputChange = function handleInputChange(e) {
|
5352
5387
|
var _props$disabledDate;
|
5353
5388
|
var isArrayValue = props.type.includes('range') || props.multiple;
|
5354
|
-
|
5389
|
+
// const oldValue = visualValue.value;
|
5355
5390
|
var newValue = e.target.value;
|
5356
5391
|
var newDate = parseDate(newValue, props.type, props.multiple, props.format);
|
5357
5392
|
var valueToTest = isArrayValue ? newDate : newDate[0];
|
@@ -5359,7 +5394,9 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5359
5394
|
var isValidDate = newDate.reduce(function (valid, date) {
|
5360
5395
|
return valid && date instanceof Date;
|
5361
5396
|
}, true);
|
5362
|
-
|
5397
|
+
// 这里不需要进行新旧数据对比是因为input输入的时候visualValue的computed依赖始终是最新的
|
5398
|
+
// if (newValue !== oldValue && !isDisabled && isValidDate) {
|
5399
|
+
if (!isDisabled && isValidDate) {
|
5363
5400
|
emitChange(props.type);
|
5364
5401
|
state.internalValue = newDate;
|
5365
5402
|
} else {
|
@@ -5387,6 +5424,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5387
5424
|
}
|
5388
5425
|
teleportTo.value = (0,shared_namespaceObject.getFullscreenRoot)();
|
5389
5426
|
state.isFocused = true;
|
5427
|
+
emit('focus');
|
5390
5428
|
if (e && e.type === 'focus') {
|
5391
5429
|
return;
|
5392
5430
|
}
|
@@ -5396,11 +5434,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5396
5434
|
}
|
5397
5435
|
};
|
5398
5436
|
var reset = function reset() {
|
5399
|
-
var _pickerPanelRef$
|
5400
|
-
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$
|
5437
|
+
var _pickerPanelRef$value3, _pickerPanelRef$value4;
|
5438
|
+
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value3 = pickerPanelRef.value) === null || _pickerPanelRef$value3 === void 0 || (_pickerPanelRef$value4 = _pickerPanelRef$value3.reset) === null || _pickerPanelRef$value4 === void 0 || _pickerPanelRef$value4.call(_pickerPanelRef$value3);
|
5401
5439
|
};
|
5402
5440
|
var handleBlur = function handleBlur(e) {
|
5403
|
-
var _pickerPanelRef$
|
5441
|
+
var _pickerPanelRef$value5, _formItem$validate2;
|
5442
|
+
emit('blur');
|
5404
5443
|
if (state.internalFocus) {
|
5405
5444
|
state.internalFocus = false;
|
5406
5445
|
return;
|
@@ -5413,7 +5452,7 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5413
5452
|
onSelectionModeChange(props.type);
|
5414
5453
|
state.internalValue = state.internalValue.slice();
|
5415
5454
|
reset();
|
5416
|
-
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$
|
5455
|
+
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value5 = pickerPanelRef.value) === null || _pickerPanelRef$value5 === void 0 || _pickerPanelRef$value5.onToggleVisibility(false);
|
5417
5456
|
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
|
5418
5457
|
};
|
5419
5458
|
var handleKeydown = function handleKeydown(e) {
|
@@ -5605,23 +5644,23 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5605
5644
|
"class": ['icon-wrapper', this.disabled ? 'disabled' : ''],
|
5606
5645
|
"onClick": this.handleIconClick
|
5607
5646
|
}, [this.type === 'time' || this.type === 'timerange' ? timeIcon : dateIcon]), (0,external_vue_namespaceObject.createVNode)("input", {
|
5608
|
-
"type": "text",
|
5609
|
-
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5610
|
-
"ref": "inputRef",
|
5611
5647
|
"key": this.forceInputRerender,
|
5612
|
-
"
|
5648
|
+
"ref": "inputRef",
|
5649
|
+
"class": [this.resolveClassName('date-picker-editor'), this.readonly ? 'readonly' : '', this.fontSizeCls, this.behavior === 'simplicity' ? 'only-bottom-border' : ''],
|
5613
5650
|
"disabled": this.disabled,
|
5614
5651
|
"placeholder": this.placeholder,
|
5652
|
+
"readonly": this.localReadonly,
|
5653
|
+
"type": "text",
|
5615
5654
|
"value": this.displayValue,
|
5616
|
-
"onFocus": this.handleFocus,
|
5617
|
-
"onClick": this.handleFocus,
|
5618
5655
|
"onBlur": this.handleBlur,
|
5619
|
-
"onKeydown": this.handleKeydown,
|
5620
5656
|
"onChange": this.handleInputChange,
|
5621
|
-
"
|
5657
|
+
"onClick": this.handleFocus,
|
5658
|
+
"onFocus": this.handleFocus,
|
5659
|
+
"onInput": this.handleInputInput,
|
5660
|
+
"onKeydown": this.handleKeydown
|
5622
5661
|
}, null), this.clearable && this.showClose ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
5623
|
-
"
|
5624
|
-
"
|
5662
|
+
"class": "clear-action",
|
5663
|
+
"onClick": this.handleClear
|
5625
5664
|
}, null) : '']);
|
5626
5665
|
var shortcutsSlot = this.hasShortcuts ? {
|
5627
5666
|
shortcuts: function shortcuts() {
|
@@ -5637,8 +5676,8 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5637
5676
|
"onMouseenter": this.handleInputMouseenter,
|
5638
5677
|
"onMouseleave": this.handleInputMouseleave
|
5639
5678
|
}, [(_this$$slots$trigger = (_this$$slots$trigger2 = (_this$$slots2 = this.$slots).trigger) === null || _this$$slots$trigger2 === void 0 ? void 0 : _this$$slots$trigger2.call(_this$$slots2, this.displayValue)) !== null && _this$$slots$trigger !== void 0 ? _this$$slots$trigger : defaultTrigger]), (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Teleport, {
|
5640
|
-
"
|
5641
|
-
"
|
5679
|
+
"disabled": !this.appendToBody,
|
5680
|
+
"to": this.teleportTo
|
5642
5681
|
}, {
|
5643
5682
|
"default": function _default() {
|
5644
5683
|
return [(0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Transition, {
|
@@ -5646,12 +5685,12 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5646
5685
|
}, {
|
5647
5686
|
"default": function _default() {
|
5648
5687
|
return [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(picker_dropdown, {
|
5649
|
-
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
5650
5688
|
"ref": "pickerDropdownRef",
|
5651
|
-
"
|
5652
|
-
"placement": _this.placement,
|
5653
|
-
"extPopoverCls": _this.extPopoverCls,
|
5689
|
+
"class": [_this.appendToBody ? _this.resolveClassName('date-picker-transfer') : ''],
|
5654
5690
|
"appendToBody": _this.appendToBody,
|
5691
|
+
"extPopoverCls": _this.extPopoverCls,
|
5692
|
+
"placement": _this.placement,
|
5693
|
+
"triggerRef": _this.triggerRef,
|
5655
5694
|
"onClick": _this.handleTransferClick
|
5656
5695
|
}, {
|
5657
5696
|
"default": function _default() {
|
@@ -5659,38 +5698,38 @@ function time_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5659
5698
|
"class": [_this.resolveClassName('date-picker-top-wrapper'), _this.headerSlotCls]
|
5660
5699
|
}, [(_this$$slots$header = (_this$$slots$header2 = (_this$$slots3 = _this.$slots).header) === null || _this$$slots$header2 === void 0 ? void 0 : _this$$slots$header2.call(_this$$slots3)) !== null && _this$$slots$header !== void 0 ? _this$$slots$header : null]) : null, _this.panel === 'RangeTimePickerPanel' ? (0,external_vue_namespaceObject.createVNode)(time_range, {
|
5661
5700
|
"ref": "pickerPanelRef",
|
5701
|
+
"allowCrossDay": _this.allowCrossDayProp,
|
5662
5702
|
"clearable": _this.clearable,
|
5663
|
-
"
|
5703
|
+
"disabledDate": _this.disabledDate,
|
5704
|
+
"disabledHours": _this.ownPickerProps.disabledHours,
|
5705
|
+
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5706
|
+
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5707
|
+
"format": _this.format,
|
5664
5708
|
"multiple": _this.multiple,
|
5665
5709
|
"shortcutClose": _this.shortcutClose,
|
5666
|
-
"
|
5710
|
+
"shortcuts": _this.shortcuts,
|
5667
5711
|
"startDate": _this.startDate,
|
5668
|
-
"
|
5712
|
+
"value": _this.internalValue,
|
5669
5713
|
"onPick": _this.onPick,
|
5670
5714
|
"onPick-clear": _this.handleClear,
|
5671
|
-
"onPick-success": _this.onPickSuccess
|
5672
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5673
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5674
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5675
|
-
"allowCrossDay": _this.allowCrossDayProp,
|
5676
|
-
"format": _this.format
|
5715
|
+
"onPick-success": _this.onPickSuccess
|
5677
5716
|
}, shortcutsSlot) : (0,external_vue_namespaceObject.createVNode)(time, {
|
5678
5717
|
"ref": "pickerPanelRef",
|
5679
5718
|
"clearable": _this.clearable,
|
5680
5719
|
"confirm": _this.isConfirm,
|
5681
|
-
"
|
5720
|
+
"disabledDate": _this.disabledDate,
|
5721
|
+
"disabledHours": _this.ownPickerProps.disabledHours,
|
5722
|
+
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5723
|
+
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5724
|
+
"format": _this.format,
|
5682
5725
|
"multiple": _this.multiple,
|
5683
5726
|
"shortcutClose": _this.shortcutClose,
|
5684
|
-
"
|
5727
|
+
"shortcuts": _this.shortcuts,
|
5685
5728
|
"startDate": _this.startDate,
|
5686
|
-
"
|
5729
|
+
"value": _this.internalValue,
|
5687
5730
|
"onPick": _this.onPick,
|
5688
5731
|
"onPick-clear": _this.handleClear,
|
5689
|
-
"onPick-success": _this.onPickSuccess
|
5690
|
-
"disabledHours": _this.ownPickerProps.disabledHours,
|
5691
|
-
"disabledMinutes": _this.ownPickerProps.disabledMinutes,
|
5692
|
-
"disabledSeconds": _this.ownPickerProps.disabledSeconds,
|
5693
|
-
"format": _this.format
|
5732
|
+
"onPick-success": _this.onPickSuccess
|
5694
5733
|
}, shortcutsSlot), _this.hasFooter ? (0,external_vue_namespaceObject.createVNode)("div", {
|
5695
5734
|
"class": [_this.resolveClassName('date-picker-footer-wrapper'), _this.footerSlotCls]
|
5696
5735
|
}, [(_this$$slots$footer = (_this$$slots$footer2 = (_this$$slots4 = _this.$slots).footer) === null || _this$$slots$footer2 === void 0 ? void 0 : _this$$slots$footer2.call(_this$$slots4)) !== null && _this$$slots$footer !== void 0 ? _this$$slots$footer : null]) : null];
|