{"id":19640122,"url":"https://github.com/chimeejs/chimee-plugin-mobile-state","last_synced_at":"2026-05-13T01:02:08.562Z","repository":{"id":87142682,"uuid":"111676390","full_name":"Chimeejs/chimee-plugin-mobile-state","owner":"Chimeejs","description":"chimee mobile centerstate ","archived":false,"fork":false,"pushed_at":"2018-11-07T14:51:09.000Z","size":438,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-26T22:44:35.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Chimeejs.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":"2017-11-22T11:34:34.000Z","updated_at":"2018-10-10T11:07:35.000Z","dependencies_parsed_at":"2023-03-13T19:47:01.337Z","dependency_job_id":null,"html_url":"https://github.com/Chimeejs/chimee-plugin-mobile-state","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chimeejs/chimee-plugin-mobile-state","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-plugin-mobile-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-plugin-mobile-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-plugin-mobile-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-plugin-mobile-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chimeejs","download_url":"https://codeload.github.com/Chimeejs/chimee-plugin-mobile-state/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chimeejs%2Fchimee-plugin-mobile-state/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32963174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"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":[],"created_at":"2024-11-11T14:04:43.303Z","updated_at":"2026-05-13T01:02:08.516Z","avatar_url":"https://github.com/Chimeejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chimee-plugin-mobile-state\n\n## install\n\n安装\n\n```shell\n# 依赖于 chimee， 首先需要安装 chimee\nnpm install chimee\n# 安装控制条组件\nnpm install chimee-plugin-mobile-state\n```\n\n使用\n\n```javascript\nimport chimee from 'chimee';\nimport chimeePluginMobileState from 'chimee-plugin-mobile-state';\n\n// 安装插件\nchimee.install(chimeePluginMobileState);\nconst player = new chimee({\n  // ...\n  // 使用插件\n  plugin: [\n    {\n      chimeePluginMobileState.name,\n      errorTips: '错误提示', // 也可以塞一个 dom 节点\n      icon: {\n        loading: ``, // 可传入 svg， 内部 innerHTML\n        play: `` // svg\n      },\n      expectTime: 3e4 // 最长加载时间\n    }\n  ]\n});\n```\n\n**也可以在页面中引用 `/lib/index.browser.js` 然后在页面中使用 chimeePluginMobileState**\n\n\n## 包含状态\n\n* 开始\n* loading\n* error\n\n## 包含手势\n\n* panstart\n* panmove\n* panend\n\n## 事件\n\n### state-panstart\n  * 含义： 在这个插件上触发 panstart 手势\n  * 回调参数：\n    * evt: touch 对象\n\n### state-panmove\n  * 含义： 在这个插件上触发 panmove 手势\n  * 回调参数：\n    * evt: touch 对象\n\n### state-panend\n  * 含义： 在这个插件上触发 panstend 手势\n  * 回调参数：\n    * evt: touch 对象\n    \n### state-tap\n  * 含义： 在这个插件上触发 tap 手势\n    * 回调参数：\n      * evt: touch 对象\n\n## state-change\n  * 含义： 这个插件状态发生变化\n  * 回调参数：\n    * state: 当前状态\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimeejs%2Fchimee-plugin-mobile-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchimeejs%2Fchimee-plugin-mobile-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimeejs%2Fchimee-plugin-mobile-state/lists"}