多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
707 B

<script setup lang="ts">
const {t} = useI18n()
const { pageDate, selectedDate, selectedDateRange } = useCalendarViewStoreOrThrow()
const months = computed(() => {
const date = new Date()
const months = []
for (let i = 0; i < 12; i++) {
months.push(new Date(date.getFullYear(), i, selectedDate.value.getDate()))
}
return months
})
</script>
<template>
<div class="grid justify-items-center gap-6 grid-cols-3 overflow-auto nc-scrollbar-md">
<NcDateWeekSelector v-for="(month, index) in months" disable-pagination :key="month" v-model:page-date="months[index]" v-model:selected-date="selectedDate" class="max-w-[350px]"/>
</div>
</template>
<style scoped lang="scss">
</style>