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