@wot-ui/ui 1.0.0 → 2.0.0-alpha.4
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/LICENSE +21 -0
- package/README.md +134 -0
- package/attributes.json +1 -0
- package/changelog.md +63 -0
- package/common/AbortablePromise.ts +28 -0
- package/common/canvasHelper.ts +49 -0
- package/common/clickoutside.ts +25 -0
- package/common/event.ts +8 -0
- package/common/formatDate.ts +68 -0
- package/common/interceptor.ts +43 -0
- package/common/props.ts +53 -0
- package/common/util.ts +836 -0
- package/components/wd-action-sheet/index.scss +232 -0
- package/components/wd-action-sheet/types.ts +155 -0
- package/components/wd-action-sheet/wd-action-sheet.vue +176 -0
- package/components/wd-avatar/index.scss +150 -0
- package/components/wd-avatar/types.ts +98 -0
- package/components/wd-avatar/wd-avatar.vue +184 -0
- package/components/wd-avatar-group/index.scss +11 -0
- package/components/wd-avatar-group/types.ts +61 -0
- package/components/wd-avatar-group/wd-avatar-group.vue +115 -0
- package/components/wd-backtop/index.scss +67 -0
- package/components/wd-backtop/types.ts +66 -0
- package/components/wd-backtop/wd-backtop.vue +57 -0
- package/components/wd-badge/index.scss +116 -0
- package/components/wd-badge/types.ts +94 -0
- package/components/wd-badge/wd-badge.vue +78 -0
- package/components/wd-button/index.scss +436 -0
- package/components/wd-button/types.ts +204 -0
- package/components/wd-button/wd-button.vue +210 -0
- package/components/wd-calendar/index.scss +97 -0
- package/components/wd-calendar/types.ts +221 -0
- package/components/wd-calendar/wd-calendar.vue +339 -0
- package/components/wd-calendar-view/index.scss +41 -0
- package/components/wd-calendar-view/month/index.scss +144 -0
- package/components/wd-calendar-view/month/month.vue +389 -0
- package/components/wd-calendar-view/month/types.ts +70 -0
- package/components/wd-calendar-view/monthPanel/index.scss +84 -0
- package/components/wd-calendar-view/monthPanel/month-panel.vue +541 -0
- package/components/wd-calendar-view/monthPanel/types.ts +151 -0
- package/components/wd-calendar-view/types.ts +166 -0
- package/components/wd-calendar-view/utils.ts +318 -0
- package/components/wd-calendar-view/wd-calendar-view.vue +117 -0
- package/components/wd-calendar-view/year/index.scss +148 -0
- package/components/wd-calendar-view/year/types.ts +74 -0
- package/components/wd-calendar-view/year/year.vue +206 -0
- package/components/wd-calendar-view/yearPanel/index.scss +42 -0
- package/components/wd-calendar-view/yearPanel/types.ts +96 -0
- package/components/wd-calendar-view/yearPanel/year-panel.vue +249 -0
- package/components/wd-card/index.scss +104 -0
- package/components/wd-card/types.ts +47 -0
- package/components/wd-card/wd-card.vue +38 -0
- package/components/wd-cascader/index.scss +154 -0
- package/components/wd-cascader/types.ts +191 -0
- package/components/wd-cascader/wd-cascader.vue +589 -0
- package/components/wd-cell/index.scss +244 -0
- package/components/wd-cell/types.ts +205 -0
- package/components/wd-cell/wd-cell.vue +172 -0
- package/components/wd-cell-group/index.scss +53 -0
- package/components/wd-cell-group/types.ts +97 -0
- package/components/wd-cell-group/wd-cell-group.vue +48 -0
- package/components/wd-checkbox/index.scss +166 -0
- package/components/wd-checkbox/types.ts +118 -0
- package/components/wd-checkbox/wd-checkbox.vue +216 -0
- package/components/wd-checkbox-group/index.scss +5 -0
- package/components/wd-checkbox-group/types.ts +93 -0
- package/components/wd-checkbox-group/wd-checkbox-group.vue +148 -0
- package/components/wd-circle/index.scss +28 -0
- package/components/wd-circle/types.ts +54 -0
- package/components/wd-circle/wd-circle.vue +306 -0
- package/components/wd-col/index.scss +5 -0
- package/components/wd-col/types.ts +16 -0
- package/components/wd-col/wd-col.vue +83 -0
- package/components/wd-collapse/index.scss +71 -0
- package/components/wd-collapse/types.ts +68 -0
- package/components/wd-collapse/wd-collapse.vue +165 -0
- package/components/wd-collapse-item/index.scss +86 -0
- package/components/wd-collapse-item/types.ts +62 -0
- package/components/wd-collapse-item/wd-collapse-item.vue +184 -0
- package/components/wd-config-provider/index.scss +10 -0
- package/components/wd-config-provider/types.ts +2061 -0
- package/components/wd-config-provider/wd-config-provider.vue +61 -0
- package/components/wd-count-down/index.scss +16 -0
- package/components/wd-count-down/types.ts +58 -0
- package/components/wd-count-down/utils.ts +52 -0
- package/components/wd-count-down/wd-count-down.vue +62 -0
- package/components/wd-count-to/index.scss +25 -0
- package/components/wd-count-to/types.ts +121 -0
- package/components/wd-count-to/wd-count-to.vue +126 -0
- package/components/wd-curtain/index.scss +96 -0
- package/components/wd-curtain/types.ts +82 -0
- package/components/wd-curtain/wd-curtain.vue +172 -0
- package/components/wd-datetime-picker/index.scss +133 -0
- package/components/wd-datetime-picker/types.ts +198 -0
- package/components/wd-datetime-picker/wd-datetime-picker.vue +526 -0
- package/components/wd-datetime-picker-view/types.ts +171 -0
- package/components/wd-datetime-picker-view/util.ts +30 -0
- package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +402 -0
- package/components/wd-dialog/index.scss +281 -0
- package/components/wd-dialog/index.ts +168 -0
- package/components/wd-dialog/types.ts +452 -0
- package/components/wd-dialog/wd-dialog.vue +586 -0
- package/components/wd-divider/index.scss +122 -0
- package/components/wd-divider/types.ts +50 -0
- package/components/wd-divider/wd-divider.vue +54 -0
- package/components/wd-drop-menu/index.scss +90 -0
- package/components/wd-drop-menu/types.ts +38 -0
- package/components/wd-drop-menu/wd-drop-menu.vue +168 -0
- package/components/wd-drop-menu-item/index.scss +96 -0
- package/components/wd-drop-menu-item/types.ts +93 -0
- package/components/wd-drop-menu-item/wd-drop-menu-item.vue +205 -0
- package/components/wd-empty/index.scss +46 -0
- package/components/wd-empty/types.ts +37 -0
- package/components/wd-empty/wd-empty.vue +47 -0
- package/components/wd-fab/index.scss +124 -0
- package/components/wd-fab/types.ts +119 -0
- package/components/wd-fab/wd-fab.vue +322 -0
- package/components/wd-floating-panel/index.scss +73 -0
- package/components/wd-floating-panel/type.ts +32 -0
- package/components/wd-floating-panel/wd-floating-panel.vue +142 -0
- package/components/wd-form/adapters/zod.ts +56 -0
- package/components/wd-form/index.ts +2 -0
- package/components/wd-form/types.ts +133 -0
- package/components/wd-form/wd-form.vue +121 -0
- package/components/wd-form-item/index.scss +26 -0
- package/components/wd-form-item/types.ts +134 -0
- package/components/wd-form-item/wd-form-item.vue +182 -0
- package/components/wd-gap/index.scss +9 -0
- package/components/wd-gap/types.ts +26 -0
- package/components/wd-gap/wd-gap.vue +38 -0
- package/components/wd-grid/index.scss +11 -0
- package/components/wd-grid/types.ts +97 -0
- package/components/wd-grid/wd-grid.vue +48 -0
- package/components/wd-grid-item/index.scss +187 -0
- package/components/wd-grid-item/types.ts +98 -0
- package/components/wd-grid-item/wd-grid-item.vue +295 -0
- package/components/wd-icon/index.scss +46 -0
- package/components/wd-icon/types.ts +44 -0
- package/components/wd-icon/wd-icon.vue +66 -0
- package/components/wd-image-preview/index.scss +94 -0
- package/components/wd-image-preview/index.ts +95 -0
- package/components/wd-image-preview/types.ts +165 -0
- package/components/wd-image-preview/wd-image-preview.vue +233 -0
- package/components/wd-img/index.scss +82 -0
- package/components/wd-img/types.ts +96 -0
- package/components/wd-img/wd-img.vue +91 -0
- package/components/wd-img-cropper/index.scss +259 -0
- package/components/wd-img-cropper/types.ts +101 -0
- package/components/wd-img-cropper/wd-img-cropper.vue +653 -0
- package/components/wd-index-anchor/index.scss +34 -0
- package/components/wd-index-anchor/type.ts +9 -0
- package/components/wd-index-anchor/wd-index-anchor.vue +55 -0
- package/components/wd-index-bar/index.scss +68 -0
- package/components/wd-index-bar/type.ts +23 -0
- package/components/wd-index-bar/wd-index-bar.vue +157 -0
- package/components/wd-input/index.scss +129 -0
- package/components/wd-input/types.ts +165 -0
- package/components/wd-input/wd-input.vue +237 -0
- package/components/wd-input-number/index.scss +233 -0
- package/components/wd-input-number/types.ts +131 -0
- package/components/wd-input-number/wd-input-number.vue +473 -0
- package/components/wd-keyboard/constants.ts +81 -0
- package/components/wd-keyboard/index.scss +104 -0
- package/components/wd-keyboard/key/index.scss +103 -0
- package/components/wd-keyboard/key/index.vue +84 -0
- package/components/wd-keyboard/key/types.ts +44 -0
- package/components/wd-keyboard/types.ts +138 -0
- package/components/wd-keyboard/wd-keyboard.vue +236 -0
- package/components/wd-loading/index.scss +205 -0
- package/components/wd-loading/types.ts +61 -0
- package/components/wd-loading/wd-loading.vue +70 -0
- package/components/wd-loadmore/index.scss +62 -0
- package/components/wd-loadmore/types.ts +42 -0
- package/components/wd-loadmore/wd-loadmore.vue +68 -0
- package/components/wd-navbar/index.scss +96 -0
- package/components/wd-navbar/types.ts +74 -0
- package/components/wd-navbar/wd-navbar.vue +136 -0
- package/components/wd-navbar-capsule/index.scss +70 -0
- package/components/wd-navbar-capsule/types.ts +11 -0
- package/components/wd-navbar-capsule/wd-navbar-capsule.vue +48 -0
- package/components/wd-notice-bar/index.scss +94 -0
- package/components/wd-notice-bar/types.ts +97 -0
- package/components/wd-notice-bar/wd-notice-bar.vue +270 -0
- package/components/wd-notify/index.scss +114 -0
- package/components/wd-notify/index.ts +63 -0
- package/components/wd-notify/types.ts +130 -0
- package/components/wd-notify/wd-notify.vue +162 -0
- package/components/wd-overlay/index.scss +14 -0
- package/components/wd-overlay/types.ts +42 -0
- package/components/wd-overlay/wd-overlay.vue +55 -0
- package/components/wd-pagination/index.scss +71 -0
- package/components/wd-pagination/types.ts +69 -0
- package/components/wd-pagination/wd-pagination.vue +118 -0
- package/components/wd-password-input/index.scss +134 -0
- package/components/wd-password-input/types.ts +42 -0
- package/components/wd-password-input/wd-password-input.vue +51 -0
- package/components/wd-picker/index.scss +72 -0
- package/components/wd-picker/types.ts +141 -0
- package/components/wd-picker/wd-picker.vue +220 -0
- package/components/wd-picker-view/index.scss +93 -0
- package/components/wd-picker-view/types.ts +145 -0
- package/components/wd-picker-view/useSelection.ts +385 -0
- package/components/wd-picker-view/wd-picker-view.vue +227 -0
- package/components/wd-popover/index.scss +117 -0
- package/components/wd-popover/types.ts +106 -0
- package/components/wd-popover/wd-popover.vue +212 -0
- package/components/wd-popup/index.scss +89 -0
- package/components/wd-popup/types.ts +110 -0
- package/components/wd-popup/wd-popup.vue +174 -0
- package/components/wd-progress/index.scss +155 -0
- package/components/wd-progress/types.ts +94 -0
- package/components/wd-progress/wd-progress.vue +249 -0
- package/components/wd-radio/index.scss +189 -0
- package/components/wd-radio/types.ts +64 -0
- package/components/wd-radio/wd-radio.vue +164 -0
- package/components/wd-radio-group/index.scss +5 -0
- package/components/wd-radio-group/types.ts +70 -0
- package/components/wd-radio-group/wd-radio-group.vue +53 -0
- package/components/wd-rate/index.scss +57 -0
- package/components/wd-rate/types.ts +86 -0
- package/components/wd-rate/wd-rate.vue +168 -0
- package/components/wd-resize/index.scss +31 -0
- package/components/wd-resize/types.ts +14 -0
- package/components/wd-resize/wd-resize.vue +157 -0
- package/components/wd-root-portal/wd-root-portal.vue +77 -0
- package/components/wd-row/index.scss +6 -0
- package/components/wd-row/types.ts +36 -0
- package/components/wd-row/wd-row.vue +88 -0
- package/components/wd-search/index.scss +171 -0
- package/components/wd-search/types.ts +107 -0
- package/components/wd-search/wd-search.vue +198 -0
- package/components/wd-segmented/index.scss +155 -0
- package/components/wd-segmented/types.ts +81 -0
- package/components/wd-segmented/wd-segmented.vue +169 -0
- package/components/wd-select-picker/index.scss +72 -0
- package/components/wd-select-picker/types.ts +72 -0
- package/components/wd-select-picker/wd-select-picker.vue +371 -0
- package/components/wd-sidebar/index.scss +25 -0
- package/components/wd-sidebar/types.ts +34 -0
- package/components/wd-sidebar/wd-sidebar.vue +57 -0
- package/components/wd-sidebar-item/index.scss +91 -0
- package/components/wd-sidebar-item/types.ts +28 -0
- package/components/wd-sidebar-item/wd-sidebar-item.vue +118 -0
- package/components/wd-signature/index.scss +42 -0
- package/components/wd-signature/types.ts +295 -0
- package/components/wd-signature/wd-signature.vue +664 -0
- package/components/wd-skeleton/index.scss +112 -0
- package/components/wd-skeleton/types.ts +124 -0
- package/components/wd-skeleton/wd-skeleton.vue +110 -0
- package/components/wd-slide-verify/index.scss +112 -0
- package/components/wd-slide-verify/types.ts +98 -0
- package/components/wd-slide-verify/wd-slide-verify.vue +222 -0
- package/components/wd-slider/index.scss +485 -0
- package/components/wd-slider/types.ts +166 -0
- package/components/wd-slider/wd-slider.vue +529 -0
- package/components/wd-sort-button/index.scss +126 -0
- package/components/wd-sort-button/types.ts +68 -0
- package/components/wd-sort-button/wd-sort-button.vue +67 -0
- package/components/wd-step/index.scss +366 -0
- package/components/wd-step/types.ts +43 -0
- package/components/wd-step/wd-step.vue +181 -0
- package/components/wd-steps/index.scss +7 -0
- package/components/wd-steps/types.ts +50 -0
- package/components/wd-steps/wd-steps.vue +39 -0
- package/components/wd-sticky/index.scss +9 -0
- package/components/wd-sticky/types.ts +13 -0
- package/components/wd-sticky/wd-sticky.vue +192 -0
- package/components/wd-sticky-box/index.scss +6 -0
- package/components/wd-sticky-box/types.ts +20 -0
- package/components/wd-sticky-box/wd-sticky-box.vue +157 -0
- package/components/wd-swipe-action/index.scss +22 -0
- package/components/wd-swipe-action/types.ts +87 -0
- package/components/wd-swipe-action/wd-swipe-action.vue +320 -0
- package/components/wd-swiper/index.scss +69 -0
- package/components/wd-swiper/types.ts +275 -0
- package/components/wd-swiper/wd-swiper.vue +332 -0
- package/components/wd-swiper-nav/index.scss +179 -0
- package/components/wd-swiper-nav/types.ts +42 -0
- package/components/wd-swiper-nav/wd-swiper-nav.vue +42 -0
- package/components/wd-switch/index.scss +177 -0
- package/components/wd-switch/types.ts +93 -0
- package/components/wd-switch/wd-switch.vue +107 -0
- package/components/wd-tab/index.scss +16 -0
- package/components/wd-tab/types.ts +45 -0
- package/components/wd-tab/wd-tab.vue +99 -0
- package/components/wd-tabbar/index.scss +71 -0
- package/components/wd-tabbar/types.ts +79 -0
- package/components/wd-tabbar/wd-tabbar.vue +109 -0
- package/components/wd-tabbar-item/index.scss +50 -0
- package/components/wd-tabbar-item/types.ts +45 -0
- package/components/wd-tabbar-item/wd-tabbar-item.vue +101 -0
- package/components/wd-table/index.scss +128 -0
- package/components/wd-table/types.ts +160 -0
- package/components/wd-table/wd-table.vue +331 -0
- package/components/wd-table-column/index.scss +15 -0
- package/components/wd-table-column/types.ts +81 -0
- package/components/wd-table-column/wd-table-column.vue +198 -0
- package/components/wd-tabs/index.scss +332 -0
- package/components/wd-tabs/types.ts +155 -0
- package/components/wd-tabs/wd-tabs.vue +508 -0
- package/components/wd-tag/index.scss +325 -0
- package/components/wd-tag/types.ts +90 -0
- package/components/wd-tag/wd-tag.vue +158 -0
- package/components/wd-text/index.scss +52 -0
- package/components/wd-text/types.ts +107 -0
- package/components/wd-text/wd-text.vue +141 -0
- package/components/wd-textarea/index.scss +112 -0
- package/components/wd-textarea/types.ts +151 -0
- package/components/wd-textarea/wd-textarea.vue +212 -0
- package/components/wd-toast/index.scss +92 -0
- package/components/wd-toast/index.ts +97 -0
- package/components/wd-toast/types.ts +190 -0
- package/components/wd-toast/wd-toast.vue +158 -0
- package/components/wd-tooltip/index.scss +77 -0
- package/components/wd-tooltip/types.ts +105 -0
- package/components/wd-tooltip/wd-tooltip.vue +169 -0
- package/components/wd-tour/index.scss +106 -0
- package/components/wd-tour/types.ts +268 -0
- package/components/wd-tour/wd-tour.vue +518 -0
- package/components/wd-transition/index.scss +67 -0
- package/components/wd-transition/types.ts +106 -0
- package/components/wd-transition/wd-transition.vue +238 -0
- package/components/wd-upload/index.scss +204 -0
- package/components/wd-upload/types.ts +390 -0
- package/components/wd-upload/wd-upload.vue +565 -0
- package/components/wd-video-preview/index.scss +54 -0
- package/components/wd-video-preview/index.ts +64 -0
- package/components/wd-video-preview/types.ts +66 -0
- package/components/wd-video-preview/wd-video-preview.vue +141 -0
- package/components/wd-watermark/index.scss +21 -0
- package/components/wd-watermark/types.ts +130 -0
- package/components/wd-watermark/wd-watermark.vue +718 -0
- package/components/wot-ui/wot-ui.vue +5 -0
- package/composables/index.ts +16 -0
- package/composables/useCell.ts +34 -0
- package/composables/useChildren.ts +120 -0
- package/composables/useConfigProvider.ts +45 -0
- package/composables/useCountDown.ts +138 -0
- package/composables/useDeviceInfo.ts +136 -0
- package/composables/useLockScroll.ts +37 -0
- package/composables/useParent.ts +51 -0
- package/composables/usePopover.ts +212 -0
- package/composables/useQueue.ts +52 -0
- package/composables/useRaf.ts +37 -0
- package/composables/useTouch.ts +43 -0
- package/composables/useTranslate.ts +12 -0
- package/composables/useUpload.ts +366 -0
- package/global.d.ts +106 -0
- package/index.ts +6 -0
- package/locale/index.ts +32 -0
- package/locale/lang/ar-SA.ts +150 -0
- package/locale/lang/de-DE.ts +150 -0
- package/locale/lang/en-US.ts +150 -0
- package/locale/lang/es-ES.ts +150 -0
- package/locale/lang/fr-FR.ts +150 -0
- package/locale/lang/ja-JP.ts +150 -0
- package/locale/lang/ko-KR.ts +150 -0
- package/locale/lang/pt-PT.ts +150 -0
- package/locale/lang/ru-RU.ts +150 -0
- package/locale/lang/th-TH.ts +150 -0
- package/locale/lang/tr-TR.ts +155 -0
- package/locale/lang/ug-CN.ts +154 -0
- package/locale/lang/vi-VN.ts +89 -0
- package/locale/lang/zh-CN.ts +154 -0
- package/locale/lang/zh-HK.ts +78 -0
- package/locale/lang/zh-TW.ts +78 -0
- package/package.json +1 -11
- package/styles/iconfont/iconfont.scss +1243 -0
- package/styles/mixin/_config.scss +7 -0
- package/styles/mixin/_function.scss +44 -0
- package/styles/mixin/_mixin.scss +473 -0
- package/styles/theme/base/color.scss +210 -0
- package/styles/theme/base/font.scss +13 -0
- package/styles/theme/base/index.scss +8 -0
- package/styles/theme/base/insets.scss +32 -0
- package/styles/theme/base/number.scss +36 -0
- package/styles/theme/base/opacity.scss +9 -0
- package/styles/theme/base/radius.scss +13 -0
- package/styles/theme/base/stroke.scss +9 -0
- package/styles/theme/base/typography.scss +44 -0
- package/styles/theme/dark.scss +101 -0
- package/styles/theme/index.scss +16 -0
- package/styles/theme/light.scss +101 -0
- package/styles/variable.scss +472 -0
- package/tags.json +1 -0
- package/web-types.json +1 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<wd-toast selector="wd-month" />
|
|
4
|
+
<view class="wd-month">
|
|
5
|
+
<view class="wd-month__title" v-if="showTitle">{{ monthTitle(date) }}</view>
|
|
6
|
+
<view class="wd-month__days">
|
|
7
|
+
<view
|
|
8
|
+
v-for="(item, index) in days"
|
|
9
|
+
:key="index"
|
|
10
|
+
:class="`wd-month__day ${item.disabled ? 'is-disabled' : ''} ${item.isLastRow ? 'is-last-row' : ''} ${
|
|
11
|
+
item.type ? dayTypeClass(item.type) : ''
|
|
12
|
+
} ${item.customClass || ''}`"
|
|
13
|
+
:style="index === 0 ? firstDayStyle : ''"
|
|
14
|
+
@click="handleDateClick(index)"
|
|
15
|
+
>
|
|
16
|
+
<view class="wd-month__day-container">
|
|
17
|
+
<view class="wd-month__day-top">{{ item.topInfo }}</view>
|
|
18
|
+
<view class="wd-month__day-text">
|
|
19
|
+
{{ item.text }}
|
|
20
|
+
</view>
|
|
21
|
+
<view class="wd-month__day-bottom">{{ item.bottomInfo }}</view>
|
|
22
|
+
</view>
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
25
|
+
</view>
|
|
26
|
+
</view>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script lang="ts">
|
|
30
|
+
export default {
|
|
31
|
+
options: {
|
|
32
|
+
addGlobalClass: true,
|
|
33
|
+
// #ifndef MP-TOUTIAO
|
|
34
|
+
virtualHost: true,
|
|
35
|
+
// #endif
|
|
36
|
+
styleIsolation: 'shared'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<script lang="ts" setup>
|
|
42
|
+
import wdToast from '../../wd-toast/wd-toast.vue'
|
|
43
|
+
import { computed, ref, watch, type CSSProperties } from 'vue'
|
|
44
|
+
import {
|
|
45
|
+
compareDate,
|
|
46
|
+
formatMonthTitle,
|
|
47
|
+
getDateByDefaultTime,
|
|
48
|
+
getDayByOffset,
|
|
49
|
+
getDayOffset,
|
|
50
|
+
getItemClass,
|
|
51
|
+
getMonthEndDay,
|
|
52
|
+
getNextDay,
|
|
53
|
+
getPrevDay,
|
|
54
|
+
getWeekRange
|
|
55
|
+
} from '../utils'
|
|
56
|
+
import { useToast } from '../../wd-toast'
|
|
57
|
+
import { deepClone, isArray, isFunction, objToStyle } from '../../../common/util'
|
|
58
|
+
import { useTranslate } from '../../../composables/useTranslate'
|
|
59
|
+
import type { CalendarDayItem, CalendarDayType } from '../types'
|
|
60
|
+
import { monthProps } from './types'
|
|
61
|
+
|
|
62
|
+
const props = defineProps(monthProps)
|
|
63
|
+
const emit = defineEmits(['change'])
|
|
64
|
+
|
|
65
|
+
const { translate } = useTranslate('calendar-view')
|
|
66
|
+
|
|
67
|
+
const days = ref<Array<CalendarDayItem>>([])
|
|
68
|
+
|
|
69
|
+
const toast = useToast('wd-month')
|
|
70
|
+
|
|
71
|
+
const offset = computed(() => {
|
|
72
|
+
const firstDayOfWeek = props.firstDayOfWeek >= 7 ? props.firstDayOfWeek % 7 : props.firstDayOfWeek
|
|
73
|
+
const offset = (7 + new Date(props.date).getDay() - firstDayOfWeek) % 7
|
|
74
|
+
return offset
|
|
75
|
+
})
|
|
76
|
+
|
|
77
|
+
const dayTypeClass = computed(() => {
|
|
78
|
+
return (monthType: CalendarDayType) => {
|
|
79
|
+
return getItemClass(monthType, props.value, props.type)
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
const monthTitle = computed(() => {
|
|
84
|
+
return (date: number) => {
|
|
85
|
+
return formatMonthTitle(date)
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
const firstDayStyle = computed(() => {
|
|
90
|
+
const dayStyle: CSSProperties = {}
|
|
91
|
+
dayStyle.marginLeft = `${(100 / 7) * offset.value}%`
|
|
92
|
+
return objToStyle(dayStyle)
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
const isLastRow = (date: number) => {
|
|
96
|
+
const currentDate = new Date(date)
|
|
97
|
+
const currentDay = currentDate.getDate()
|
|
98
|
+
const daysInMonth = getMonthEndDay(currentDate.getFullYear(), currentDate.getMonth() + 1)
|
|
99
|
+
const totalDaysShown = offset.value + daysInMonth
|
|
100
|
+
const totalRows = Math.ceil(totalDaysShown / 7)
|
|
101
|
+
return Math.ceil((offset.value + currentDay) / 7) === totalRows
|
|
102
|
+
}
|
|
103
|
+
watch(
|
|
104
|
+
[() => props.type, () => props.date, () => props.value, () => props.minDate, () => props.maxDate, () => props.formatter],
|
|
105
|
+
() => {
|
|
106
|
+
setDays()
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
deep: true,
|
|
110
|
+
immediate: true
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
function setDays() {
|
|
115
|
+
const dayList: Array<CalendarDayItem> = []
|
|
116
|
+
const date = new Date(props.date)
|
|
117
|
+
const year = date.getFullYear()
|
|
118
|
+
const month = date.getMonth()
|
|
119
|
+
const totalDay = getMonthEndDay(year, month + 1)
|
|
120
|
+
let value = props.value
|
|
121
|
+
if ((props.type === 'week' || props.type === 'weekrange') && value) {
|
|
122
|
+
value = getWeekValue()
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
for (let day = 1; day <= totalDay; day++) {
|
|
126
|
+
const date = new Date(year, month, day).getTime()
|
|
127
|
+
let type: CalendarDayType = getDayType(date, value as number | number[] | null)
|
|
128
|
+
if (!type && compareDate(date, Date.now()) === 0) {
|
|
129
|
+
type = 'current'
|
|
130
|
+
}
|
|
131
|
+
const dayObj = getFormatterDate(date, day, type)
|
|
132
|
+
dayList.push(dayObj)
|
|
133
|
+
}
|
|
134
|
+
days.value = dayList
|
|
135
|
+
}
|
|
136
|
+
function getDayType(date: number, value: number | number[] | null): CalendarDayType {
|
|
137
|
+
switch (props.type) {
|
|
138
|
+
case 'date':
|
|
139
|
+
case 'datetime':
|
|
140
|
+
return getDateType(date)
|
|
141
|
+
case 'dates':
|
|
142
|
+
return getDatesType(date)
|
|
143
|
+
case 'daterange':
|
|
144
|
+
case 'datetimerange':
|
|
145
|
+
return getDatetimeType(date, value)
|
|
146
|
+
case 'week':
|
|
147
|
+
return getWeektimeType(date, value)
|
|
148
|
+
case 'weekrange':
|
|
149
|
+
return getWeektimeType(date, value)
|
|
150
|
+
default:
|
|
151
|
+
return getDateType(date)
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function getDateType(date: number): CalendarDayType {
|
|
155
|
+
if (props.value && compareDate(date, props.value as number) === 0) {
|
|
156
|
+
return 'selected'
|
|
157
|
+
}
|
|
158
|
+
return ''
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function getDatesType(date: number): CalendarDayType {
|
|
162
|
+
const { value } = props
|
|
163
|
+
let type: CalendarDayType = ''
|
|
164
|
+
|
|
165
|
+
if (!isArray(value)) return type
|
|
166
|
+
const isSelected = (day: number) => {
|
|
167
|
+
return value.some((item) => compareDate(day, item) === 0)
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (isSelected(date)) {
|
|
171
|
+
const prevDay = getPrevDay(date)
|
|
172
|
+
const nextDay = getNextDay(date)
|
|
173
|
+
const prevSelected = isSelected(prevDay)
|
|
174
|
+
const nextSelected = isSelected(nextDay)
|
|
175
|
+
if (prevSelected && nextSelected) {
|
|
176
|
+
type = 'multiple-middle'
|
|
177
|
+
} else if (prevSelected) {
|
|
178
|
+
type = 'end'
|
|
179
|
+
} else if (nextSelected) {
|
|
180
|
+
type = 'start'
|
|
181
|
+
} else {
|
|
182
|
+
type = 'multiple-selected'
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return type
|
|
187
|
+
}
|
|
188
|
+
function getDatetimeType(date: number, value: number | number[] | null) {
|
|
189
|
+
const [startDate, endDate] = isArray(value) ? value : []
|
|
190
|
+
|
|
191
|
+
if (startDate && compareDate(date, startDate) === 0) {
|
|
192
|
+
if (props.allowSameDay && endDate && compareDate(startDate, endDate) === 0) {
|
|
193
|
+
return 'same'
|
|
194
|
+
}
|
|
195
|
+
return 'start'
|
|
196
|
+
} else if (endDate && compareDate(date, endDate) === 0) {
|
|
197
|
+
return 'end'
|
|
198
|
+
} else if (startDate && endDate && compareDate(date, startDate) === 1 && compareDate(date, endDate) === -1) {
|
|
199
|
+
return 'middle'
|
|
200
|
+
} else {
|
|
201
|
+
return ''
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
function getWeektimeType(date: number, value: number | number[] | null) {
|
|
205
|
+
const [startDate, endDate] = isArray(value) ? value : []
|
|
206
|
+
|
|
207
|
+
if (startDate && compareDate(date, startDate) === 0) {
|
|
208
|
+
return 'start'
|
|
209
|
+
} else if (endDate && compareDate(date, endDate) === 0) {
|
|
210
|
+
return 'end'
|
|
211
|
+
} else if (startDate && endDate && compareDate(date, startDate) === 1 && compareDate(date, endDate) === -1) {
|
|
212
|
+
return 'middle'
|
|
213
|
+
} else {
|
|
214
|
+
return ''
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function getWeekValue() {
|
|
218
|
+
if (props.type === 'week') {
|
|
219
|
+
return getWeekRange(props.value as number, props.firstDayOfWeek)
|
|
220
|
+
} else {
|
|
221
|
+
const [startDate, endDate] = (props.value as any) || []
|
|
222
|
+
|
|
223
|
+
if (startDate) {
|
|
224
|
+
const firstWeekRange = getWeekRange(startDate, props.firstDayOfWeek)
|
|
225
|
+
|
|
226
|
+
if (endDate) {
|
|
227
|
+
const endWeekRange = getWeekRange(endDate, props.firstDayOfWeek)
|
|
228
|
+
|
|
229
|
+
return [firstWeekRange[0], endWeekRange[1]]
|
|
230
|
+
} else {
|
|
231
|
+
return firstWeekRange
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
return []
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
function handleDateClick(index: number) {
|
|
239
|
+
const date = days.value[index]
|
|
240
|
+
switch (props.type) {
|
|
241
|
+
case 'date':
|
|
242
|
+
case 'datetime':
|
|
243
|
+
handleDateChange(date)
|
|
244
|
+
break
|
|
245
|
+
case 'dates':
|
|
246
|
+
handleDatesChange(date)
|
|
247
|
+
break
|
|
248
|
+
case 'daterange':
|
|
249
|
+
case 'datetimerange':
|
|
250
|
+
handleDateRangeChange(date)
|
|
251
|
+
break
|
|
252
|
+
case 'week':
|
|
253
|
+
handleWeekChange(date)
|
|
254
|
+
break
|
|
255
|
+
case 'weekrange':
|
|
256
|
+
handleWeekRangeChange(date)
|
|
257
|
+
break
|
|
258
|
+
default:
|
|
259
|
+
handleDateChange(date)
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
function getDate(date: number, isEnd: boolean = false) {
|
|
263
|
+
date = props.defaultTime && props.defaultTime.length > 0 ? getDateByDefaultTime(date, isEnd ? props.defaultTime[1] : props.defaultTime[0]) : date
|
|
264
|
+
|
|
265
|
+
if (date < props.minDate) return props.minDate
|
|
266
|
+
|
|
267
|
+
if (date > props.maxDate) return props.maxDate
|
|
268
|
+
|
|
269
|
+
return date
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function handleDateChange(date: CalendarDayItem) {
|
|
273
|
+
if (date.disabled) return
|
|
274
|
+
|
|
275
|
+
if (date.type !== 'selected') {
|
|
276
|
+
emit('change', {
|
|
277
|
+
value: getDate(date.date),
|
|
278
|
+
type: 'start'
|
|
279
|
+
})
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function handleDatesChange(date: CalendarDayItem) {
|
|
283
|
+
if (date.disabled) return
|
|
284
|
+
const currentValue = deepClone(isArray(props.value) ? props.value : [])
|
|
285
|
+
const dateIndex = currentValue.findIndex((item) => item && compareDate(item, date.date) === 0)
|
|
286
|
+
const value = dateIndex === -1 ? [...currentValue, getDate(date.date)] : currentValue.filter((_, index) => index !== dateIndex)
|
|
287
|
+
emit('change', { value })
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
function handleDateRangeChange(date: CalendarDayItem) {
|
|
291
|
+
if (date.disabled) return
|
|
292
|
+
|
|
293
|
+
let value: (number | null)[] = []
|
|
294
|
+
let type: CalendarDayType = ''
|
|
295
|
+
const [startDate, endDate] = deepClone(isArray(props.value) ? props.value : [])
|
|
296
|
+
const compare = compareDate(date.date, startDate)
|
|
297
|
+
|
|
298
|
+
// 禁止选择同个日期
|
|
299
|
+
if (!props.allowSameDay && compare === 0 && (props.type === 'daterange' || props.type === 'datetimerange') && !endDate) {
|
|
300
|
+
return
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if (startDate && !endDate && compare > -1) {
|
|
304
|
+
// 不能选择超过最大范围的日期
|
|
305
|
+
if (props.maxRange && getDayOffset(date.date, startDate) > props.maxRange) {
|
|
306
|
+
const maxEndDate = getDayByOffset(startDate, props.maxRange - 1)
|
|
307
|
+
value = [startDate, getDate(maxEndDate, true)]
|
|
308
|
+
toast.show({
|
|
309
|
+
msg: props.rangePrompt || translate('rangePrompt', props.maxRange)
|
|
310
|
+
})
|
|
311
|
+
} else {
|
|
312
|
+
value = [startDate, getDate(date.date, true)]
|
|
313
|
+
}
|
|
314
|
+
} else if (props.type === 'datetimerange' && startDate && endDate) {
|
|
315
|
+
// 时间范围类型,且有开始时间和结束时间,需要支持重新点击开始日期和结束日期可以重新修改时间
|
|
316
|
+
if (compare === 0) {
|
|
317
|
+
type = 'start'
|
|
318
|
+
value = props.value as number[]
|
|
319
|
+
} else if (compareDate(date.date, endDate) === 0) {
|
|
320
|
+
type = 'end'
|
|
321
|
+
value = props.value as number[]
|
|
322
|
+
} else {
|
|
323
|
+
value = [getDate(date.date), null]
|
|
324
|
+
}
|
|
325
|
+
} else {
|
|
326
|
+
value = [getDate(date.date), null]
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
emit('change', {
|
|
330
|
+
value,
|
|
331
|
+
type: type || (value[1] ? 'end' : 'start')
|
|
332
|
+
})
|
|
333
|
+
}
|
|
334
|
+
function handleWeekChange(date: CalendarDayItem) {
|
|
335
|
+
const [weekStart] = getWeekRange(date.date, props.firstDayOfWeek)
|
|
336
|
+
|
|
337
|
+
// 周的第一天如果是禁用状态,则不可选中
|
|
338
|
+
if (getFormatterDate(weekStart, new Date(weekStart).getDate()).disabled) return
|
|
339
|
+
|
|
340
|
+
emit('change', {
|
|
341
|
+
value: getDate(weekStart) + 24 * 60 * 60 * 1000
|
|
342
|
+
})
|
|
343
|
+
}
|
|
344
|
+
function handleWeekRangeChange(date: CalendarDayItem) {
|
|
345
|
+
const [weekStartDate] = getWeekRange(date.date, props.firstDayOfWeek)
|
|
346
|
+
|
|
347
|
+
// 周的第一天如果是禁用状态,则不可选中
|
|
348
|
+
if (getFormatterDate(weekStartDate, new Date(weekStartDate).getDate()).disabled) return
|
|
349
|
+
|
|
350
|
+
let value: (number | null)[] = []
|
|
351
|
+
const [startDate, endDate] = deepClone(isArray(props.value) ? props.value : [])
|
|
352
|
+
const [startWeekStartDate] = startDate ? getWeekRange(startDate, props.firstDayOfWeek) : []
|
|
353
|
+
const compare = compareDate(weekStartDate, startWeekStartDate)
|
|
354
|
+
|
|
355
|
+
if (startDate && !endDate && compare > -1) {
|
|
356
|
+
if (!props.allowSameDay && compare === 0) return
|
|
357
|
+
|
|
358
|
+
value = [getDate(startWeekStartDate) + 24 * 60 * 60 * 1000, getDate(weekStartDate) + 24 * 60 * 60 * 1000]
|
|
359
|
+
} else {
|
|
360
|
+
value = [getDate(weekStartDate) + 24 * 60 * 60 * 1000, null]
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
emit('change', {
|
|
364
|
+
value
|
|
365
|
+
})
|
|
366
|
+
}
|
|
367
|
+
function getFormatterDate(date: number, day: string | number, type?: CalendarDayType) {
|
|
368
|
+
let dayObj: CalendarDayItem = {
|
|
369
|
+
date: date,
|
|
370
|
+
text: day,
|
|
371
|
+
topInfo: '',
|
|
372
|
+
bottomInfo: '',
|
|
373
|
+
type,
|
|
374
|
+
disabled: compareDate(date, props.minDate) === -1 || compareDate(date, props.maxDate) === 1,
|
|
375
|
+
isLastRow: isLastRow(date)
|
|
376
|
+
}
|
|
377
|
+
if (props.formatter) {
|
|
378
|
+
if (isFunction(props.formatter)) {
|
|
379
|
+
dayObj = props.formatter(dayObj)
|
|
380
|
+
} else {
|
|
381
|
+
console.error('[wot-design] error(wd-calendar-view): the formatter prop of wd-calendar-view should be a function')
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return dayObj
|
|
385
|
+
}
|
|
386
|
+
</script>
|
|
387
|
+
<style lang="scss">
|
|
388
|
+
@use './index.scss';
|
|
389
|
+
</style>
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { PropType } from 'vue'
|
|
2
|
+
import { makeBooleanProp, makeRequiredProp } from '../../../common/props'
|
|
3
|
+
import type { CalendarFormatter, CalendarType } from '../types'
|
|
4
|
+
|
|
5
|
+
export const monthProps = {
|
|
6
|
+
/**
|
|
7
|
+
* 日期类型
|
|
8
|
+
* 类型: CalendarType
|
|
9
|
+
*/
|
|
10
|
+
type: makeRequiredProp(String as PropType<CalendarType>),
|
|
11
|
+
/**
|
|
12
|
+
* 日期时间戳
|
|
13
|
+
* 类型: number
|
|
14
|
+
*/
|
|
15
|
+
date: makeRequiredProp(Number),
|
|
16
|
+
/**
|
|
17
|
+
* 选中值,为 13 位时间戳或时间戳数组
|
|
18
|
+
* 类型: number | (number | null)[] | null
|
|
19
|
+
*/
|
|
20
|
+
value: makeRequiredProp([Number, Array, null] as PropType<number | (number | null)[] | null>),
|
|
21
|
+
/**
|
|
22
|
+
* 最小日期,为 13 位时间戳
|
|
23
|
+
* 类型: number
|
|
24
|
+
*/
|
|
25
|
+
minDate: makeRequiredProp(Number),
|
|
26
|
+
/**
|
|
27
|
+
* 最大日期,为 13 位时间戳
|
|
28
|
+
* 类型: number
|
|
29
|
+
*/
|
|
30
|
+
maxDate: makeRequiredProp(Number),
|
|
31
|
+
/**
|
|
32
|
+
* 周起始天
|
|
33
|
+
* 类型: number
|
|
34
|
+
*/
|
|
35
|
+
firstDayOfWeek: makeRequiredProp(Number),
|
|
36
|
+
/**
|
|
37
|
+
* 日期格式化函数
|
|
38
|
+
* 类型: CalendarFormatter
|
|
39
|
+
*/
|
|
40
|
+
formatter: Function as PropType<CalendarFormatter>,
|
|
41
|
+
/**
|
|
42
|
+
* type 为范围选择时有效,最大日期范围
|
|
43
|
+
* 类型: number
|
|
44
|
+
*/
|
|
45
|
+
maxRange: Number,
|
|
46
|
+
/**
|
|
47
|
+
* type 为范围选择时有效,选择超出最大日期范围时的错误提示文案
|
|
48
|
+
* 类型: string
|
|
49
|
+
*/
|
|
50
|
+
rangePrompt: String,
|
|
51
|
+
/**
|
|
52
|
+
* type 为范围选择时有效,是否允许选择同一天
|
|
53
|
+
* 类型: boolean
|
|
54
|
+
* 默认值: false
|
|
55
|
+
*/
|
|
56
|
+
allowSameDay: makeBooleanProp(false),
|
|
57
|
+
/**
|
|
58
|
+
* 选中日期所使用的当日内具体时刻
|
|
59
|
+
* 类型: number[][]
|
|
60
|
+
*/
|
|
61
|
+
defaultTime: {
|
|
62
|
+
type: [Array] as PropType<Array<number[]>>
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* 是否展示标题
|
|
66
|
+
* 类型: boolean
|
|
67
|
+
* 默认值: true
|
|
68
|
+
*/
|
|
69
|
+
showTitle: makeBooleanProp(true)
|
|
70
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use '../../../styles/mixin/mixin.scss'as *;
|
|
2
|
+
@use '../index.scss'as *;
|
|
3
|
+
|
|
4
|
+
@include b(month-panel) {
|
|
5
|
+
|
|
6
|
+
@include e(controls) {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
padding: $calendar-view-controls-padding;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include e(controls-title){
|
|
15
|
+
font-size: $calendar-view-panel-title-font-size;
|
|
16
|
+
line-height: $calendar-view-panel-title-line-height;
|
|
17
|
+
color: $calendar-view-panel-title-color;
|
|
18
|
+
font-weight: $calendar-view-panel-title-font-weight;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@include edeep(control-icon){
|
|
22
|
+
color: $calendar-view-control-icon-color;
|
|
23
|
+
font-size: $calendar-view-control-icon-size;
|
|
24
|
+
line-height: $calendar-view-control-icon-size;
|
|
25
|
+
|
|
26
|
+
&:not(:last-child){
|
|
27
|
+
margin-right: $calendar-view-control-icon-spacing;
|
|
28
|
+
}
|
|
29
|
+
@include when(disabled){
|
|
30
|
+
color: $calendar-view-control-color-disabled;
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@include e(title) {
|
|
36
|
+
font-size: $calendar-view-panel-title-font-size;
|
|
37
|
+
line-height: $calendar-view-panel-title-line-height;
|
|
38
|
+
color: $calendar-view-panel-title-color;
|
|
39
|
+
padding: $calendar-view-panel-title-padding;
|
|
40
|
+
font-weight: $calendar-view-panel-title-font-weight;
|
|
41
|
+
margin: $calendar-view-panel-title-margin;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@include e(weeks) {
|
|
45
|
+
display: flex;
|
|
46
|
+
padding: $calendar-view-weeks-padding;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include e(week) {
|
|
50
|
+
flex: 1;
|
|
51
|
+
text-align: center;
|
|
52
|
+
color: $calendar-view-week-color;
|
|
53
|
+
font-size: $calendar-view-week-font-size;
|
|
54
|
+
line-height: $calendar-view-week-line-height;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include e(container) {
|
|
58
|
+
box-sizing: border-box;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@include e(time) {
|
|
62
|
+
display: flex;
|
|
63
|
+
box-shadow: $calendar-view-time-box-shadow;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@include e(time-label) {
|
|
67
|
+
position: relative;
|
|
68
|
+
flex: 1;
|
|
69
|
+
font-size: $calendar-view-time-picker-font-size;
|
|
70
|
+
color: $calendar-view-time-picker-color;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@include e(time-text) {
|
|
77
|
+
position: relative;
|
|
78
|
+
z-index: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include e(time-picker) {
|
|
82
|
+
flex: 3;
|
|
83
|
+
}
|
|
84
|
+
}
|