README.md 2.5 KB
Newer Older
A
AmyFoxFN 已提交
1 2

# cube-ui [![Build Status](https://travis-ci.org/didi/cube-ui.svg?branch=master)](https://travis-ci.org/didi/cube-ui?branch=master) [![codecov.io](http://codecov.io/github/didi/cube-ui/coverage.svg?branch=master)](http://codecov.io/github/didi/cube-ui?branch=master) [![downloads](https://img.shields.io/npm/dm/cube-ui.svg)](https://www.npmjs.com/package/cube-ui)
M
init  
miaodian 已提交
3 4 5 6 7 8 9 10

> A fantastic mobile ui lib implement by Vue.

### Links

- [Home](https://didi.github.io/cube-ui/)
- [Docs](https://didi.github.io/cube-ui/#/en-US/docs)
- [Example](https://didi.github.io/cube-ui/example/)
D
dolymood 已提交
11

D
dolymood 已提交
12
  ![Example QR](./assets/example-qr.png)
D
dolymood 已提交
13

D
dolymood 已提交
14
- [Application Guide](https://github.com/cube-ui/cube-application-guide)
M
init  
miaodian 已提交
15

F
funanamy 已提交
16 17 18 19
### Communication

![QQ Community QR](./assets/cube-qq-QR.jpg)

D
add CLI  
dolymood 已提交
20 21 22 23 24 25 26 27
### New cube-ui project ?

Recommend use the [CLI tools](https://github.com/cube-ui/cube-template) base on [vue-cli](https://github.com/vuejs/vue-cli) to init the config and base code:

```shell
$ vue init cube-ui/cube-template projectname
```

M
init  
miaodian 已提交
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
### Install

```shell
npm install cube-ui --save
```

### Usage

```js
import Vue from 'vue'
import Cube from 'cube-ui'

Vue.use(Cube)
```

#### Use modularized cube-ui

```js
import Vue from 'vue'
D
dolymood 已提交
47 48 49 50 51 52
import {
  /* eslint-disable no-unused-vars */
  Style,
  Button,
  ActionSheet
} from 'cube-ui'
M
init  
miaodian 已提交
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

Vue.use(Button)
Vue.use(ActionSheet)
```

For more information, please refer to [Quick Start](https://didi.github.io/cube-ui/#/en-US/docs/quick-start)


### Development

```shell
git clone git@github.com:didi/cube-ui.git
cd cube-ui
npm install
npm run dev
D
dolymood 已提交
68 69
# or run document development
npm run doc-dev
M
init  
miaodian 已提交
70 71 72 73 74
```

### Changelog

Detailed changes for each release are documented in the [release notes](https://github.com/didi/cube-ui/releases).
D
doly mood 已提交
75 76 77 78

### DiDi Open Sources

- [Mpx](https://github.com/didi/mpx): An enhanced miniprogram framework with data reactivity and deep optimizition.
D
doly mood 已提交
79 80 81 82 83
- [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.
- [mand-mobile](https://github.com/didi/mand-mobile): A mobile UI toolkit, based on Vue.js 2, designed for financial scenarios.
- [DoraemonKit](https://github.com/didi/DoraemonKit)/'dɔ:ra:'emɔn/: A full-featured App (iOS & Android) development assistant. You deserve it.
- [Booster](https://github.com/didi/booster): An easy-to-use, lightweight, powerful and extensible quality optimization toolkit designed specially for mobile applications.
- [More repos](https://github.com/didi/)