Commit 9e61d9ac2165d5f7eb8b79944d4641e8e8ca6613
Merge branch 'release/customer/2025/AJT' of http://git.xlyprint.cn/qiangmj/ebc-M…
…es into release/customer/2025/AJT
Showing
5 changed files
with
34 additions
and
2 deletions
src/components/Common/CommonTable/index.js
| @@ -4582,11 +4582,11 @@ class CommonTableRc extends React.Component { | @@ -4582,11 +4582,11 @@ class CommonTableRc extends React.Component { | ||
| 4582 | {expandedAllIcon} | 4582 | {expandedAllIcon} |
| 4583 | {editableSpan} | 4583 | {editableSpan} |
| 4584 | {props.bXunjian && column.bXunjianSpecial ? ( | 4584 | {props.bXunjian && column.bXunjianSpecial ? ( |
| 4585 | - <span style={{ color: "red", ...extraStyle }}> | 4585 | + <span style={{ color: "red", ...extraStyle }} title={`${column.title}`}> |
| 4586 | {column.title} | 4586 | {column.title} |
| 4587 | </span> | 4587 | </span> |
| 4588 | ) : props.bXunjian ? ( | 4588 | ) : props.bXunjian ? ( |
| 4589 | - <span style={{ ...extraStyle }}>{column.title}</span> | 4589 | + <span style={{ ...extraStyle }} title={`${column.title}`}>{column.title}</span> |
| 4590 | ) : column.title === "." ? ( | 4590 | ) : column.title === "." ? ( |
| 4591 | "" | 4591 | "" |
| 4592 | ) : ( | 4592 | ) : ( |
src/index.js
| @@ -9,6 +9,7 @@ import './indexNew.less'; | @@ -9,6 +9,7 @@ import './indexNew.less'; | ||
| 9 | import './default.less'; | 9 | import './default.less'; |
| 10 | import './g2'; | 10 | import './g2'; |
| 11 | import './variable.less'; // 用于覆盖上面定义的变量 | 11 | import './variable.less'; // 用于覆盖上面定义的变量 |
| 12 | +import './lang/index.less'; // 用于不同语言的样式 | ||
| 12 | 13 | ||
| 13 | 14 | ||
| 14 | const ERROR_MSG_DURATION = 5; | 15 | const ERROR_MSG_DURATION = 5; |
src/lang/en-lang.less
0 → 100644
| 1 | +:global { | ||
| 2 | + html[lang="sEnglish"] { | ||
| 3 | + th[width="40"] { | ||
| 4 | + .th-div { | ||
| 5 | + width: 32px; | ||
| 6 | + margin: 0; | ||
| 7 | + height: auto; | ||
| 8 | + display: -webkit-box; | ||
| 9 | + /*! autoprefixer: ignore next */ | ||
| 10 | + -webkit-box-orient: vertical; | ||
| 11 | + -webkit-line-clamp: 10; | ||
| 12 | + /* 只保留 2 行 */ | ||
| 13 | + overflow: hidden; | ||
| 14 | + text-overflow: ellipsis; | ||
| 15 | + /* 兜底 */ | ||
| 16 | + white-space: normal; | ||
| 17 | + word-break: break-all; | ||
| 18 | + /* 覆盖 antd 默认 nowrap */ | ||
| 19 | + /* 按需调整,决定何时断行 */ | ||
| 20 | + line-height: 1.2; | ||
| 21 | + } | ||
| 22 | + } | ||
| 23 | + } | ||
| 24 | +} | ||
| 0 | \ No newline at end of file | 25 | \ No newline at end of file |
src/lang/index.less
0 → 100644
| 1 | +@import "./en-lang.less"; |
src/mes/indexMes/index.js
| @@ -365,6 +365,12 @@ const useIndexMesEvent = props => { | @@ -365,6 +365,12 @@ const useIndexMesEvent = props => { | ||
| 365 | window.deviceTargetInfoModal = false; | 365 | window.deviceTargetInfoModal = false; |
| 366 | }, []); | 366 | }, []); |
| 367 | 367 | ||
| 368 | + useEffect(() => { | ||
| 369 | + const { userinfo } = props.app; | ||
| 370 | + const { sLanguage } = userinfo; | ||
| 371 | + document.querySelector('html').setAttribute('lang', sLanguage); | ||
| 372 | + }, []); | ||
| 373 | + | ||
| 368 | return { | 374 | return { |
| 369 | props, | 375 | props, |
| 370 | hooksProps: state, | 376 | hooksProps: state, |