@hyc941129/water-mark
v1.0.3
Published
A ts-based watermarking tool
Downloads
2
Readme
@hyc941129/water-mark
Quick Setup
- Add
@hyc941129/water-mark
dependency to your project
# Using pnpm
pnpm add @hyc941129/water-mark
# Using yarn
yarn add @hyc941129/water-mark
# Using npm
npm install --save @hyc941129/water-mark
- Use
@hyc941129/water-mark
in your project
import { useWatermark } from '@hyc941129/water-mark';
const refDiv = ref<HTMLDivElement | null>(null);
nextTick(()=>{
const { setWatermark } = useWatermark(refDiv.value);
setWatermark('xx is an interesting person. ');
});