Refactor #4113
parent
81d971ef56
commit
f78332481e
|
@ -86,7 +86,7 @@
|
||||||
</slot>
|
</slot>
|
||||||
</button>
|
</button>
|
||||||
<div :class="cx('title')" v-bind="ptm('title')">
|
<div :class="cx('title')" v-bind="ptm('title')">
|
||||||
<span v-if="$primevue.config.locale.showMonthAfterYear">
|
<template v-if="$primevue.config.locale.showMonthAfterYear">
|
||||||
<button
|
<button
|
||||||
v-if="currentView !== 'year'"
|
v-if="currentView !== 'year'"
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -113,8 +113,8 @@
|
||||||
>
|
>
|
||||||
{{ getMonthName(month.month) }}
|
{{ getMonthName(month.month) }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</template>
|
||||||
<span v-else>
|
<template v-else>
|
||||||
<button
|
<button
|
||||||
v-if="currentView === 'date'"
|
v-if="currentView === 'date'"
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
>
|
>
|
||||||
{{ getYear(month) }}
|
{{ getYear(month) }}
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</template>
|
||||||
<span v-if="currentView === 'year'" :class="cx('decadeTitle')" v-bind="ptm('decadeTitle')">
|
<span v-if="currentView === 'year'" :class="cx('decadeTitle')" v-bind="ptm('decadeTitle')">
|
||||||
<slot name="decade" :years="yearPickerValues"> {{ yearPickerValues[0].value }} - {{ yearPickerValues[yearPickerValues.length - 1].value }} </slot>
|
<slot name="decade" :years="yearPickerValues"> {{ yearPickerValues[0].value }} - {{ yearPickerValues[yearPickerValues.length - 1].value }} </slot>
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue