{"id":22125427,"url":"https://github.com/notadd/vue-screen-capture","last_synced_at":"2025-04-10T07:47:25.757Z","repository":{"id":57131973,"uuid":"148261870","full_name":"notadd/vue-screen-capture","owner":"notadd","description":"基于 html2canvas 的vue截图组件","archived":false,"fork":false,"pushed_at":"2019-05-11T13:09:20.000Z","size":199,"stargazers_count":23,"open_issues_count":3,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-24T02:40:51.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notadd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-11T04:49:43.000Z","updated_at":"2023-11-14T02:06:21.000Z","dependencies_parsed_at":"2022-09-03T07:03:05.000Z","dependency_job_id":null,"html_url":"https://github.com/notadd/vue-screen-capture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notadd%2Fvue-screen-capture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notadd%2Fvue-screen-capture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notadd%2Fvue-screen-capture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notadd%2Fvue-screen-capture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notadd","download_url":"https://codeload.github.com/notadd/vue-screen-capture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248181151,"owners_count":21060885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T16:20:52.997Z","updated_at":"2025-04-10T07:47:25.734Z","avatar_url":"https://github.com/notadd.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-screen-capture\n\n基于[html2canvas](https://github.com/niklasvh/html2canvas)的Vue截图、标注组件。\n\n## How to use\n### step-1\n\n#### 安装 `@notadd/vue-screen-capture`\n+ `npm install @notadd/vue-screen-capture -S` \n\n#### step-2\n\n+ 引入组件\n\n```javascript\n  import ScreenCapture from '@notadd/vue-screen-capture';\n```\n\n#### step-3\n\n+ 声明component\n```javascript\n  export default {\n  ...,\n  components: {\n    ScreenCapture\n  },\n  ...,\n```\n\n#### step-4\n\n+ 使用组件\n\n```html\n\u003cscreen-capture ref=\"sc\" :html=\"html\"\u003e\u003c/screen-capture\u003e\n```\n\n### 说明：\n\n#### 组件属性\n\u003e `html`：要截图的dom元素\n\n#### 组件方法\n\u003e `capture`：生成截图    \n\u003e `clear`：清空截图    \n\u003e `getCaptureImage`：返回截图File对象    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotadd%2Fvue-screen-capture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotadd%2Fvue-screen-capture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotadd%2Fvue-screen-capture/lists"}