From 93c2423b90d918cdda2e0d37af03e7a67d6f3a4c Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 26 May 2025 17:24:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CropImage/index.tsx | 2 +- src/pages/ProductList/add.tsx | 30 ++++++++++++++++-------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/components/CropImage/index.tsx b/src/components/CropImage/index.tsx index e1b4401..612a729 100644 --- a/src/components/CropImage/index.tsx +++ b/src/components/CropImage/index.tsx @@ -42,7 +42,7 @@ export default ((props) => { props.onChange?.(info.fileList) }} > - {!props.value && ( + {(!props.value || props.value.length <= 0) && (
{}
点击上传图片
diff --git a/src/pages/ProductList/add.tsx b/src/pages/ProductList/add.tsx index e400f7e..9ae83c5 100644 --- a/src/pages/ProductList/add.tsx +++ b/src/pages/ProductList/add.tsx @@ -510,7 +510,6 @@ const Detail: React.FC = () => { border: '1px solid #f0f0f0', borderRadius: 4, backgroundColor: '#fafafa', - width: 'calc(33.33% - 16px)', minWidth: 300 }} > @@ -519,21 +518,23 @@ const Detail: React.FC = () => {
)} > -
- -
+
+
+ = () => { />