[bugfix] unify functional slots in lower vue version

This commit is contained in:
陈嘉涵 2019-02-14 20:09:14 +08:00
parent 3931f32ae7
commit 2d63e0497b

View File

@ -57,7 +57,7 @@ function install(this: ComponentOptions<Vue>, Vue: VueConstructor) {
// unify slots & scopedSlots
export function unifySlots(context: RenderContext) {
const { scopedSlots = {} } = context;
const scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
const slots = context.slots();
Object.keys(slots).forEach(key => {