import React from 'react'; import classNames from 'classnames'; export default props => { let { prefixCls = 'ant-card', className, children, extra, bodyStyle, title, loading, ...other } = props; const classString = classNames({ [prefixCls]: true, [className]: !!className, [`${prefixCls}-loading`]: loading, }); if (loading) { children = (

███████████████████████

██████ ███████████████████

██████████ ███████████

█████ ██████ █████████████

); } const head = title ? (

{title}

) : null; return (
{head} {extra ?
{extra}
: null}
{children}
); };