Commit 88b3b0f2e348ef7da20c59f7acccd6bea49f3748
1 parent
dc9ce73f
1.处理MES按钮栏宽度
Showing
1 changed file
with
6 additions
and
4 deletions
src/components/Common/CommonTable/index.js
| @@ -4692,7 +4692,7 @@ class CommonTableRc extends React.Component { | @@ -4692,7 +4692,7 @@ class CommonTableRc extends React.Component { | ||
| 4692 | // return result; | 4692 | // return result; |
| 4693 | // }, 12); | 4693 | // }, 12); |
| 4694 | 4694 | ||
| 4695 | - tableBtnsWidth = props.tableBtnsConfig.length * 90 + 8; | 4695 | + tableBtnsWidth = props.tableBtnsConfig.length * 100 + 8; |
| 4696 | } | 4696 | } |
| 4697 | if (props.mesCopy) { | 4697 | if (props.mesCopy) { |
| 4698 | tableBtnsWidth += 26; | 4698 | tableBtnsWidth += 26; |
| @@ -4721,7 +4721,7 @@ class CommonTableRc extends React.Component { | @@ -4721,7 +4721,7 @@ class CommonTableRc extends React.Component { | ||
| 4721 | tableBtnsWidth += "px"; | 4721 | tableBtnsWidth += "px"; |
| 4722 | } | 4722 | } |
| 4723 | if(commonUtils.isNotEmptyObject(btnSendApiConfig)) { | 4723 | if(commonUtils.isNotEmptyObject(btnSendApiConfig)) { |
| 4724 | - tableBtnsWidth = '280px'; | 4724 | + tableBtnsWidth = '300px'; |
| 4725 | } | 4725 | } |
| 4726 | const setOperation = commonFunc.showMessage(props.app.commonConst, 'operation') || '操作'; | 4726 | const setOperation = commonFunc.showMessage(props.app.commonConst, 'operation') || '操作'; |
| 4727 | const setCopy = commonFunc.showMessage(props.app.commonConst, 'setCopy') || '复制'; | 4727 | const setCopy = commonFunc.showMessage(props.app.commonConst, 'setCopy') || '复制'; |
| @@ -4782,8 +4782,9 @@ class CommonTableRc extends React.Component { | @@ -4782,8 +4782,9 @@ class CommonTableRc extends React.Component { | ||
| 4782 | disabled={disabled} | 4782 | disabled={disabled} |
| 4783 | size="large" | 4783 | size="large" |
| 4784 | style={{ | 4784 | style={{ |
| 4785 | - width: 90, | 4785 | + width: 100, |
| 4786 | height: 36, | 4786 | height: 36, |
| 4787 | + fontSize:'16px', | ||
| 4787 | borderRadius: 5, | 4788 | borderRadius: 5, |
| 4788 | backgroundColor: disabled ? "#AAA" : btnBgColor, | 4789 | backgroundColor: disabled ? "#AAA" : btnBgColor, |
| 4789 | color: "#FFF" | 4790 | color: "#FFF" |
| @@ -4836,8 +4837,9 @@ class CommonTableRc extends React.Component { | @@ -4836,8 +4837,9 @@ class CommonTableRc extends React.Component { | ||
| 4836 | disabled={shouldDisableButton(btnSendApiConfig, record)} | 4837 | disabled={shouldDisableButton(btnSendApiConfig, record)} |
| 4837 | size="large" | 4838 | size="large" |
| 4838 | style={{ | 4839 | style={{ |
| 4839 | - width: 90, | 4840 | + width: 100, |
| 4840 | height: 36, | 4841 | height: 36, |
| 4842 | + fontSize:'16px', | ||
| 4841 | borderRadius: 5, | 4843 | borderRadius: 5, |
| 4842 | backgroundColor: shouldDisableButton(btnSendApiConfig, record) ? "#AAA" : btnSendApiConfig.btnBgColor || '#1890FF', | 4844 | backgroundColor: shouldDisableButton(btnSendApiConfig, record) ? "#AAA" : btnSendApiConfig.btnBgColor || '#1890FF', |
| 4843 | color: "#FFF" | 4845 | color: "#FFF" |