I have a simple vue component which has has an input and the related v-model.
What we want is to format/mask the value, the input should have the german number format (, and . switched (From 1,000,000.00
to 1.000.000,00
). The (raw) value inside the component on the other side should have the raw (englisch format) value 1,000,000.00
.
Or short: I need an input which shows the german number format, the raw value still should have the english format.
Thanks in advance
I already tried it with maska which shows the value correctly on the frontend, but the raw value is just an int instead of a float.
I also tried to use vue-number-format, but i always get Vue is not defined
in the console.
I also searched on stackoverflow and found a few (older) workarounds with the focus
and blur
event, but this seems like a dirty implementation for me.