{"id":21696681,"url":"https://github.com/ant-move/vant-aliapp","last_synced_at":"2026-03-11T06:31:49.342Z","repository":{"id":49770069,"uuid":"206226762","full_name":"ant-move/Vant-Aliapp","owner":"ant-move","description":"支付宝小程序版本 Vant 组件库。","archived":false,"fork":false,"pushed_at":"2023-11-06T05:54:54.000Z","size":2133,"stargazers_count":117,"open_issues_count":18,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-27T16:13:52.840Z","etag":null,"topics":["alipay","antmove","components","miniprogram","vant","vant-weapp"],"latest_commit_sha":null,"homepage":"https://ant-move.github.io/vant-ailapp-docs/#/intro","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/ant-move.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":"2019-09-04T03:52:17.000Z","updated_at":"2025-03-21T14:49:48.000Z","dependencies_parsed_at":"2024-11-25T19:34:41.648Z","dependency_job_id":null,"html_url":"https://github.com/ant-move/Vant-Aliapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ant-move/Vant-Aliapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FVant-Aliapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FVant-Aliapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FVant-Aliapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FVant-Aliapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ant-move","download_url":"https://codeload.github.com/ant-move/Vant-Aliapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-move%2FVant-Aliapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30373456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"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":["alipay","antmove","components","miniprogram","vant","vant-weapp"],"created_at":"2024-11-25T19:21:18.005Z","updated_at":"2026-03-11T06:31:49.308Z","avatar_url":"https://github.com/ant-move.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 注意：该仓库已停止维护\n如果寻找其它的替代方案，建议使用官方提供的 [antD小程序版](https://mini.ant.design/)\n\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003chr/\u003e\n\n\n\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## 介绍\n\nVant Aliapp 是移动端 Vue 组件库 [Vant](https://github.com/youzan/vant) 的支付宝小程序版本，两者基于相同的视觉规范，提供一致的 API 接口，助力开发者快速搭建小程序应用。\n\n\u003e Vant Aliapp 通过 [Antmove](https://ant-move.github.io/website/) 小程序转换器基于 [Vant-Weapp](https://youzan.github.io/vant-weapp/#/intro) 转换得到，并做了少量的兼容适配调整。\n\n## 预览\n\n支付宝扫描下方小程序二维码，体验组件库示例：\n\n\u003cimg src=\"https://cache.amap.com/ecology/tool/amap-backend-server/platform/img/16268702852015063.png\" width=\"200\" height=\"200\" style=\"margin-top: 10px;\" \u003e\n\n## 使用之前\n\n在开始使用 Vant Aliapp 之前，你需要先阅读 [支付宝小程序自定义组件](https://docs.alipay.com/mini/framework/custom-component-overview) 的相关文档。\n\n## npm\n\n* [alipay](https://www.npmjs.com/package/vant-aliapp)\n* [钉钉](https://www.npmjs.com/package/vant-aliapp-dd)\n## 安装\n\n### 通过 npm 安装使用（推荐）\n\n* 通过 npm 安装\n```bash\nnpm i vant-aliapp -S --production\n```\n\n* 通过 yarn 安装\n\n```bash\nyarn add vant-aliapp --production\n```\n\n\u003e npm 使用 [example（vant-alipay-area）](https://github.com/ant-move/Vant-Aliapp/blob/master/alipay/vant-app/pages/area/index.json)。\n\n### 下载代码使用\n\n直接通过 git 下载 Vant Aliapp 源代码，并将`alipay/npm`目录拷贝到自己的项目中\n```bash\ngit clone https://github.com/ant-move/Vant-Aliapp.git\n```\n\n## 使用组件\n\n在 app.js 中加入下列代码\n\n```javascript\nimport 'vant-aliapp/dist/__antmove/component/componentClass.js'\n```\n\n以按钮组件为例，只需要在 json 文件中引入按钮对应的自定义组件即可\n\n```json\n{\n  \"usingComponents\": {\n    \"van-button\": \"/path/to/vant-app/dist/button/index\"\n  }\n}\n```\n\n\u003e npm 地址：`vant-aliapp/dist/dist/button/index`\n\n接着就可以在 axml 中直接使用组件\n\n```html\n\u003cvan-button type=\"primary\"\u003e按钮\u003c/van-button\u003e\n```\n\n## 在开发者工具中预览\n\n下载本项目到本地，使用支付宝 IDE 打开 `alipay/vant-app`, 安装依赖，即可预览。\n\n\u003e 预览时请在项目详情设置中开启 `component2` 编译，详情可参考[支付宝小程序自定义组件使用介绍](https://docs.alipay.com/mini/framework/custom-component-overview#%E4%BD%BF%E7%94%A8%E9%A1%BB%E7%9F%A5)。\n\n## 注意事项\n\n* 当你项目中引入Vant-aliapp组件库，运行时报‘identifi(arguments) is disallowed in sjs’错误时, 可以取消IDE界面 详情 \u003e 启用基础库2.0构建的勾选来解决\n* 支付宝上使用vant的checkbox、collapse、dropdown-menu、goods-action、grid、radio、tab、tabbar、index-bar、sidebar等组件的解决方法，按以下步骤进行：\n    1. npm下载Antmove命令行工具\n    \u003e npm install antmove -g\n    2. 在你的项目根目录下，使用 alipay-compiler 对项目进行转换\n    \u003e antmove -t alipay-compiler\n    3. 转换后的支付宝小程序即可支持以上组件\n* 如引入某个组件发现渲染失败时，可以参照 [示例](https://github.com/ant-move/Vant-Aliapp/tree/master/alipay/vant-app)中的例子仿写，如还有疑问可以扫描下方钉钉二维码联系我们\n\n## 联系\n\n如果您在使用的过程中碰到问题，可以通过下面几个途径寻求帮助。\n\n* 钉钉交流群： \u003cimg width='200px' src='https://camo.githubusercontent.com/1ac9a77e46126bc321740475803f3b49ffe7f83e1cfdd75683de399a6065272b/68747470733a2f2f63616368652e616d61702e636f6d2f65636f6c6f67792f746f6f6c2f616e746d6f76652f7765622f6173736574732f636f6e746163742d64696e6764696e672e6a7067'/\u003e\n* 邮件：amap-appx@service.autonavi.com\n\n## 链接\n\n* [更新日志](https://ant-move.github.io/vant-ailapp-docs/#/changelog)\n* [意见反馈](https://github.com/ant-move/Vant-Aliapp/issues)\n\n## 开源协议\n\n本项目基于 [MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89)协议，请自由地享受和参与开源。\n\n[vant-weapp]: https://github.com/youzan/vant-weapp\n[MIT]: http://opensource.org/licenses/MIT\n[小程序简易教程]: https://mp.weixin.qq.com/debug/wxadoc/dev/\n[小程序框架介绍]: https://mp.weixin.qq.com/debug/wxadoc/dev/framework/MINA.html\n[微信开发者工具]: https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html\n\n## 感谢\n\n感谢 vant 团队对 vant-weapp 的贡献，本项目基于 vant-weapp 转换而来，并做了支付宝小程序平台的适配兼容。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fant-move%2Fvant-aliapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fant-move%2Fvant-aliapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fant-move%2Fvant-aliapp/lists"}