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
|
autoApply
|
||||||
:teleport="true"
|
:teleport="true"
|
||||||
v-model="birthDate"
|
v-model="birthDate"
|
||||||
:locale="'th'"
|
:locale="$i18n.locale === 'th-th' ? 'th' : 'en'"
|
||||||
:enableTimePicker="false"
|
:enableTimePicker="false"
|
||||||
:disabled="readonly"
|
:disabled="readonly"
|
||||||
class="col-3"
|
class="col-3"
|
||||||
>
|
>
|
||||||
<template #year="{ value }">
|
<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>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<q-input
|
<q-input
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue