{"id":18530957,"url":"https://github.com/easy-martin/images-mview","last_synced_at":"2026-04-27T08:32:23.014Z","repository":{"id":57272318,"uuid":"279769939","full_name":"Easy-Martin/images-mview","owner":"Easy-Martin","description":"移动端图片查看器，基于hammer支持手势 ","archived":false,"fork":false,"pushed_at":"2024-04-23T02:22:10.000Z","size":671,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-20T18:05:19.071Z","etag":null,"topics":["h5","hammer","imageview","react"],"latest_commit_sha":null,"homepage":"https://easy-martin.github.io/images-mview/","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/Easy-Martin.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":"2020-07-15T05:09:37.000Z","updated_at":"2020-07-15T06:48:26.000Z","dependencies_parsed_at":"2024-04-23T04:42:35.357Z","dependency_job_id":null,"html_url":"https://github.com/Easy-Martin/images-mview","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/Easy-Martin%2Fimages-mview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Easy-Martin%2Fimages-mview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Easy-Martin%2Fimages-mview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Easy-Martin%2Fimages-mview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Easy-Martin","download_url":"https://codeload.github.com/Easy-Martin/images-mview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235701,"owners_count":22036964,"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":["h5","hammer","imageview","react"],"created_at":"2024-11-06T18:04:37.874Z","updated_at":"2026-04-27T08:32:23.006Z","avatar_url":"https://github.com/Easy-Martin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# images-mview\n\n一个基于 React 的图片查看组件，现已迁移到 Vite 构建系统。\n\n## 安装\n\n```bash\nyarn add images-mview\n# 或\nnpm install images-mview\n```\n\n## 开发\n\n```bash\n# 安装依赖\nnpm install\n\n# 启动开发服务器\nnpm run dev\n\n# 构建库文件\nnpm run build:lib\n\n# 构建演示应用\nnpm run build\n\n# 预览构建结果\nnpm run preview\n```\n\n## 使用示例\n\n```jsx\nimport React, { useState } from 'react';\nimport ImagesView from 'images-mview';\nimport \"images-mview/lib/images-mview.es.css\"\n\nfunction App() {\n  const [visible, setVisible] = useState(false);\n  return (\n    \u003cdiv className=\"App\"\u003e\n      \u003cbutton onClick={() =\u003e setVisible(true)}\u003e查看图片\u003c/button\u003e\n      \u003cImagesView\n        className=\"demo-images\"\n        current={2}\n        visible={visible}\n        onClose={() =\u003e setVisible(false)}\n        imageList={[\n          'https://example.com/image1.jpg',\n          'https://example.com/image2.jpg',\n          'https://example.com/image3.jpg',\n        ]}\n      /\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default App;\n```\n\n## 构建系统迁移\n\n项目已从 Create React App + Rollup 迁移到 Vite：\n\n- ✅ 更快的开发服务器启动\n- ✅ 热模块替换 (HMR)\n- ✅ 更快的构建速度\n- ✅ 支持 ES 模块和 UMD 格式输出\n- ✅ 内置 Less 支持\n\n## API 文档\n\n待补充...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-martin%2Fimages-mview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasy-martin%2Fimages-mview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasy-martin%2Fimages-mview/lists"}