From 307d638d0edf9191f7d3588572b9948ca82535cb Mon Sep 17 00:00:00 2001 From: 陈鑫涛 <10125295+chen-xintao97@user.noreply.gitee.com> Date: Tue, 27 May 2025 09:35:03 +0800 Subject: [PATCH] 材料利用率 --- src/components/Common/BoxShowImgMaterial/index.css | 1 + src/components/Common/BoxShowImgMaterial/index.less | 1 + src/components/Common/BoxShowImgMaterial/indexNew.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Common/BoxShowImgMaterial/index.css b/src/components/Common/BoxShowImgMaterial/index.css index 14cc0c2..7f23e10 100644 --- a/src/components/Common/BoxShowImgMaterial/index.css +++ b/src/components/Common/BoxShowImgMaterial/index.css @@ -4,4 +4,5 @@ } .box .materialBox { background-color: '#b7e0ff'; + border: 2px solid #333; } diff --git a/src/components/Common/BoxShowImgMaterial/index.less b/src/components/Common/BoxShowImgMaterial/index.less index 59b7ba2..4492db9 100644 --- a/src/components/Common/BoxShowImgMaterial/index.less +++ b/src/components/Common/BoxShowImgMaterial/index.less @@ -4,5 +4,6 @@ .materialBox{ // position: absolute; background-color: '#b7e0ff'; + border: 2px solid #333; } } \ No newline at end of file diff --git a/src/components/Common/BoxShowImgMaterial/indexNew.js b/src/components/Common/BoxShowImgMaterial/indexNew.js index 98b0026..dab0d43 100644 --- a/src/components/Common/BoxShowImgMaterial/indexNew.js +++ b/src/components/Common/BoxShowImgMaterial/indexNew.js @@ -171,7 +171,7 @@ const BoxShowImgMaterial = props => { ).toFixed(2); useEffect( () => { - setBoxKey(new Date().getTime()); + // setBoxKey(new Date().getTime()); setTimeout(() => { // if (boxRef.current && textRef.current && textRefs.current && nTextRef.current && nTextRefs.current) if (boxRef.current && textRef.current && textRefs.current && nTextRef.current && nTextRefs.current) { -- libgit2 0.22.2