This commit is contained in:
xuqiang 2019-06-27 16:18:25 +08:00
parent 543262295a
commit 657550118e

View File

@ -100,13 +100,13 @@ const renderCol = (child: React.ReactElement<DescriptionsItemProps>, bordered: b
]; ];
} }
return ( return (
<td <td colSpan={span} className={classNames(`${prefixCls}-item`, className)}>
colSpan={span} <span
className={classNames(`${prefixCls}-item`, className, { className={classNames(`${prefixCls}-item-label`, {
[`${prefixCls}-item-no-label`]: !label, [`${prefixCls}-item-no-label`]: !label,
})} })}
> key="label"
<span className={`${prefixCls}-item-label`} key="label"> >
{label} {label}
</span> </span>
<span className={`${prefixCls}-item-content`} key="content"> <span className={`${prefixCls}-item-content`} key="content">