{"id":13441823,"url":"https://github.com/youzan/vant-weapp","last_synced_at":"2025-05-12T16:25:42.969Z","repository":{"id":37435407,"uuid":"79779269","full_name":"youzan/vant-weapp","owner":"youzan","description":"轻量、可靠的小程序 UI 组件库","archived":false,"fork":false,"pushed_at":"2025-05-01T23:14:32.000Z","size":22518,"stargazers_count":18051,"open_issues_count":117,"forks_count":3483,"subscribers_count":436,"default_branch":"dev","last_synced_at":"2025-05-05T14:18:56.960Z","etag":null,"topics":["miniprogram","ui","vant","weapp","weixin"],"latest_commit_sha":null,"homepage":"https://vant.pro/vant-weapp/","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/youzan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null},"funding":{"github":["chenjiahan","nemo-shen"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-01-23T07:05:54.000Z","updated_at":"2025-05-02T08:31:35.000Z","dependencies_parsed_at":"2023-10-15T05:06:33.666Z","dependency_job_id":"b059b1b3-c26a-4dc6-82a3-296043bba796","html_url":"https://github.com/youzan/vant-weapp","commit_stats":{"total_commits":2619,"total_committers":194,"mean_commits":13.5,"dds":0.7869415807560137,"last_synced_commit":"2266cbe262c4904fa66f94d0544e646684fe3dca"},"previous_names":["vant-ui/vant-weapp"],"tags_count":160,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Fvant-weapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Fvant-weapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Fvant-weapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/youzan%2Fvant-weapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/youzan","download_url":"https://codeload.github.com/youzan/vant-weapp/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253418957,"owners_count":21905334,"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":["miniprogram","ui","vant","weapp","weixin"],"created_at":"2024-07-31T03:01:38.463Z","updated_at":"2025-05-12T16:25:42.949Z","avatar_url":"https://github.com/youzan.png","language":"JavaScript","funding_links":["https://github.com/sponsors/chenjiahan","https://github.com/sponsors/nemo-shen"],"categories":["JavaScript","HarmonyOS","Code","前端开发框架及项目","组件","9. 其他与展望","UI模板","2. JavaScript 框架汇总","Projects List"],"sub_categories":["Windows Manager","library/repositories","其他_文本生成、文本对话","5. 参考材料","3、小程序模板"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"logo\" src=\"https://img.yzcdn.cn/vant/logo.png\" width=\"120\" style=\"margin-bottom: 10px;\"\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003e轻量、可靠的小程序 UI 组件库\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/@vant/weapp.svg?style=for-the-badge\" alt=\"npm version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge\u0026color=#4fc08d\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/@vant/weapp.svg?style=for-the-badge\u0026color=#4fc08d\" alt=\"downloads\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/@vant/weapp.svg?style=for-the-badge\u0026color=#4fc08d\" alt=\"downloads\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  🔥 \u003ca href=\"https://vant.pro/vant-weapp/\"\u003e文档网站（国内）\u003c/a\u003e\n  \u0026nbsp;\n  🔥 \u003ca href=\"https://vant-ui.github.io/vant-weapp/\"\u003e文档网站（GitHub）\u003c/a\u003e\n  \u0026nbsp;\n  🚀 \u003ca href=\"https://github.com/vant-ui/vant\" target=\"_blank\"\u003eVue 版\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n### 介绍\n\nVant 是一个**轻量、可靠的移动端组件库**，于 2017 年开源。\n\n目前 Vant 官方提供了 [Vue 2 版本](https://vant-ui.github.io/vant/v2/)、[Vue 3 版本](https://vant-ui.github.io/vant/)和[微信小程序版本](http://vant-ui.github.io/vant-weapp/)，并由社区团队维护 [React 版本](https://github.com/3lang3/react-vant)和[支付宝小程序版本](https://github.com/ant-move/Vant-Aliapp)。\n\n## 预览\n\n扫描下方小程序二维码，体验组件库示例。注意：因微信审核机制限制，目前示例小程序不是最新版本，可以 clone 代码到本地开发工具预览\n\n\u003cimg src=\"https://img.yzcdn.cn/vant-weapp/qrcode-201808101114.jpg\" width=\"200\" height=\"200\" style=\"margin-top: 10px;\" \u003e\n\n## 使用之前\n\n使用 Vant Weapp 前，请确保你已经学习过微信官方的 [小程序简易教程](https://developers.weixin.qq.com/miniprogram/dev/framework/) 和 [自定义组件介绍](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/)。\n\n## 安装\n\n### 方式一. 通过 npm 安装 (推荐)\n\n小程序已经支持使用 npm 安装第三方包，详见 [npm 支持](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html?search-key=npm)\n\n```bash\n# 通过 npm 安装\nnpm i @vant/weapp -S --production\n\n# 通过 yarn 安装\nyarn add @vant/weapp --production\n\n# 安装 0.x 版本\nnpm i vant-weapp -S --production\n```\n\n### 方式二. 下载代码\n\n直接通过 git 下载 Vant Weapp 源代码，并将 `dist` 目录拷贝到自己的项目中。\n\n```bash\ngit clone https://github.com/youzan/vant-weapp.git\n```\n\n## 使用组件\n\n以按钮组件为例，只需要在 json 文件中引入按钮对应的自定义组件即可\n\n```json\n{\n  \"usingComponents\": {\n    \"van-button\": \"/path/to/vant-weapp/dist/button/index\"\n  }\n}\n```\n\n接着就可以在 wxml 中直接使用组件\n\n```html\n\u003cvan-button type=\"primary\"\u003e按钮\u003c/van-button\u003e\n```\n\n## 在开发者工具中预览\n\n```bash\n# 安装项目依赖\nnpm install\n\n# 执行组件编译\nnpm run dev\n```\n\n打开[微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html)，把`vant-weapp/example`目录添加进去就可以预览示例了。\n\nPS：关于 `van-area` Area 省市区选择组件，地区数据初始化可以直接在云开发环境中导入`vant-weapp/example/database_area.JSON` 文件使用。\n\n## 基础库版本\n\nVant Weapp 最低支持到小程序基础库 2.6.5 版本。\n\n## 链接\n\n- [文档网站（GitHub）](https://vant-ui.github.io/vant-weapp/)\n- [文档网站（国内）](https://vant.pro/vant-weapp/)\n- [意见反馈](https://github.com/youzan/vant-weapp/issues)\n- [设计资源](https://vant-ui.github.io/vant/#/zh-CN/design)\n- [更新日志](https://vant-ui.github.io/vant-weapp/#/changelog)\n- [官方示例](https://github.com/vant-ui/vant-demo)\n\n## 核心团队\n\n以下是 Vant 和 Vant Weapp 的核心贡献者们：\n\n| [![chenjiahan](https://avatars.githubusercontent.com/u/7237365?s=80\u0026v=4)](https://github.com/chenjiahan/) | [![cookfront](https://avatars.githubusercontent.com/u/4829465?s=80\u0026v=4)](https://github.com/cookfront/) | [![w91](https://avatars.githubusercontent.com/u/2599455?s=80\u0026v=4)](https://github.com/w91/) | [![pangxie1991](https://avatars.githubusercontent.com/u/5961240?s=80\u0026v=4)](https://github.com/pangxie1991/) | [![rex-zsd](https://avatars.githubusercontent.com/u/8767877?s=80\u0026v=4)](https://github.com/rex-zsd/) | [![nemo-shen](https://avatars.githubusercontent.com/u/13480805?s=80\u0026v=4)](https://github.com/nemo-shen/) |\n| :-: | :-: | :-: | :-: | :-: | :-: |\n| [chenjiahan](https://github.com/chenjiahan/) | [cookfront](https://github.com/cookfront/) | [wangnaiyi](https://github.com/w91/) | [pangxie](https://github.com/pangxie1991/) | [rex-zsd](https://github.com/rex-zsd/) | [nemo-shen](https://github.com/nemo-shen/) |\n\n| [![Lindysen](https://avatars.githubusercontent.com/u/33708359?s=80\u0026v=4)](https://github.com/Lindysen/) | [![JakeLaoyu](https://avatars.githubusercontent.com/u/16181940?s=80\u0026v=4)](https://github.com/JakeLaoyu/) | [![landluck](https://avatars.githubusercontent.com/u/27060081?s=80\u0026v=4)](https://github.com/landluck/) | [![wjw-gavin](https://avatars.githubusercontent.com/u/19986739?s=80\u0026v=4)](https://github.com/wjw-gavin/) | [![inottn](https://avatars.githubusercontent.com/u/18509404?s=80\u0026v=4)](https://github.com/inottn/) | [![zhousg](https://avatars.githubusercontent.com/u/15833290?s=80\u0026v=4)](https://github.com/zhousg/) |\n| :-: | :-: | :-: | :-: | :-: | :-: |\n| [Lindysen](https://github.com/Lindysen/) | [JakeLaoyu](https://github.com/JakeLaoyu/) | [landluck](https://github.com/landluck/) | [wjw-gavin](https://github.com/wjw-gavin/) | [inottn](https://github.com/inottn/) | [zhousg](https://github.com/zhousg/) |\n\n## 贡献者们\n\n感谢以下小伙伴们为 Vant Weapp 发展做出的贡献：\n\n\u003ca href=\"https://github.com/youzan/vant-weapp/graphs/contributors\"\u003e\n  \u003cimg src=\"https://opencollective.com/vant-weapp/contributors.svg?width=890\u0026button=false\" alt=\"contributors\"\u003e\n\u003c/a\u003e\n\n## 开源协议\n\n本项目基于 [MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89)协议，请自由地享受和参与开源。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouzan%2Fvant-weapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyouzan%2Fvant-weapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouzan%2Fvant-weapp/lists"}