Closed steelywing closed 2 weeks ago
v-model="foo"
is compiled to :modelValue="foo" @update:modelValue="$event => (foo = $event)"
v-model="foo"
is compiled to:modelValue="foo" @update:modelValue="$event => (foo = $event)"
Thanks for the quick reply, can we have a doc for this?
IIRC it used to be there but I can't find it anymore.
Closing as related PR was merged
defineModel
will convert to an event namedupdate:modelValue
, I search the doc site but I cannot found doc forupdate:modelValue
orupdate:*
event, how the parent handle this event?I think it will make the parent update the
modelValue
to the emit value, right?