what is @vue:mounted syntax #10133
-
In this example , I sees a new "syntax", but I can't found any document for this "syntax" https://cn.vuejs.org/examples/#todomvc <input
v-if="todo === editedTodo"
class="edit"
type="text"
v-model="todo.title"
@vue:mounted="({ el }) => el.focus()"
@blur="doneEdit(todo)"
@keyup.enter="doneEdit(todo)"
@keyup.escape="cancelEdit(todo)"
> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
not in the official doc but i found it in the migration guide https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html |
Beta Was this translation helpful? Give feedback.
-
@VUE:mounted="({ el }) => el.focus()" how to make this TS compatible? I have Binding element 'el' implicitly has an 'any' type. |
Beta Was this translation helpful? Give feedback.
not in the official doc but i found it in the migration guide
https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html