diff --git a/src/utils/helper/tsxHelper.tsx b/src/utils/helper/tsxHelper.tsx index 46e00012..a75327aa 100644 --- a/src/utils/helper/tsxHelper.tsx +++ b/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; }