How to use the clipboard-polyfill.readText function in clipboard-polyfill

To help you get started, we’ve selected a few clipboard-polyfill examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github d2-projects / d2-admin / src / pages / demo / plugins / clipboard-polyfill / index.vue View on Github external
readText () {
      clipboard.readText().then((res) => {
        this.$message({
          message: '读取成功 返回结果请查看控制台',
          type: 'success'
        })
      }, err => {
        console.log(err)
        this.$message({
          message: '错误信息已经打印到控制台',
          type: 'error'
        })
      })
    },
    read () {
github d2-projects / d2-admin / src / views / demo / plugins / clipboard-polyfill / index.vue View on Github external
readText () {
      clipboard.readText().then((res) => {
        this.$message({
          message: '读取成功 返回结果请查看控制台',
          type: 'success'
        })
      }, err => {
        console.log(err)
        this.$message({
          message: '错误信息已经打印到控制台',
          type: 'error'
        })
      })
    },
    read () {

clipboard-polyfill

A polyfill for the asynchronous clipboard API

MIT
Latest version published 7 months ago

Package Health Score

64 / 100
Full package analysis