vue-component-watermark
v1.0.0
Published
vue 组件水印
Downloads
5
Readme
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 | 无 |