vuejs / composition-api

Composition API plugin for Vue 2

Home Page:https://composition-api.vuejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using custom v-model for component

marciado opened this issue · comments

The v-model has breaking changes in Vue 3. So we have to use:
:modelValue & @update:modelValue="customHandler"

instead of :value & @input="customHandler".

Therefore it is not possible to only use v-model at the parent component, so you have to use it like above right?
And vue 3 support of v-model naming (like v-model:name="customModelValue") is also not possible?

Has this plugin a solution for custom v-models inside of the composition api?

Sorry this is not possible and out-of-scope of this project.

Do you know if this is implemented in vue 2.7?