jonathanpmartins / v-money3

Vue3 currency input/directive mask
MIT License
100 stars 27 forks source link

how to format value only for display? #72

Open nekooee opened 1 year ago

nekooee commented 1 year ago

how to InputBox bind to unformatted value but display formatted value?

nekooee commented 1 year ago

please guide me. I need to add up the numbers. But when they are formatted as money, there is no possibility of collecting.

jonathanpmartins commented 1 year ago

What exactly are you trying to achieve? Does the internal mask/unmask functions help you? https://github.com/jonathanpmartins/v-money3#use-the-internal-mask-functions

nekooee commented 1 year ago

Sorry for the late reply. I was in vacations! What exactly are you trying to achieve? Does the internal mask/unmask functions help you? https://github.com/jonathanpmartins/v-money3#use-the-internal-mask-functions

Thank you. I need to show the formatted number but save it in the database as unformatted. also when sum numbers I use them without formatted. So it's hard to unformat it first for anything. It is much better to bind the unformatted number directly.

jonathanpmartins commented 1 year ago

Did you solved your problem? Did you need help? Can I close this issue?

nekooee commented 1 year ago

Did you solved your problem? Did you need help? Can I close this issue?

I had to make a component that shows the number in a formatted, but the binding number is the same as the unformatted number. But with the features of the package itself, this feature is not available. My problem was solved with the component I made. Thankful