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.
No branches or pull requests
浏览器用Chrome Safair Edge 都是如此情况
Screenshots
The text was updated successfully, but these errors were encountered: