{"id":28729760,"url":"https://github.com/didi/mpx-cube-ui","last_synced_at":"2025-06-15T17:10:59.859Z","repository":{"id":228564609,"uuid":"771419040","full_name":"didi/mpx-cube-ui","owner":"didi","description":"基于\"Mpx 小程序框架\"的移动端基础组件库","archived":false,"fork":false,"pushed_at":"2025-06-09T03:18:39.000Z","size":2888,"stargazers_count":40,"open_issues_count":3,"forks_count":4,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-06-09T04:28:01.108Z","etag":null,"topics":["h5","mini-program","mpx"],"latest_commit_sha":null,"homepage":"https://www.mpxjs.cn/mpx-cube-ui/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/didi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2024-03-13T09:11:12.000Z","updated_at":"2025-06-05T06:34:21.000Z","dependencies_parsed_at":"2025-02-05T10:20:18.946Z","dependency_job_id":"9d2f6152-fb87-49cd-b5ff-8b66951b6c82","html_url":"https://github.com/didi/mpx-cube-ui","commit_stats":null,"previous_names":["didi/mpx-cube-ui"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/didi/mpx-cube-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fmpx-cube-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fmpx-cube-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fmpx-cube-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fmpx-cube-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/didi","download_url":"https://codeload.github.com/didi/mpx-cube-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/didi%2Fmpx-cube-ui/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260016055,"owners_count":22946321,"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","mini-program","mpx"],"created_at":"2025-06-15T17:10:58.872Z","updated_at":"2025-06-15T17:10:59.852Z","avatar_url":"https://github.com/didi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 介绍\n\nmpx-cube-ui 是基于 [Mpx 小程序框架](https://www.mpxjs.cn/) 的移动端基础组件库，一份源码可以跨端输出所有小程序平台及 Web。\n## 官网\n欢迎访问 [mpx-cube-ui 官网](https://www.mpxjs.cn/mpx-cube-ui/)，跟随我们提供的文档指南使用 mpx-cube-ui 组件库进行跨端小程序开发。\n\n## 安装\n```shell\nnpm install @mpxjs/mpx-cube-ui\n```\n\n## 使用组件\n\n以按钮组件为例，只需要在 mpx 单文件的 json 配置中引入按钮对应的自定义组件：\n\n```javascript\n// your-page.mpx\n\u003ctemplate\u003e\n  \u003ccube-button\u003e\u003c/cube-button\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport { createPage } from '@mpxjs/component'\n\ncreatePage({})\n\u003c/script\u003e\n\n\u003cscript type=\"application/json\"\u003e\n  {\n    \"usingComponents\": {\n      \"cube-button\": \"@mpxjs/mpx-cube-ui/lib/components/button/index.mpx\"\n    }\n  }\n\u003c/script\u003e\n```\n\n## 组件库预览\n\n```shell\n// 安装依赖\npnpm install\n\n// 启动示例代码编译\npnpm run example:dev\n```\n\n在小程序开发者工具中导入 `dist` 目录下代码即可或者通过控制输出 url 地址在本地浏览器预览。\n\n## 链接\n\n* [意见反馈](https://github.com/didi/mpx-cube-ui/issues)\n* [更新日志](/docs/guide/changelog.md)\n* [联系我们](/docs/guide/contact.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2Fmpx-cube-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdidi%2Fmpx-cube-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdidi%2Fmpx-cube-ui/lists"}