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] the first page is blank by default when the El image label is opened #19051

Closed
syp2850 opened this issue Mar 25, 2020 · 4 comments
Closed

Comments

@syp2850
Copy link

syp2850 commented Mar 25, 2020

Element UI version

0.1.0

OS/Browsers version

mac/chrome

Vue version

3.0.0-alpha.10

Reproduction Link

https://codepen.io/pen/?&editable=true

Steps to reproduce

点击图片 默认第一个是空白

What is Expected?

默认第一张

What is actually happening?

默认第一个是空白,如果只传递一张图片,会因为跳转摁钮消失 而无法显示图片

@element-bot element-bot changed the title [Bug Report] el-image 标签 打开时默认第一页是空白 [bug report] the first page is blank by default when the El image label is opened Mar 25, 2020
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

0.1.0

OS/Browsers version

Mac/chrome

Vue version

3.0.0-alpha.10

Reproduction Link

https://codepen.io/pen/?&editable=true

Steps to reproduce

Click the picture. The first one is blank by default

What is Expected?

Default first sheet

What is actually happening?

The first one is blank by default. If only one picture is passed, the picture will not be displayed because the jump button disappears

@scscms
Copy link

scscms commented Mar 26, 2020

这个组件必须吐槽,

data() {
      return {
        url: 'a.jpeg',
        srcList: [
          'a.jpeg', //注意这里!
          'b.jpeg'
        ]
      }
    }

只有当srcList第一个元素等于url时才不会空白,这完全是违背缩略图规则!
同时建议添加一个属性配置,可以选择再次点击预览图片时是否应该强制返回第一张图片!

@haoyaxin
Copy link

haoyaxin commented Apr 3, 2020

image
官网例子可以复现这个bug

@luckyCao
Copy link
Contributor

luckyCao commented Apr 8, 2020

#18975

@luckyCao luckyCao closed this as completed Apr 8, 2020
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

No branches or pull requests

5 participants