Skip to content

how to bind v-model:value in render function h()? #3947

Answered by XieZongChen
summerset-zz asked this question in Q&A
Discussion options

You must be logged in to vote

In vue, v-model:value is the syntactic sugar of value and on-update:value. So when you use components through h, you can:

h(NInput, {
            value: row.name,
            onUpdateValue (v) {
              data.value[index].name = v
            }
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@XieZongChen
Comment options

Answer selected by summerset-zz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants