Socket
Socket
Sign inDemoInstall

@notadd/vue-screen-capture

Package Overview
Dependencies
5
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @notadd/vue-screen-capture

基于 `html2canvas` 的vue截图组件


Version published
Weekly downloads
4
increased by300%
Maintainers
4
Install size
6.78 MB
Created
Weekly downloads
 

Readme

Source

vue-screen-capture

基于html2canvas的Vue截图、标注组件。

How to use

step-1

安装 @notadd/vue-screen-capture
  • npm install @notadd/vue-screen-capture -S
step-2
  • 引入组件
  import ScreenCapture from '@notadd/vue-screen-capture';
step-3
  • 声明component
  export default {
  ...,
  components: {
    ScreenCapture
  },
  ...,
step-4
  • 使用组件
<screen-capture ref="sc" :html="html"></screen-capture>

说明:

组件属性

html:要截图的dom元素

组件方法

capture:生成截图 clear:清空截图 getCaptureImage:返回截图File对象

Keywords

FAQs

Last updated on 18 Sep 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc