[bugfix] scopedSlots maybe undefined in lower vue version
This commit is contained in:
@@ -57,7 +57,7 @@ function install(this: ComponentOptions<Vue>, Vue: VueConstructor) {
|
|||||||
|
|
||||||
// unify slots & scopedSlots
|
// unify slots & scopedSlots
|
||||||
export function unifySlots(context: RenderContext) {
|
export function unifySlots(context: RenderContext) {
|
||||||
const { scopedSlots } = context;
|
const { scopedSlots = {} } = context;
|
||||||
const slots = context.slots();
|
const slots = context.slots();
|
||||||
|
|
||||||
Object.keys(slots).forEach(key => {
|
Object.keys(slots).forEach(key => {
|
||||||
|
|||||||
Reference in New Issue
Block a user