Fix extra wrapper of Card children, close #9226

This commit is contained in:
afc163 2018-02-02 11:53:41 +08:00
parent 26b58a9808
commit 7a33a9e5d5

View File

@ -180,7 +180,7 @@ export default class Card extends React.Component<CardProps, {}> {
const coverDom = cover ? <div className={`${prefixCls}-cover`}>{cover}</div> : null;
const body = (
<div className={`${prefixCls}-body`} style={bodyStyle}>
{loading ? loadingBlock : <div>{children}</div>}
{loading ? loadingBlock : children}
</div>
);
const actionDom = actions && actions.length ?