1.0.1 • Published 4 years ago
esop-watermark v1.0.1
A simple watermark component based on react.
there is a demo below:
import WaterMark from 'esop-watermark';
class Demo extends Component {
render() {
return <WaterMark
info={{
width: 100,
height: 100,
text: 'demo'
}}
/>
}
}
Through the event MutationObserver
observe the watermark dom, so it can prevention user who open the controller of browser and manipulation the watermark dom.