🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

watermark-vue

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watermark-vue

Watermarkit directive for Vue2/3.

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 09 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts