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 = () => {
)} > -
- -
+
+
+ = () => { />