From 256129a358d205c862ffc1eab8fcfd8817664fdc Mon Sep 17 00:00:00 2001 From: waruneeta Date: Thu, 14 Sep 2023 10:53:01 +0700 Subject: [PATCH] fix currency display --- src/components/CurruncyInput.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/CurruncyInput.vue b/src/components/CurruncyInput.vue index 8d535b1ce..89d371935 100644 --- a/src/components/CurruncyInput.vue +++ b/src/components/CurruncyInput.vue @@ -13,8 +13,8 @@ :borderless="!edit" hide-bottom-space > - @@ -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); } );