fix: date picker locale
This commit is contained in:
parent
5bc28bf893
commit
c8b1a7551a
6 changed files with 70 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue