use vc as v-calendar component prefix

This commit is contained in:
les
2021-03-16 19:57:00 +01:00
parent 4d86e07e65
commit cb7084b56a
3 changed files with 11 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
<template lang="pug">
#calendar
v-calendar(
vc-calendar(
title-position='left'
:is-dark="settings['theme.is_dark']"
:columns="$screens({ sm: 2 }, 1)"

View File

@@ -14,7 +14,7 @@
.datePicker.mt-3
v-input(:value='fromDate'
:rules="[$validators.required('common.when')]")
v-date-picker(
vc-date-picker(
:value='fromDate'
@input="date => change('date', date)"
:is-range='type === "multidate"'

View File

@@ -1,8 +1,9 @@
import Vue from 'vue'
import VCalendar from 'v-calendar'
export default () => {
Vue.use(VCalendar, {
// why is that ?!
firstDayOfWeek: 2
})
}
import Vue from 'vue'
import VCalendar from 'v-calendar'
export default () => {
Vue.use(VCalendar, {
componentPrefix: 'vc',
// why is that ?!
firstDayOfWeek: 2
})
}