Skip to content

Commit 25105e7

Browse files
committed
1 parent 6a478de commit 25105e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/guide/component-basics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ methods: {
307307
```js
308308
app.component('custom-input', {
309309
props: ['modelValue'],
310+
emits: ['update:modelValue'],
310311
template: `
311312
<input
312313
:value="modelValue"
@@ -331,6 +332,7 @@ app.component('custom-input', {
331332
```js
332333
app.component('custom-input', {
333334
props: ['modelValue'],
335+
emits: ['update:modelValue'],
334336
template: `
335337
<input v-model="value">
336338
`,

0 commit comments

Comments
 (0)