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

关于页面被水印撑开导致页面底部出现空白的问题 #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 18, 2021

  1. 关于页面被水印撑开导致页面底部出现空白的问题

    1. 将水印的高度计算使用 `clientHeight `,水印的定位样式改为:`position: fixed`,目的在于解决页面数据动态增加后,水印相印的撑开页面,页面数据减少后,水印仍然撑开页面导致底部出现大块的空白。在 vue 框架下,使用 tab 组件或表格筛选数据时会出现这样的问题。
    2. `mutationObserver.observer` 监测父节点选项 `subtree: false`,此为节省性能,同时也能起到防止水印被删除。
    3. 移除底部未使用的代码;
    4. 修改之前存在的一些问题,如监听水印内容
    jiangzdongw authored Mar 18, 2021
    Configuration menu
    Copy the full SHA
    6c6fbe1 View commit details
    Browse the repository at this point in the history