vuetify
Version:
Vue Material Component Framework
28 lines (22 loc) • 660 B
text/typescript
// Styles
import './VCalendarWeekly.sass'
// Mixins
import VCalendarWeekly from './VCalendarWeekly'
// Util
import { parseTimestamp, getStartOfMonth, getEndOfMonth } from './util/timestamp'
import { CalendarTimestamp } from 'vuetify/types'
/* @vue/component */
export default VCalendarWeekly.extend({
name: 'v-calendar-monthly',
computed: {
staticClass (): string {
return 'v-calendar-monthly v-calendar-weekly'
},
parsedStart (): CalendarTimestamp {
return getStartOfMonth(parseTimestamp(this.start, true))
},
parsedEnd (): CalendarTimestamp {
return getEndOfMonth(parseTimestamp(this.end, true))
},
},
})