[Vuejs]-How to use v-model with custom components in Vue 2.7 Composition API?

1๐Ÿ‘

โœ…

I found out how to work this out. The only things to change are the emit, that needs to emit an event called "input"

emit('input', 'event.target.value')

and, in the type UIInput, I dont need a modelValue, as @Estus Flask commented on my question, but, actually, a value, which serves as value to :value in the input.

Leave a comment