-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
Since the commit 778734a, vue will always complain that fragment should not contain multiple attributes. However, I think the following props (for components) should not be warned:
- slot
- component props
- event bindings
Consider the following example, slot
, @custom-change
, :prop
should be passed, and :not-prop
should be warned. The v-bind
is a complexed case, because the object may contain some props and some attributes for element and dynamic:(.
<root>
<child slot="child" @custom-change="onchange" :prop="prop" :not-prop v-bind="mixedWithSomeProps"></child>
</root>
<template id="child">
<inner-comp>
<!-- something -->
</inner-comp>
</template>
Metadata
Metadata
Assignees
Labels
No labels