From 162bf940c833ef845a3bb1a5ec2afec0fc4f3302 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 19 Apr 2022 17:58:06 +0800 Subject: [PATCH 1/2] chore: tweak upload style --- components/upload/demo/upload-custom-action-icon.md | 2 +- components/upload/style/index.less | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/upload/demo/upload-custom-action-icon.md b/components/upload/demo/upload-custom-action-icon.md index 969037ba7930..0941924964d9 100644 --- a/components/upload/demo/upload-custom-action-icon.md +++ b/components/upload/demo/upload-custom-action-icon.md @@ -48,7 +48,7 @@ const props = { ], showUploadList: { showDownloadIcon: true, - downloadIcon: 'download ', + downloadIcon: 'Download', showRemoveIcon: true, removeIcon: console.log(e, 'custom removeIcon event')} />, }, diff --git a/components/upload/style/index.less b/components/upload/style/index.less index 5aa13c2cb0cf..80c0672204fb 100644 --- a/components/upload/style/index.less +++ b/components/upload/style/index.less @@ -197,7 +197,6 @@ &-info { height: 100%; - padding: 0 4px; transition: background-color 0.3s; > span { From e96b282292555338986360cf9a70c80060732c82 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 19 Apr 2022 18:02:12 +0800 Subject: [PATCH 2/2] chore: update snapshot --- .../upload/__tests__/__snapshots__/demo-extend.test.ts.snap | 4 ++-- components/upload/__tests__/__snapshots__/demo.test.js.snap | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/upload/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/upload/__tests__/__snapshots__/demo-extend.test.ts.snap index d43fa5fb082e..e90ebf5122e2 100644 --- a/components/upload/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/upload/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -3432,7 +3432,7 @@ exports[`renders ./components/upload/demo/upload-custom-action-icon.md extend co type="button" > - download + Download