From b55d134d449129b5f6082b9d08d2e1d95df97351 Mon Sep 17 00:00:00 2001 From: twinh Date: Thu, 13 Jun 2024 21:40:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(a-upload):=20=E6=9B=B4=E6=96=B0=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=9B=BE=E7=89=87=E9=AB=98=E5=BA=A6=E4=BB=A5=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20antd=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/index.js b/index.js index c898fc2..c6c9cb6 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,7 @@ class Upload extends Component { /** * 指定上传区域的大小 */ - size: 104, + size: 110, /** * 提交时如果没有图片,是否转换值为 `undefined`(即不提交给后台) @@ -190,14 +190,6 @@ class Upload extends Component { /* 上传单张图片时,不因隐藏上传图标而抖动页面 */ min-height: ${size}px; min-width: ${size}px; - line-height: 0; /* 移除空白 */ - } - .ant-upload-container-${id} .ant-upload-list-picture-card-container, - .ant-upload-container-${id} .ant-upload-list-picture-card .ant-upload-list-item, - .ant-upload-container-${id} .ant-upload.ant-upload-select-picture-card { - width: ${size}px; - height: ${size}px; - ${max === 1 ? 'margin: 0;' : ''} } `}