tiny-vue/examples/sites/demos/mobile-first/app/calendar-view/calendar-disabled-day.vue

24 lines
411 B
Vue

<template>
<tiny-calendar-view :events="eventslist" :year="2023" :month="5" :disabled="disabled"> </tiny-calendar-view>
</template>
<script>
import { CalendarView } from '@opentiny/vue'
export default {
components: {
TinyCalendarView: CalendarView
},
data() {
return {
eventslist: []
}
},
methods: {
disabled(date) {
return date.split('-')[2] < 5
}
}
}
</script>