From df2f52f8cea62c372d36e4a9adba6c479fe9af93 Mon Sep 17 00:00:00 2001 From: chaishi <974383157@qq.com> Date: Sat, 16 Dec 2023 13:27:57 +0800 Subject: [PATCH] fix(upload): import error --- .../__snapshots__/vitest-upload.test.jsx.snap | 103 +++++++----------- src/upload/themes/NormalFile.tsx | 2 +- 2 files changed, 43 insertions(+), 62 deletions(-) diff --git a/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap b/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap index 7c06c68c4c..b0b2a03e2c 100644 --- a/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap +++ b/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap @@ -906,9 +906,6 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = ` /> -
@@ -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
img3.txt
@@ -1239,29 +1243,6 @@ 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';