Skip to content

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

Open
@colgin

Description

@colgin

🧐 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions