From c8d63ad5c36e548ee1fc7c3c051d3ff41465d8c0 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Tue, 9 Sep 2025 17:24:03 +0800 Subject: [PATCH] 1.调整班组信息展示样式问题 --- src/components/Common/CommonComponent/index.js | 7 ++++++- src/mes/common/siderInfoComponent/index.less | 5 ++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 73fb8e4..b735fb9 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -1974,13 +1974,18 @@ export default class CommonComponent extends Component { getOutFormItemPropsViewSlave = () => { /* 返回值声明 */ let obj = {}; - const titleStyle = {}; + let titleStyle = {}; const showNameNew = this.props.showConfig.showName?.replace(/[\/\)\()]/g, ''); let extraClassName = ''; if (this.props.bSideInfo) { // 工单信息特殊处理 if (showNameNew?.length > 7) { extraClassName = "sideInfoTitle"; + titleStyle = { + whiteSpace: 'nowrap', + overflow: 'hidden', + textOverflow: 'ellipsis', + } } } else { // if (showNameNew?.length > 7) { diff --git a/src/mes/common/siderInfoComponent/index.less b/src/mes/common/siderInfoComponent/index.less index 4062fc6..708136b 100644 --- a/src/mes/common/siderInfoComponent/index.less +++ b/src/mes/common/siderInfoComponent/index.less @@ -151,6 +151,9 @@ padding-left: 10px; font-size: 18px; line-height: 38px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .productionContent { @@ -373,4 +376,4 @@ border: 1px solid #FF0000; background-color: #FF0000; color: #FFF; -} \ No newline at end of file +} -- libgit2 0.22.2