1 | <div align="center"><img width="80" src="https://pt-starimg.didistatic.com/static/starimg/img/BSHOVw2pyT1620726744938.png" alt="LOGO"></div>
|
2 | <h2 align="center">mand-mobile</h2>
|
3 | <p align="center">面向金融场景的移动端UI组件库,基于Vue.js实现</p>
|
4 | <p align="center">
|
5 | <a href="https://travis-ci.org/didi/mand-mobile"><img src="https://img.shields.io/travis/didi/mand-mobile/master.svg?style=flat-square" alt="Build Status"></a>
|
6 | <a href="https://codecov.io/gh/didi/mand-mobile"><img src="https://img.shields.io/codecov/c/github/didi/mand-mobile/master.svg?style=flat-square" alt="codecov"></a>
|
7 | <a href="https://www.npmjs.org/package/mand-mobile"><img src="https://img.shields.io/npm/v/mand-mobile.svg?style=flat-square" alt="npm package"></a>
|
8 | <a href="https://www.npmjs.org/package/mand-mobile"><img src="http://img.shields.io/npm/dm/mand-mobile.svg?style=flat-square" alt="npm downloads"></a>
|
9 | <a href="https://www.jsdelivr.com/package/npm/mand-mobile"><img src="https://data.jsdelivr.com/v1/package/npm/mand-mobile/badge" alt="jsdelivr"></a>
|
10 | <a href="https://www.npmjs.org/package/mand-mobile"><img src="https://img.shields.io/npm/l/mand-mobile.svg?style=flat-square" alt="License"></a>
|
11 | <br/>
|
12 | <a href="https://unpkg.com/mand-mobile/"><img src="http://img.badgesize.io/https://unpkg.com/mand-mobile/lib/mand-mobile.umd.js?compression=gzip&label=gzip%20size:%20JS&style=flat-square" alt="gzip js size"></a>
|
13 | <a href="https://unpkg.com/mand-mobile/"><img src="http://img.badgesize.io/https://unpkg.com/mand-mobile/lib/mand-mobile.css?compression=gzip&label=gzip%20size:%20CSS&style=flat-square" alt="gzip css size"></a>
|
14 | </p>
|
15 | <div align="center"><img src="https://pt-starimg.didistatic.com/static/starimg/img/toa8XOspJG1555486253802.png" width="800"></div>
|
16 | <br/>
|
17 |
|
18 | [English](./README.md) | **中文**
|
19 |
|
20 | ## 链接
|
21 |
|
22 | * [首页](https://didi.github.io/mand-mobile/)
|
23 | * [开发指南](site/docs/development.md)
|
24 | * [更新日志](CHANGELOG.md)
|
25 | * [示例集合](https://didi.github.io/mand-mobile/examples/)
|
26 | * [调色板](https://github.com/mand-mobile/palette)
|
27 | * [更多](https://github.com/mand-mobile)
|
28 |
|
29 | ## 预览
|
30 |
|
31 | 扫描下方二维码,打开示例集合进行预览:
|
32 |
|
33 | <img src="https://manhattan.didistatic.com/static/manhattan/mand-mobile/2.0/docs/mand-doc-home-qrcode.png" alt="Mand Mobile Examples" width="200"/>
|
34 |
|
35 | ## 安装 & 使用
|
36 |
|
37 | ### CLI
|
38 |
|
39 | #### Vue CLI 2
|
40 | 通过[mand-mobile-template](https://github.com/mand-mobile/mand-mobile-template)创建新项目。
|
41 |
|
42 | ```bash
|
43 | vue init mand-mobile/mand-mobile-template my-project
|
44 | ```
|
45 |
|
46 | #### Vue CLI 3
|
47 | 通过[vue-cli-plugin-mand](https://github.com/mand-mobile/vue-cli-plugin-mand)向 Vue CLI 3 新建的项目里初始化。(默认支持按需引用)
|
48 |
|
49 | ```bash
|
50 | vue create my-project
|
51 | cd my-project
|
52 | npm install --save-dev vue-cli-plugin-mand
|
53 | vue invoke mand
|
54 | ```
|
55 |
|
56 | ### 手动安装
|
57 | 在已有项目里手动安装 Mand Mobile 的包。
|
58 |
|
59 | ```bash
|
60 | npm install mand-mobile --save
|
61 | ```
|
62 |
|
63 | ### 引入
|
64 |
|
65 | * 使用 <a href="https://github.com/ant-design/babel-plugin-import" target="_blank">babel-plugin-import</a>
|
66 | 或
|
67 | <a href="https://github.com/Brooooooklyn/ts-import-plugin" target="_blank">ts-import-plugin</a> (推荐)
|
68 |
|
69 | ```javascript
|
70 | import { Button } from 'mand-mobile'
|
71 | ```
|
72 |
|
73 | * 按需引入
|
74 |
|
75 | ```javascript
|
76 | import Button from 'mand-mobile/lib/button'
|
77 | ```
|
78 |
|
79 | * 全量引入
|
80 |
|
81 | ```javascript
|
82 | import Vue from 'vue'
|
83 | import mandMobile from 'mand-mobile'
|
84 | import 'mand-mobile/lib/mand-mobile.css'
|
85 |
|
86 | Vue.use(mandMobile)
|
87 | ```
|
88 |
|
89 | ### 使用
|
90 |
|
91 | 选择需要的组件开始构建您的webapp,详细内容请查看[快速上手](https://didi.github.io/mand-mobile/#/zh-CN/docs/started)。
|
92 |
|
93 | ## 开发
|
94 |
|
95 | ```bash
|
96 | git clone git@github.com:didi/mand-mobile.git
|
97 | cd mand-mobile
|
98 | npm install
|
99 | npm run dev
|
100 | ```
|
101 | 打开浏览器访问http://127.0.0.1:4000, 详细内容请查看[开发指南](https://didi.github.io/mand-mobile/#/zh-CN/docs/development)。
|
102 |
|
103 | ## 贡献 [![PR](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/didi/mand-mobile/pulls)
|
104 |
|
105 | 如有任何的意见或建议,欢迎您通过创建Issue或Pull Request的方式告知我们,请先阅读[贡献指南](CONTRIBUTING.md)。
|
106 |
|
107 | ## 社区
|
108 |
|
109 | <img src="https://pt-starimg.didistatic.com/static/starimg/img/KitzF6QlrR1543994331272.jpg" alt="Mand Mobile Community" width="200"/>
|
110 |
|
111 | ## 证书
|
112 | Mand Mobile使用Apache License 2.0,查看[证书](LICENSE)。
|
113 |
|
114 | ## 友情链接
|
115 |
|
116 | * [Hummer](https://github.com/didi/Hummer)是一套高性能高可用的跨端开发框架,一套代码可以同时支持开发 Android 和 iOS 应用。现已经支持 Vue/TypeScript/JavaScript,面向大前端开发人员,总有一款适合你。
|
117 |
|
118 | * [DoraemonKit](https://github.com/didi/DoraemonKit) /'dɔ:ra:'emɔn/,简称DoKit, 一款功能齐全的客户端( iOS 、Android、微信小程序 )研发助手,你值得拥有。
|
119 |
|
120 | * [Chameleon](https://github.com/didi/chameleon)/kəˈmiːlɪən/,简写CML,中文意思变色龙,意味着就像变色龙一样能适应不同环境的跨端整体解决方案,达到真正意义上"一套代码,多端运行"的终极目标。 |
\ | No newline at end of file |