Skip to content

The a-image custom preview image function (by specifying preview.src) takes effect when used alone, but it does not take effect when used in a-image-preview-group #6331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
zhangkx666 opened this issue Mar 4, 2023 · 1 comment
Labels

Comments

@zhangkx666
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.0-beta.4

Environment

vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<a-image-preview-group>
  <a-image v-for="image in imageList" :key="image.id" :src="`${image.url}!p100`" :preview="{ src: `${image.url}?full` }" />
</a-image-preview-group>

What is expected?

相册模式缩略图只是加载一个100px的小图,然后点开预览的时候显示原图大图,通过指定 :preview="{ src: ${image.url}?full }"

What is actually happening?

a-image 自定义预览图片功能(通过指定preview.src)单独使用生效,但在a-image-preview-group中使用时不生效


#6143 这个issue提过这个bug,但被无视了,烦请修复下呢,万分感谢

@github-actions github-actions bot changed the title a-image 自定义预览图片功能(通过指定preview.src)单独使用生效,但在a-image-preview-group中使用时不生效 The a-image custom preview image function (by specifying preview.src) takes effect when used alone, but it does not take effect when used in a-image-preview-group Mar 4, 2023
zhangkx666 added a commit to zhangkx666/ant-design-vue that referenced this issue Mar 5, 2023
The a-image custom preview image function does not take effect when used in a-image-preview-group
@zhangkx666 zhangkx666 mentioned this issue Mar 5, 2023
13 tasks
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants