1.0.2 • Published 2 years ago

wartermark v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

使用说明

1.安装

npm install wartermark

2.引入

import * as W from "wartermark";
或者
import { setWaterMark, clearWatermark } from "wartermark";

3.生成水印

const waterConfig= { content: "水印内容", color: "#DCDCDC" }; // content必填; color:选填
W.setWaterMark( waterConfig, '放置水印的容器');
或者
setWaterMark( waterConfig, '放置水印的容器');

4.清除水印

W.clearWatermark('放置水印的容器');
或者
clearWatermark('放置水印的容器');
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago