mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] scopedSlots maybe undefined in lower vue version
This commit is contained in:
parent
7e774bcff2
commit
3931f32ae7
@ -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;
|
||||
const slots = context.slots();
|
||||
|
||||
Object.keys(slots).forEach(key => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user