2021-05-11 17:53:59 +08:00
< p align = "center" > < img width = "80" src = "https://pt-starimg.didistatic.com/static/starimg/img/BSHOVw2pyT1620726744938.png" alt = "LOGO" > < / p >
2019-04-17 15:37:28 +08:00
< h2 align = "center" > mand-mobile< / h2 >
< p align = "center" > A mobile UI toolkit, based on Vue.js 2, designed for financial scenarios< / p >
< p align = "center" >
< 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 >
< 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 >
< 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 >
< 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 >
2020-04-09 16:36:47 +08:00
< 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 >
2019-04-17 15:37:28 +08:00
< 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 >
< br / >
< 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 >
< 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 >
< / p >
< p align = "center" > < img src = "https://pt-starimg.didistatic.com/static/starimg/img/toa8XOspJG1555486253802.png" width = "800" > < / p >
< br / >
2018-12-12 17:24:41 +08:00
**English** | [中文 ](./README.zh-CN.md )
2018-03-26 16:04:04 +08:00
## Links
* [Home ](https://didi.github.io/mand-mobile/ )
2018-05-07 17:44:02 +08:00
* [Development Guide ](site/docs/development.md )
2018-03-26 16:04:04 +08:00
* [Change Log ](CHANGELOG.md )
2018-03-29 12:42:27 +08:00
* [Examples ](https://didi.github.io/mand-mobile/examples/ )
2018-06-13 11:28:19 +08:00
* [Palette ](https://github.com/mand-mobile/palette )
2018-12-12 17:24:41 +08:00
* [Mand Mobile Organization ](https://github.com/mand-mobile )
2018-03-26 16:04:04 +08:00
2018-05-07 17:44:02 +08:00
## Preview
You can scan the following QR code to access the examples:
2018-12-14 19:51:38 +08:00
< img src = "https://manhattan.didistatic.com/static/manhattan/mand-mobile/2.0/docs/mand-doc-home-qrcode.png" alt = "Mand Mobile Examples" width = "200" / >
2018-03-26 16:04:04 +08:00
## Install & Usage
2018-05-07 17:44:02 +08:00
### Template for new project
2018-08-01 14:13:38 +08:00
#### Vue CLI 2
New project can be initialized and integrated with mand-mobile by [vue-cli-2 ](https://github.com/vuejs/vue-cli/tree/v2 ) with [mand-mobile-template ](https://github.com/mand-mobile/mand-mobile-template ).
2018-05-07 17:44:02 +08:00
```bash
vue init mand-mobile/mand-mobile-template my-project
```
2018-08-01 14:13:38 +08:00
#### Vue CLI 3
New project can be initialized and integrated with mand-mobile by [vue-cli ](https://github.com/vuejs/vue-cli/tree/master ) with [vue-cli-plugin-mand ](https://github.com/mand-mobile/vue-cli-plugin-mand ).
```bash
vue create my-project
cd my-project
npm install --save-dev vue-cli-plugin-mand
vue invoke mand
```
### Manually
2018-03-26 16:04:04 +08:00
2018-05-07 17:44:02 +08:00
```bash
2018-03-26 16:04:04 +08:00
npm install mand-mobile --save
```
### Import
* Use < a href = "https://github.com/ant-design/babel-plugin-import" target = "_blank" > babel-plugin-import</ a >
or
< a href = "https://github.com/Brooooooklyn/ts-import-plugin" target = "_blank" > ts-import-plugin< / a > (Recommended)
```javascript
import { Button } from 'mand-mobile'
```
* Manually import
```javascript
import Button from 'mand-mobile/lib/button'
```
* Totally import
```javascript
import Vue from 'vue'
import mandMobile from 'mand-mobile'
import 'mand-mobile/lib/mand-mobile.css'
Vue.use(mandMobile)
```
2018-05-07 17:44:02 +08:00
### Usage
2019-07-22 11:35:35 +08:00
Select the components you need to build your webapp. Find more details in [Quick Start ](https://didi.github.io/mand-mobile/#/en-US/docs/started ).
2018-03-29 16:25:01 +08:00
## Development
2018-05-07 17:44:02 +08:00
```bash
2018-03-29 16:25:01 +08:00
git clone git@github.com:didi/mand-mobile.git
cd mand-mobile
npm install
npm run dev
```
2019-07-22 11:35:35 +08:00
Open your browser and visit http://127.0.0.1:4000. Find more details in [Development Guide ](https://didi.github.io/mand-mobile/#/en-US/docs/development ).
2018-03-29 16:25:01 +08:00
2018-12-12 17:24:41 +08:00
## Contributing [](https://github.com/didi/mand-mobile/pulls)
2018-03-29 16:25:01 +08:00
Welcome to contribute by creating issues or sending pull requests. See [Contributing Guide ](CONTRIBUTING.md ) for guidelines.
2018-12-12 17:24:41 +08:00
## Community
2021-12-22 15:15:38 +08:00
< img src = "https://pt-starimg.didistatic.com/static/starimg/img/tuDKFjM2at1640157275725.png" alt = "Mand Mobile Community" width = "200" / >
2018-12-12 17:24:41 +08:00
2018-03-29 16:42:20 +08:00
## License
2020-03-05 11:58:05 +08:00
Mand Mobile is licensed under the Apache License 2.0. See the [LICENSE ](LICENSE ) file.
2020-04-09 16:36:47 +08:00
## Useful Links
2020-03-05 11:58:05 +08:00
2021-05-11 17:53:59 +08:00
* [Hummer ](https://github.com/didi/Hummer ) is a set of high-performance and highly available cross-terminal development framework, a set of code can support the development of Android and iOS applications at the same time. Now supports Vue/TypeScript/JavaScript, for front-end developers, there is always one suitable for you.
2020-03-05 11:58:05 +08:00
2021-05-11 17:53:59 +08:00
* [DoraemonKit ](https://github.com/didi/DoraemonKit ) /'dɔ:ra:'emɔn/: A full-featured App (iOS & Android) development assistant. You deserve it.
2020-03-05 11:58:05 +08:00
2021-12-22 15:15:38 +08:00
* [Chameleon ](https://github.com/didi/chameleon ) /kəˈ miː lɪ ən/: Unify all platforms(Web/Weex/Mini program) with MVVM. Focus on Write Once Run AnyWhere.