@tplc/wot 0.0.1
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/components/common/AbortablePromise.ts +36 -0
- package/components/common/abstracts/_config.scss +7 -0
- package/components/common/abstracts/_function.scss +76 -0
- package/components/common/abstracts/_mixin.scss +339 -0
- package/components/common/abstracts/variable.scss +1346 -0
- package/components/common/base64.ts +30 -0
- package/components/common/canvasHelper.ts +49 -0
- package/components/common/clickoutside.ts +34 -0
- package/components/common/dayjs.ts +157 -0
- package/components/common/event.ts +8 -0
- package/components/common/props.ts +51 -0
- package/components/common/util.ts +751 -0
- package/components/composables/useCell.ts +13 -0
- package/components/composables/useChildren.ts +122 -0
- package/components/composables/useCountDown.ts +138 -0
- package/components/composables/useLockScroll.ts +39 -0
- package/components/composables/useParent.ts +41 -0
- package/components/composables/usePopover.ts +193 -0
- package/components/composables/useQueue.ts +52 -0
- package/components/composables/useRaf.ts +37 -0
- package/components/composables/useTouch.ts +44 -0
- package/components/composables/useTranslate.ts +22 -0
- package/components/wd-action-sheet/index.scss +204 -0
- package/components/wd-action-sheet/types.ts +128 -0
- package/components/wd-action-sheet/wd-action-sheet.vue +174 -0
- package/components/wd-backtop/index.scss +25 -0
- package/components/wd-backtop/types.ts +37 -0
- package/components/wd-backtop/wd-backtop.vue +48 -0
- package/components/wd-badge/index.scss +59 -0
- package/components/wd-badge/types.ts +53 -0
- package/components/wd-badge/wd-badge.vue +69 -0
- package/components/wd-button/index.scss +340 -0
- package/components/wd-button/types.ts +112 -0
- package/components/wd-button/wd-button.vue +176 -0
- package/components/wd-calendar/index.scss +244 -0
- package/components/wd-calendar/types.ts +235 -0
- package/components/wd-calendar/wd-calendar.vue +456 -0
- package/components/wd-calendar-view/index.scss +9 -0
- package/components/wd-calendar-view/month/index.scss +151 -0
- package/components/wd-calendar-view/month/month.vue +391 -0
- package/components/wd-calendar-view/month/types.ts +19 -0
- package/components/wd-calendar-view/monthPanel/index.scss +89 -0
- package/components/wd-calendar-view/monthPanel/month-panel.vue +388 -0
- package/components/wd-calendar-view/monthPanel/types.ts +48 -0
- package/components/wd-calendar-view/types.ts +134 -0
- package/components/wd-calendar-view/utils.ts +451 -0
- package/components/wd-calendar-view/wd-calendar-view.vue +111 -0
- package/components/wd-calendar-view/year/index.scss +148 -0
- package/components/wd-calendar-view/year/types.ts +19 -0
- package/components/wd-calendar-view/year/year.vue +220 -0
- package/components/wd-calendar-view/yearPanel/index.scss +24 -0
- package/components/wd-calendar-view/yearPanel/types.ts +38 -0
- package/components/wd-calendar-view/yearPanel/year-panel.vue +140 -0
- package/components/wd-card/index.scss +70 -0
- package/components/wd-card/types.ts +30 -0
- package/components/wd-card/wd-card.vue +40 -0
- package/components/wd-cell/index.scss +189 -0
- package/components/wd-cell/types.ts +96 -0
- package/components/wd-cell/wd-cell.vue +135 -0
- package/components/wd-cell-group/index.scss +55 -0
- package/components/wd-cell-group/types.ts +41 -0
- package/components/wd-cell-group/wd-cell-group.vue +45 -0
- package/components/wd-checkbox/index.scss +285 -0
- package/components/wd-checkbox/types.ts +68 -0
- package/components/wd-checkbox/wd-checkbox.vue +185 -0
- package/components/wd-checkbox-group/index.scss +20 -0
- package/components/wd-checkbox-group/types.ts +59 -0
- package/components/wd-checkbox-group/wd-checkbox-group.vue +103 -0
- package/components/wd-circle/index.scss +18 -0
- package/components/wd-circle/types.ts +54 -0
- package/components/wd-circle/wd-circle.vue +318 -0
- package/components/wd-col/index.scss +19 -0
- package/components/wd-col/types.ts +15 -0
- package/components/wd-col/wd-col.vue +91 -0
- package/components/wd-col-picker/index.scss +241 -0
- package/components/wd-col-picker/types.ts +170 -0
- package/components/wd-col-picker/wd-col-picker.vue +550 -0
- package/components/wd-collapse/index.scss +55 -0
- package/components/wd-collapse/types.ts +63 -0
- package/components/wd-collapse/wd-collapse.vue +160 -0
- package/components/wd-collapse-item/index.scss +79 -0
- package/components/wd-collapse-item/types.ts +36 -0
- package/components/wd-collapse-item/wd-collapse-item.vue +182 -0
- package/components/wd-config-provider/types.ts +1023 -0
- package/components/wd-config-provider/wd-config-provider.vue +82 -0
- package/components/wd-count-down/index.scss +14 -0
- package/components/wd-count-down/types.ts +41 -0
- package/components/wd-count-down/utils.ts +52 -0
- package/components/wd-count-down/wd-count-down.vue +60 -0
- package/components/wd-count-to/index.scss +6 -0
- package/components/wd-count-to/types.ts +110 -0
- package/components/wd-count-to/wd-count-to.vue +134 -0
- package/components/wd-curtain/index.scss +80 -0
- package/components/wd-curtain/types.ts +45 -0
- package/components/wd-curtain/wd-curtain.vue +174 -0
- package/components/wd-datetime-picker/index.scss +243 -0
- package/components/wd-datetime-picker/types.ts +225 -0
- package/components/wd-datetime-picker/wd-datetime-picker.vue +827 -0
- package/components/wd-datetime-picker-view/index.scss +0 -0
- package/components/wd-datetime-picker-view/types.ts +137 -0
- package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +514 -0
- package/components/wd-divider/index.scss +32 -0
- package/components/wd-divider/types.ts +12 -0
- package/components/wd-divider/wd-divider.vue +29 -0
- package/components/wd-drop-menu/index.scss +89 -0
- package/components/wd-drop-menu/types.ts +38 -0
- package/components/wd-drop-menu/wd-drop-menu.vue +128 -0
- package/components/wd-drop-menu-item/index.scss +66 -0
- package/components/wd-drop-menu-item/types.ts +78 -0
- package/components/wd-drop-menu-item/wd-drop-menu-item.vue +230 -0
- package/components/wd-fab/index.scss +115 -0
- package/components/wd-fab/types.ts +61 -0
- package/components/wd-fab/wd-fab.vue +257 -0
- package/components/wd-form/index.scss +10 -0
- package/components/wd-form/types.ts +93 -0
- package/components/wd-form/wd-form.vue +185 -0
- package/components/wd-form-item/index.scss +17 -0
- package/components/wd-form-item/types.ts +22 -0
- package/components/wd-form-item/wd-form-item.vue +65 -0
- package/components/wd-gap/index.scss +9 -0
- package/components/wd-gap/types.ts +23 -0
- package/components/wd-gap/wd-gap.vue +39 -0
- package/components/wd-grid/index.scss +9 -0
- package/components/wd-grid/types.ts +54 -0
- package/components/wd-grid/wd-grid.vue +107 -0
- package/components/wd-grid-item/index.scss +137 -0
- package/components/wd-grid-item/types.ts +74 -0
- package/components/wd-grid-item/wd-grid-item.vue +181 -0
- package/components/wd-icon/index.scss +1222 -0
- package/components/wd-icon/types.ts +21 -0
- package/components/wd-icon/wd-icon.vue +53 -0
- package/components/wd-icon/wd-icons.ttf +0 -0
- package/components/wd-img/index.scss +19 -0
- package/components/wd-img/types.ts +53 -0
- package/components/wd-img/wd-img.vue +76 -0
- package/components/wd-img-cropper/index.scss +227 -0
- package/components/wd-img-cropper/types.ts +87 -0
- package/components/wd-img-cropper/wd-img-cropper.vue +659 -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 +57 -0
- package/components/wd-index-bar/index.scss +39 -0
- package/components/wd-index-bar/type.ts +28 -0
- package/components/wd-index-bar/wd-index-bar.vue +158 -0
- package/components/wd-input/index.scss +326 -0
- package/components/wd-input/types.ts +182 -0
- package/components/wd-input/wd-input.vue +327 -0
- package/components/wd-input-number/index.scss +132 -0
- package/components/wd-input-number/types.ts +78 -0
- package/components/wd-input-number/wd-input-number.vue +221 -0
- package/components/wd-loading/index.scss +34 -0
- package/components/wd-loading/types.ts +31 -0
- package/components/wd-loading/wd-loading.vue +90 -0
- package/components/wd-loadmore/index.scss +39 -0
- package/components/wd-loadmore/types.ts +24 -0
- package/components/wd-loadmore/wd-loadmore.vue +53 -0
- package/components/wd-message-box/index.scss +121 -0
- package/components/wd-message-box/index.ts +95 -0
- package/components/wd-message-box/types.ts +116 -0
- package/components/wd-message-box/wd-message-box.vue +326 -0
- package/components/wd-navbar/index.scss +103 -0
- package/components/wd-navbar/types.ts +52 -0
- package/components/wd-navbar/wd-navbar.vue +142 -0
- package/components/wd-navbar-capsule/index.scss +65 -0
- package/components/wd-navbar-capsule/types.ts +0 -0
- package/components/wd-navbar-capsule/wd-navbar-capsule.vue +31 -0
- package/components/wd-notice-bar/index.scss +86 -0
- package/components/wd-notice-bar/types.ts +56 -0
- package/components/wd-notice-bar/wd-notice-bar.vue +223 -0
- package/components/wd-notify/index.scss +34 -0
- package/components/wd-notify/index.ts +59 -0
- package/components/wd-notify/types.ts +62 -0
- package/components/wd-notify/wd-notify.vue +83 -0
- package/components/wd-number-keyboard/index.scss +78 -0
- package/components/wd-number-keyboard/key/index.scss +79 -0
- package/components/wd-number-keyboard/key/index.vue +76 -0
- package/components/wd-number-keyboard/key/types.ts +11 -0
- package/components/wd-number-keyboard/types.ts +79 -0
- package/components/wd-number-keyboard/wd-number-keyboard.vue +173 -0
- package/components/wd-overlay/index.scss +17 -0
- package/components/wd-overlay/types.ts +25 -0
- package/components/wd-overlay/wd-overlay.vue +46 -0
- package/components/wd-pagination/index.scss +57 -0
- package/components/wd-pagination/types.ts +41 -0
- package/components/wd-pagination/wd-pagination.vue +121 -0
- package/components/wd-password-input/index.scss +123 -0
- package/components/wd-password-input/types.ts +48 -0
- package/components/wd-password-input/wd-password-input.vue +58 -0
- package/components/wd-picker/index.scss +216 -0
- package/components/wd-picker/types.ts +186 -0
- package/components/wd-picker/wd-picker.vue +409 -0
- package/components/wd-picker-view/index.scss +91 -0
- package/components/wd-picker-view/types.ts +162 -0
- package/components/wd-picker-view/wd-picker-view.vue +361 -0
- package/components/wd-popover/index.scss +123 -0
- package/components/wd-popover/types.ts +69 -0
- package/components/wd-popover/wd-popover.vue +216 -0
- package/components/wd-popup/index.scss +112 -0
- package/components/wd-popup/types.ts +68 -0
- package/components/wd-popup/wd-popup.vue +227 -0
- package/components/wd-progress/index.scss +62 -0
- package/components/wd-progress/types.ts +40 -0
- package/components/wd-progress/wd-progress.vue +201 -0
- package/components/wd-radio/index.scss +300 -0
- package/components/wd-radio/types.ts +42 -0
- package/components/wd-radio/wd-radio.vue +136 -0
- package/components/wd-radio-group/index.scss +23 -0
- package/components/wd-radio-group/types.ts +36 -0
- package/components/wd-radio-group/wd-radio-group.vue +54 -0
- package/components/wd-rate/index.scss +24 -0
- package/components/wd-rate/types.ts +91 -0
- package/components/wd-rate/wd-rate.vue +131 -0
- package/components/wd-resize/index.scss +26 -0
- package/components/wd-resize/types.ts +6 -0
- package/components/wd-resize/wd-resize.vue +155 -0
- package/components/wd-row/index.scss +10 -0
- package/components/wd-row/types.ts +16 -0
- package/components/wd-row/wd-row.vue +63 -0
- package/components/wd-search/index.scss +148 -0
- package/components/wd-search/types.ts +83 -0
- package/components/wd-search/wd-search.vue +237 -0
- package/components/wd-segmented/index.scss +97 -0
- package/components/wd-segmented/types.ts +68 -0
- package/components/wd-segmented/wd-segmented.vue +143 -0
- package/components/wd-select-picker/index.scss +177 -0
- package/components/wd-select-picker/types.ts +116 -0
- package/components/wd-select-picker/wd-select-picker.vue +486 -0
- package/components/wd-sidebar/index.scss +25 -0
- package/components/wd-sidebar/types.ts +28 -0
- package/components/wd-sidebar/wd-sidebar.vue +41 -0
- package/components/wd-sidebar-item/index.scss +93 -0
- package/components/wd-sidebar-item/types.ts +31 -0
- package/components/wd-sidebar-item/wd-sidebar-item.vue +114 -0
- package/components/wd-skeleton/index.scss +101 -0
- package/components/wd-skeleton/index.ts +1 -0
- package/components/wd-skeleton/types.ts +69 -0
- package/components/wd-skeleton/wd-skeleton.vue +135 -0
- package/components/wd-slider/index.scss +91 -0
- package/components/wd-slider/types.ts +104 -0
- package/components/wd-slider/wd-slider.vue +377 -0
- package/components/wd-sort-button/index.scss +86 -0
- package/components/wd-sort-button/types.ts +43 -0
- package/components/wd-sort-button/wd-sort-button.vue +76 -0
- package/components/wd-status-tip/index.scss +37 -0
- package/components/wd-status-tip/types.ts +59 -0
- package/components/wd-status-tip/wd-status-tip.vue +94 -0
- package/components/wd-step/index.scss +236 -0
- package/components/wd-step/types.ts +33 -0
- package/components/wd-step/wd-step.vue +151 -0
- package/components/wd-steps/index.scss +10 -0
- package/components/wd-steps/types.ts +59 -0
- package/components/wd-steps/wd-steps.vue +37 -0
- package/components/wd-sticky/index.scss +9 -0
- package/components/wd-sticky/types.ts +13 -0
- package/components/wd-sticky/wd-sticky.vue +190 -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 +154 -0
- package/components/wd-swipe-action/index.scss +22 -0
- package/components/wd-swipe-action/types.ts +43 -0
- package/components/wd-swipe-action/wd-swipe-action.vue +307 -0
- package/components/wd-swiper/index.scss +23 -0
- package/components/wd-swiper/types.ts +189 -0
- package/components/wd-swiper/wd-swiper.vue +202 -0
- package/components/wd-swiper-nav/index.scss +153 -0
- package/components/wd-swiper-nav/types.ts +42 -0
- package/components/wd-swiper-nav/wd-swiper-nav.vue +37 -0
- package/components/wd-switch/index.scss +58 -0
- package/components/wd-switch/types.ts +56 -0
- package/components/wd-switch/wd-switch.vue +83 -0
- package/components/wd-tab/index.scss +8 -0
- package/components/wd-tab/types.ts +20 -0
- package/components/wd-tab/wd-tab.vue +100 -0
- package/components/wd-tabbar/index.scss +57 -0
- package/components/wd-tabbar/types.ts +88 -0
- package/components/wd-tabbar/wd-tabbar.vue +104 -0
- package/components/wd-tabbar-item/index.scss +52 -0
- package/components/wd-tabbar-item/types.ts +51 -0
- package/components/wd-tabbar-item/wd-tabbar-item.vue +101 -0
- package/components/wd-table/index.scss +132 -0
- package/components/wd-table/types.ts +69 -0
- package/components/wd-table/wd-table.vue +255 -0
- package/components/wd-table-col/index.scss +44 -0
- package/components/wd-table-col/types.ts +54 -0
- package/components/wd-table-col/wd-table-col.vue +149 -0
- package/components/wd-tabs/index.scss +280 -0
- package/components/wd-tabs/types.ts +71 -0
- package/components/wd-tabs/wd-tabs.vue +528 -0
- package/components/wd-tag/index.scss +115 -0
- package/components/wd-tag/types.ts +81 -0
- package/components/wd-tag/wd-tag.vue +154 -0
- package/components/wd-text/index.scss +34 -0
- package/components/wd-text/types.ts +98 -0
- package/components/wd-text/wd-text.vue +138 -0
- package/components/wd-textarea/index.scss +343 -0
- package/components/wd-textarea/types.ts +298 -0
- package/components/wd-textarea/wd-textarea.vue +303 -0
- package/components/wd-toast/index.scss +66 -0
- package/components/wd-toast/index.ts +109 -0
- package/components/wd-toast/types.ts +76 -0
- package/components/wd-toast/wd-toast.vue +212 -0
- package/components/wd-tooltip/index.scss +61 -0
- package/components/wd-tooltip/types.ts +102 -0
- package/components/wd-tooltip/wd-tooltip.vue +167 -0
- package/components/wd-transition/index.scss +91 -0
- package/components/wd-transition/types.ts +89 -0
- package/components/wd-transition/wd-transition.vue +221 -0
- package/components/wd-upload/index.scss +173 -0
- package/components/wd-upload/types.ts +378 -0
- package/components/wd-upload/utils.ts +152 -0
- package/components/wd-upload/wd-upload.vue +737 -0
- package/components/wd-video-preview/index.scss +34 -0
- package/components/wd-video-preview/types.ts +32 -0
- package/components/wd-video-preview/wd-video-preview.vue +76 -0
- package/components/wd-watermark/index.scss +18 -0
- package/components/wd-watermark/types.ts +82 -0
- package/components/wd-watermark/wd-watermark.vue +592 -0
- package/components/wot-design-uni/wot-design-uni.vue +14 -0
- package/global.d.ts +108 -0
- package/index.ts +30 -0
- package/locale/index.ts +41 -0
- package/locale/lang/en-US.ts +128 -0
- package/locale/lang/th-TH.ts +127 -0
- package/locale/lang/vi-VN.ts +89 -0
- package/locale/lang/zh-CN.ts +127 -0
- package/locale/lang/zh-HK.ts +84 -0
- package/locale/lang/zh-TW.ts +84 -0
- package/package.json +20 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view :class="`wd-calendar ${cell.border.value ? 'is-border' : ''} ${customClass}`">
|
|
3
|
+
<view class="wd-calendar__field" @click="open">
|
|
4
|
+
<slot v-if="useDefaultSlot"></slot>
|
|
5
|
+
<view
|
|
6
|
+
v-else
|
|
7
|
+
:class="`wd-calendar__cell ${disabled ? 'is-disabled' : ''} ${readonly ? 'is-readonly' : ''} ${alignRight ? 'is-align-right' : ''} ${
|
|
8
|
+
error ? 'is-error' : ''
|
|
9
|
+
} ${size ? 'is-' + size : ''} ${center ? 'is-center' : ''}`"
|
|
10
|
+
>
|
|
11
|
+
<view
|
|
12
|
+
v-if="label || useLabelSlot"
|
|
13
|
+
:class="`wd-calendar__label ${isRequired ? 'is-required' : ''} ${customLabelClass}`"
|
|
14
|
+
:style="labelWidth ? 'min-width:' + labelWidth + ';max-width:' + labelWidth + ';' : ''"
|
|
15
|
+
>
|
|
16
|
+
<block v-if="label">{{ label }}</block>
|
|
17
|
+
<slot v-else name="label"></slot>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="wd-calendar__body">
|
|
20
|
+
<view class="wd-calendar__value-wraper">
|
|
21
|
+
<view
|
|
22
|
+
:class="`wd-calendar__value ${ellipsis ? 'is-ellipsis' : ''} ${customValueClass} ${showValue ? '' : 'wd-calendar__value--placeholder'}`"
|
|
23
|
+
>
|
|
24
|
+
{{ showValue || placeholder || translate('placeholder') }}
|
|
25
|
+
</view>
|
|
26
|
+
<wd-icon
|
|
27
|
+
v-if="!disabled && !readonly"
|
|
28
|
+
custom-class="wd-calendar__arrow"
|
|
29
|
+
name="arrow-right"
|
|
30
|
+
/>
|
|
31
|
+
</view>
|
|
32
|
+
<view v-if="errorMessage" class="wd-calendar__error-message">{{ errorMessage }}</view>
|
|
33
|
+
</view>
|
|
34
|
+
</view>
|
|
35
|
+
</view>
|
|
36
|
+
<wd-action-sheet
|
|
37
|
+
v-model="pickerShow"
|
|
38
|
+
:duration="250"
|
|
39
|
+
:close-on-click-modal="closeOnClickModal"
|
|
40
|
+
:safe-area-inset-bottom="safeAreaInsetBottom"
|
|
41
|
+
:z-index="zIndex"
|
|
42
|
+
@close="close"
|
|
43
|
+
>
|
|
44
|
+
<view class="wd-calendar__header">
|
|
45
|
+
<view v-if="!showTypeSwitch && shortcuts.length === 0" class="wd-calendar__title">
|
|
46
|
+
{{ title || translate('title') }}
|
|
47
|
+
</view>
|
|
48
|
+
<view v-if="showTypeSwitch" class="wd-calendar__tabs">
|
|
49
|
+
<wd-tabs ref="calendarTabs" v-model="currentTab" @change="handleTypeChange">
|
|
50
|
+
<wd-tab :title="translate('day')" :name="translate('day')" />
|
|
51
|
+
<wd-tab :title="translate('week')" :name="translate('week')" />
|
|
52
|
+
<wd-tab :title="translate('month')" :name="translate('month')" />
|
|
53
|
+
</wd-tabs>
|
|
54
|
+
</view>
|
|
55
|
+
<view v-if="shortcuts.length > 0" class="wd-calendar__shortcuts">
|
|
56
|
+
<wd-tag
|
|
57
|
+
v-for="(item, index) in shortcuts"
|
|
58
|
+
:key="index"
|
|
59
|
+
custom-class="wd-calendar__tag"
|
|
60
|
+
type="primary"
|
|
61
|
+
plain
|
|
62
|
+
round
|
|
63
|
+
@click="handleShortcutClick(index)"
|
|
64
|
+
>
|
|
65
|
+
{{ item.text }}
|
|
66
|
+
</wd-tag>
|
|
67
|
+
</view>
|
|
68
|
+
<wd-icon custom-class="wd-calendar__close" name="add" @click="close" />
|
|
69
|
+
</view>
|
|
70
|
+
<view
|
|
71
|
+
v-if="inited"
|
|
72
|
+
:class="`wd-calendar__view ${currentType.indexOf('range') > -1 ? 'is-range' : ''} ${showConfirm ? 'is-show-confirm' : ''}`"
|
|
73
|
+
>
|
|
74
|
+
<view
|
|
75
|
+
v-if="range(type)"
|
|
76
|
+
:class="`wd-calendar__range-label ${type === 'monthrange' ? 'is-monthrange' : ''}`"
|
|
77
|
+
>
|
|
78
|
+
<view
|
|
79
|
+
:class="`wd-calendar__range-label-item ${!calendarValue || !isArray(calendarValue) || !calendarValue[0] ? 'is-placeholder' : ''}`"
|
|
80
|
+
style="text-align: right"
|
|
81
|
+
>
|
|
82
|
+
{{ rangeLabel[0] }}
|
|
83
|
+
</view>
|
|
84
|
+
<view class="wd-calendar__range-sperator">/</view>
|
|
85
|
+
<view
|
|
86
|
+
:class="`wd-calendar__range-label-item ${!calendarValue || !isArray(calendarValue) || !calendarValue[1] ? 'is-placeholder' : ''}`"
|
|
87
|
+
>
|
|
88
|
+
{{ rangeLabel[1] }}
|
|
89
|
+
</view>
|
|
90
|
+
</view>
|
|
91
|
+
<wd-calendar-view
|
|
92
|
+
ref="calendarView"
|
|
93
|
+
v-model="calendarValue"
|
|
94
|
+
:type="currentType"
|
|
95
|
+
:min-date="minDate"
|
|
96
|
+
:max-date="maxDate"
|
|
97
|
+
:first-day-of-week="firstDayOfWeek"
|
|
98
|
+
:formatter="formatter"
|
|
99
|
+
:panel-height="panelHeight"
|
|
100
|
+
:max-range="maxRange"
|
|
101
|
+
:range-prompt="rangePrompt"
|
|
102
|
+
:allow-same-day="allowSameDay"
|
|
103
|
+
:default-time="defaultTime"
|
|
104
|
+
:time-filter="timeFilter"
|
|
105
|
+
:hide-second="hideSecond"
|
|
106
|
+
:show-panel-title="!range(type)"
|
|
107
|
+
:immediate-change="immediateChange"
|
|
108
|
+
@change="handleChange"
|
|
109
|
+
/>
|
|
110
|
+
</view>
|
|
111
|
+
<view v-if="showConfirm" class="wd-calendar__confirm">
|
|
112
|
+
<wd-button block :disabled="confirmBtnDisabled" @click="handleConfirm">
|
|
113
|
+
{{ confirmText || translate('confirm') }}
|
|
114
|
+
</wd-button>
|
|
115
|
+
</view>
|
|
116
|
+
</wd-action-sheet>
|
|
117
|
+
</view>
|
|
118
|
+
</template>
|
|
119
|
+
|
|
120
|
+
<script lang="ts">
|
|
121
|
+
export default {
|
|
122
|
+
name: 'wd-calendar',
|
|
123
|
+
options: {
|
|
124
|
+
addGlobalClass: true,
|
|
125
|
+
virtualHost: true,
|
|
126
|
+
styleIsolation: 'shared',
|
|
127
|
+
},
|
|
128
|
+
}
|
|
129
|
+
</script>
|
|
130
|
+
|
|
131
|
+
<script lang="ts" setup>
|
|
132
|
+
import { ref, computed, watch } from 'vue'
|
|
133
|
+
import { dayjs } from '../common/dayjs'
|
|
134
|
+
import { deepClone, isArray, isEqual, padZero, requestAnimationFrame } from '../common/util'
|
|
135
|
+
import { getWeekNumber, isRange } from '../wd-calendar-view/utils'
|
|
136
|
+
import { useCell } from '../composables/useCell'
|
|
137
|
+
import { FORM_KEY, type FormItemRule } from '../wd-form/types'
|
|
138
|
+
import { useParent } from '../composables/useParent'
|
|
139
|
+
import { useTranslate } from '../composables/useTranslate'
|
|
140
|
+
import { calendarProps, type CalendarExpose } from './types'
|
|
141
|
+
import type { CalendarType } from '../wd-calendar-view/types'
|
|
142
|
+
const { translate } = useTranslate('calendar')
|
|
143
|
+
|
|
144
|
+
const defaultDisplayFormat = (value: number | number[], type: CalendarType): string => {
|
|
145
|
+
switch (type) {
|
|
146
|
+
case 'date':
|
|
147
|
+
return dayjs(value as number).format('YYYY-MM-DD')
|
|
148
|
+
case 'dates':
|
|
149
|
+
return (value as number[])
|
|
150
|
+
.map((item) => {
|
|
151
|
+
return dayjs(item).format('YYYY-MM-DD')
|
|
152
|
+
})
|
|
153
|
+
.join(', ')
|
|
154
|
+
case 'daterange':
|
|
155
|
+
return `${(value as number[])[0] ? dayjs((value as number[])[0]).format('YYYY-MM-DD') : translate('startTime')} ${translate('to')} ${
|
|
156
|
+
(value as number[])[1]
|
|
157
|
+
? dayjs((value as number[])[1]).format('YYYY-MM-DD')
|
|
158
|
+
: translate('endTime')
|
|
159
|
+
}`
|
|
160
|
+
case 'datetime':
|
|
161
|
+
return dayjs(value as number).format('YYYY-MM-DD HH:mm:ss')
|
|
162
|
+
case 'datetimerange':
|
|
163
|
+
return `${(value as number[])[0] ? dayjs((value as number[])[0]).format(translate('timeFormat')) : translate('startTime')} ${translate(
|
|
164
|
+
'to',
|
|
165
|
+
)}\n${(value as number[])[1] ? dayjs((value as number[])[1]).format(translate('timeFormat')) : translate('endTime')}`
|
|
166
|
+
case 'week': {
|
|
167
|
+
const year = new Date(value as number).getFullYear()
|
|
168
|
+
const week = getWeekNumber(value as number)
|
|
169
|
+
return translate('weekFormat', year, padZero(week))
|
|
170
|
+
}
|
|
171
|
+
case 'weekrange': {
|
|
172
|
+
const year1 = new Date((value as number[])[0]).getFullYear()
|
|
173
|
+
const week1 = getWeekNumber((value as number[])[0])
|
|
174
|
+
const year2 = new Date((value as number[])[1]).getFullYear()
|
|
175
|
+
const week2 = getWeekNumber((value as number[])[1])
|
|
176
|
+
return `${(value as number[])[0] ? translate('weekFormat', year1, padZero(week1)) : translate('startWeek')} - ${
|
|
177
|
+
(value as number[])[1]
|
|
178
|
+
? translate('weekFormat', year2, padZero(week2))
|
|
179
|
+
: translate('endWeek')
|
|
180
|
+
}`
|
|
181
|
+
}
|
|
182
|
+
case 'month':
|
|
183
|
+
return dayjs(value as number).format('YYYY / MM')
|
|
184
|
+
case 'monthrange':
|
|
185
|
+
return `${(value as number[])[0] ? dayjs((value as number[])[0]).format('YYYY / MM') : translate('startMonth')} ${translate('to')} ${
|
|
186
|
+
(value as number[])[1]
|
|
187
|
+
? dayjs((value as number[])[1]).format('YYYY / MM')
|
|
188
|
+
: translate('endMonth')
|
|
189
|
+
}`
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const formatRange = (value: number, rangeType: 'start' | 'end', type: CalendarType) => {
|
|
194
|
+
switch (type) {
|
|
195
|
+
case 'daterange':
|
|
196
|
+
if (!value) {
|
|
197
|
+
return rangeType === 'end' ? translate('endTime') : translate('startTime')
|
|
198
|
+
}
|
|
199
|
+
return dayjs(value).format(translate('dateFormat'))
|
|
200
|
+
case 'datetimerange':
|
|
201
|
+
if (!value) {
|
|
202
|
+
return rangeType === 'end' ? translate('endTime') : translate('startTime')
|
|
203
|
+
}
|
|
204
|
+
return dayjs(value).format(translate('timeFormat'))
|
|
205
|
+
case 'weekrange': {
|
|
206
|
+
if (!value) {
|
|
207
|
+
return rangeType === 'end' ? translate('endWeek') : translate('startWeek')
|
|
208
|
+
}
|
|
209
|
+
const date = new Date(value)
|
|
210
|
+
const year = date.getFullYear()
|
|
211
|
+
const week = getWeekNumber(value)
|
|
212
|
+
return translate('weekFormat', year, padZero(week))
|
|
213
|
+
}
|
|
214
|
+
case 'monthrange':
|
|
215
|
+
if (!value) {
|
|
216
|
+
return rangeType === 'end' ? translate('endMonth') : translate('startMonth')
|
|
217
|
+
}
|
|
218
|
+
return dayjs(value).format(translate('monthFormat'))
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const props = defineProps(calendarProps)
|
|
223
|
+
const emit = defineEmits(['cancel', 'change', 'update:modelValue', 'confirm'])
|
|
224
|
+
|
|
225
|
+
const pickerShow = ref<boolean>(false)
|
|
226
|
+
const calendarValue = ref<null | number | number[]>(null)
|
|
227
|
+
const lastCalendarValue = ref<null | number | number[]>(null)
|
|
228
|
+
const panelHeight = ref<number>(338)
|
|
229
|
+
const confirmBtnDisabled = ref<boolean>(true)
|
|
230
|
+
const currentTab = ref<number>(0)
|
|
231
|
+
const lastTab = ref<number>(0)
|
|
232
|
+
const currentType = ref<CalendarType>('date')
|
|
233
|
+
const lastCurrentType = ref<CalendarType>()
|
|
234
|
+
const inited = ref<boolean>(false)
|
|
235
|
+
const cell = useCell()
|
|
236
|
+
const calendarView = ref()
|
|
237
|
+
const calendarTabs = ref()
|
|
238
|
+
|
|
239
|
+
const rangeLabel = computed(() => {
|
|
240
|
+
const [start, end] = deepClone(isArray(calendarValue.value) ? calendarValue.value : [])
|
|
241
|
+
return [start, end].map((item, index) => {
|
|
242
|
+
return (props.innerDisplayFormat || formatRange)(
|
|
243
|
+
item,
|
|
244
|
+
index === 0 ? 'start' : 'end',
|
|
245
|
+
currentType.value,
|
|
246
|
+
)
|
|
247
|
+
})
|
|
248
|
+
})
|
|
249
|
+
|
|
250
|
+
const showValue = computed(() => {
|
|
251
|
+
if (
|
|
252
|
+
(!isArray(props.modelValue) && props.modelValue) ||
|
|
253
|
+
(isArray(props.modelValue) && props.modelValue.length)
|
|
254
|
+
) {
|
|
255
|
+
return (props.displayFormat || defaultDisplayFormat)(
|
|
256
|
+
props.modelValue,
|
|
257
|
+
lastCurrentType.value || currentType.value,
|
|
258
|
+
)
|
|
259
|
+
} else {
|
|
260
|
+
return ''
|
|
261
|
+
}
|
|
262
|
+
})
|
|
263
|
+
|
|
264
|
+
watch(
|
|
265
|
+
() => props.modelValue,
|
|
266
|
+
(val, oldVal) => {
|
|
267
|
+
if (isEqual(val, oldVal)) return
|
|
268
|
+
calendarValue.value = deepClone(val)
|
|
269
|
+
confirmBtnDisabled.value = getConfirmBtnStatus(val)
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
immediate: true,
|
|
273
|
+
},
|
|
274
|
+
)
|
|
275
|
+
|
|
276
|
+
watch(
|
|
277
|
+
() => props.type,
|
|
278
|
+
(newValue, oldValue) => {
|
|
279
|
+
if (props.showTypeSwitch) {
|
|
280
|
+
const tabs = ['date', 'week', 'month']
|
|
281
|
+
const rangeTabs = ['daterange', 'weekrange', 'monthrange']
|
|
282
|
+
|
|
283
|
+
const index =
|
|
284
|
+
newValue.indexOf('range') > -1 ? rangeTabs.indexOf(newValue) || 0 : tabs.indexOf(newValue)
|
|
285
|
+
currentTab.value = index
|
|
286
|
+
}
|
|
287
|
+
panelHeight.value = props.showConfirm ? 338 : 400
|
|
288
|
+
currentType.value = deepClone(newValue)
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
deep: true,
|
|
292
|
+
immediate: true,
|
|
293
|
+
},
|
|
294
|
+
)
|
|
295
|
+
|
|
296
|
+
watch(
|
|
297
|
+
() => props.showConfirm,
|
|
298
|
+
(val) => {
|
|
299
|
+
panelHeight.value = val ? 338 : 400
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
deep: true,
|
|
303
|
+
immediate: true,
|
|
304
|
+
},
|
|
305
|
+
)
|
|
306
|
+
|
|
307
|
+
const { parent: form } = useParent(FORM_KEY)
|
|
308
|
+
|
|
309
|
+
// 表单校验错误信息
|
|
310
|
+
const errorMessage = computed(() => {
|
|
311
|
+
if (form && props.prop && form.errorMessages && form.errorMessages[props.prop]) {
|
|
312
|
+
return form.errorMessages[props.prop]
|
|
313
|
+
} else {
|
|
314
|
+
return ''
|
|
315
|
+
}
|
|
316
|
+
})
|
|
317
|
+
|
|
318
|
+
// 是否展示必填
|
|
319
|
+
const isRequired = computed(() => {
|
|
320
|
+
let formRequired = false
|
|
321
|
+
if (form && form.props.rules) {
|
|
322
|
+
const rules = form.props.rules
|
|
323
|
+
for (const key in rules) {
|
|
324
|
+
if (
|
|
325
|
+
Object.prototype.hasOwnProperty.call(rules, key) &&
|
|
326
|
+
key === props.prop &&
|
|
327
|
+
Array.isArray(rules[key])
|
|
328
|
+
) {
|
|
329
|
+
formRequired = rules[key].some((rule: FormItemRule) => rule.required)
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return props.required || props.rules.some((rule) => rule.required) || formRequired
|
|
334
|
+
})
|
|
335
|
+
|
|
336
|
+
const range = computed(() => {
|
|
337
|
+
return (type: CalendarType) => {
|
|
338
|
+
return isRange(type)
|
|
339
|
+
}
|
|
340
|
+
})
|
|
341
|
+
|
|
342
|
+
function scrollIntoView() {
|
|
343
|
+
calendarView.value && calendarView.value && calendarView.value.$.exposed.scrollIntoView()
|
|
344
|
+
}
|
|
345
|
+
// 对外暴露方法
|
|
346
|
+
function open() {
|
|
347
|
+
const { disabled, readonly } = props
|
|
348
|
+
|
|
349
|
+
if (disabled || readonly) return
|
|
350
|
+
|
|
351
|
+
inited.value = true
|
|
352
|
+
pickerShow.value = true
|
|
353
|
+
lastCalendarValue.value = deepClone(calendarValue.value)
|
|
354
|
+
lastTab.value = currentTab.value
|
|
355
|
+
lastCurrentType.value = currentType.value
|
|
356
|
+
requestAnimationFrame(() => {
|
|
357
|
+
scrollIntoView()
|
|
358
|
+
})
|
|
359
|
+
|
|
360
|
+
setTimeout(() => {
|
|
361
|
+
if (props.showTypeSwitch) {
|
|
362
|
+
calendarTabs.value.scrollIntoView()
|
|
363
|
+
calendarTabs.value.updateLineStyle(false)
|
|
364
|
+
}
|
|
365
|
+
}, 250)
|
|
366
|
+
}
|
|
367
|
+
// 对外暴露方法
|
|
368
|
+
function close() {
|
|
369
|
+
pickerShow.value = false
|
|
370
|
+
setTimeout(() => {
|
|
371
|
+
calendarValue.value = deepClone(lastCalendarValue.value)
|
|
372
|
+
currentTab.value = lastTab.value
|
|
373
|
+
currentType.value = lastCurrentType.value || 'date'
|
|
374
|
+
confirmBtnDisabled.value = getConfirmBtnStatus(lastCalendarValue.value)
|
|
375
|
+
}, 250)
|
|
376
|
+
emit('cancel')
|
|
377
|
+
}
|
|
378
|
+
function handleTypeChange({ index }: { index: number }) {
|
|
379
|
+
const tabs = ['date', 'week', 'month']
|
|
380
|
+
const rangeTabs = ['daterange', 'weekrange', 'monthrange']
|
|
381
|
+
const type = props.type.indexOf('range') > -1 ? rangeTabs[index] : tabs[index]
|
|
382
|
+
|
|
383
|
+
currentTab.value = index
|
|
384
|
+
currentType.value = type as CalendarType
|
|
385
|
+
}
|
|
386
|
+
function getConfirmBtnStatus(value: number | number[] | null) {
|
|
387
|
+
let confirmBtnDisabled = false
|
|
388
|
+
// 范围选择未选择满,或者多日期选择未选择日期,按钮置灰不可点击
|
|
389
|
+
if (
|
|
390
|
+
(props.type.indexOf('range') > -1 && (!isArray(value) || !value[0] || !value[1] || !value)) ||
|
|
391
|
+
(props.type === 'dates' && (!isArray(value) || value.length === 0 || !value)) ||
|
|
392
|
+
!value
|
|
393
|
+
) {
|
|
394
|
+
confirmBtnDisabled = true
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
return confirmBtnDisabled
|
|
398
|
+
}
|
|
399
|
+
function handleChange({ value }: { value: number | number[] | null }) {
|
|
400
|
+
calendarValue.value = deepClone(value)
|
|
401
|
+
confirmBtnDisabled.value = getConfirmBtnStatus(value)
|
|
402
|
+
|
|
403
|
+
emit('change', {
|
|
404
|
+
value,
|
|
405
|
+
})
|
|
406
|
+
|
|
407
|
+
if (!props.showConfirm && !confirmBtnDisabled.value) {
|
|
408
|
+
handleConfirm()
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function handleConfirm() {
|
|
412
|
+
if (props.beforeConfirm) {
|
|
413
|
+
props.beforeConfirm({
|
|
414
|
+
value: calendarValue.value,
|
|
415
|
+
resolve: (isPass: boolean) => {
|
|
416
|
+
isPass && onConfirm()
|
|
417
|
+
},
|
|
418
|
+
})
|
|
419
|
+
} else {
|
|
420
|
+
onConfirm()
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function onConfirm() {
|
|
424
|
+
pickerShow.value = false
|
|
425
|
+
lastCurrentType.value = currentType.value
|
|
426
|
+
emit('update:modelValue', calendarValue.value)
|
|
427
|
+
emit('confirm', {
|
|
428
|
+
value: calendarValue.value,
|
|
429
|
+
})
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
function handleShortcutClick(index: number) {
|
|
433
|
+
if (props.onShortcutsClick && typeof props.onShortcutsClick === 'function') {
|
|
434
|
+
calendarValue.value = deepClone(
|
|
435
|
+
props.onShortcutsClick({
|
|
436
|
+
item: props.shortcuts[index],
|
|
437
|
+
index,
|
|
438
|
+
}),
|
|
439
|
+
)
|
|
440
|
+
confirmBtnDisabled.value = getConfirmBtnStatus(calendarValue.value)
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (!props.showConfirm) {
|
|
444
|
+
handleConfirm()
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
defineExpose<CalendarExpose>({
|
|
449
|
+
close,
|
|
450
|
+
open,
|
|
451
|
+
})
|
|
452
|
+
</script>
|
|
453
|
+
|
|
454
|
+
<style lang="scss" scoped>
|
|
455
|
+
@import './index';
|
|
456
|
+
</style>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@import '../../common/abstracts/variable';
|
|
2
|
+
@import '../../common/abstracts/mixin';
|
|
3
|
+
|
|
4
|
+
.wot-theme-dark {
|
|
5
|
+
@include b(month) {
|
|
6
|
+
@include e(title) {
|
|
7
|
+
color: $-dark-color;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@include e(days) {
|
|
11
|
+
color: $-dark-color;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include e(day) {
|
|
15
|
+
@include when(disabled) {
|
|
16
|
+
.wd-month__day-text {
|
|
17
|
+
color: $-dark-color-gray;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@include b(month) {
|
|
25
|
+
@include e(title) {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
height: 45px;
|
|
30
|
+
font-size: $-calendar-panel-title-fs;
|
|
31
|
+
color: $-calendar-panel-title-color;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include e(days) {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
font-size: $-calendar-day-fs;
|
|
38
|
+
color: $-calendar-day-color;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@include e(day) {
|
|
42
|
+
position: relative;
|
|
43
|
+
width: 14.285%;
|
|
44
|
+
height: $-calendar-day-height;
|
|
45
|
+
line-height: $-calendar-day-height;
|
|
46
|
+
text-align: center;
|
|
47
|
+
|
|
48
|
+
@include when(disabled) {
|
|
49
|
+
.wd-month__day-text {
|
|
50
|
+
color: $-calendar-disabled-color;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@include when(current) {
|
|
55
|
+
color: $-calendar-active-color;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@include when(selected) {
|
|
59
|
+
.wd-month__day-container {
|
|
60
|
+
color: #fff;
|
|
61
|
+
background: $-calendar-active-color;
|
|
62
|
+
border-radius: $-calendar-active-border;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@include when(middle) {
|
|
67
|
+
.wd-month__day-container {
|
|
68
|
+
background: $-calendar-range-color;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@include when(start) {
|
|
73
|
+
&::after {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 0;
|
|
76
|
+
right: 0;
|
|
77
|
+
left: 50%;
|
|
78
|
+
z-index: 1;
|
|
79
|
+
height: $-calendar-day-height;
|
|
80
|
+
content: '';
|
|
81
|
+
background: $-calendar-range-color;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.is-without-end::after {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.wd-month__day-container {
|
|
89
|
+
color: #fff;
|
|
90
|
+
background: $-calendar-active-color;
|
|
91
|
+
border-radius: $-calendar-active-border;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@include when(end) {
|
|
96
|
+
&::after {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 0;
|
|
99
|
+
right: 50%;
|
|
100
|
+
left: 0;
|
|
101
|
+
z-index: 1;
|
|
102
|
+
height: $-calendar-day-height;
|
|
103
|
+
content: '';
|
|
104
|
+
background: $-calendar-range-color;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wd-month__day-container {
|
|
108
|
+
color: #fff;
|
|
109
|
+
background: $-calendar-active-color;
|
|
110
|
+
border-radius: $-calendar-active-border;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@include when(same) {
|
|
115
|
+
.wd-month__day-container {
|
|
116
|
+
color: #fff;
|
|
117
|
+
background: $-calendar-active-color;
|
|
118
|
+
border-radius: $-calendar-active-border;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@include e(day-container) {
|
|
124
|
+
position: relative;
|
|
125
|
+
z-index: 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@include e(day-text) {
|
|
129
|
+
font-weight: $-calendar-day-fw;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@include e(day-top) {
|
|
133
|
+
position: absolute;
|
|
134
|
+
top: 10px;
|
|
135
|
+
right: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
font-size: $-calendar-info-fs;
|
|
138
|
+
line-height: 1.1;
|
|
139
|
+
text-align: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@include e(day-bottom) {
|
|
143
|
+
position: absolute;
|
|
144
|
+
right: 0;
|
|
145
|
+
bottom: 10px;
|
|
146
|
+
left: 0;
|
|
147
|
+
font-size: $-calendar-info-fs;
|
|
148
|
+
line-height: 1.1;
|
|
149
|
+
text-align: center;
|
|
150
|
+
}
|
|
151
|
+
}
|