vue-watermark

0.1.1 • Public • Published

Watermark

开始

 
  npm install vue-watermark --save
 

选项

 
props: {
  text: { required: true },
  tileWidth: { default: 160 },
  tileHeight: { default: 160 },
  tileWidthNumber: { default: 20 },
  tileHeightNumber: { default: 50 },
  opacity: { default: 0.2 },
  itemClass: { default: '' }
}
 

替代之前的水印

因为之前的水印没有找到方法关闭,所以在babel层面上使用 remove-code 关闭了旧水印。 .babelrc 的 plugins 内,添加 remove-code 选项。

"plugins": [["remove-code", {
  "function": ["initWaterMark"]
}]],

Readme

Keywords

Package Sidebar

Install

npm i vue-watermark

Weekly Downloads

62

Version

0.1.1

License

none

Last publish

Collaborators

  • mrtone