一个无法删除的水印组件
完整源码: github.com/wstreet/wat…
查看效果: wstreet.vip
canvas学习: www.yuque.com/streetex/fb…
Installation
# use npm npm install @wstreet7/watermark --save # or use yarn yarn add @wstreet7/watermark # or script <script src="https://unpkg.com/@wstreet7/watermark@latest/lib/watermark.min.js"></script> 复制代码
Simple Example
import WaterMark from '@wstreet7/watermark'; const config = { text: '@wstreet7', height: 60, width: 100 } const waterMark = new WaterMark(config) 复制代码
字段 | 描述 | 默认值 |
---|---|---|
id | container的id | water-mark |
height | 每个repeat单元的height< |