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

vue3.0-clipboard

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3.0-clipboard

适配vue3.0版本的剪切板复制插件。

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

vue3.0-clipboard

A simple vuejs 3 binding for clipboard.js

Install

npm install --save vue3.0-clipboard without npm

Usage

For vue-cli user:

import { createApp } from 'vue'
import vue3Clipboard from 'vue3.0-clipboard'

const app = createApp({})

app.use(vue3Clipboard)

Sample

<template>
  <button v-clipboard="clipboardInfo">复制</button>
</template>
<script>
export default {
  setup() {
    const success = () => {
      console.log('复制成功')
    }

    const error = () => {
      console.log('复制失败')
    }

    return {
      clipboardInfo: {
        msg: '这是要复制的内容',
        success,
        error,
      },
    }
  },
}
</script>

Keywords

剪切板

FAQs

Package last updated on 15 Apr 2021

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