npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-watermark-v2

v1.0.4

Published

> 简单、便捷、高效的 vue 水印设置组件

Downloads

25

Readme

vue-watermark-v2(当前版本 V1.0.4)

简单、便捷、高效的 vue 水印设置组件

兼容版本

Vue2.6+

Install

	npm i vue-watermark-v2 -S

	//main.js
	import vwv from "vue-watermark-v2";
	Vue.use(vwv)

	//使用示例
    <vue-watermark-v2
      font-size="12"
      :rotate="-30"
      :mark-size="200"
      :gap="[68, 68]"
      :content="contents"
    >
    </vue-watermark-v2>

	contents: [
        {
          text: "",
          style: {
            fontSize: 16,
            fontFamily: "宋体",
            color: "red",
          },
        },
        {
          text: "by 能给你",
          style: {
            fontSize: 16,
            fontFamily: "宋体",
            color: "blue",
          },
        },
      ]

props

| 属性 | 类型 | 说明 | 默认 | 是否必传 | | -------------- | -------------- | ------------------------------------------------------------------ | --------------- | -------- | | defalutContent | String | 默认水印名,传入的 content 没有指定 text,则用此字段 | 这是默认水印名 | false | | content | Array | 传入的水印文本,详细看正文 content 说明 | [] | false | | image | String | 水印设置为传入的图像,请传入完整的资源路径,若传入此,则不显示文字 | "" | false | | pIndex | String | 水印层级 | 9999 | false | | markSize | Number | 水印默认大小 | 100 | false | | rotate | Number | 旋转角度 | -30 | false | | fontWeight | String | 字体粗细设置(normal /light /weight / number 可选) | "light" | false | | opacity | Number | 透明度 | 0.3 | false | | color | String | 字体颜色 | "rgba(0, 0, 0)" | false | | fontSize | Number/ String | 字体的大小 | 12 | false | | fontFamily | String | 字体 | "serif" | false | | gap | Array | 水印之间的间隔,第一项指 X 轴,第二项 Y 轴 | [88, 88] | false |

content 字段配置

| 属性 | 类型 | 说明 | 是否必传 | | ----- | ------ | ------------------------------------------------------------------------------------------------ | -------- | | text | String | 水印文字,若没指定,则显示 defalutContent 字段,若设置了 image 则不显示文字 | true | | style | Object | 设置字段样式,若设置了 style,则优先取 style 中的,否则取 props 中默认值,具体配置项看下方 style | false |

style 配置说明

| 属性 | 类型 | 说明 | 默认 | 是否必传 | | ---------- | -------------- | ------------------------------------------------- | ---- | -------- | | fontWeight | String | 字体粗细设置(normal /light /weight / number 可选) | | false | | color | String | 字体颜色 | | false | | fontSize | Number/ String | 字体的大小 | | false | | fontFamily | String | 字体 | | false |

Other

1、如果有其他问题邮件沟通[email protected]或者加 qq1195669615。