fix currency display

This commit is contained in:
Warunee Tamkoo 2023-09-14 10:53:01 +07:00
parent 8783a54691
commit 256129a358

View file

@ -13,8 +13,8 @@
:borderless="!edit"
hide-bottom-space
>
<template v-for="(_, slot) in slots" v-slot:[slot]="scope">
<slot :name="slot" v-bind="scope || {}" />
<template v-for="slot in slots">
<slot :name="slot" />
</template>
</q-input>
</template>
@ -37,9 +37,9 @@ const props = defineProps({
});
const { inputRef, formattedValue, setValue } = useCurrencyInput({
locale: "en-US",
currency: "EUR",
// currencyDisplay: "hidden",
locale: "th-TH",
currency: "THB",
currencyDisplay: "hidden" as any,
hideCurrencySymbolOnFocus: true,
hideGroupingSeparatorOnFocus: true,
hideNegligibleDecimalDigitsOnFocus: true,
@ -50,7 +50,7 @@ const { inputRef, formattedValue, setValue } = useCurrencyInput({
watch(
() => props.modelValue,
(value) => {
(value: any) => {
setValue(value);
}
);