@@ -4,7 +4,7 @@ import Tabs from '../tabs';
4
4
import Row from '../row' ;
5
5
import Col from '../col' ;
6
6
import PropTypes from '../_util/vue-types' ;
7
- import { flattenChildren , isEmptyElement } from '../_util/props-util' ;
7
+ import { flattenChildren , isEmptyElement , filterEmptyWithUndefined } from '../_util/props-util' ;
8
8
import type { SizeType } from '../config-provider' ;
9
9
import isPlainObject from 'lodash-es/isPlainObject' ;
10
10
import useConfigInject from '../_util/hooks/useConfigInject' ;
@@ -88,11 +88,11 @@ const Card = defineComponent({
88
88
hoverable,
89
89
activeTabKey,
90
90
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 ?.( ) ) ,
96
96
} = props ;
97
97
const children = flattenChildren ( slots . default ?.( ) ) ;
98
98
const pre = prefixCls . value ;
0 commit comments