[calendar] remove toady mark from the banner
This commit is contained in:
parent
2e2f8fee53
commit
2118f21802
|
@ -2,7 +2,7 @@
|
||||||
<div class="calendar">
|
<div class="calendar">
|
||||||
<div v-for="i in (startingDayOfWeek - 1)"></div>
|
<div v-for="i in (startingDayOfWeek - 1)"></div>
|
||||||
<div v-for="d in iterateMonth(year, month)"
|
<div v-for="d in iterateMonth(year, month)"
|
||||||
:class="['rounded-circle', getDayClass(d), d.equals(today) ? 'day-today' : '', d.equals(selectedDay) ? 'day-selected' : '']"
|
:class="['rounded-circle', getDayClass(d), markToday && d.equals(today) ? 'day-today' : '', d.equals(selectedDay) ? 'day-selected' : '']"
|
||||||
@click.stop="selectDay(d)"
|
@click.stop="selectDay(d)"
|
||||||
:data-flag="getDayFlag(d)"
|
:data-flag="getDayFlag(d)"
|
||||||
:style="getDayFlag(d) ? `background-image: url('${getDayFlag(d)}')` : ''"
|
:style="getDayFlag(d) ? `background-image: url('${getDayFlag(d)}')` : ''"
|
||||||
|
@ -36,6 +36,7 @@
|
||||||
props: {
|
props: {
|
||||||
year: { required: true },
|
year: { required: true },
|
||||||
month: { required: true },
|
month: { required: true },
|
||||||
|
markToday: { type: Boolean },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<section class="row">
|
<section class="row">
|
||||||
<div v-for="i in 12" class="col-12 col-sm-6 col-lg-4 py-3">
|
<div v-for="i in 12" class="col-12 col-sm-6 col-lg-4 py-3">
|
||||||
<h3 class="text-center"><T>calendar.months.{{i}}</T></h3>
|
<h3 class="text-center"><T>calendar.months.{{i}}</T></h3>
|
||||||
<Calendar :year="year" :month="i"/>
|
<Calendar :year="year" :month="i" markToday/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 253 KiB |
Reference in New Issue