@gmcb/uv-ui 0.2.26
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/CHANGELOG.md +295 -0
- package/LICENSE +21 -0
- package/README.md +164 -0
- package/components/uv-action-sheet/props.js +50 -0
- package/components/uv-action-sheet/uv-action-sheet.vue +280 -0
- package/components/uv-album/uv-album.vue +312 -0
- package/components/uv-alert/props.js +45 -0
- package/components/uv-alert/uv-alert.vue +246 -0
- package/components/uv-avatar/props.js +85 -0
- package/components/uv-avatar/uv-avatar.vue +182 -0
- package/components/uv-avatar-group/props.js +53 -0
- package/components/uv-avatar-group/uv-avatar-group.vue +106 -0
- package/components/uv-back-top/props.js +58 -0
- package/components/uv-back-top/uv-back-top.vue +116 -0
- package/components/uv-badge/props.js +73 -0
- package/components/uv-badge/uv-badge.vue +176 -0
- package/components/uv-button/nvue.scss +46 -0
- package/components/uv-button/props.js +163 -0
- package/components/uv-button/uv-button.vue +529 -0
- package/components/uv-button/vue.scss +93 -0
- package/components/uv-calendar/calendar.js +546 -0
- package/components/uv-calendar/header.vue +104 -0
- package/components/uv-calendar/month.vue +616 -0
- package/components/uv-calendar/props.js +145 -0
- package/components/uv-calendar/uv-calendar.vue +390 -0
- package/components/uv-calendars/calendar-body.vue +376 -0
- package/components/uv-calendars/calendar-item.vue +248 -0
- package/components/uv-calendars/calendar.js +546 -0
- package/components/uv-calendars/i18n/en.json +12 -0
- package/components/uv-calendars/i18n/index.js +8 -0
- package/components/uv-calendars/i18n/zh-Hans.json +12 -0
- package/components/uv-calendars/i18n/zh-Hant.json +12 -0
- package/components/uv-calendars/util.js +435 -0
- package/components/uv-calendars/uv-calendars.vue +452 -0
- package/components/uv-cell/props.js +116 -0
- package/components/uv-cell/uv-cell.vue +209 -0
- package/components/uv-cell-group/props.js +15 -0
- package/components/uv-cell-group/uv-cell-group.vue +63 -0
- package/components/uv-checkbox/props.js +70 -0
- package/components/uv-checkbox/uv-checkbox.vue +371 -0
- package/components/uv-checkbox-group/props.js +84 -0
- package/components/uv-checkbox-group/uv-checkbox-group.vue +119 -0
- package/components/uv-code/props.js +35 -0
- package/components/uv-code/uv-code.vue +136 -0
- package/components/uv-code-input/props.js +83 -0
- package/components/uv-code-input/uv-code-input.vue +272 -0
- package/components/uv-col/props.js +30 -0
- package/components/uv-col/uv-col.vue +165 -0
- package/components/uv-collapse/props.js +20 -0
- package/components/uv-collapse/uv-collapse.vue +86 -0
- package/components/uv-collapse-item/props.js +60 -0
- package/components/uv-collapse-item/uv-collapse-item.vue +228 -0
- package/components/uv-column-notice/props.js +61 -0
- package/components/uv-column-notice/uv-column-notice.vue +176 -0
- package/components/uv-count-down/props.js +25 -0
- package/components/uv-count-down/utils.js +62 -0
- package/components/uv-count-down/uv-count-down.vue +169 -0
- package/components/uv-count-to/props.js +60 -0
- package/components/uv-count-to/uv-count-to.vue +187 -0
- package/components/uv-datetime-picker/props.js +130 -0
- package/components/uv-datetime-picker/uv-datetime-picker.vue +355 -0
- package/components/uv-divider/props.js +45 -0
- package/components/uv-divider/uv-divider.vue +113 -0
- package/components/uv-drop-down/uv-drop-down.vue +135 -0
- package/components/uv-drop-down-item/uv-drop-down-item.vue +169 -0
- package/components/uv-drop-down-popup/uv-drop-down-popup.vue +242 -0
- package/components/uv-empty/props.js +60 -0
- package/components/uv-empty/uv-empty.vue +126 -0
- package/components/uv-form/props.js +46 -0
- package/components/uv-form/uv-form.vue +209 -0
- package/components/uv-form/valid.js +1343 -0
- package/components/uv-form-item/props.js +49 -0
- package/components/uv-form-item/uv-form-item.vue +226 -0
- package/components/uv-gap/props.js +25 -0
- package/components/uv-gap/uv-gap.vue +36 -0
- package/components/uv-grid/props.js +20 -0
- package/components/uv-grid/uv-grid.vue +100 -0
- package/components/uv-grid-item/props.js +15 -0
- package/components/uv-grid-item/uv-grid-item.vue +223 -0
- package/components/uv-icon/icons.js +160 -0
- package/components/uv-icon/props.js +90 -0
- package/components/uv-icon/uv-icon.vue +226 -0
- package/components/uv-icon/uvicons.ttf +0 -0
- package/components/uv-image/props.js +100 -0
- package/components/uv-image/uv-image.vue +296 -0
- package/components/uv-index-anchor/props.js +30 -0
- package/components/uv-index-anchor/uv-index-anchor.vue +98 -0
- package/components/uv-index-item/uv-index-item.vue +87 -0
- package/components/uv-index-list/props.js +30 -0
- package/components/uv-index-list/uv-index-list.vue +461 -0
- package/components/uv-input/props.js +175 -0
- package/components/uv-input/uv-input.vue +348 -0
- package/components/uv-keyboard/props.js +95 -0
- package/components/uv-keyboard/uv-keyboard.vue +180 -0
- package/components/uv-keyboard-car/props.js +24 -0
- package/components/uv-keyboard-car/uv-keyboard-car.vue +347 -0
- package/components/uv-keyboard-number/props.js +19 -0
- package/components/uv-keyboard-number/uv-keyboard-number.vue +201 -0
- package/components/uv-line/props.js +34 -0
- package/components/uv-line/uv-line.vue +60 -0
- package/components/uv-line-progress/props.js +29 -0
- package/components/uv-line-progress/uv-line-progress.vue +146 -0
- package/components/uv-link/props.js +40 -0
- package/components/uv-link/uv-link.vue +83 -0
- package/components/uv-list/uv-list.vue +147 -0
- package/components/uv-list-item/uv-list-item.vue +535 -0
- package/components/uv-load-more/props.js +95 -0
- package/components/uv-load-more/uv-load-more.vue +152 -0
- package/components/uv-loading-icon/props.js +67 -0
- package/components/uv-loading-icon/uv-loading-icon.vue +347 -0
- package/components/uv-loading-page/props.js +55 -0
- package/components/uv-loading-page/uv-loading-page.vue +96 -0
- package/components/uv-modal/props.js +90 -0
- package/components/uv-modal/uv-modal.vue +245 -0
- package/components/uv-navbar/props.js +89 -0
- package/components/uv-navbar/uv-navbar.vue +245 -0
- package/components/uv-no-network/props.js +20 -0
- package/components/uv-no-network/uv-no-network.vue +222 -0
- package/components/uv-notice-bar/props.js +76 -0
- package/components/uv-notice-bar/uv-notice-bar.vue +110 -0
- package/components/uv-notify/props.js +45 -0
- package/components/uv-notify/uv-notify.vue +220 -0
- package/components/uv-number-box/props.js +118 -0
- package/components/uv-number-box/uv-number-box.vue +397 -0
- package/components/uv-overlay/props.js +25 -0
- package/components/uv-overlay/uv-overlay.vue +85 -0
- package/components/uv-parse/node/node.vue +576 -0
- package/components/uv-parse/parser.js +1335 -0
- package/components/uv-parse/uv-parse.vue +498 -0
- package/components/uv-pick-color/colors.js +217 -0
- package/components/uv-pick-color/props.js +47 -0
- package/components/uv-pick-color/uv-pick-color.vue +551 -0
- package/components/uv-picker/props.js +95 -0
- package/components/uv-picker/uv-picker.vue +329 -0
- package/components/uv-popup/keypress.js +45 -0
- package/components/uv-popup/uv-popup.vue +537 -0
- package/components/uv-preview-video/uv-preview-video.vue +52 -0
- package/components/uv-qrcode/cache.js +1 -0
- package/components/uv-qrcode/gcanvas/bridge/bridge-weex.js +241 -0
- package/components/uv-qrcode/gcanvas/context-2d/FillStyleLinearGradient.js +18 -0
- package/components/uv-qrcode/gcanvas/context-2d/FillStylePattern.js +8 -0
- package/components/uv-qrcode/gcanvas/context-2d/FillStyleRadialGradient.js +17 -0
- package/components/uv-qrcode/gcanvas/context-2d/RenderingContext.js +666 -0
- package/components/uv-qrcode/gcanvas/context-webgl/ActiveInfo.js +11 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Buffer.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Framebuffer.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/GLenum.js +298 -0
- package/components/uv-qrcode/gcanvas/context-webgl/GLmethod.js +142 -0
- package/components/uv-qrcode/gcanvas/context-webgl/GLtype.js +23 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Program.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Renderbuffer.js +21 -0
- package/components/uv-qrcode/gcanvas/context-webgl/RenderingContext.js +1191 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Shader.js +22 -0
- package/components/uv-qrcode/gcanvas/context-webgl/ShaderPrecisionFormat.js +11 -0
- package/components/uv-qrcode/gcanvas/context-webgl/Texture.js +22 -0
- package/components/uv-qrcode/gcanvas/context-webgl/UniformLocation.js +22 -0
- package/components/uv-qrcode/gcanvas/context-webgl/classUtils.js +3 -0
- package/components/uv-qrcode/gcanvas/env/canvas.js +74 -0
- package/components/uv-qrcode/gcanvas/env/image.js +96 -0
- package/components/uv-qrcode/gcanvas/env/tool.js +24 -0
- package/components/uv-qrcode/gcanvas/index.js +39 -0
- package/components/uv-qrcode/props.js +85 -0
- package/components/uv-qrcode/qrcode.js +34 -0
- package/components/uv-qrcode/queue.js +41 -0
- package/components/uv-qrcode/uv-qrcode.vue +1038 -0
- package/components/uv-radio/props.js +65 -0
- package/components/uv-radio/uv-radio.vue +349 -0
- package/components/uv-radio-group/props.js +89 -0
- package/components/uv-radio-group/uv-radio-group.vue +115 -0
- package/components/uv-rate/props.js +73 -0
- package/components/uv-rate/uv-rate.vue +274 -0
- package/components/uv-read-more/props.js +62 -0
- package/components/uv-read-more/uv-read-more.vue +162 -0
- package/components/uv-row/props.js +20 -0
- package/components/uv-row/uv-row.vue +95 -0
- package/components/uv-row-notice/props.js +40 -0
- package/components/uv-row-notice/uv-row-notice.vue +341 -0
- package/components/uv-safe-bottom/uv-safe-bottom.vue +67 -0
- package/components/uv-scroll-list/nvue.js +29 -0
- package/components/uv-scroll-list/props.js +35 -0
- package/components/uv-scroll-list/scrollWxs.wxs +51 -0
- package/components/uv-scroll-list/uv-scroll-list.vue +218 -0
- package/components/uv-search/props.js +127 -0
- package/components/uv-search/uv-search.vue +311 -0
- package/components/uv-skeleton/props.js +65 -0
- package/components/uv-skeleton/uv-skeleton.vue +250 -0
- package/components/uv-skeletons/uv-skeletons.vue +247 -0
- package/components/uv-slider/props.js +58 -0
- package/components/uv-slider/uv-slider.vue +58 -0
- package/components/uv-status-bar/props.js +8 -0
- package/components/uv-status-bar/uv-status-bar.vue +54 -0
- package/components/uv-steps/props.js +40 -0
- package/components/uv-steps/uv-steps.vue +83 -0
- package/components/uv-steps-item/props.js +25 -0
- package/components/uv-steps-item/uv-steps-item.vue +347 -0
- package/components/uv-sticky/props.js +41 -0
- package/components/uv-sticky/uv-sticky.vue +223 -0
- package/components/uv-subsection/props.js +54 -0
- package/components/uv-subsection/uv-subsection.vue +269 -0
- package/components/uv-swipe-action/props.js +10 -0
- package/components/uv-swipe-action/uv-swipe-action.vue +65 -0
- package/components/uv-swipe-action-item/index - backup.wxs +256 -0
- package/components/uv-swipe-action-item/index.wxs +225 -0
- package/components/uv-swipe-action-item/nvue - backup.js +264 -0
- package/components/uv-swipe-action-item/nvue.js +182 -0
- package/components/uv-swipe-action-item/props.js +40 -0
- package/components/uv-swipe-action-item/uv-swipe-action-item.vue +200 -0
- package/components/uv-swipe-action-item/wxs.js +15 -0
- package/components/uv-swiper/props.js +136 -0
- package/components/uv-swiper/uv-swiper.vue +263 -0
- package/components/uv-swiper-indicator/props.js +30 -0
- package/components/uv-swiper-indicator/uv-swiper-indicator.vue +112 -0
- package/components/uv-switch/props.js +58 -0
- package/components/uv-switch/uv-switch.vue +182 -0
- package/components/uv-tabbar/props.js +50 -0
- package/components/uv-tabbar/uv-tabbar.vue +146 -0
- package/components/uv-tabbar-item/props.js +40 -0
- package/components/uv-tabbar-item/uv-tabbar-item.vue +146 -0
- package/components/uv-tabs/props.js +71 -0
- package/components/uv-tabs/uv-tabs.vue +391 -0
- package/components/uv-tags/props.js +104 -0
- package/components/uv-tags/uv-tags.vue +379 -0
- package/components/uv-text/props.js +113 -0
- package/components/uv-text/uv-text.vue +218 -0
- package/components/uv-text/value.js +87 -0
- package/components/uv-textarea/props.js +138 -0
- package/components/uv-textarea/uv-textarea.vue +238 -0
- package/components/uv-toast/uv-toast.vue +292 -0
- package/components/uv-toolbar/props.js +40 -0
- package/components/uv-toolbar/uv-toolbar.vue +109 -0
- package/components/uv-tooltip/props.js +60 -0
- package/components/uv-tooltip/uv-tooltip.vue +372 -0
- package/components/uv-transition/createAnimation.js +131 -0
- package/components/uv-transition/props.js +31 -0
- package/components/uv-transition/uv-transition.vue +320 -0
- package/components/uv-upload/mixin.js +22 -0
- package/components/uv-upload/props.js +130 -0
- package/components/uv-upload/utils.js +151 -0
- package/components/uv-upload/uv-upload.vue +488 -0
- package/components/uv-vtabs/props.js +79 -0
- package/components/uv-vtabs/uv-vtabs.vue +438 -0
- package/components/uv-vtabs-item/uv-vtabs-item.vue +68 -0
- package/components/uv-waterfall/props.js +69 -0
- package/components/uv-waterfall/uv-waterfall.vue +265 -0
- package/index.js +82 -0
- package/index.scss +7 -0
- package/libs/config/config.js +34 -0
- package/libs/css/color.scss +32 -0
- package/libs/css/common.scss +100 -0
- package/libs/css/components.scss +23 -0
- package/libs/css/variable.scss +111 -0
- package/libs/css/vue.scss +40 -0
- package/libs/function/colorGradient.js +134 -0
- package/libs/function/compress.js +27 -0
- package/libs/function/debounce.js +29 -0
- package/libs/function/digit.js +167 -0
- package/libs/function/index.js +734 -0
- package/libs/function/platform.js +75 -0
- package/libs/function/test.js +287 -0
- package/libs/function/throttle.js +30 -0
- package/libs/luch-request/adapters/index.js +132 -0
- package/libs/luch-request/core/InterceptorManager.js +51 -0
- package/libs/luch-request/core/Request.js +201 -0
- package/libs/luch-request/core/buildFullPath.js +20 -0
- package/libs/luch-request/core/defaults.js +33 -0
- package/libs/luch-request/core/dispatchRequest.js +6 -0
- package/libs/luch-request/core/mergeConfig.js +126 -0
- package/libs/luch-request/core/settle.js +16 -0
- package/libs/luch-request/helpers/buildURL.js +64 -0
- package/libs/luch-request/helpers/combineURLs.js +14 -0
- package/libs/luch-request/helpers/isAbsoluteURL.js +14 -0
- package/libs/luch-request/index.d.ts +197 -0
- package/libs/luch-request/index.js +2 -0
- package/libs/luch-request/utils/clone.js +264 -0
- package/libs/luch-request/utils.js +135 -0
- package/libs/mixin/button.js +13 -0
- package/libs/mixin/mixin.js +172 -0
- package/libs/mixin/mpMixin.js +8 -0
- package/libs/mixin/mpShare.js +13 -0
- package/libs/mixin/openType.js +47 -0
- package/libs/mixin/touch.js +59 -0
- package/libs/util/dayjs.js +216 -0
- package/libs/util/route.js +126 -0
- package/package.json +28 -0
- package/theme.scss +43 -0
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="uv-calendar-body">
|
|
3
|
+
<view class="uv-calendar__header">
|
|
4
|
+
<view class="uv-calendar__header-btn-box" @click.stop="pre">
|
|
5
|
+
<view class="uv-calendar__header-btn uv-calendar--left"></view>
|
|
6
|
+
</view>
|
|
7
|
+
<picker mode="date" :value="getDate" fields="month" @change="bindDateChange">
|
|
8
|
+
<text class="uv-calendar__header-text">{{ (nowDate.year||'') +' / '+( nowDate.month||'')}}</text>
|
|
9
|
+
</picker>
|
|
10
|
+
<view class="uv-calendar__header-btn-box" @click.stop="next">
|
|
11
|
+
<view class="uv-calendar__header-btn uv-calendar--right"></view>
|
|
12
|
+
</view>
|
|
13
|
+
<text class="uv-calendar__backtoday" @click="backToday">{{todayText}}</text>
|
|
14
|
+
</view>
|
|
15
|
+
<view class="uv-calendar__box">
|
|
16
|
+
<view v-if="showMonth" class="uv-calendar__box-bg">
|
|
17
|
+
<text class="uv-calendar__box-bg-text">{{nowDate.month}}</text>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="uv-calendar__weeks uv-calendar__weeks-week">
|
|
20
|
+
<view class="uv-calendar__weeks-day">
|
|
21
|
+
<text class="uv-calendar__weeks-day-text">{{SUNText}}</text>
|
|
22
|
+
</view>
|
|
23
|
+
<view class="uv-calendar__weeks-day">
|
|
24
|
+
<text class="uv-calendar__weeks-day-text">{{monText}}</text>
|
|
25
|
+
</view>
|
|
26
|
+
<view class="uv-calendar__weeks-day">
|
|
27
|
+
<text class="uv-calendar__weeks-day-text">{{TUEText}}</text>
|
|
28
|
+
</view>
|
|
29
|
+
<view class="uv-calendar__weeks-day">
|
|
30
|
+
<text class="uv-calendar__weeks-day-text">{{WEDText}}</text>
|
|
31
|
+
</view>
|
|
32
|
+
<view class="uv-calendar__weeks-day">
|
|
33
|
+
<text class="uv-calendar__weeks-day-text">{{THUText}}</text>
|
|
34
|
+
</view>
|
|
35
|
+
<view class="uv-calendar__weeks-day">
|
|
36
|
+
<text class="uv-calendar__weeks-day-text">{{FRIText}}</text>
|
|
37
|
+
</view>
|
|
38
|
+
<view class="uv-calendar__weeks-day">
|
|
39
|
+
<text class="uv-calendar__weeks-day-text">{{SATText}}</text>
|
|
40
|
+
</view>
|
|
41
|
+
</view>
|
|
42
|
+
<view class="uv-calendar__weeks" v-for="(item,weekIndex) in weeks" :key="weekIndex">
|
|
43
|
+
<view class="uv-calendar__weeks-item" v-for="(weeks,weeksIndex) in item" :key="weeksIndex">
|
|
44
|
+
<calendar-item class="uv-calendar-item--hook" :weeks="weeks" :rangeInfoText="rangeInfoText(weeks)" :multiple="multiple" :range="range" :calendar="calendar" :selected="selected" :lunar="lunar" :color="color" @change="choiceDate"></calendar-item>
|
|
45
|
+
</view>
|
|
46
|
+
</view>
|
|
47
|
+
</view>
|
|
48
|
+
</view>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import mpMixin from '../../libs/mixin/mpMixin.js';
|
|
53
|
+
import mixin from '../../libs/mixin/mixin.js';
|
|
54
|
+
|
|
55
|
+
import CalendarItem from './calendar-item.vue';
|
|
56
|
+
|
|
57
|
+
import { initVueI18n } from '@dcloudio/uni-i18n';
|
|
58
|
+
import i18nMessages from './i18n/index.js';
|
|
59
|
+
const { t } = initVueI18n(i18nMessages);
|
|
60
|
+
export default {
|
|
61
|
+
mixins: [mpMixin, mixin],
|
|
62
|
+
components: {
|
|
63
|
+
CalendarItem
|
|
64
|
+
},
|
|
65
|
+
props: {
|
|
66
|
+
date: {
|
|
67
|
+
type: [String,Array],
|
|
68
|
+
default: ''
|
|
69
|
+
},
|
|
70
|
+
nowDate: {
|
|
71
|
+
type: [String, Object],
|
|
72
|
+
default: ''
|
|
73
|
+
},
|
|
74
|
+
weeks: {
|
|
75
|
+
type: [Array, Object],
|
|
76
|
+
default () {
|
|
77
|
+
return []
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
calendar: {
|
|
81
|
+
type: Object,
|
|
82
|
+
default () {
|
|
83
|
+
return {}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
selected: {
|
|
87
|
+
type: Array,
|
|
88
|
+
default () {
|
|
89
|
+
return []
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
lunar: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
showMonth: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: true
|
|
99
|
+
},
|
|
100
|
+
color: {
|
|
101
|
+
type: String,
|
|
102
|
+
default: '#3c9cff'
|
|
103
|
+
},
|
|
104
|
+
startText: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: '开始'
|
|
107
|
+
},
|
|
108
|
+
endText: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: '结束'
|
|
111
|
+
},
|
|
112
|
+
range: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: false
|
|
115
|
+
},
|
|
116
|
+
multiple: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
default: false
|
|
119
|
+
},
|
|
120
|
+
// 是否允许日期范围的起止时间为同一天,mode = range时有效
|
|
121
|
+
allowSameDay: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: false
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
computed: {
|
|
127
|
+
getDate() {
|
|
128
|
+
return Array.isArray(this.date) ? this.date[0] : this.date;
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
* for i18n
|
|
132
|
+
*/
|
|
133
|
+
todayText() {
|
|
134
|
+
return t("uv-calender.today")
|
|
135
|
+
},
|
|
136
|
+
monText() {
|
|
137
|
+
return t("uv-calender.MON")
|
|
138
|
+
},
|
|
139
|
+
TUEText() {
|
|
140
|
+
return t("uv-calender.TUE")
|
|
141
|
+
},
|
|
142
|
+
WEDText() {
|
|
143
|
+
return t("uv-calender.WED")
|
|
144
|
+
},
|
|
145
|
+
THUText() {
|
|
146
|
+
return t("uv-calender.THU")
|
|
147
|
+
},
|
|
148
|
+
FRIText() {
|
|
149
|
+
return t("uv-calender.FRI")
|
|
150
|
+
},
|
|
151
|
+
SATText() {
|
|
152
|
+
return t("uv-calender.SAT")
|
|
153
|
+
},
|
|
154
|
+
SUNText() {
|
|
155
|
+
return t("uv-calender.SUN")
|
|
156
|
+
},
|
|
157
|
+
rangeInfoText(weeks) {
|
|
158
|
+
return weeks=> {
|
|
159
|
+
if(this.allowSameDay && weeks.beforeRange && weeks.afterRange && weeks.dateEqual) {
|
|
160
|
+
return this.setInfo(weeks,`${this.startText}/${this.endText}`);
|
|
161
|
+
}
|
|
162
|
+
if(weeks.beforeRange) {
|
|
163
|
+
return this.setInfo(weeks,this.startText);
|
|
164
|
+
}
|
|
165
|
+
if(weeks.afterRange) {
|
|
166
|
+
return this.setInfo(weeks,this.endText);
|
|
167
|
+
}
|
|
168
|
+
if(weeks.extraInfo?.info_old == ' ') {
|
|
169
|
+
weeks.extraInfo.info = null;
|
|
170
|
+
}else if(weeks.extraInfo?.info_old) {
|
|
171
|
+
weeks.extraInfo.info = weeks.extraInfo.info_old;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
methods: {
|
|
177
|
+
setInfo(weeks,text) {
|
|
178
|
+
this.setInfoOld(weeks);
|
|
179
|
+
if(weeks.extraInfo) {
|
|
180
|
+
weeks.extraInfo.info = text;
|
|
181
|
+
}else {
|
|
182
|
+
weeks.extraInfo = {
|
|
183
|
+
info: text
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
setInfoOld(weeks) {
|
|
188
|
+
if(weeks.extraInfo) {
|
|
189
|
+
weeks.extraInfo.info_old = weeks.extraInfo.info ? weeks.extraInfo.info_old || weeks.extraInfo.info : ' ';
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
bindDateChange(e) {
|
|
193
|
+
this.$emit('bindDateChange', e);
|
|
194
|
+
},
|
|
195
|
+
backToday() {
|
|
196
|
+
this.$emit('backToday');
|
|
197
|
+
},
|
|
198
|
+
pre() {
|
|
199
|
+
this.$emit('pre');
|
|
200
|
+
},
|
|
201
|
+
next() {
|
|
202
|
+
this.$emit('next');
|
|
203
|
+
},
|
|
204
|
+
choiceDate(e) {
|
|
205
|
+
this.$emit('choiceDate', e);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
</script>
|
|
210
|
+
|
|
211
|
+
<style scoped lang="scss">
|
|
212
|
+
@mixin flex($direction: row) {
|
|
213
|
+
/* #ifndef APP-NVUE */
|
|
214
|
+
display: flex;
|
|
215
|
+
/* #endif */
|
|
216
|
+
flex-direction: $direction;
|
|
217
|
+
}
|
|
218
|
+
$uv-bg-color-mask: rgba($color: #000000, $alpha: 0.4);
|
|
219
|
+
$uv-border-color: #EDEDED !default;
|
|
220
|
+
$uv-text-color: #333;
|
|
221
|
+
$uv-bg-color-hover: #f1f1f1;
|
|
222
|
+
$uv-font-size-base: 14px;
|
|
223
|
+
$uv-text-color-placeholder: #808080;
|
|
224
|
+
$uv-color-subtitle: #555555;
|
|
225
|
+
$uv-text-color-grey: #999;
|
|
226
|
+
.uv-calendar {
|
|
227
|
+
@include flex(column);
|
|
228
|
+
}
|
|
229
|
+
.uv-calendar__mask {
|
|
230
|
+
position: fixed;
|
|
231
|
+
bottom: 0;
|
|
232
|
+
top: 0;
|
|
233
|
+
left: 0;
|
|
234
|
+
right: 0;
|
|
235
|
+
background-color: $uv-bg-color-mask;
|
|
236
|
+
transition-property: opacity;
|
|
237
|
+
transition-duration: 0.3s;
|
|
238
|
+
opacity: 0;
|
|
239
|
+
/* #ifndef APP-NVUE */
|
|
240
|
+
z-index: 99;
|
|
241
|
+
/* #endif */
|
|
242
|
+
}
|
|
243
|
+
.uv-calendar--mask-show {
|
|
244
|
+
opacity: 1
|
|
245
|
+
}
|
|
246
|
+
.uv-calendar--fixed {
|
|
247
|
+
position: fixed;
|
|
248
|
+
/* #ifdef APP-NVUE */
|
|
249
|
+
bottom: 0;
|
|
250
|
+
/* #endif */
|
|
251
|
+
left: 0;
|
|
252
|
+
right: 0;
|
|
253
|
+
transition-property: transform;
|
|
254
|
+
transition-duration: 0.3s;
|
|
255
|
+
transform: translateY(460px);
|
|
256
|
+
/* #ifndef APP-NVUE */
|
|
257
|
+
bottom: calc(var(--window-bottom));
|
|
258
|
+
z-index: 99;
|
|
259
|
+
/* #endif */
|
|
260
|
+
}
|
|
261
|
+
.uv-calendar--ani-show {
|
|
262
|
+
transform: translateY(0);
|
|
263
|
+
}
|
|
264
|
+
.uv-calendar__content {
|
|
265
|
+
background-color: #fff;
|
|
266
|
+
}
|
|
267
|
+
.uv-calendar__header {
|
|
268
|
+
position: relative;
|
|
269
|
+
@include flex;
|
|
270
|
+
justify-content: center;
|
|
271
|
+
align-items: center;
|
|
272
|
+
height: 50px;
|
|
273
|
+
border-bottom-color: $uv-border-color;
|
|
274
|
+
border-bottom-style: solid;
|
|
275
|
+
border-bottom-width: 1px;
|
|
276
|
+
}
|
|
277
|
+
.uv-calendar--fixed-top {
|
|
278
|
+
@include flex;
|
|
279
|
+
justify-content: space-between;
|
|
280
|
+
border-top-color: $uv-border-color;
|
|
281
|
+
border-top-style: solid;
|
|
282
|
+
border-top-width: 1px;
|
|
283
|
+
}
|
|
284
|
+
.uv-calendar--fixed-width {
|
|
285
|
+
width: 50px;
|
|
286
|
+
}
|
|
287
|
+
.uv-calendar__backtoday {
|
|
288
|
+
position: absolute;
|
|
289
|
+
right: 0;
|
|
290
|
+
top: 25rpx;
|
|
291
|
+
padding: 0 5px;
|
|
292
|
+
padding-left: 10px;
|
|
293
|
+
height: 25px;
|
|
294
|
+
line-height: 25px;
|
|
295
|
+
font-size: 12px;
|
|
296
|
+
border-top-left-radius: 25px;
|
|
297
|
+
border-bottom-left-radius: 25px;
|
|
298
|
+
color: $uv-text-color;
|
|
299
|
+
background-color: $uv-bg-color-hover;
|
|
300
|
+
}
|
|
301
|
+
.uv-calendar__header-text {
|
|
302
|
+
text-align: center;
|
|
303
|
+
width: 100px;
|
|
304
|
+
font-size: $uv-font-size-base;
|
|
305
|
+
color: $uv-text-color;
|
|
306
|
+
}
|
|
307
|
+
.uv-calendar__header-btn-box {
|
|
308
|
+
@include flex;
|
|
309
|
+
align-items: center;
|
|
310
|
+
justify-content: center;
|
|
311
|
+
width: 50px;
|
|
312
|
+
height: 50px;
|
|
313
|
+
}
|
|
314
|
+
.uv-calendar__header-btn {
|
|
315
|
+
width: 10px;
|
|
316
|
+
height: 10px;
|
|
317
|
+
border-left-color: $uv-text-color-placeholder;
|
|
318
|
+
border-left-style: solid;
|
|
319
|
+
border-left-width: 2px;
|
|
320
|
+
border-top-color: $uv-color-subtitle;
|
|
321
|
+
border-top-style: solid;
|
|
322
|
+
border-top-width: 2px;
|
|
323
|
+
}
|
|
324
|
+
.uv-calendar--left {
|
|
325
|
+
transform: rotate(-45deg);
|
|
326
|
+
}
|
|
327
|
+
.uv-calendar--right {
|
|
328
|
+
transform: rotate(135deg);
|
|
329
|
+
}
|
|
330
|
+
.uv-calendar__weeks {
|
|
331
|
+
position: relative;
|
|
332
|
+
@include flex;
|
|
333
|
+
}
|
|
334
|
+
.uv-calendar__weeks-week {
|
|
335
|
+
padding: 0 0 2rpx;
|
|
336
|
+
}
|
|
337
|
+
.uv-calendar__weeks-item {
|
|
338
|
+
flex: 1;
|
|
339
|
+
}
|
|
340
|
+
.uv-calendar__weeks-day {
|
|
341
|
+
flex: 1;
|
|
342
|
+
@include flex(column);
|
|
343
|
+
justify-content: center;
|
|
344
|
+
align-items: center;
|
|
345
|
+
height: 45px;
|
|
346
|
+
border-bottom-color: #F5F5F5;
|
|
347
|
+
border-bottom-style: solid;
|
|
348
|
+
border-bottom-width: 1px;
|
|
349
|
+
}
|
|
350
|
+
.uv-calendar__weeks-day-text {
|
|
351
|
+
font-size: 14px;
|
|
352
|
+
}
|
|
353
|
+
.uv-calendar__box {
|
|
354
|
+
position: relative;
|
|
355
|
+
}
|
|
356
|
+
.uv-calendar__box-bg {
|
|
357
|
+
@include flex(column);
|
|
358
|
+
justify-content: center;
|
|
359
|
+
align-items: center;
|
|
360
|
+
position: absolute;
|
|
361
|
+
top: 0;
|
|
362
|
+
left: 0;
|
|
363
|
+
right: 0;
|
|
364
|
+
bottom: 0;
|
|
365
|
+
}
|
|
366
|
+
.uv-calendar__box-bg-text {
|
|
367
|
+
font-size: 200px;
|
|
368
|
+
font-weight: bold;
|
|
369
|
+
color: $uv-text-color-grey;
|
|
370
|
+
opacity: 0.1;
|
|
371
|
+
text-align: center;
|
|
372
|
+
/* #ifndef APP-NVUE */
|
|
373
|
+
line-height: 1;
|
|
374
|
+
/* #endif */
|
|
375
|
+
}
|
|
376
|
+
</style>
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="uv-calendar-item__weeks-box" :class="{
|
|
3
|
+
'uv-calendar-item--disable':weeks.disable || (weeks.extraInfo&&weeks.extraInfo.disable),
|
|
4
|
+
'uv-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay && !multiple,
|
|
5
|
+
'uv-calendar-item--checked':(calendar.fullDate === weeks.fullDate && !weeks.isDay && !multiple) ,
|
|
6
|
+
'uv-calendar-item--before-checked':weeks.beforeRange,
|
|
7
|
+
'uv-calendar-item--range': weeks.range,
|
|
8
|
+
'uv-calendar-item--after-checked':weeks.afterRange,
|
|
9
|
+
'uv-calendar-item--multiple':weeks.multiple
|
|
10
|
+
}" :style="[itemBoxStyle]" @click="choiceDate(weeks)">
|
|
11
|
+
<view class="uv-calendar-item__weeks-box-item">
|
|
12
|
+
<text v-if="selected&&weeks.extraInfo&&weeks.extraInfo.badge" class="uv-calendar-item__weeks-box-circle"></text>
|
|
13
|
+
<text class="uv-calendar-item__weeks-top-text" v-if="weeks.extraInfo&&weeks.extraInfo.topinfo" :style="[infoStyle('top')]">{{weeks.extraInfo&&weeks.extraInfo.topinfo}}</text>
|
|
14
|
+
<text class="uv-calendar-item__weeks-box-text" :class="{
|
|
15
|
+
'uv-calendar-item--isDay-text': weeks.isDay,
|
|
16
|
+
'uv-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay && !multiple,
|
|
17
|
+
'uv-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay && !multiple,
|
|
18
|
+
'uv-calendar-item--before-checked':weeks.beforeRange,
|
|
19
|
+
'uv-calendar-item--range': weeks.range,
|
|
20
|
+
'uv-calendar-item--after-checked':weeks.afterRange,
|
|
21
|
+
'uv-calendar-item--multiple':weeks.multiple,
|
|
22
|
+
'uv-calendar-item--disable':weeks.disable || (weeks.extraInfo&&weeks.extraInfo.disable)
|
|
23
|
+
}" :style="[itemBoxStyle]">{{weeks.date}}</text>
|
|
24
|
+
<text v-if="!lunar&&!weeks.extraInfo && weeks.isDay" class="uv-calendar-item__weeks-lunar-text" :class="{
|
|
25
|
+
'uv-calendar-item--isDay-text':weeks.isDay,
|
|
26
|
+
'uv-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay && !multiple,
|
|
27
|
+
'uv-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay && !multiple,
|
|
28
|
+
'uv-calendar-item--before-checked':weeks.beforeRange,
|
|
29
|
+
'uv-calendar-item--range': weeks.range,
|
|
30
|
+
'uv-calendar-item--after-checked':weeks.afterRange,
|
|
31
|
+
'uv-calendar-item--multiple':weeks.multiple
|
|
32
|
+
}" :style="[itemBoxStyle]">{{todayText}}</text>
|
|
33
|
+
<text v-if="lunar&&!weeks.extraInfo" class="uv-calendar-item__weeks-lunar-text" :class="{
|
|
34
|
+
'uv-calendar-item--isDay-text':weeks.isDay,
|
|
35
|
+
'uv-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay && !multiple,
|
|
36
|
+
'uv-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay && !multiple,
|
|
37
|
+
'uv-calendar-item--before-checked':weeks.beforeRange,
|
|
38
|
+
'uv-calendar-item--range': weeks.range,
|
|
39
|
+
'uv-calendar-item--after-checked':weeks.afterRange,
|
|
40
|
+
'uv-calendar-item--multiple':weeks.multiple,
|
|
41
|
+
'uv-calendar-item--disable':weeks.disable || (weeks.extraInfo&&weeks.extraInfo.disable)
|
|
42
|
+
}" :style="[itemBoxStyle]">{{weeks.isDay ? todayText : (weeks.lunar.IDayCn === '初一'?weeks.lunar.IMonthCn:weeks.lunar.IDayCn)}}</text>
|
|
43
|
+
<text v-if="weeks.extraInfo&&weeks.extraInfo.info" class="uv-calendar-item__weeks-lunar-text" :class="{
|
|
44
|
+
'uv-calendar-item__weeks-lunar-text--equal': weeks.dateEqual
|
|
45
|
+
}" :style="[infoStyle('bottom')]">{{weeks.extraInfo.info}}</text>
|
|
46
|
+
</view>
|
|
47
|
+
</view>
|
|
48
|
+
</template>
|
|
49
|
+
<script>
|
|
50
|
+
import { colorGradient } from '../../libs/function/colorGradient.js';
|
|
51
|
+
import { initVueI18n } from '@dcloudio/uni-i18n'
|
|
52
|
+
import i18nMessages from './i18n/index.js'
|
|
53
|
+
const { t } = initVueI18n(i18nMessages)
|
|
54
|
+
export default {
|
|
55
|
+
emits: ['change'],
|
|
56
|
+
props: {
|
|
57
|
+
weeks: {
|
|
58
|
+
type: Object,
|
|
59
|
+
default () {
|
|
60
|
+
return {}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
calendar: {
|
|
64
|
+
type: Object,
|
|
65
|
+
default: () => {
|
|
66
|
+
return {}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
selected: {
|
|
70
|
+
type: Array,
|
|
71
|
+
default: () => {
|
|
72
|
+
return []
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
lunar: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: false
|
|
78
|
+
},
|
|
79
|
+
color: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: '#3c9cff'
|
|
82
|
+
},
|
|
83
|
+
range: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false
|
|
86
|
+
},
|
|
87
|
+
multiple: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: false
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
computed: {
|
|
93
|
+
todayText() {
|
|
94
|
+
return t("uv-calender.today")
|
|
95
|
+
},
|
|
96
|
+
itemBoxStyle() {
|
|
97
|
+
const style = {};
|
|
98
|
+
if (this.multiple) { // 多选状态
|
|
99
|
+
if (this.weeks.multiple) {
|
|
100
|
+
style.backgroundColor = this.color;
|
|
101
|
+
style.color = '#fff';
|
|
102
|
+
} else if (this.weeks.isDay) {
|
|
103
|
+
style.color = this.color;
|
|
104
|
+
}
|
|
105
|
+
} else if (this.range) { // 范围选择
|
|
106
|
+
if (this.weeks.beforeRange || this.weeks.afterRange) {
|
|
107
|
+
style.backgroundColor = this.color;
|
|
108
|
+
} else if (this.weeks.range) {
|
|
109
|
+
style.backgroundColor = colorGradient(this.color, '#ffffff', 100)[90]
|
|
110
|
+
style.color = this.color;
|
|
111
|
+
style.opacity = 0.8;
|
|
112
|
+
style.borderRadius = 0;
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
if (this.weeks.isDay) {
|
|
116
|
+
style.color = this.color;
|
|
117
|
+
}
|
|
118
|
+
if (this.calendar.fullDate === this.weeks.fullDate) {
|
|
119
|
+
style.backgroundColor = this.color;
|
|
120
|
+
style.color = '#fff';
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return style;
|
|
124
|
+
},
|
|
125
|
+
infoStyle(val) {
|
|
126
|
+
return val => {
|
|
127
|
+
const style = {};
|
|
128
|
+
if (!this.weeks.multiple) {
|
|
129
|
+
if (val == 'top') {
|
|
130
|
+
style.color = this.weeks.extraInfo.topinfoColor ? this.weeks.extraInfo.topinfoColor : '#606266';
|
|
131
|
+
} else if (val == 'bottom') {
|
|
132
|
+
style.color = this.weeks.extraInfo.infoColor ? this.weeks.extraInfo.infoColor : '#f56c6c';
|
|
133
|
+
}
|
|
134
|
+
if (this.weeks.range) {
|
|
135
|
+
style.color = this.color;
|
|
136
|
+
}
|
|
137
|
+
if (this.calendar.fullDate === this.weeks.fullDate || this.weeks.beforeRange || this.weeks.afterRange) {
|
|
138
|
+
style.color = this.multiple ? style.color : '#fff';
|
|
139
|
+
}
|
|
140
|
+
} else {
|
|
141
|
+
style.color = '#fff';
|
|
142
|
+
}
|
|
143
|
+
return style;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
methods: {
|
|
148
|
+
choiceDate(weeks) {
|
|
149
|
+
if (this.weeks.extraInfo && this.weeks.extraInfo.disable) return;
|
|
150
|
+
this.$emit('change', weeks)
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
</script>
|
|
155
|
+
<style lang="scss" scoped>
|
|
156
|
+
@mixin flex($direction: row) {
|
|
157
|
+
/* #ifndef APP-NVUE */
|
|
158
|
+
display: flex;
|
|
159
|
+
/* #endif */
|
|
160
|
+
flex-direction: $direction;
|
|
161
|
+
}
|
|
162
|
+
$uv-font-size-base: 14px;
|
|
163
|
+
$uv-text-color: #333;
|
|
164
|
+
$uv-font-size-sm: 24rpx;
|
|
165
|
+
$uv-error: #f56c6c !default;
|
|
166
|
+
$uv-opacity-disabled: 0.3;
|
|
167
|
+
$uv-text-color-disable: #c0c0c0;
|
|
168
|
+
$uv-primary: #3c9cff !default;
|
|
169
|
+
$info-height: 32rpx;
|
|
170
|
+
.uv-calendar-item__weeks-box {
|
|
171
|
+
flex: 1;
|
|
172
|
+
@include flex(column);
|
|
173
|
+
justify-content: center;
|
|
174
|
+
align-items: center;
|
|
175
|
+
border-radius: 4px;
|
|
176
|
+
}
|
|
177
|
+
.uv-calendar-item__weeks-top-text {
|
|
178
|
+
height: $info-height;
|
|
179
|
+
line-height: $info-height;
|
|
180
|
+
font-size: $uv-font-size-sm;
|
|
181
|
+
}
|
|
182
|
+
.uv-calendar-item__weeks-box-text {
|
|
183
|
+
font-size: $uv-font-size-base;
|
|
184
|
+
color: $uv-text-color;
|
|
185
|
+
}
|
|
186
|
+
.uv-calendar-item__weeks-lunar-text {
|
|
187
|
+
height: $info-height;
|
|
188
|
+
line-height: $info-height;
|
|
189
|
+
font-size: $uv-font-size-sm;
|
|
190
|
+
color: $uv-text-color;
|
|
191
|
+
}
|
|
192
|
+
.uv-calendar-item__weeks-lunar-text--equal {
|
|
193
|
+
/* #ifdef H5 */
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
transform: scale(.8);
|
|
196
|
+
/* #endif */
|
|
197
|
+
/* #ifndef H5 */
|
|
198
|
+
font-size: 20rpx;
|
|
199
|
+
/* #endif */
|
|
200
|
+
}
|
|
201
|
+
.uv-calendar-item__weeks-box-item {
|
|
202
|
+
position: relative;
|
|
203
|
+
@include flex(column);
|
|
204
|
+
justify-content: center;
|
|
205
|
+
align-items: center;
|
|
206
|
+
width: 106rpx;
|
|
207
|
+
height: 56px;
|
|
208
|
+
}
|
|
209
|
+
.uv-calendar-item__weeks-box-circle {
|
|
210
|
+
position: absolute;
|
|
211
|
+
top: 5px;
|
|
212
|
+
right: 5px;
|
|
213
|
+
width: 8px;
|
|
214
|
+
height: 8px;
|
|
215
|
+
border-radius: 8px;
|
|
216
|
+
background-color: $uv-error;
|
|
217
|
+
}
|
|
218
|
+
.uv-calendar-item--disable {
|
|
219
|
+
background-color: rgba(249, 249, 249, $uv-opacity-disabled);
|
|
220
|
+
color: $uv-text-color-disable;
|
|
221
|
+
}
|
|
222
|
+
.uv-calendar-item--isDay-text {
|
|
223
|
+
color: $uv-primary;
|
|
224
|
+
}
|
|
225
|
+
.uv-calendar-item--isDay {
|
|
226
|
+
background-color: $uv-primary;
|
|
227
|
+
color: #fff;
|
|
228
|
+
}
|
|
229
|
+
.uv-calendar-item--checked {
|
|
230
|
+
background-color: $uv-primary;
|
|
231
|
+
color: #fff;
|
|
232
|
+
border-radius: 4px;
|
|
233
|
+
}
|
|
234
|
+
// .uv-calendar-item--range {
|
|
235
|
+
// background-color: $uv-primary;
|
|
236
|
+
// color: #fff;
|
|
237
|
+
// }
|
|
238
|
+
.uv-calendar-item--before-checked {
|
|
239
|
+
color: #fff;
|
|
240
|
+
}
|
|
241
|
+
.uv-calendar-item--after-checked {
|
|
242
|
+
color: #fff;
|
|
243
|
+
}
|
|
244
|
+
.uv-calendar-item--multiple {
|
|
245
|
+
background-color: $uv-primary;
|
|
246
|
+
color: #fff;
|
|
247
|
+
}
|
|
248
|
+
</style>
|