Commit 08d3954dced89fcc251296a7c96c0c2acdcb45b1
1 parent
420d9b56
1.AJT-MES 表单,有部分 鼠标悬浮没中英提示
Showing
1 changed file
with
8 additions
and
2 deletions
src/components/Common/CommonComponent/index.js
| @@ -1960,7 +1960,13 @@ export default class CommonComponent extends Component { | @@ -1960,7 +1960,13 @@ export default class CommonComponent extends Component { | ||
| 1960 | }; | 1960 | }; |
| 1961 | } else if (this.firstDataIndex === 'b') { /* 选择框(布尔类型b) */ | 1961 | } else if (this.firstDataIndex === 'b') { /* 选择框(布尔类型b) */ |
| 1962 | obj = { | 1962 | obj = { |
| 1963 | - label: this.props.showConfig.showName, /* 标签 */ | 1963 | + label: ( |
| 1964 | + <span | ||
| 1965 | + title={bEnglish ? `${this.props.showConfig?.showName}-${this.props.showConfig?.sChinese}` : this.props.showConfig?.showName} | ||
| 1966 | + > | ||
| 1967 | + {this.props.showConfig?.showName} | ||
| 1968 | + </span> | ||
| 1969 | + ), | ||
| 1964 | className: styles.formItemMag10, /* 样式名称 */ | 1970 | className: styles.formItemMag10, /* 样式名称 */ |
| 1965 | ...this.formItemLayout, /* 主要是rowspan和colspan */ | 1971 | ...this.formItemLayout, /* 主要是rowspan和colspan */ |
| 1966 | }; | 1972 | }; |
| @@ -2020,7 +2026,7 @@ export default class CommonComponent extends Component { | @@ -2020,7 +2026,7 @@ export default class CommonComponent extends Component { | ||
| 2020 | }; | 2026 | }; |
| 2021 | } else if (this.firstDataIndex === 'b') { /* 选择框(布尔类型b) */ | 2027 | } else if (this.firstDataIndex === 'b') { /* 选择框(布尔类型b) */ |
| 2022 | obj = { | 2028 | obj = { |
| 2023 | - label: <span style={titleStyle}>{this.props.showConfig.showName}</span>, /* 标签 */ | 2029 | + label: <span title={bEnglish ? `${this.props.showConfig?.showName}-${this.props.showConfig?.sChinese}` : this.props.showConfig?.showName} style={titleStyle}>{this.props.showConfig.showName}</span>, /* 标签 */ |
| 2024 | className: styles.formItemMag10, /* 样式名称 */ | 2030 | className: styles.formItemMag10, /* 样式名称 */ |
| 2025 | ...this.formItemLayout, /* 主要是rowspan和colspan */ | 2031 | ...this.formItemLayout, /* 主要是rowspan和colspan */ |
| 2026 | }; | 2032 | }; |