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

viewer.exit(),viewer.hide()不生效 #302

Closed
Leizhenfei0123 opened this issue Nov 22, 2023 · 2 comments
Closed

viewer.exit(),viewer.hide()不生效 #302

Leizhenfei0123 opened this issue Nov 22, 2023 · 2 comments

Comments

@Leizhenfei0123
Copy link

Leizhenfei0123 commented Nov 22, 2023

使用场景: 我在工具箱添加了一个编辑按钮,每次点击编辑按钮就关闭预览,打开另一个弹框。现在问题是,点击编辑,预览关不掉
图片

@mirari
Copy link
Owner

mirari commented Nov 22, 2023

https://codepen.io/mirari/pen/YzBabKr

用hide是可以的,文档有示例
不生效需要注意viewer对象引用是否被替换

@Leizhenfei0123
Copy link
Author

解决了,hide可以。 问题出在我这边有多个dom,需要循环关闭
17f6764ef317d8ba7f43154419c5dc6

@mirari mirari closed this as completed Nov 23, 2023
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

2 participants