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

clipboard-polyfill

A polyfill for the asynchronous clipboard API

MIT
Latest version published 3 months ago

Package Health Score

70 / 100
Full package analysis