Commit 266c33819f98db85c87ad95ced69ce6ba6c4753e

Authored by sevth
Committed by GitHub
1 parent 9c26ee1b

fix: 修复使用 extendSlots 时插槽参数未传递的问题。 (#2056)

Co-authored-by: sevth <pengqiang@vastweb>
src/utils/helper/tsxHelper.tsx
... ... @@ -29,7 +29,7 @@ export function extendSlots(slots: Slots, excludeKeys: string[] = []) {
29 29 if (excludeKeys.includes(key)) {
30 30 return null;
31 31 }
32   - ret[key] = () => getSlot(slots, key);
  32 + ret[key] = (data?: any) => getSlot(slots, key, data);
33 33 });
34 34 return ret;
35 35 }
... ...