mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: watermark自定义container时样式优化 (#119)
* fix: watermark自定义container时样式优化 * fix: watermark支持container时样式优化
This commit is contained in:
parent
83d9a5bc3f
commit
cb40631a86
@ -88,12 +88,12 @@ export function createWatermark({
|
|||||||
let __wm = document.querySelector('.__wm');
|
let __wm = document.querySelector('.__wm');
|
||||||
const watermarkDiv = __wm || document.createElement('div');
|
const watermarkDiv = __wm || document.createElement('div');
|
||||||
const styleStr = `
|
const styleStr = `
|
||||||
position: fixed;
|
position: ${container === document.body ? 'fixed' : 'absolute'};
|
||||||
user-select: none;
|
user-select: none;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100vw;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100%;
|
||||||
z-index: ${zIndex};
|
z-index: ${zIndex};
|
||||||
pointer-events: none !important;
|
pointer-events: none !important;
|
||||||
background-repeat: repeat;
|
background-repeat: repeat;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user