From 88b3b0f2e348ef7da20c59f7acccd6bea49f3748 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Wed, 19 Nov 2025 11:15:52 +0800 Subject: [PATCH] 1.处理MES按钮栏宽度 --- src/components/Common/CommonTable/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index b0b7eaa..daa2ae2 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -4692,7 +4692,7 @@ class CommonTableRc extends React.Component { // return result; // }, 12); - tableBtnsWidth = props.tableBtnsConfig.length * 90 + 8; + tableBtnsWidth = props.tableBtnsConfig.length * 100 + 8; } if (props.mesCopy) { tableBtnsWidth += 26; @@ -4721,7 +4721,7 @@ class CommonTableRc extends React.Component { tableBtnsWidth += "px"; } if(commonUtils.isNotEmptyObject(btnSendApiConfig)) { - tableBtnsWidth = '280px'; + tableBtnsWidth = '300px'; } const setOperation = commonFunc.showMessage(props.app.commonConst, 'operation') || '操作'; const setCopy = commonFunc.showMessage(props.app.commonConst, 'setCopy') || '复制'; @@ -4782,8 +4782,9 @@ class CommonTableRc extends React.Component { disabled={disabled} size="large" style={{ - width: 90, + width: 100, height: 36, + fontSize:'16px', borderRadius: 5, backgroundColor: disabled ? "#AAA" : btnBgColor, color: "#FFF" @@ -4836,8 +4837,9 @@ class CommonTableRc extends React.Component { disabled={shouldDisableButton(btnSendApiConfig, record)} size="large" style={{ - width: 90, + width: 100, height: 36, + fontSize:'16px', borderRadius: 5, backgroundColor: shouldDisableButton(btnSendApiConfig, record) ? "#AAA" : btnSendApiConfig.btnBgColor || '#1890FF', color: "#FFF" -- libgit2 0.22.2