diff --git a/src/components/DetailCard/index.jsx b/src/components/DetailCard/index.jsx
index fbc76f44..0ac762ce 100644
--- a/src/components/DetailCard/index.jsx
+++ b/src/components/DetailCard/index.jsx
@@ -90,14 +90,22 @@ const renderLabel = (option) => {
const renderOptions = (options, data, loading, labelCol, contentCol) =>
options
.filter((option) => !option.hidden)
- .map((option, index) => (
-
-
- {renderLabel(option)}
- {getContent(data, option)}
-
-
- ));
+ .map((option, index) => {
+ const currentLabelCol = has(option, 'labelCol')
+ ? option.labelCol
+ : labelCol;
+ const currentContentCol = has(option, 'contentCol')
+ ? option.contentCol
+ : contentCol;
+ return (
+
+
+ {renderLabel(option)}
+ {getContent(data, option)}
+
+
+ );
+ });
const DetailCard = ({
title,
@@ -145,6 +153,8 @@ const detailProps = PropTypes.shape({
tooltip: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
dataIndex: PropTypes.string,
valueRender: PropTypes.string,
+ labelCol: PropTypes.number,
+ contentCol: PropTypes.number,
});
DetailCard.defaultProps = {