New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v-model is invalid in vue@next with vite #39
Comments
v-model api has changed in Vue 3 - https://github.com/vuejs/rfcs/blob/master/active-rfcs/0011-v-model-api-change.md |
So this is an incompatible change? If I have a custom component base on Vue@2 and I want to use it in a project base on Vue@next, I need to refactor it at first? |
I think you can make it work in both versions of Vue. You need to add |
Please read RFCs for Vue core changes. This is not a vite issue. |
In a project created with vite, I define a component with
model
such as:and then I use v-model to bind
checked
forBaseCheckbox
It didn't work, and the value of
checked
props wasfalse
inBaseCheckbox
.Butv-model
withnative dom
was running normal.Is this problem about
vite
,vue@next
orcompiler
?The text was updated successfully, but these errors were encountered: