parent
600f2db48a
commit
041839b901
|
@ -137,7 +137,9 @@ const getComponentFromProp = (instance, prop, options = instance, execute = true
|
|||
const componentOptions = instance.componentOptions || {};
|
||||
(componentOptions.children || []).forEach(child => {
|
||||
if (child.data && child.data.slot === prop) {
|
||||
delete child.data.attrs.slot;
|
||||
if (child.data.attrs) {
|
||||
delete child.data.attrs.slot;
|
||||
}
|
||||
if (child.tag === 'template') {
|
||||
slotsProp.push(child.children);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue