Commit 307d638d0edf9191f7d3588572b9948ca82535cb

Authored by 陈鑫涛
1 parent ad438adf

材料利用率

src/components/Common/BoxShowImgMaterial/index.css
@@ -4,4 +4,5 @@ @@ -4,4 +4,5 @@
4 } 4 }
5 .box .materialBox { 5 .box .materialBox {
6 background-color: '#b7e0ff'; 6 background-color: '#b7e0ff';
  7 + border: 2px solid #333;
7 } 8 }
src/components/Common/BoxShowImgMaterial/index.less
@@ -4,5 +4,6 @@ @@ -4,5 +4,6 @@
4 .materialBox{ 4 .materialBox{
5 // position: absolute; 5 // position: absolute;
6 background-color: '#b7e0ff'; 6 background-color: '#b7e0ff';
  7 + border: 2px solid #333;
7 } 8 }
8 } 9 }
9 \ No newline at end of file 10 \ No newline at end of file
src/components/Common/BoxShowImgMaterial/indexNew.js
@@ -171,7 +171,7 @@ const BoxShowImgMaterial = props => { @@ -171,7 +171,7 @@ const BoxShowImgMaterial = props => {
171 ).toFixed(2); 171 ).toFixed(2);
172 useEffect( 172 useEffect(
173 () => { 173 () => {
174 - setBoxKey(new Date().getTime()); 174 + // setBoxKey(new Date().getTime());
175 setTimeout(() => { 175 setTimeout(() => {
176 // if (boxRef.current && textRef.current && textRefs.current && nTextRef.current && nTextRefs.current) 176 // if (boxRef.current && textRef.current && textRefs.current && nTextRef.current && nTextRefs.current)
177 if (boxRef.current && textRef.current && textRefs.current && nTextRef.current && nTextRefs.current) { 177 if (boxRef.current && textRef.current && textRefs.current && nTextRef.current && nTextRefs.current) {