We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
浏览器用Chrome Safair Edge 都是如此情况 Screenshots
import Viewer from 'viewerjs'; const defaultBaseOption = { navbar: false, title: false, toolbar: { zoomIn: 4, zoomOut: 4, prev: 4, next: 4, reset: 4, oneToOne: 4 } }; document.querySelectorAll('.vp-doc img').forEach((item) => { item.onclick = () => { const viewer = new Viewer(item, { ...defaultBaseOption, ...option, hide(e) { viewer.destroy(); } }); viewer.show(); }; }); `
The text was updated successfully, but these errors were encountered:
建议关闭注销的 hide 钩子换成 hidden 钩子试试。
hide
hidden
Sorry, something went wrong.
windows也复现了,windows关闭动画效果后复现上出问题,打开动画效果后正常显示
@Spectature 禁用浏览器动画视觉效果后,需要同时通过设置 transition 选项为 false 告诉 Viewer.js 禁用过渡动画。
transition
false
试试我的这个复现步骤。看下是不是你说的问题。 前置条件 写一个列表,每一行都有一列是数组,数组中都是不同数量的图片。 操作步骤 点击查看图片张数为N的查看,点击缩略图切换到n张. 此时没有什么问题,一切符合预期 关键步骤点击一个图片张数< N的行进行图片查看,此时就会出现缩略图能展示,但是大图不展示。看dom,能看到图片和正确的src,但是宽高都为0
No branches or pull requests
浏览器用Chrome Safair Edge 都是如此情况
Screenshots
The text was updated successfully, but these errors were encountered: