Skip to content
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

[Question] How to use multiple v-model in ts #584

Open
colgin opened this issue Jul 13, 2022 · 2 comments
Open

[Question] How to use multiple v-model in ts #584

colgin opened this issue Jul 13, 2022 · 2 comments
Labels
question Further information is requested

Comments

@colgin
Copy link

colgin commented Jul 13, 2022

🧐 Problem Description

According the doc, we can use v-model like

<A v-model={[val, "argument", ["modifier"]]} />

we can use multiple v-model with differectn argument like

<A v-model={[val1, "argument1", ["modifier1"]]} v-model={[val2, "argument2", ["modifier2"]]} />

but, if we use tsx, ts will throw a error like "TS17001: JSX elements cannot have multiple attributes with the same name."

Although, I don't think it's a issue of babel-plugin-jsx, see ts playground, I want to know any workaround except using prop + event handler

💻 Sample code

🚑 Other information

@colgin colgin added the question Further information is requested label Jul 13, 2022
@funny-family
Copy link

@colgin, it will take a lot of time write, but checkout this component and if you have any questions you are free to ask.

@QAQLC
Copy link

QAQLC commented Apr 8, 2024

@colgin, it will take a lot of time write, but checkout this component and if you have any questions you are free to ask.

@colgin, it will take a lot of time write, but checkout this component and if you have any questions you are free to ask.

没看明白,能都简单明了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants