@@ -934,8 +931,20 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = `
+
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
props.theme: theme=image-flow works fine 1`] = `
-
-
-
-
@@ -1195,7 +1199,7 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = `
img3.txt
@@ -1239,29 +1243,6 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = `
-
-
-
-
@@ -1281,7 +1262,7 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = `
img4.txt
diff --git a/src/upload/themes/NormalFile.tsx b/src/upload/themes/NormalFile.tsx
index 9622cbc77d..b117b61c1d 100644
--- a/src/upload/themes/NormalFile.tsx
+++ b/src/upload/themes/NormalFile.tsx
@@ -7,7 +7,7 @@ import {
CloseCircleFilledIcon as TdCloseCircleFilledIcon,
} from 'tdesign-icons-react';
import classNames from 'classnames';
-import parseTNode from 'tdesign-react/_util/parseTNode';
+import parseTNode from '../../_util/parseTNode';
import TLoading from '../../loading';
import Link from '../../link';
import { UploadFile } from '../type';
From 87cfcab5a2891ce266dcbe6e8d6b4f1b6d780289 Mon Sep 17 00:00:00 2001
From: chaishi <974383157@qq.com>
Date: Sat, 16 Dec 2023 14:26:07 +0800
Subject: [PATCH 8/9] test: update snapshots
---
test/snap/__snapshots__/csr.test.jsx.snap | 1156 ++++++++++++++++++---
test/snap/__snapshots__/ssr.test.jsx.snap | 8 +-
2 files changed, 1030 insertions(+), 134 deletions(-)
diff --git a/test/snap/__snapshots__/csr.test.jsx.snap b/test/snap/__snapshots__/csr.test.jsx.snap
index 4dd31892ec..95e026eef0 100644
--- a/test/snap/__snapshots__/csr.test.jsx.snap
+++ b/test/snap/__snapshots__/csr.test.jsx.snap
@@ -92225,9 +92225,6 @@ exports[`csr snapshot test > csr test src/form/_example/disabled.jsx 1`] = `
/>
-
@@ -93008,9 +93005,6 @@ exports[`csr snapshot test > csr test src/form/_example/disabled.jsx 1`] = `
/>
-
@@ -294421,7 +294415,7 @@ exports[`csr snapshot test > csr test src/upload/_example/image.jsx 1`] = `
/>
请选择图片
@@ -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`]
-
- 是否自动上传:
-
csr test src/upload/_example/img-flow-list.jsx 1`]
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ demo…-1.png
+
+
+
+
+
+
+
+
+ >
+
+
@@ -295266,11 +295410,120 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]
- demo…-1.png
+
+ avatar.jpg
+
+
+
+
+
+ 取消上传
+
+
+
+
+ Upload
+
+
+
+
+
+
+
+
+
+
+
+
+ Different Status Images
+
+
+
+
+
+
+
+
+
+
+
+
+ ReUpload
+
+
+
+
+
+
@@ -295308,9 +295561,108 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ loading.svg
+
+
+
+
+
+
+
+
+ >
+
+
@@ -295359,37 +295711,139 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]
- avatar.jpg
+
+ loading.svg
-
-
-
-
-
- Cancel
-
-
-
-
+
+
+
+
+
+ Uploading
+
+
+
+
+
+
+
+
+
+ loading.svg
+
+
+
- Upload
-
-
+
+
+
+
+ Failed
+
+
+
+
+
+
+
+
+
+ loading.svg
+
+
+
@@ -295405,20 +295859,77 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]
-
- 是否自动上传:
-
+
-
-
-
+
+ AutoUpload
+
+
+
+
+
+
+
+
+
+
+
+
csr test src/upload/_example/img-flow-list.jsx 1`]
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ demo…-1.png
+
+
+
+
+
+
+
+
+ >
+
+
@@ -295570,11 +296180,120 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]
- demo…-1.png
+
+ avatar.jpg
+
+
+
+
+
+ 取消上传
+
+
+
+
+ Upload
+
+
+
+
+
+
+
+
+
+
+
+
+ Different Status Images
+
+
+
+
+
+
+
+
+
+
+
+
+ ReUpload
+
+
+
+
+
+
@@ -295612,9 +296331,108 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ loading.svg
+
+
+
+
+
+
+
+
+ >
+
+
@@ -295663,37 +296481,139 @@ exports[`csr snapshot test > csr test src/upload/_example/img-flow-list.jsx 1`]
- avatar.jpg
+
+ loading.svg
-
-
-
-
-
- Cancel
-
-
-
-
+
+
+
+
+
+ Uploading
+
+
+
+
+
+
+
+
+
+ loading.svg
+
+
+
- Upload
-
-
+
+
+
+
+ Failed
+
+
+
+
+
+
+
+
+
+ loading.svg
+
+
+
@@ -296262,7 +297182,7 @@ exports[`csr snapshot test > csr test src/upload/_example/single-input.jsx 1`] =
class="t-space-item"
>
csr test src/upload/_example/single-input.jsx 1`] =
>
请选择文件
-
csr test src/upload/_example/single-input.jsx 1`] =
class="t-space-item"
>
csr test src/upload/_example/single-input.jsx 1`] =
>
请选择文件
-
ssr test src/form/_example/clear-validate.jsx 1`] =
exports[`ssr snapshot test > ssr test src/form/_example/custom-validator.jsx 1`] = `""`;
-exports[`ssr snapshot test > ssr test src/form/_example/disabled.jsx 1`] = `"
"`;
+exports[`ssr snapshot test > ssr test src/form/_example/disabled.jsx 1`] = `"
"`;
exports[`ssr snapshot test > ssr test src/form/_example/error-message.jsx 1`] = `"
"`;
@@ -1146,12 +1146,12 @@ exports[`ssr snapshot test > ssr test src/upload/_example/draggable.jsx 1`] = `"
exports[`ssr snapshot test > ssr test src/upload/_example/file-flow-list.jsx 1`] = `"
Upload
支持批量上传文件,文件格式不限,最多只能上传 10 份文件
Click "Upload" or Drag file to this area to upload
Cancel
Upload
"`;
-exports[`ssr snapshot test > ssr test src/upload/_example/image.jsx 1`] = `"