fix: date picker lang
This commit is contained in:
parent
c4c7fd0b16
commit
513d90a34c
1 changed files with 5 additions and 2 deletions
|
|
@ -126,13 +126,16 @@ defineProps<{
|
|||
autoApply
|
||||
:teleport="true"
|
||||
v-model="birthDate"
|
||||
:locale="'th'"
|
||||
:locale="$i18n.locale === 'th-th' ? 'th' : 'en'"
|
||||
:enableTimePicker="false"
|
||||
:disabled="readonly"
|
||||
class="col-3"
|
||||
>
|
||||
<template #year="{ value }">
|
||||
{{ value + 543 }}
|
||||
{{ $i18n.locale === 'th-th' ? value + 543 : value }}
|
||||
</template>
|
||||
<template #year-overlay-value="{ value }">
|
||||
{{ $i18n.locale === 'th-th' ? value + 543 : value }}
|
||||
</template>
|
||||
<template #trigger>
|
||||
<q-input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue