@@ -4,7 +4,7 @@ import Tabs from '../tabs';
44import Row from '../row' ;
55import Col from '../col' ;
66import PropTypes from '../_util/vue-types' ;
7- import { flattenChildren , isEmptyElement } from '../_util/props-util' ;
7+ import { flattenChildren , isEmptyElement , filterEmptyWithUndefined } from '../_util/props-util' ;
88import type { SizeType } from '../config-provider' ;
99import isPlainObject from 'lodash-es/isPlainObject' ;
1010import useConfigInject from '../_util/hooks/useConfigInject' ;
@@ -88,11 +88,11 @@ const Card = defineComponent({
8888 hoverable,
8989 activeTabKey,
9090 defaultActiveTabKey,
91- tabBarExtraContent = slots . tabBarExtraContent ?.( ) ,
92- title = slots . title ?.( ) ,
93- extra = slots . extra ?.( ) ,
94- actions = slots . actions ?.( ) ,
95- cover = slots . cover ?.( ) ,
91+ tabBarExtraContent = filterEmptyWithUndefined ( slots . tabBarExtraContent ?.( ) ) ,
92+ title = filterEmptyWithUndefined ( slots . title ?.( ) ) ,
93+ extra = filterEmptyWithUndefined ( slots . extra ?.( ) ) ,
94+ actions = filterEmptyWithUndefined ( slots . actions ?.( ) ) ,
95+ cover = filterEmptyWithUndefined ( slots . cover ?.( ) ) ,
9696 } = props ;
9797 const children = flattenChildren ( slots . default ?.( ) ) ;
9898 const pre = prefixCls . value ;
0 commit comments