自定义配置
js
import { Watermark } from 'watermark-js-plus' // import watermark plugin
const watermark = new Watermark({
"width": 300,
"height": 300,
"rotate": 45
})
watermark.create() // add watermark
watermark.destroy() // remove watermark