Skip to content

a-image-preview-group > a-image set props.preview, not work #6143

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
arbing opened this issue Dec 6, 2022 · 5 comments
Closed
1 task

a-image-preview-group > a-image set props.preview, not work #6143

arbing opened this issue Dec 6, 2022 · 5 comments

Comments

@arbing
Copy link

arbing commented Dec 6, 2022

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

Version

3.2.14

Environment

所有浏览器

Reproduction link

Edit on CodeSandbox

Steps to reproduce

多张图片使用preview-group渲染,分别设置自定义预览图片,预览图片不生效

What is expected?

自定义预览图片生效

What is actually happening?

发现是preview-group情况下,previewUrls没有使用preview.src,拿的是image.src,如下修改后生效

-        unRegister = registerImage(currentId.value, props.src, canPreview.value);
+        unRegister = registerImage(currentId.value, preview.value.src || props.src, canPreview.value);
@tangjinzhou
Copy link
Member

给的复现链接里面运行没问题啊

@greper
Copy link

greper commented Dec 12, 2022

有问题,点预览之后应该显示另外一个大图(女孩捧茶杯),复现链接里面显示的是vue的logo

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@zhangkx666
Copy link

楼主提的问题依然存在,麻烦修复下呢。需求是缩略图只是一个小图,点预览才会加载大图。
自定义预览图片功能在a-image-preview-group下不生效,单独使用a-image时是有效的

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

github-actions bot commented Mar 4, 2024

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 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants