pull/4391/head
Tuğçe Küçükoğlu 2023-09-05 17:12:09 +03:00
parent 81d971ef56
commit f78332481e
1 changed files with 4 additions and 4 deletions

View File

@ -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>