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

z-index不能自己设置,init方法中的监听窗口大小变化的方法在某些场景不适用 #55

Open
jgs555 opened this issue Jul 29, 2020 · 1 comment

Comments

@jgs555
Copy link

jgs555 commented Jul 29, 2020

1.z-index在使用iview的时候,弹窗的z-index是1000开始,水印默认写死了99999,会造成弹窗时候,水印层显示在弹窗遮罩层上方的问题。
2.如果在a页面设置了局部水印,使用了init方法,此时就加上了窗口大小的监听,但是我跳转到B页面,不使用水印,如果此时再去变化窗口大小,就会导致B页面出现默认挂载在body下的测试水印。需要在监听方法那写一个if,判断是否找的到水印id的div,找的到再去执行重新生成水印的方法。

@wangxingkang
Copy link

@jgs555 @pansy/watermark 试一试

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