{"id":45483825,"url":"https://github.com/yangjingyu/vs-full","last_synced_at":"2026-02-22T16:37:45.379Z","repository":{"id":42938843,"uuid":"394226000","full_name":"yangjingyu/vs-full","owner":"yangjingyu","description":"移动端模拟全屏容器","archived":false,"fork":false,"pushed_at":"2022-07-07T07:03:24.000Z","size":4169,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T18:42:49.857Z","etag":null,"topics":["requestfullscreen"],"latest_commit_sha":null,"homepage":"https://yangjingyu.github.io/vs-full/public/index.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yangjingyu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-09T09:16:12.000Z","updated_at":"2025-01-02T02:25:38.000Z","dependencies_parsed_at":"2022-08-27T11:01:57.970Z","dependency_job_id":null,"html_url":"https://github.com/yangjingyu/vs-full","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yangjingyu/vs-full","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjingyu%2Fvs-full","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjingyu%2Fvs-full/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjingyu%2Fvs-full/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjingyu%2Fvs-full/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangjingyu","download_url":"https://codeload.github.com/yangjingyu/vs-full/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangjingyu%2Fvs-full/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29718492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["requestfullscreen"],"created_at":"2026-02-22T16:37:45.207Z","updated_at":"2026-02-22T16:37:45.371Z","avatar_url":"https://github.com/yangjingyu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# full\n\n移动端模拟全屏容器\n\n## 使用\n\n```html\n\u003cdiv id=\"full\" style=\"width: 100%;\"\u003e\n  \u003cbutton id=\"toggle\"\u003e{}\u003c/button\u003e\n\u003c/div\u003e\n```\n\n```js\nimport Full from 'vs-full';\n\nconst full = new Full({\n  // 需要全屏的容器\n  el: document.querySelector('#full'),\n  // 切换按钮\n  toggle: document.querySelector('#toggle'),\n  // 强制旋转\n  forceRotate: false,\n  // 自动旋转\n  autoRotate: false,\n  // 禁止滑动\n  disableScroll: true,\n});\n```\n\n## 参数\n\n- Selector 为 querySelector 选择器 如：'#ID' '.CLASS'\n\n| 参数名        | 描述     | 可选值                      | 默认值 |\n| ------------- | -------- | --------------------------- | ------ |\n| el            | 全屏容器 | `HTMLElement` or `Selector` | null   |\n| toggle        | 切换按钮 | `HTMLElement` or `Selector` | null   |\n| forceRotate   | 强制旋转 | `boolean`                   | false  |\n| autoRotate    | 自动旋转 | `boolean`                   | false  |\n| disableScroll | 禁止滑动 | `boolean`                   | false  |\n| nativeFirst   | 原生优先 | `boolean`                   | false  |\n\n## 事件\n\n| 事件名   | 描述           |\n| -------- | -------------- |\n| onUpdate | 切换全屏时触发 |\n\n## 方法\n\n| 方法名            | 描述     |\n| ----------------- | -------- |\n| toggle            | 切换全屏 |\n| requestFullscreen | 进入全屏 |\n| exitFullScreen    | 退出全屏 |\n| destroy           | 销毁     |\n\n## 注意\n\n1. 如果 body 元素为 position:absolute; 请设置根元素的宽高\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangjingyu%2Fvs-full","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangjingyu%2Fvs-full","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangjingyu%2Fvs-full/lists"}