v-calendar
Version:
A clean and extendable plugin for building simple attributed calendars in Vue.js.
27 lines (25 loc) • 563 B
JavaScript
import { defaultsMixin } from '@/utils/defaults';
import { popoversMixin } from '@/utils/popovers';
export const childMixin = {
inject: ['sharedState'],
mixins: [defaultsMixin, popoversMixin],
computed: {
masks() {
return this.sharedState.masks;
},
theme() {
return this.sharedState.theme;
},
locale() {
return this.sharedState.locale;
},
dayPopoverId() {
return this.sharedState.dayPopoverId;
},
},
methods: {
format(date, mask) {
return this.locale.format(date, mask);
},
},
};