From dada7c7196a20409a2dbcf234c5a4a7a72674cb0 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Tue, 30 Dec 2025 14:05:33 +0800 Subject: [PATCH] 1.产品PBOM 工艺参数,若配置了换行 \n,则需要支持换行 --- src/components/Common/CommonComponent/index.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 9d1136c..d0fc944 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -1428,7 +1428,24 @@ export default class CommonComponent extends Component { /> ); } - if ( + if ((this.props.showConfig.sDropDownType === "sql" || this.props.showConfig.sDropDownType === "const") + && this.props.showConfig.sName?.includes('sParam') && this.props.showConfig.showDropDown?.includes('\\n') + ) { + const row = commonUtils.isNotEmptyNumber(this.props.showConfig.iRowValue) ? this.props.showConfig.iRowValue : 1; + const minHeight = row * 20 + 6 + 4 + 2; + + const correctText = commonUtils.isNotEmptyObject(this.state?.dataValue) ? this.state.dataValue : + commonUtils.isNotEmptyObject(this.props.showConfig?.showDropDown) ? this.props.showConfig?.showDropDown?.replace(/\\n/g, "\n") : '111'; + + return ( +