diff --git a/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap b/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap index 004849975e..e810930a89 100644 --- a/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap +++ b/src/upload/__tests__/__snapshots__/vitest-upload.test.jsx.snap @@ -879,7 +879,7 @@ exports[`Upload Component > props.theme: theme=image-flow works fine 1`] = ` class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
props.theme: theme=image-flow works fine 1`] = ` class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
props.theme: theme=image-flow works fine 1`] = ` class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
{ const renderMainContent = (file: UploadFile, index: number) => (
- +
e.stopPropagation()}> {
)} {(['waiting', 'success'].includes(file.status) || (!file.status && file.url)) && ( - + )}
{(file.url || file.raw) && !['progress', 'fail'].includes(file.status) && ( diff --git a/test/snap/__snapshots__/csr.test.jsx.snap b/test/snap/__snapshots__/csr.test.jsx.snap index b8ea2bc8c1..812b610844 100644 --- a/test/snap/__snapshots__/csr.test.jsx.snap +++ b/test/snap/__snapshots__/csr.test.jsx.snap @@ -43515,7 +43515,7 @@ exports[`csr snapshot test > csr test src/form/_example/disabled.tsx 1`] = ` class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
csr test src/upload/_example/image.tsx 1`] = ` class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
csr test src/upload/_example/img-flow-list.tsx 1`] class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
csr test src/upload/_example/img-flow-list.tsx 1`] class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
csr test src/upload/_example/img-flow-list.tsx 1`] class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
csr test src/upload/_example/img-flow-list.tsx 1`] class="t-image__wrapper t-image__wrapper--shape-square t-upload__card-image" >
ssr test src/form/_example/custom-validator.tsx 1`] exports[`ssr snapshot test > ssr test src/form/_example/customized-form-controls.tsx 1`] = `"
:
"`; -exports[`ssr snapshot test > ssr test src/form/_example/disabled.tsx 1`] = `"
:
:
:
:
:
:
:
:
:
:
:
请选择单张图片文件上传
提交
重置
"`; +exports[`ssr snapshot test > ssr test src/form/_example/disabled.tsx 1`] = `"
:
:
:
:
:
:
:
:
:
:
:
请选择单张图片文件上传
提交
重置
"`; exports[`ssr snapshot test > ssr test src/form/_example/error-message.tsx 1`] = `"
一句话介绍自己
"`; @@ -135450,9 +135450,9 @@ exports[`ssr snapshot test > ssr test src/upload/_example/draggable.tsx 1`] = `" exports[`ssr snapshot test > ssr test src/upload/_example/file-flow-list.tsx 1`] = `"

支持批量上传文件,文件格式不限,最多只能上传 10 份文件
Click "Upload" or Drag file to this area to upload
Cancel
Upload
"`; -exports[`ssr snapshot test > ssr test src/upload/_example/image.tsx 1`] = `"

  • 请选择图片

请选择单张图片文件上传(上传成功状态演示)
  • Click to upload

单张图片文件上传(上传失败状态演示)
  • Click to upload

允许选择多张图片文件上传,最多只能上传 3 张图片
"`; +exports[`ssr snapshot test > ssr test src/upload/_example/image.tsx 1`] = `"

  • 请选择图片

请选择单张图片文件上传(上传成功状态演示)
  • Click to upload

单张图片文件上传(上传失败状态演示)
  • Click to upload

允许选择多张图片文件上传,最多只能上传 3 张图片
"`; -exports[`ssr snapshot test > ssr test src/upload/_example/img-flow-list.tsx 1`] = `"
AutoUpload

支持批量上传图片文件
  • demo…-1.png

  • avatar.jpg

取消上传

Different Status Images
  • loading.svg

  • loading.svg

  • Uploading

    loading.svg

  • Failed

    loading.svg

"`; +exports[`ssr snapshot test > ssr test src/upload/_example/img-flow-list.tsx 1`] = `"
AutoUpload

支持批量上传图片文件
  • demo…-1.png

  • avatar.jpg

取消上传

Different Status Images
  • loading.svg

  • loading.svg

  • Uploading

    loading.svg

  • Failed

    loading.svg

"`; exports[`ssr snapshot test > ssr test src/upload/_example/request-method.tsx 1`] = `"
自定义上传方法需要返回成功或失败信息
"`; diff --git a/test/snap/__snapshots__/ssr.test.jsx.snap b/test/snap/__snapshots__/ssr.test.jsx.snap index 4876c2d2c9..754a7d3644 100644 --- a/test/snap/__snapshots__/ssr.test.jsx.snap +++ b/test/snap/__snapshots__/ssr.test.jsx.snap @@ -410,7 +410,7 @@ exports[`ssr snapshot test > ssr test src/form/_example/custom-validator.tsx 1`] exports[`ssr snapshot test > ssr test src/form/_example/customized-form-controls.tsx 1`] = `"
:
"`; -exports[`ssr snapshot test > ssr test src/form/_example/disabled.tsx 1`] = `"
:
:
:
:
:
:
:
:
:
:
:
请选择单张图片文件上传
提交
重置
"`; +exports[`ssr snapshot test > ssr test src/form/_example/disabled.tsx 1`] = `"
:
:
:
:
:
:
:
:
:
:
:
请选择单张图片文件上传
提交
重置
"`; exports[`ssr snapshot test > ssr test src/form/_example/error-message.tsx 1`] = `"
一句话介绍自己
"`; @@ -1224,9 +1224,9 @@ exports[`ssr snapshot test > ssr test src/upload/_example/draggable.tsx 1`] = `" exports[`ssr snapshot test > ssr test src/upload/_example/file-flow-list.tsx 1`] = `"

支持批量上传文件,文件格式不限,最多只能上传 10 份文件
Click "Upload" or Drag file to this area to upload
Cancel
Upload
"`; -exports[`ssr snapshot test > ssr test src/upload/_example/image.tsx 1`] = `"

  • 请选择图片

请选择单张图片文件上传(上传成功状态演示)
  • Click to upload

单张图片文件上传(上传失败状态演示)
  • Click to upload

允许选择多张图片文件上传,最多只能上传 3 张图片
"`; +exports[`ssr snapshot test > ssr test src/upload/_example/image.tsx 1`] = `"

  • 请选择图片

请选择单张图片文件上传(上传成功状态演示)
  • Click to upload

单张图片文件上传(上传失败状态演示)
  • Click to upload

允许选择多张图片文件上传,最多只能上传 3 张图片
"`; -exports[`ssr snapshot test > ssr test src/upload/_example/img-flow-list.tsx 1`] = `"
AutoUpload

支持批量上传图片文件
  • demo…-1.png

  • avatar.jpg

取消上传

Different Status Images
  • loading.svg

  • loading.svg

  • Uploading

    loading.svg

  • Failed

    loading.svg

"`; +exports[`ssr snapshot test > ssr test src/upload/_example/img-flow-list.tsx 1`] = `"
AutoUpload

支持批量上传图片文件
  • demo…-1.png

  • avatar.jpg

取消上传

Different Status Images
  • loading.svg

  • loading.svg

  • Uploading

    loading.svg

  • Failed

    loading.svg

"`; exports[`ssr snapshot test > ssr test src/upload/_example/request-method.tsx 1`] = `"
自定义上传方法需要返回成功或失败信息
"`;