Skip to content

Commit b4636ab

Browse files
committed
💄 tweak Upload showDownloadIcon default value
it should be false
1 parent 2a48ea0 commit b4636ab

File tree

7 files changed

+53
-689
lines changed

7 files changed

+53
-689
lines changed

components/config-provider/__tests__/__snapshots__/components.test.js.snap

+3-81
Original file line numberDiff line numberDiff line change
@@ -18791,40 +18791,14 @@ exports[`ConfigProvider components Upload configProvider 1`] = `
1879118791
</span>
1879218792
</div>
1879318793
<span
18794-
class="config-upload-list-item-name config-upload-list-item-name-icon-count-2"
18794+
class="config-upload-list-item-name config-upload-list-item-name-icon-count-1"
1879518795
title="xxx.png"
1879618796
>
1879718797
xxx.png
1879818798
</span>
1879918799
<span
1880018800
class="config-upload-list-item-card-actions "
1880118801
>
18802-
<a
18803-
title="Download file"
18804-
>
18805-
<span
18806-
aria-label="download"
18807-
class="anticon anticon-download"
18808-
role="img"
18809-
tabindex="-1"
18810-
title="Download file"
18811-
>
18812-
<svg
18813-
aria-hidden="true"
18814-
class=""
18815-
data-icon="download"
18816-
fill="currentColor"
18817-
focusable="false"
18818-
height="1em"
18819-
viewBox="64 64 896 896"
18820-
width="1em"
18821-
>
18822-
<path
18823-
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
18824-
/>
18825-
</svg>
18826-
</span>
18827-
</a>
1882818802
<a
1882918803
title="Remove file"
1883018804
>
@@ -18920,40 +18894,14 @@ exports[`ConfigProvider components Upload normal 1`] = `
1892018894
</span>
1892118895
</div>
1892218896
<span
18923-
class="ant-upload-list-item-name ant-upload-list-item-name-icon-count-2"
18897+
class="ant-upload-list-item-name ant-upload-list-item-name-icon-count-1"
1892418898
title="xxx.png"
1892518899
>
1892618900
xxx.png
1892718901
</span>
1892818902
<span
1892918903
class="ant-upload-list-item-card-actions "
1893018904
>
18931-
<a
18932-
title="Download file"
18933-
>
18934-
<span
18935-
aria-label="download"
18936-
class="anticon anticon-download"
18937-
role="img"
18938-
tabindex="-1"
18939-
title="Download file"
18940-
>
18941-
<svg
18942-
aria-hidden="true"
18943-
class=""
18944-
data-icon="download"
18945-
fill="currentColor"
18946-
focusable="false"
18947-
height="1em"
18948-
viewBox="64 64 896 896"
18949-
width="1em"
18950-
>
18951-
<path
18952-
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
18953-
/>
18954-
</svg>
18955-
</span>
18956-
</a>
1895718905
<a
1895818906
title="Remove file"
1895918907
>
@@ -19049,40 +18997,14 @@ exports[`ConfigProvider components Upload prefixCls 1`] = `
1904918997
</span>
1905018998
</div>
1905118999
<span
19052-
class="ant-upload-list-item-name ant-upload-list-item-name-icon-count-2"
19000+
class="ant-upload-list-item-name ant-upload-list-item-name-icon-count-1"
1905319001
title="xxx.png"
1905419002
>
1905519003
xxx.png
1905619004
</span>
1905719005
<span
1905819006
class="ant-upload-list-item-card-actions "
1905919007
>
19060-
<a
19061-
title="Download file"
19062-
>
19063-
<span
19064-
aria-label="download"
19065-
class="anticon anticon-download"
19066-
role="img"
19067-
tabindex="-1"
19068-
title="Download file"
19069-
>
19070-
<svg
19071-
aria-hidden="true"
19072-
class=""
19073-
data-icon="download"
19074-
fill="currentColor"
19075-
focusable="false"
19076-
height="1em"
19077-
viewBox="64 64 896 896"
19078-
width="1em"
19079-
>
19080-
<path
19081-
d="M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"
19082-
/>
19083-
</svg>
19084-
</span>
19085-
</a>
1908619008
<a
1908719009
title="Remove file"
1908819010
>

components/upload/UploadList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class UploadList extends React.Component<UploadListProps, any> {
2525
showInfo: false,
2626
},
2727
showRemoveIcon: true,
28-
showDownloadIcon: true,
28+
showDownloadIcon: false,
2929
showPreviewIcon: true,
3030
previewFile: previewImage,
3131
};

0 commit comments

Comments
 (0)