0.1.4 • Published 2 years ago

watermark-vue v0.1.4

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

Watermarkit

Watermarkit directive for Vue2/3.

Get Started

$ yarn add v-watermarkit
import { createApp } from 'vue'
import Watermark from 'v-watermarkit'

const app = createApp({/* ... */})

app.use(Watermark)

Usage

<template>
  <div v-watermark="text"></div>
  <!-- or -->
  <div
    v-watermark="{
      text,
      color: `#aaa`,
      fontSize: 16,
      zIndex: 999,
      opacity: .3,
      rotate: 30,
      gap: 80,
    }"
  ></div>
</template>
<script setup>
import { ref } from 'vue'

const text = ref(`大板栗 banli.co`)
</script>

ScreenShot

ScreenShot

Api

propstypedefault
textstring''
colorstring#999
fontSizenumber12
zIndexnumber9999
opacitynumber.1
rotatenumber15
gapnumber50

License

Licensed under the MIT License

0.1.4

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago