Browse Source

fix: get slot bug (#1256)

pull/1255/head
zkwolf 5 years ago committed by tangjinzhou
parent
commit
598f41f098
  1. 4
      components/_util/props-util.js

4
components/_util/props-util.js

@ -129,6 +129,10 @@ const getComponentFromProp = (instance, prop, options = instance, execute = true
if (temp !== undefined) {
return typeof temp === 'function' && execute ? temp(h, options) : temp;
}
const slotScope = getScopedSlots(instance)[prop];
if (slotScope !== undefined) {
return typeof slotScope === 'function' && execute ? slotScope(h, options) : slotScope;
}
const slotsProp = [];
const componentOptions = instance.componentOptions || {};
(componentOptions.children || []).forEach(child => {

Loading…
Cancel
Save