|
@@ -2,8 +2,6 @@
|
|
|
<div class="calendar-wrapper">
|
|
|
<!-- 月份变换区 -->
|
|
|
<div class="header rowJcAc" v-if="headerBar">
|
|
|
-
|
|
|
-
|
|
|
<!-- <div class="pre " @click="changeMonth('pre')">上个月</div> -->
|
|
|
<div class="yearMonth">
|
|
|
<div class="arrowIcon rowJcAc" @click="changeMonth('pre')" v-if="monthOpen">
|
|
@@ -32,6 +30,9 @@
|
|
|
todayChoose: isTodayChoose(item.year,item.month,item.date) ,
|
|
|
nolm:!item.isCurM,
|
|
|
today:isToday(item.year,item.month,item.date),
|
|
|
+ notallowed:isFutureDay(item.year,item.month,item.date)
|
|
|
+
|
|
|
+
|
|
|
}">
|
|
|
<div class="markDay" v-if="isMarkDay(item.year,item.month,item.date)"
|
|
|
:class="[choose==`${item.year}-${item.month}-${item.date}` ? 'markDayChoose':'markDayNoChoose']">
|
|
@@ -201,6 +202,7 @@ import {
|
|
|
}
|
|
|
}
|
|
|
return "date-state-pointer d-state-zc";
|
|
|
+
|
|
|
},
|
|
|
formatNum(num) {
|
|
|
let res = Number(num);
|
|
@@ -402,6 +404,9 @@ import {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+ .notallowed{
|
|
|
+ cursor: not-allowed !important
|
|
|
+ }
|
|
|
@import '@/assets/styles/base.scss';
|
|
|
//状态
|
|
|
.d-state-zc {
|