1.0.0 • Published 3 years ago

vue-component-watermark v1.0.0

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

Installation

$ npm install vue-component-watermark

Usage

main.js
import '@/utils/module-watermark'

xx.vue
<div v-watermark="{ text:`仅XXXX使用`, textColor:'rgba(180, 180, 180, 0.3)', height: '270' }"></div>

API

属性说明类型默认值
text水印文字string
textColor水印文字颜色string
height水印高度string/number
width水印宽度string/number