You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

common-watermark

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

common-watermark

一个简单的前端水印插件

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

common-watermark

一个简单的前端水印插件

安装依

npm i  common-watermark -S

展示

image

在 vue 中使用

import { watermark } from 'common-watermark';
export default defineComponent({
  mounted() {
    // 在vue当中就是layout布局的根节点
    const app = document.body;
    watermark.setWatermark('我是水印我是水印', app);
  },
});

在 react 中使用

import { watermark } from 'common-watermark';
export default class App extends React.Component {
  componentDidMount() {
    // 在react当中就是layout布局的根节点
    const app = document.body;
    watermark.setWatermark('我是水印我是水印', app);
  }
  render() {
    return <div>我是react</div>;
  }
}

在 js 中使用

import { watermark } from 'common-watermark';
const app = document.body;
watermark.setWatermark('我是水印我是水印', app);

Keywords

水印

FAQs

Package last updated on 14 Feb 2023

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