fix currency display
This commit is contained in:
parent
8783a54691
commit
256129a358
1 changed files with 6 additions and 6 deletions
|
|
@ -13,8 +13,8 @@
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
>
|
>
|
||||||
<template v-for="(_, slot) in slots" v-slot:[slot]="scope">
|
<template v-for="slot in slots">
|
||||||
<slot :name="slot" v-bind="scope || {}" />
|
<slot :name="slot" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -37,9 +37,9 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const { inputRef, formattedValue, setValue } = useCurrencyInput({
|
const { inputRef, formattedValue, setValue } = useCurrencyInput({
|
||||||
locale: "en-US",
|
locale: "th-TH",
|
||||||
currency: "EUR",
|
currency: "THB",
|
||||||
// currencyDisplay: "hidden",
|
currencyDisplay: "hidden" as any,
|
||||||
hideCurrencySymbolOnFocus: true,
|
hideCurrencySymbolOnFocus: true,
|
||||||
hideGroupingSeparatorOnFocus: true,
|
hideGroupingSeparatorOnFocus: true,
|
||||||
hideNegligibleDecimalDigitsOnFocus: true,
|
hideNegligibleDecimalDigitsOnFocus: true,
|
||||||
|
|
@ -50,7 +50,7 @@ const { inputRef, formattedValue, setValue } = useCurrencyInput({
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.modelValue,
|
() => props.modelValue,
|
||||||
(value) => {
|
(value: any) => {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue