From 0b73afffc42ce61516274bc0534b42a8cb38d173 Mon Sep 17 00:00:00 2001 From: Zhang Wei <66539215+bigyifeng@users.noreply.github.com> Date: Sun, 25 Jun 2023 07:06:01 +0800 Subject: [PATCH] fix(empty): Fix image slot failure issue (#6681) --- components/empty/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/empty/index.tsx b/components/empty/index.tsx index 89a1e8f65..d0ce00b30 100644 --- a/components/empty/index.tsx +++ b/components/empty/index.tsx @@ -36,7 +36,7 @@ const Empty: EmptyType = (props, { slots = {}, attrs }) => { const prefixCls = prefixClsRef.value; const { - image = defaultEmptyImg, + image = slots.image?.() || defaultEmptyImg, description = slots.description?.() || undefined, imageStyle, class: className = '',