Commit c8d63ad5c36e548ee1fc7c3c051d3ff41465d8c0
1 parent
195476d4
1.调整班组信息展示样式问题
Showing
2 changed files
with
10 additions
and
2 deletions
src/components/Common/CommonComponent/index.js
| ... | ... | @@ -1974,13 +1974,18 @@ export default class CommonComponent extends Component { |
| 1974 | 1974 | getOutFormItemPropsViewSlave = () => { |
| 1975 | 1975 | /* 返回值声明 */ |
| 1976 | 1976 | let obj = {}; |
| 1977 | - const titleStyle = {}; | |
| 1977 | + let titleStyle = {}; | |
| 1978 | 1978 | const showNameNew = this.props.showConfig.showName?.replace(/[\/\)\()]/g, ''); |
| 1979 | 1979 | let extraClassName = ''; |
| 1980 | 1980 | if (this.props.bSideInfo) { |
| 1981 | 1981 | // 工单信息特殊处理 |
| 1982 | 1982 | if (showNameNew?.length > 7) { |
| 1983 | 1983 | extraClassName = "sideInfoTitle"; |
| 1984 | + titleStyle = { | |
| 1985 | + whiteSpace: 'nowrap', | |
| 1986 | + overflow: 'hidden', | |
| 1987 | + textOverflow: 'ellipsis', | |
| 1988 | + } | |
| 1984 | 1989 | } |
| 1985 | 1990 | } else { |
| 1986 | 1991 | // if (showNameNew?.length > 7) { | ... | ... |
src/mes/common/siderInfoComponent/index.less
| ... | ... | @@ -151,6 +151,9 @@ |
| 151 | 151 | padding-left: 10px; |
| 152 | 152 | font-size: 18px; |
| 153 | 153 | line-height: 38px; |
| 154 | + white-space: nowrap; | |
| 155 | + overflow: hidden; | |
| 156 | + text-overflow: ellipsis; | |
| 154 | 157 | } |
| 155 | 158 | |
| 156 | 159 | .productionContent { |
| ... | ... | @@ -373,4 +376,4 @@ |
| 373 | 376 | border: 1px solid #FF0000; |
| 374 | 377 | background-color: #FF0000; |
| 375 | 378 | color: #FFF; |
| 376 | -} | |
| 377 | 379 | \ No newline at end of file |
| 380 | +} | ... | ... |