Skip to content

Commit baf74be

Browse files
authored
Clarify emits API section (#282)
Add an explainer that: 1. Emits removes listeners from attribute inheritance 2. Emits removes listeners from the `$attrs` property
1 parent ea516d2 commit baf74be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/api/options-data.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,10 @@
290290
}
291291
})
292292
```
293+
294+
::: tip Note
295+
Events listed in the `emits` option **will not** be inherited by the root element of the component and also will be exlcluded from the `$attrs` property.
296+
:::
297+
298+
299+
- **See also:** [Attribute Inheritance](../guide/component-props.html#non-prop-attributes)

0 commit comments

Comments
 (0)