jonathanpmartins / v-money3

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

Upgrade Vue 2 -> Vue 3 #98

Open fariddarmaji98 opened 2 weeks ago

fariddarmaji98 commented 2 weeks ago

why when I use Money3Component v-model it doesn't work, but using Money3Directive it does, I think this is like an annoying but also fun entertainment, it's adorable to see green-faced arrogant humans

in main.js import { Money3Directive } from 'v-money3'; app.directive('money', Money3Directive);

in component `

`

jonathanpmartins commented 1 week ago

Can you elaborate more on the problem that you're having?

fariddarmaji98 commented 1 week ago

I remember before the upgrade still using Vue 2.6.12 and v-money 0.8.1, it's been 3 years and only now upgraded, when upgrading Vue 3.5.12 I found an error in using v-bind on v-money, then I decided to upgrade v-money3, I followed the documentation using Money3Component and no error, configuration via v-bind also works, but v-model “amount” doesn't change when I input the number, I wanted to honor my seniors so I kept looking and finally was able to use Money3Directive, I still use Options API, and vue/compat is still set to vue 2