fix: date picker locale

This commit is contained in:
puriphatt 2024-06-14 11:01:06 +00:00
parent 5bc28bf893
commit c8b1a7551a
6 changed files with 70 additions and 28 deletions

View file

@ -139,13 +139,16 @@ defineProps<{
utc
autoApply
v-model="payDate"
: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