+ img.txt
@@ -976,9 +985,6 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = ` /> - @@ -1027,8 +1033,20 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = `+ img1.txt
@@ -1069,9 +1087,6 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = ` /> - @@ -1120,9 +1135,21 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = `- 待上传 + + img2.txt
img3.txt
@@ -1239,29 +1243,6 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = `img4.txt
diff --git a/src/upload/_example/base.jsx b/src/upload/_example/base.jsx index d6c2963783..59768ec17b 100644 --- a/src/upload/_example/base.jsx +++ b/src/upload/_example/base.jsx @@ -174,8 +174,8 @@ export default function UploadExample() {{locale?.triggerUploadText?.image}
++ {locale?.triggerUploadText?.image} +
- {file.status === 'waiting' ? locale.progress.waitingText : fileName} -
+ {props.showImageFileName && ( ++ {['success', 'waiting'].includes(file.status) && iconMap[file.status]} + {fileName} +
+ )}请选择图片
@@ -294470,7 +294464,7 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = ` />Click to upload
@@ -294539,9 +294533,6 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = ` /> - @@ -294636,7 +294627,7 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = ` />Click to upload
@@ -294793,7 +294784,7 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = ` />请选择图片
@@ -294842,7 +294833,7 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = ` />Click to upload
@@ -294911,9 +294902,6 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = ` /> - @@ -295008,7 +294996,7 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = ` />Click to upload
@@ -295101,20 +295089,77 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]+ + demo…-1.png +
+ +- demo…-1.png + + avatar.jpg
+ + loading.svg +
+ +- avatar.jpg + + loading.svg
+ loading.svg +
+ ++ Failed +
++ loading.svg +
++ + demo…-1.png +
+ +- demo…-1.png + + avatar.jpg
+ + loading.svg +
+ +- avatar.jpg + + loading.svg
+ loading.svg +
+ ++ Failed +
++ loading.svg +
+请选择图片
Click to upload
Click to upload
请选择图片
Click to upload
Click to upload
demo…-1.png
avatar.jpg
demo…-1.png
avatar.jpg
loading.svg
loading.svg
Uploading
loading.svg
Failed
loading.svg