mirror of
https://github.com/youzan/vant.git
synced 2026-04-05 02:05:11 +08:00
[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
|
||||
export function unifySlots(context: RenderContext) {
|
||||
const { scopedSlots } = context;
|
||||
const { scopedSlots = {} } = context;
|
||||
const slots = context.slots();
|
||||
|
||||
Object.keys(slots).forEach(key => {
|
||||
|
||||
Reference in New Issue
Block a user