New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@develop-plugins/water-mark

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@develop-plugins/water-mark

给页面的某个区域加上水印。

latest
npmnpm
Version
0.0.9
Version published
Maintainers
1
Created
Source

WaterMark

描述

给页面的某个区域加上水印。

安装

 # npm
 npm i @develop-plugins/water-mark
 
 # yarn
 yarn add @develop-plugins/water-mark
 
 # pnpm
 pnpm add @develop-plugins/water-mark

引用

import { WaterMarkInstall } from '@develop-plugins/water-mark';

app.use(WaterMarkInstall);

示例

<template>
  <WaterMark text="hello world">
    <div style="width: 100%; height: 100vh"></div>
  </WaterMark>
</template>

属性

参数说明类型可选值默认值
width水印的宽度,content 的默认值为自身的宽度number-
height水印的高度,content 的默认值为自身的高度number-
text水印文字内容,如果设置了image则不会显示textstring | string[]watermark
rotate水印绘制时,旋转的角度,单位 °number-20
gap水印之间的间距number100
zIndex追加的水印元素的 z-indexnumber9999
font文字样式FontFont
image图片源,建议导出 2 倍或 3 倍图,优先级高,

Font

参数说明类型可选值默认值
fontSize字体大小number16
fontFamily字体类型stringserif
color字体颜色stringrgba(0, 0, 0, 0.3)
textAlign字体对齐方式stringleft | center | right | start | endcenter

插槽

名称说明
默认插槽

Keywords

vue3

FAQs

Package last updated on 24 Feb 2025

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