Commit 142786507967234c0e461fd0b45bbb563ac52bb6
1 parent
5f9d7bdf
去除防抖
Showing
2 changed files
with
12 additions
and
16 deletions
src/components/Common/CommonComponent/index.js
| ... | ... | @@ -96,17 +96,17 @@ export default class CommonComponent extends Component { |
| 96 | 96 | this.myRef = createRef(); |
| 97 | 97 | this.dropDownCount = 0; |
| 98 | 98 | this.bSpecial = location.pathname?.includes("ResearchTableTree") && props.showConfig.sName === "sProductName"; |
| 99 | - if (props.noDebounce) { | |
| 100 | - InputNumberA = InputNumber; | |
| 101 | - InputA = Input; | |
| 102 | - AutoCompleteA = AutoComplete; | |
| 103 | - TextAreaA = TextArea; | |
| 104 | - } else { | |
| 105 | - InputNumberA = reactComponentDebounce(300)(InputNumber); | |
| 106 | - InputA = reactComponentDebounce(300)(Input); | |
| 107 | - AutoCompleteA = reactComponentDebounce(300)(AutoComplete); | |
| 108 | - TextAreaA = reactComponentDebounce(500)(TextArea); | |
| 109 | - } | |
| 99 | + // if (props.noDebounce) { | |
| 100 | + // InputNumberA = InputNumber; | |
| 101 | + // InputA = Input; | |
| 102 | + // AutoCompleteA = AutoComplete; | |
| 103 | + // TextAreaA = TextArea; | |
| 104 | + // } else { | |
| 105 | + // InputNumberA = reactComponentDebounce(300)(InputNumber); | |
| 106 | + // InputA = reactComponentDebounce(300)(Input); | |
| 107 | + // AutoCompleteA = reactComponentDebounce(300)(AutoComplete); | |
| 108 | + // TextAreaA = reactComponentDebounce(500)(TextArea); | |
| 109 | + // } | |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** 渲染前只执行一次 */ | ... | ... |
src/components/QuickQuote/index.jsx
| ... | ... | @@ -1498,11 +1498,7 @@ const MasterComponent = props => { |
| 1498 | 1498 | item.iColValue = 4; |
| 1499 | 1499 | } |
| 1500 | 1500 | }); |
| 1501 | - } else { | |
| 1502 | - viewConfigs.forEach(item => { | |
| 1503 | - item.iColValue = viewConfigs[0].iColValue; | |
| 1504 | - }); | |
| 1505 | - } | |
| 1501 | + } | |
| 1506 | 1502 | const lengthData = viewConfigs.find(x => x.sName === "dLength"); |
| 1507 | 1503 | |
| 1508 | 1504 | if (selectedNode && selectedNode.sTypeKey && selectedNode.sTypeKey !== "danye") { | ... | ... |