|
@@ -1,52 +1,146 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="cov-vue-date">
|
|
<div class="cov-vue-date">
|
|
|
<div class="datepickbox">
|
|
<div class="datepickbox">
|
|
|
- <input v-model="date.time" type="text" title="input date" class="cov-datepicker" :readonly="readonly" :disabled="readonly" :placeholder="option.placeholder" :required="required" :style="option.inputStyle ? option.inputStyle : {}" @click="showCheck" @foucus="showCheck" />
|
|
|
|
|
- <span v-if="readonly != true && readonly != 'true'" class="glyphicon glyphicon-remove-circle btn-remove" @click="date.time = ''; $emit('change', '')" />
|
|
|
|
|
|
|
+ <input
|
|
|
|
|
+ v-model="date.time"
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ title="input date"
|
|
|
|
|
+ class="cov-datepicker"
|
|
|
|
|
+ :readonly="readonly"
|
|
|
|
|
+ :disabled="readonly"
|
|
|
|
|
+ :placeholder="option.placeholder"
|
|
|
|
|
+ :required="required"
|
|
|
|
|
+ :style="option.inputStyle ? option.inputStyle : {}"
|
|
|
|
|
+ @click="showCheck"
|
|
|
|
|
+ @foucus="showCheck"
|
|
|
|
|
+ />
|
|
|
|
|
+ <span
|
|
|
|
|
+ v-if="readonly != true && readonly != 'true'"
|
|
|
|
|
+ class="glyphicon glyphicon-remove-circle btn-remove"
|
|
|
|
|
+ @click="date.time = ''; $emit('change', '')"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="showInfo.check && readonly != true && readonly != 'true'" class="datepicker-overlay" :style="{'background' : option.overlayOpacity? 'rgba(0,0,0,'+option.overlayOpacity+')' : 'rgba(0,0,0,0.5)'}" @click="dismiss($event)">
|
|
|
|
|
- <div class="cov-date-body" :style="{'background-color': option.color ? option.color.header : '#3f51b5'}">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="showInfo.check && readonly != true && readonly != 'true'"
|
|
|
|
|
+ class="datepicker-overlay"
|
|
|
|
|
+ :style="{'background' : option.overlayOpacity? 'rgba(0,0,0,'+option.overlayOpacity+')' : 'rgba(0,0,0,0.5)'}"
|
|
|
|
|
+ @click="dismiss($event)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="cov-date-body"
|
|
|
|
|
+ :style="{'background-color': option.color ? option.color.header : '#3f51b5'}"
|
|
|
|
|
+ >
|
|
|
<div class="cov-date-monthly">
|
|
<div class="cov-date-monthly">
|
|
|
- <div class="cov-date-previous" @click="nextMonth('pre')">«</div>
|
|
|
|
|
- <div class="cov-date-caption" :style="{'color': option.color ? option.color.headerText : '#fff'}">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="cov-date-previous"
|
|
|
|
|
+ @click="nextMonth('pre')"
|
|
|
|
|
+ >
|
|
|
|
|
+ «
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="cov-date-caption"
|
|
|
|
|
+ :style="{'color': option.color ? option.color.headerText : '#fff'}"
|
|
|
|
|
+ >
|
|
|
<span @click="showYear"><small>{{ checked.year }}</small></span>
|
|
<span @click="showYear"><small>{{ checked.year }}</small></span>
|
|
|
<br />
|
|
<br />
|
|
|
<span @click="showMonth">{{ displayInfo.month }}</span>
|
|
<span @click="showMonth">{{ displayInfo.month }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="cov-date-next" @click="nextMonth('next')">»</div>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="cov-date-next"
|
|
|
|
|
+ @click="nextMonth('next')"
|
|
|
|
|
+ >
|
|
|
|
|
+ »
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="showInfo.day" class="cov-date-box">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="showInfo.day"
|
|
|
|
|
+ class="cov-date-box"
|
|
|
|
|
+ >
|
|
|
<div class="cov-picker-box">
|
|
<div class="cov-picker-box">
|
|
|
<div class="week">
|
|
<div class="week">
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li v-for="weekie in library.week">{{ weekie }}</li>
|
|
|
|
|
|
|
+ <li v-for="weekie in library.week" :key="'weekie-' + weekie">{{ weekie }}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-for="day in dayList" class="day" track-by="$index" :class="{'checked':day.checked,'unavailable':day.unavailable,'passive-day': !(day.inMonth)}" :style="day.checked ? (option.color && option.color.checkedDay ? { background: option.color.checkedDay } : { background: '#F50057' }) : {}" @click="checkDay(day)">{{ day.value }}</div>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="day in dayList"
|
|
|
|
|
+ :key="'day-' + day"
|
|
|
|
|
+ class="day"
|
|
|
|
|
+ track-by="$index"
|
|
|
|
|
+ :class="{'checked':day.checked,'unavailable':day.unavailable,'passive-day': !(day.inMonth)}"
|
|
|
|
|
+ :style="day.checked ? (option.color && option.color.checkedDay ? { background: option.color.checkedDay } : { background: '#F50057' }) : {}"
|
|
|
|
|
+ @click="checkDay(day)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ day.value }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="showInfo.year" class="cov-date-box list-box">
|
|
|
|
|
- <div id="yearList" class="cov-picker-box date-list">
|
|
|
|
|
- <div v-for="yearItem in library.year" class="date-item" track-by="$index" @click="setYear(yearItem)">{{ yearItem }}</div>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="showInfo.year"
|
|
|
|
|
+ class="cov-date-box list-box"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div
|
|
|
|
|
+ id="yearList"
|
|
|
|
|
+ class="cov-picker-box date-list"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="yearItem in library.year"
|
|
|
|
|
+ :key="'year-' + yearItem"
|
|
|
|
|
+ class="date-item"
|
|
|
|
|
+ track-by="$index"
|
|
|
|
|
+ @click="setYear(yearItem)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ yearItem }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="showInfo.month" class="cov-date-box list-box">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="showInfo.month"
|
|
|
|
|
+ class="cov-date-box list-box"
|
|
|
|
|
+ >
|
|
|
<div class="cov-picker-box date-list">
|
|
<div class="cov-picker-box date-list">
|
|
|
- <div v-for="monthItem in library.month" class="date-item" track-by="$index" @click="setMonth(monthItem)">{{ monthItem }}</div>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="monthItem in library.month"
|
|
|
|
|
+ :key="'month-' + monthItem"
|
|
|
|
|
+ class="date-item"
|
|
|
|
|
+ track-by="$index"
|
|
|
|
|
+ @click="setMonth(monthItem)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ monthItem }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if="showInfo.hour" class="cov-date-box list-box">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="showInfo.hour"
|
|
|
|
|
+ class="cov-date-box list-box"
|
|
|
|
|
+ >
|
|
|
<div class="cov-picker-box date-list">
|
|
<div class="cov-picker-box date-list">
|
|
|
<div class="watch-box">
|
|
<div class="watch-box">
|
|
|
<div class="hour-box">
|
|
<div class="hour-box">
|
|
|
<div class="mui-pciker-rule mui-pciker-rule-ft" />
|
|
<div class="mui-pciker-rule mui-pciker-rule-ft" />
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li v-for="hitem in hours" class="hour-item" :class="{'active':hitem.checked}" @click="setTime('hour', hitem, hours)">{{ hitem.value }}</li>
|
|
|
|
|
|
|
+ <li
|
|
|
|
|
+ v-for="hitem in hours"
|
|
|
|
|
+ :key="'hour-' + hitem"
|
|
|
|
|
+ class="hour-item"
|
|
|
|
|
+ :class="{'active':hitem.checked}"
|
|
|
|
|
+ @click="setTime('hour', hitem, hours)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ hitem.value }}
|
|
|
|
|
+ </li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="min-box">
|
|
<div class="min-box">
|
|
|
<div class="mui-pciker-rule mui-pciker-rule-ft" />
|
|
<div class="mui-pciker-rule mui-pciker-rule-ft" />
|
|
|
- <div v-for="mitem in mins" class="min-item" :class="{'active':mitem.checked}" @click="setTime('min',mitem, mins)">{{ mitem.value }}</div>
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="mitem in mins"
|
|
|
|
|
+ :key="'min-' + mitem"
|
|
|
|
|
+ class="min-item"
|
|
|
|
|
+ :class="{'active':mitem.checked}"
|
|
|
|
|
+ @click="setTime('min',mitem, mins)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ mitem.value }}
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -522,317 +616,317 @@ exports.default = {
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
.datepicker-overlay {
|
|
.datepicker-overlay {
|
|
|
- position: fixed;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- z-index: 998;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- left: 0;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- -webkit-animation: fadein 0.5s;
|
|
|
|
|
- /* Safari, Chrome and Opera > 12.1 */
|
|
|
|
|
- -moz-animation: fadein 0.5s;
|
|
|
|
|
- /* Firefox < 16 */
|
|
|
|
|
- -ms-animation: fadein 0.5s;
|
|
|
|
|
- /* Internet Explorer */
|
|
|
|
|
- -o-animation: fadein 0.5s;
|
|
|
|
|
- /* Opera < 12.1 */
|
|
|
|
|
- animation: fadein 0.5s;
|
|
|
|
|
|
|
+ position: fixed;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ z-index: 998;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ -webkit-animation: fadein 0.5s;
|
|
|
|
|
+ /* Safari, Chrome and Opera > 12.1 */
|
|
|
|
|
+ -moz-animation: fadein 0.5s;
|
|
|
|
|
+ /* Firefox < 16 */
|
|
|
|
|
+ -ms-animation: fadein 0.5s;
|
|
|
|
|
+ /* Internet Explorer */
|
|
|
|
|
+ -o-animation: fadein 0.5s;
|
|
|
|
|
+ /* Opera < 12.1 */
|
|
|
|
|
+ animation: fadein 0.5s;
|
|
|
}
|
|
}
|
|
|
@keyframes fadein {
|
|
@keyframes fadein {
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ from {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ to {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
/* Firefox < 16 */
|
|
/* Firefox < 16 */
|
|
|
@-moz-keyframes fadein {
|
|
@-moz-keyframes fadein {
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ from {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ to {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
/* Safari, Chrome and Opera > 12.1 */
|
|
/* Safari, Chrome and Opera > 12.1 */
|
|
|
@-webkit-keyframes fadein {
|
|
@-webkit-keyframes fadein {
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ from {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ to {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
/* Internet Explorer */
|
|
/* Internet Explorer */
|
|
|
@-ms-keyframes fadein {
|
|
@-ms-keyframes fadein {
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ from {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ to {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
/* Opera < 12.1 */
|
|
/* Opera < 12.1 */
|
|
|
@-o-keyframes fadein {
|
|
@-o-keyframes fadein {
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ from {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ to {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
.cov-date-body {
|
|
.cov-date-body {
|
|
|
- display: inline-block;
|
|
|
|
|
- background: #3F51B5;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- position: relative;
|
|
|
|
|
- font-size: 16px;
|
|
|
|
|
- font-family: 'Roboto';
|
|
|
|
|
- font-weight: 400;
|
|
|
|
|
- position: fixed;
|
|
|
|
|
- display: block;
|
|
|
|
|
- width: 400px;
|
|
|
|
|
- max-width: 100%;
|
|
|
|
|
- z-index: 999;
|
|
|
|
|
- top: 50%;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- -webkit-transform: translate(-50%, -50%);
|
|
|
|
|
- -ms-transform: translate(-50%, -50%);
|
|
|
|
|
- transform: translate(-50%, -50%);
|
|
|
|
|
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
|
|
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ background: #3f51b5;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ font-family: "Roboto";
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ position: fixed;
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ width: 400px;
|
|
|
|
|
+ max-width: 100%;
|
|
|
|
|
+ z-index: 999;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ -webkit-transform: translate(-50%, -50%);
|
|
|
|
|
+ -ms-transform: translate(-50%, -50%);
|
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
|
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
|
|
|
}
|
|
}
|
|
|
.cov-picker-box {
|
|
.cov-picker-box {
|
|
|
- background: #fff;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- padding: 25px;
|
|
|
|
|
- box-sizing: border-box !important;
|
|
|
|
|
- -moz-box-sizing: border-box !important;
|
|
|
|
|
- -webkit-box-sizing: border-box !important;
|
|
|
|
|
- -ms-box-sizing: border-box !important;
|
|
|
|
|
- width: 400px;
|
|
|
|
|
- max-width: 100%;
|
|
|
|
|
- height: 280px;
|
|
|
|
|
- text-align: start!important;
|
|
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ padding: 25px;
|
|
|
|
|
+ box-sizing: border-box !important;
|
|
|
|
|
+ -moz-box-sizing: border-box !important;
|
|
|
|
|
+ -webkit-box-sizing: border-box !important;
|
|
|
|
|
+ -ms-box-sizing: border-box !important;
|
|
|
|
|
+ width: 400px;
|
|
|
|
|
+ max-width: 100%;
|
|
|
|
|
+ height: 280px;
|
|
|
|
|
+ text-align: start !important;
|
|
|
}
|
|
}
|
|
|
.cov-picker-box td {
|
|
.cov-picker-box td {
|
|
|
- height: 34px;
|
|
|
|
|
- width: 34px;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
- line-height: 34px;
|
|
|
|
|
- color: #000;
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
|
|
+ height: 34px;
|
|
|
|
|
+ width: 34px;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ line-height: 34px;
|
|
|
|
|
+ color: #000;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
}
|
|
|
.cov-picker-box td:hover {
|
|
.cov-picker-box td:hover {
|
|
|
- background: #E6E6E6;
|
|
|
|
|
|
|
+ background: #e6e6e6;
|
|
|
}
|
|
}
|
|
|
table {
|
|
table {
|
|
|
- border-collapse: collapse;
|
|
|
|
|
- border-spacing: 0;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
|
|
+ border-collapse: collapse;
|
|
|
|
|
+ border-spacing: 0;
|
|
|
|
|
+ width: 100%;
|
|
|
}
|
|
}
|
|
|
.day {
|
|
.day {
|
|
|
- width: 14.2857143%;
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- height: 34px;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
- line-height: 34px;
|
|
|
|
|
- color: #000;
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- vertical-align: middle;
|
|
|
|
|
|
|
+ width: 14.2857143%;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ height: 34px;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ line-height: 34px;
|
|
|
|
|
+ color: #000;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ vertical-align: middle;
|
|
|
}
|
|
}
|
|
|
.week ul {
|
|
.week ul {
|
|
|
- margin: 0 0 8px;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
- list-style: none;
|
|
|
|
|
|
|
+ margin: 0 0 8px;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ list-style: none;
|
|
|
}
|
|
}
|
|
|
.week ul li {
|
|
.week ul li {
|
|
|
- width: 14.2%;
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- background: transparent;
|
|
|
|
|
- color: #000;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
|
|
+ width: 14.2%;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ background: transparent;
|
|
|
|
|
+ color: #000;
|
|
|
|
|
+ font-weight: bold;
|
|
|
}
|
|
}
|
|
|
.passive-day {
|
|
.passive-day {
|
|
|
- color: #bbb;
|
|
|
|
|
|
|
+ color: #bbb;
|
|
|
}
|
|
}
|
|
|
.checked {
|
|
.checked {
|
|
|
- background: #F50057;
|
|
|
|
|
- color: #FFF !important;
|
|
|
|
|
- border-radius: 3px;
|
|
|
|
|
|
|
+ background: #f50057;
|
|
|
|
|
+ color: #fff !important;
|
|
|
|
|
+ border-radius: 3px;
|
|
|
}
|
|
}
|
|
|
.unavailable {
|
|
.unavailable {
|
|
|
- color: #ccc;
|
|
|
|
|
- cursor: not-allowed;
|
|
|
|
|
|
|
+ color: #ccc;
|
|
|
|
|
+ cursor: not-allowed;
|
|
|
}
|
|
}
|
|
|
.cov-date-monthly {
|
|
.cov-date-monthly {
|
|
|
- height: 150px;
|
|
|
|
|
|
|
+ height: 150px;
|
|
|
}
|
|
}
|
|
|
.cov-date-monthly > div {
|
|
.cov-date-monthly > div {
|
|
|
- display: inline-block;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
- margin: 0;
|
|
|
|
|
- vertical-align: middle;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- height: 150px;
|
|
|
|
|
- float: left;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ vertical-align: middle;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ height: 150px;
|
|
|
|
|
+ float: left;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
}
|
|
|
.cov-date-previous,
|
|
.cov-date-previous,
|
|
|
.cov-date-next {
|
|
.cov-date-next {
|
|
|
- position: relative;
|
|
|
|
|
- width: 20% !important;
|
|
|
|
|
- text-indent: -300px;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ width: 20% !important;
|
|
|
|
|
+ text-indent: -300px;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ color: #fff;
|
|
|
}
|
|
}
|
|
|
.cov-date-caption {
|
|
.cov-date-caption {
|
|
|
- width: 60%;
|
|
|
|
|
- padding: 50px 0!important;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- font-size: 24px;
|
|
|
|
|
|
|
+ width: 60%;
|
|
|
|
|
+ padding: 50px 0 !important;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ font-size: 24px;
|
|
|
}
|
|
}
|
|
|
.cov-date-caption span:hover {
|
|
.cov-date-caption span:hover {
|
|
|
- color: rgba(255, 255, 255, 0.7);
|
|
|
|
|
|
|
+ color: rgba(255, 255, 255, 0.7);
|
|
|
}
|
|
}
|
|
|
.cov-date-previous:hover,
|
|
.cov-date-previous:hover,
|
|
|
.cov-date-next:hover {
|
|
.cov-date-next:hover {
|
|
|
- background: rgba(255, 255, 255, 0.1);
|
|
|
|
|
|
|
+ background: rgba(255, 255, 255, 0.1);
|
|
|
}
|
|
}
|
|
|
.day:hover {
|
|
.day:hover {
|
|
|
- background: #EAEAEA;
|
|
|
|
|
|
|
+ background: #eaeaea;
|
|
|
}
|
|
}
|
|
|
.unavailable:hover {
|
|
.unavailable:hover {
|
|
|
- background: none;
|
|
|
|
|
|
|
+ background: none;
|
|
|
}
|
|
}
|
|
|
.checked:hover {
|
|
.checked:hover {
|
|
|
- background: #FF4F8E;
|
|
|
|
|
|
|
+ background: #ff4f8e;
|
|
|
}
|
|
}
|
|
|
.cov-date-next::before,
|
|
.cov-date-next::before,
|
|
|
.cov-date-previous::before {
|
|
.cov-date-previous::before {
|
|
|
- width: 20px;
|
|
|
|
|
- height: 2px;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- top: 50%;
|
|
|
|
|
- margin-top: -7px;
|
|
|
|
|
- margin-left: -7px;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- line-height: 0;
|
|
|
|
|
- content: '';
|
|
|
|
|
- -webkit-transform: rotate(45deg);
|
|
|
|
|
- -moz-transform: rotate(45deg);
|
|
|
|
|
- transform: rotate(45deg);
|
|
|
|
|
|
|
+ width: 20px;
|
|
|
|
|
+ height: 2px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ margin-top: -7px;
|
|
|
|
|
+ margin-left: -7px;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ line-height: 0;
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ -webkit-transform: rotate(45deg);
|
|
|
|
|
+ -moz-transform: rotate(45deg);
|
|
|
|
|
+ transform: rotate(45deg);
|
|
|
}
|
|
}
|
|
|
.cov-date-next::after,
|
|
.cov-date-next::after,
|
|
|
.cov-date-previous::after {
|
|
.cov-date-previous::after {
|
|
|
- width: 20px;
|
|
|
|
|
- height: 2px;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- margin-top: 6px;
|
|
|
|
|
- margin-left: -7px;
|
|
|
|
|
- top: 50%;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- line-height: 0;
|
|
|
|
|
- content: '';
|
|
|
|
|
- -webkit-transform: rotate(-45deg);
|
|
|
|
|
- -moz-transform: rotate(-45deg);
|
|
|
|
|
- transform: rotate(-45deg);
|
|
|
|
|
|
|
+ width: 20px;
|
|
|
|
|
+ height: 2px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ margin-top: 6px;
|
|
|
|
|
+ margin-left: -7px;
|
|
|
|
|
+ top: 50%;
|
|
|
|
|
+ left: 50%;
|
|
|
|
|
+ line-height: 0;
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ -webkit-transform: rotate(-45deg);
|
|
|
|
|
+ -moz-transform: rotate(-45deg);
|
|
|
|
|
+ transform: rotate(-45deg);
|
|
|
}
|
|
}
|
|
|
.cov-date-previous::after {
|
|
.cov-date-previous::after {
|
|
|
- -webkit-transform: rotate(45deg);
|
|
|
|
|
- -moz-transform: rotate(45deg);
|
|
|
|
|
- transform: rotate(45deg);
|
|
|
|
|
|
|
+ -webkit-transform: rotate(45deg);
|
|
|
|
|
+ -moz-transform: rotate(45deg);
|
|
|
|
|
+ transform: rotate(45deg);
|
|
|
}
|
|
}
|
|
|
.cov-date-previous::before {
|
|
.cov-date-previous::before {
|
|
|
- -webkit-transform: rotate(-45deg);
|
|
|
|
|
- -moz-transform: rotate(-45deg);
|
|
|
|
|
- transform: rotate(-45deg);
|
|
|
|
|
|
|
+ -webkit-transform: rotate(-45deg);
|
|
|
|
|
+ -moz-transform: rotate(-45deg);
|
|
|
|
|
+ transform: rotate(-45deg);
|
|
|
}
|
|
}
|
|
|
.date-item {
|
|
.date-item {
|
|
|
- text-align: center;
|
|
|
|
|
- font-size: 20px;
|
|
|
|
|
- padding: 10px 0;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ font-size: 20px;
|
|
|
|
|
+ padding: 10px 0;
|
|
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
}
|
|
|
.date-item:hover {
|
|
.date-item:hover {
|
|
|
- background: #e0e0e0;
|
|
|
|
|
|
|
+ background: #e0e0e0;
|
|
|
}
|
|
}
|
|
|
.date-list {
|
|
.date-list {
|
|
|
- overflow: auto;
|
|
|
|
|
- vertical-align: top;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
|
|
+ overflow: auto;
|
|
|
|
|
+ vertical-align: top;
|
|
|
|
|
+ padding: 0;
|
|
|
}
|
|
}
|
|
|
.cov-vue-date {
|
|
.cov-vue-date {
|
|
|
- display: inline-block;
|
|
|
|
|
- color: #5D5D5D;
|
|
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ color: #5d5d5d;
|
|
|
}
|
|
}
|
|
|
.button-box {
|
|
.button-box {
|
|
|
- background: #fff;
|
|
|
|
|
- vertical-align: top;
|
|
|
|
|
- height: 50px;
|
|
|
|
|
- line-height: 50px;
|
|
|
|
|
- text-align: right;
|
|
|
|
|
- padding-right: 20px;
|
|
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ vertical-align: top;
|
|
|
|
|
+ height: 50px;
|
|
|
|
|
+ line-height: 50px;
|
|
|
|
|
+ text-align: right;
|
|
|
|
|
+ padding-right: 20px;
|
|
|
}
|
|
}
|
|
|
.button-box span {
|
|
.button-box span {
|
|
|
- cursor: pointer;
|
|
|
|
|
- padding: 10px 20px;
|
|
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ padding: 10px 20px;
|
|
|
}
|
|
}
|
|
|
.watch-box {
|
|
.watch-box {
|
|
|
- height: 100%;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
}
|
|
|
.hour-box,
|
|
.hour-box,
|
|
|
.min-box {
|
|
.min-box {
|
|
|
- display: inline-block;
|
|
|
|
|
- width: 50%;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- overflow: auto;
|
|
|
|
|
- float: left;
|
|
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+ width: 50%;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ overflow: auto;
|
|
|
|
|
+ float: left;
|
|
|
}
|
|
}
|
|
|
.hour-box ul,
|
|
.hour-box ul,
|
|
|
.min-box ul {
|
|
.min-box ul {
|
|
|
- list-style: none;
|
|
|
|
|
- margin: 0;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
|
|
+ list-style: none;
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ padding: 0;
|
|
|
}
|
|
}
|
|
|
.hour-item,
|
|
.hour-item,
|
|
|
.min-item {
|
|
.min-item {
|
|
|
- padding: 10px;
|
|
|
|
|
- font-size: 36px;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
|
|
+ padding: 10px;
|
|
|
|
|
+ font-size: 36px;
|
|
|
|
|
+ cursor: pointer;
|
|
|
}
|
|
}
|
|
|
.hour-item:hover,
|
|
.hour-item:hover,
|
|
|
.min-item:hover {
|
|
.min-item:hover {
|
|
|
- background: #E3E3E3;
|
|
|
|
|
|
|
+ background: #e3e3e3;
|
|
|
}
|
|
}
|
|
|
.hour-box .active,
|
|
.hour-box .active,
|
|
|
.min-box .active {
|
|
.min-box .active {
|
|
|
- background: #F50057;
|
|
|
|
|
- color: #FFF !important;
|
|
|
|
|
|
|
+ background: #f50057;
|
|
|
|
|
+ color: #fff !important;
|
|
|
}
|
|
}
|
|
|
::-webkit-scrollbar {
|
|
::-webkit-scrollbar {
|
|
|
- width: 2px;
|
|
|
|
|
|
|
+ width: 2px;
|
|
|
}
|
|
}
|
|
|
::-webkit-scrollbar-track {
|
|
::-webkit-scrollbar-track {
|
|
|
- background: #E3E3E3;
|
|
|
|
|
|
|
+ background: #e3e3e3;
|
|
|
}
|
|
}
|
|
|
::-webkit-scrollbar-thumb {
|
|
::-webkit-scrollbar-thumb {
|
|
|
- background: #C1C1C1;
|
|
|
|
|
- border-radius: 2px;
|
|
|
|
|
|
|
+ background: #c1c1c1;
|
|
|
|
|
+ border-radius: 2px;
|
|
|
}
|
|
}
|
|
|
.btn-remove {
|
|
.btn-remove {
|
|
|
float: right;
|
|
float: right;
|
|
@@ -843,11 +937,9 @@ table {
|
|
|
padding: 9px;
|
|
padding: 9px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.cov-datepicker[disabled]{
|
|
|
|
|
|
|
+.cov-datepicker[disabled] {
|
|
|
cursor: not-allowed;
|
|
cursor: not-allowed;
|
|
|
background-color: #eee !important;
|
|
background-color: #eee !important;
|
|
|
opacity: 1;
|
|
opacity: 1;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
</style>
|
|
</style>
|