1.0.0 • Published 2 years ago

vue-component-watermark v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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