chore: install prettier

This commit is contained in:
Viet An
2026-05-04 15:22:27 +07:00
parent 93d29ca7d8
commit bd58e2b847
267 changed files with 22950 additions and 13581 deletions

View File

@@ -1,52 +1,63 @@
<template>
<div class="columns mx-0">
<div class="column is-narrow" v-if="1<0">
<div
class="column is-narrow"
v-if="1 < 0"
>
<EventSummary></EventSummary>
</div>
<div class="column">
<div class="column">
<div class="mb-4">
<span class="fsb-17 mr-4">{{ `T${vmonth}/${vyear}` }}</span>
<a class="mr-2" @click="previous()"><SvgIcon v-bind="{name: 'left1.svg', type: 'dark', size: 18}"></SvgIcon></a>
<a class="mr-3" @click="next()"><SvgIcon v-bind="{name: 'right.svg', type: 'dark', size: 18}"></SvgIcon></a>
<a @click="refresh()"><SvgIcon v-bind="{name: 'refresh.svg', type: 'dark', size: 18}"></SvgIcon></a>
<a
class="mr-2"
@click="previous()"
><SvgIcon v-bind="{ name: 'left1.svg', type: 'dark', size: 18 }"></SvgIcon
></a>
<a
class="mr-3"
@click="next()"
><SvgIcon v-bind="{ name: 'right.svg', type: 'dark', size: 18 }"></SvgIcon
></a>
<a @click="refresh()"><SvgIcon v-bind="{ name: 'refresh.svg', type: 'dark', size: 18 }"></SvgIcon></a>
</div>
<EventDetail v-bind="{events: events, vyear: vyear, vmonth: vmonth}"></EventDetail>
</div>
<EventDetail v-bind="{ events: events, vyear: vyear, vmonth: vmonth }"></EventDetail>
</div>
</div>
</template>
<script setup>
import EventSummary from '@/components/datepicker/EventSummary'
import EventDetail from '@/components/datepicker/EventDetail'
import EventSummary from "@/components/datepicker/EventSummary";
import EventDetail from "@/components/datepicker/EventDetail";
</script>
<script>
export default {
props: ['events', 'year', 'month'],
props: ["events", "year", "month"],
data() {
return {
vyear: this.year? this.$copy(this.year) : undefined,
vmonth: this.month? this.$copy(this.month) : undefined
}
vyear: this.year ? this.$copy(this.year) : undefined,
vmonth: this.month ? this.$copy(this.month) : undefined,
};
},
methods: {
next() {
let month = this.vmonth + 1
if(month>12) {
month = 1
this.vyear += 1
let month = this.vmonth + 1;
if (month > 12) {
month = 1;
this.vyear += 1;
}
this.vmonth = month
this.vmonth = month;
},
previous() {
let month = this.vmonth - 1
if(month===0) {
month = 12
this.vyear -= 1
let month = this.vmonth - 1;
if (month === 0) {
month = 12;
this.vyear -= 1;
}
this.vmonth = month
this.vmonth = month;
},
refresh() {
this.$emit('refresh')
}
}
}
</script>
this.$emit("refresh");
},
},
};
</script>