From 266c33819f98db85c87ad95ced69ce6ba6c4753e Mon Sep 17 00:00:00 2001 From: sevth <50509571+tt-sevth@users.noreply.github.com> Date: Sun, 10 Jul 2022 18:27:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8=20e?= =?UTF-8?q?xtendSlots=20=E6=97=B6=E6=8F=92=E6=A7=BD=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=9C=AA=E4=BC=A0=E9=80=92=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= =?UTF-8?q?=20(#2056)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: sevth --- src/utils/helper/tsxHelper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }