Browse Source
fix: 修复使用 extendSlots 时插槽参数未传递的问题。 (#2056)
Co-authored-by: sevth <pengqiang@vastweb>
pull/2068/head
sevth
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/utils/helper/tsxHelper.tsx
|
|
|
@ -29,7 +29,7 @@ export function extendSlots(slots: Slots, excludeKeys: string[] = []) { |
|
|
|
if (excludeKeys.includes(key)) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
ret[key] = () => getSlot(slots, key); |
|
|
|
ret[key] = (data?: any) => getSlot(slots, key, data); |
|
|
|
}); |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|