Skip to content
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

[Bug Report] el-image组件中 preview-src-list 中的图片无法设置img的属性 #22668

Open
Gnblog opened this issue Sep 6, 2023 · 0 comments · May be fixed by #22672
Open

[Bug Report] el-image组件中 preview-src-list 中的图片无法设置img的属性 #22668

Gnblog opened this issue Sep 6, 2023 · 0 comments · May be fixed by #22672

Comments

@Gnblog
Copy link

Gnblog commented Sep 6, 2023

Element UI version

2.15.14

OS/Browsers version

Windows11/Microsoft Edge 116.0.1938.69 (正式版本) (64 位)

Vue version

2.6.10

Reproduction Link

https://codepen.io/ziyoung/pen/LKNBqB

Steps to reproduce

el-image中的img标签写有 v-bind="$attrs" 而预览的image-viewer组件没有地方来设置 image-viewer 中的img属性。
比如

设置了一个跨域的属性,基本的img有该标签。但是点击图片预览的时候,预览的img标签没有 crossorigin="anonymous"属性。

What is Expected?

希望给一个入口。可以设置el-image中的image-viewer 中的img属性。

What is actually happening?

希望给一个入口。可以设置el-image中的image-viewer 中的img属性。

@wangdaodao wangdaodao linked a pull request Sep 9, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant