@cailiao/watermark-vue2-component
v0.2.0
Published
@cailiao/watermark 的 vue2 组件封装。(A vue2 component encapsulation of @cailiao/watermark.)
Downloads
3
Readme
watermark/vue2-component —— 水印
简体中文 | English
描述
Vue 2 component wrapper for the watermark plugin.
开始使用
安装依赖包
npm i @cailiao/watermark-vue2-component
导入
import Component from '@cailiao/watermark-vue2-component'
使用
Vue.component('Watermark', Component)
Documentation
The component parameters are the same as the parameters in watermark.
Props
| Props Name | Optional | Type | Description | | ---------- | ------ | -------------- | --------------------------- | | className | Optional | String | Container class name, default is "watermark". | | content | Optional | String | Watermark text. | | font | Optional | Object | Font-related configuration. | | gap | Optional | Number | Watermark column spacing. | | image | Optional | String | Watermark image. | | lineHeight | Optional | String|Number | Text line height. | | offset | Optional | Array | Watermark row offset. | | rotate | Optional | Number | Watermark rotation angle. | | zIndex | Optional | Number | Watermark positioning z-index. |