fix(empty): Fix image slot failure issue (#6681)

pull/6800/head
Zhang Wei 2023-06-25 07:06:01 +08:00 committed by GitHub
parent 6111883a5a
commit 0b73afffc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '',