Skip to content

Commit 1dfd434

Browse files
fix: add an emits option to style guide examples that use $emit (#941)
1 parent 7608a12 commit 1dfd434

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/style-guide/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,6 +1583,8 @@ app.component('TodoItem', {
15831583
}
15841584
},
15851585

1586+
emits: ['input'],
1587+
15861588
template: `
15871589
<input
15881590
:value="todo.text"
@@ -1601,6 +1603,8 @@ app.component('TodoItem', {
16011603
}
16021604
},
16031605

1606+
emits: ['delete'],
1607+
16041608
template: `
16051609
<span>
16061610
{{ todo.text }}

0 commit comments

Comments
 (0)