{"id":22879341,"url":"https://github.com/anthinkingcoder/cutout-view","last_synced_at":"2026-02-09T10:03:48.501Z","repository":{"id":96074596,"uuid":"141904269","full_name":"anthinkingcoder/cutout-view","owner":"anthinkingcoder","description":"cutout content","archived":false,"fork":false,"pushed_at":"2018-07-23T06:06:43.000Z","size":158,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T14:45:24.399Z","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/anthinkingcoder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-22T14:47:58.000Z","updated_at":"2018-12-12T10:30:41.000Z","dependencies_parsed_at":"2023-04-04T01:32:26.430Z","dependency_job_id":null,"html_url":"https://github.com/anthinkingcoder/cutout-view","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anthinkingcoder/cutout-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Fcutout-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Fcutout-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Fcutout-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Fcutout-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthinkingcoder","download_url":"https://codeload.github.com/anthinkingcoder/cutout-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthinkingcoder%2Fcutout-view/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267834712,"owners_count":24151631,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T16:39:00.002Z","updated_at":"2025-07-30T08:03:35.570Z","avatar_url":"https://github.com/anthinkingcoder.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cutout-view\n\u003e this is a vue component, its help us to cut out content.\n## Installation\nuse npm\n```bash\nnpm i cutout-view --save\nimport cutout from 'cutout-view'\nVue.use(cutout)\n```\n## cutout Component\n### props\n| param | description | type | default |\n| :-: | :-: | :-: | :-: |\n| show-height | show content height,require, show-height not greater than content height and not less than layer-height。if the show-height valid error, will emitter @on-cancel | Number,String | 0 |\n| on | if false, the cutout will be canceled,emitter @on-cancel | Boolean | true |\n| layer-height | the bottom layer height | Number,String | 80px |\n\n### events\n| name | description | return value |\n| :-: | :-: | :-: |\n| on-cancel | Emitted when cutout is canceled| return false |\n\n### slot\n| name | description|\n| :-: | :-: |\n| layer | the layer area content |\n| extra | extra content, at the bottom of the layer area|\n\n## example\n\n\u003e  see [live demo](https://jsfiddle.net/anthinkingcoder/c4guaq1n)\n```html\n\u003ccutout :show-height=\"800\" :on=\"on\" @on-cancel=\"cancel\"\u003e\n    \u003cdiv slot=\"layer\"\u003e\n      \u003cimg src=\"./img/down.png\" class=\"down-btn\" @click=\"open\"\u003e\n    \u003c/div\u003e\n    \n    \u003cdiv slot=\"extra\" class=\"extra\"\u003e\n      \u003cdiv class=\"button\" @click=\"open\"\u003e\n        关注作者查看全文\n      \u003c/div\u003e\n    \u003c/div\u003e\n    //...content\n\u003c/cutout\u003e\n```\n```javascript\n  var app = new Vue({\n    el: '#app',\n    data: {\n      on: true\n    },\n    methods: {\n      open() {\n        this.on = false;\n      },\n      cancel() {\n        console.info('cancel cutout');\n      }\n    }\n  })\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthinkingcoder%2Fcutout-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthinkingcoder%2Fcutout-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthinkingcoder%2Fcutout-view/lists"}