-
Notifications
You must be signed in to change notification settings - Fork 145
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
How to use v-model in component? #151
Comments
Have you checked your Vue version? |
missing required |
Maybe remove the |
@Amour1688 Typescript error has gone after missing required |
|
This issue shouldn't be closed, requiring a v-model is very normal and jsx should know how to map source: https://v3.vuejs.org/guide/render-function.html#v-model |
i think this problem should be solved.i think it may be a typescript problem. |
// index.tsx

// Modal.tsx

I refer
<A v-model={[val, 'argument', ['modifier']]} />
, but got typescript error.Version:
vue:
3.0.2
@vue/babel-plugin-jsx:
1.0.0-rc.3
typescript:
3.9.7
The text was updated successfully, but these errors were encountered: