Unverified 提交 266c3381 作者: sevth 提交者: GitHub

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

Co-authored-by: sevth <pengqiang@vastweb>
上级 9c26ee1b
...@@ -29,7 +29,7 @@ export function extendSlots(slots: Slots, excludeKeys: string[] = []) { ...@@ -29,7 +29,7 @@ export function extendSlots(slots: Slots, excludeKeys: string[] = []) {
if (excludeKeys.includes(key)) { if (excludeKeys.includes(key)) {
return null; return null;
} }
ret[key] = () => getSlot(slots, key); ret[key] = (data?: any) => getSlot(slots, key, data);
}); });
return ret; return ret;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论