0.0.7 • Published 2 years ago

vue-watermarker v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vue-watermarker

English | 中文

Cover the watermark on your website, which cannot be deleted or tampered with!

Preview

Install

npm install vue-watermarker
// or
yarn add vue-watermarker

Props

propstypedefaultrequiredremark
contentstring[][]YesWatermark content, supports html element
visiblebooleantrueNoDynamically create and destroy watermark components, created by default during initialization
styleOptionObject{fontSize: '15px',color: '#adadad',opacity: 0.2,textAlign: 'center'}NoWatermark style
widthnumber220NoThe width of each watermark
heightnumber220NoHeight of each watermark
refreshnumber5000NoThe interval of refreshing the watermark can prevent the watermark from being tampered with, the unit is milliseconds, and it is recommended not to be less than 3000 milliseconds
targetid\class\Node\Elementdocument.bodyNoThe parent element of the watermark

How to use

Example

<template>
  <div>
    <span
      class="padding"
    >This is website content!</span>
  </div>
  
  <!-- waterMarker -->
  <VueWaterMarker
    :content="['water marker one', '__water marker two__', '~~~~~water marker three~~~~']"
  />
</template>

<script lang="ts">
import {defineComponent} from "vue"
import VueWaterMarker from 'vue-watermarker'
export default defineComponent({
  name: "App",
  components: {
    VueWaterMarker
  },
})
</script>

<style lang="scss" scoped>
.padding{
  font-size: 18px;
  padding: 10px;
}
</style>
0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago