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

水印展示不全 #95

Open
cslingjun opened this issue Jan 27, 2022 · 10 comments
Open

水印展示不全 #95

cslingjun opened this issue Jan 27, 2022 · 10 comments

Comments

@cslingjun
Copy link

image
每页显示多条记录的时候 ,后面的水印没有展示,如下图
image

@sunny19990108
Copy link
Contributor

+1 楼主解决了吗/?

@LoveWaguan
Copy link

没重新计算显示的区域

@cslingjun
Copy link
Author

没重新计算显示的区域

如何重新计算呀 ,大佬帮忙解决下 ?

@LoveWaguan
Copy link

这块我也没有去做,大概思路就是监听dom事件,发生滚动时重新绘制;

@cslingjun
Copy link
Author

这块我也没有去做,大概思路就是监听dom事件,发生滚动时重新绘制;

能指导下么,我不是前端,只会些基本的

@cslingjun
Copy link
Author

+1 楼主解决了吗/?

没,小兄弟 解决了的话 ,同步下我哈

@webxzy
Copy link

webxzy commented Apr 15, 2022

水印不全是因为宽度不够导致的。解决方案是宽度调大:

watermark.init({
    watermark_txt: res.data.data.userPin,
    watermark_width: 200,
});

@cslingjun
Copy link
Author

水印不全是因为宽度不够导致的。解决方案是宽度调大:

watermark.init({
    watermark_txt: res.data.data.userPin,
    watermark_width: 200,
});

额额额。这样处理会加载很多空白水印在页面下方吧 ,我现在是这么处理的,获取滚动下拉条事件,然后重新计算水印。能解决我目前的问题

@hujunqq
Copy link

hujunqq commented Apr 29, 2022

挺离谱的,真正能用的文件是在examples目录下的watermark.js文件,而不是根目录下的,根目录下的那个js根本没法用,功能还缺失了,不知道作者忘了还是故意的。

@dw08
Copy link

dw08 commented Jun 28, 2023

vue update的时候先删除水印再挂载即可

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

6 participants