diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 58b4ff1..e44a573 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -1960,7 +1960,13 @@ export default class CommonComponent extends Component { }; } else if (this.firstDataIndex === 'b') { /* 选择框(布尔类型b) */ obj = { - label: this.props.showConfig.showName, /* 标签 */ + label: ( + + {this.props.showConfig?.showName} + + ), className: styles.formItemMag10, /* 样式名称 */ ...this.formItemLayout, /* 主要是rowspan和colspan */ }; @@ -2020,7 +2026,7 @@ export default class CommonComponent extends Component { }; } else if (this.firstDataIndex === 'b') { /* 选择框(布尔类型b) */ obj = { - label: {this.props.showConfig.showName}, /* 标签 */ + label: {this.props.showConfig.showName}, /* 标签 */ className: styles.formItemMag10, /* 样式名称 */ ...this.formItemLayout, /* 主要是rowspan和colspan */ };