Go to file
xuxiaoyan f6ea2e237b build: update version 2018-11-20 19:43:53 +08:00
.github feature:update issue template 2018-06-08 23:19:15 +08:00
build build: update new component create template 2018-11-13 19:40:00 +08:00
components doc(check): fix format problem 2018-11-20 19:43:38 +08:00
config Initial commit 2018-03-26 16:04:04 +08:00
docs fix: code clean up 2018-09-28 15:37:15 +08:00
examples example: update style 2018-11-20 11:30:53 +08:00
site example: update style 2018-11-20 19:42:55 +08:00
static Initial commit 2018-03-26 16:04:04 +08:00
test/unit build:update karma configuration 2018-06-30 17:39:30 +08:00
types fix(types): fix type declaration 2018-08-01 18:51:38 +08:00
.babelrc resolve conflict 2018-10-15 20:37:47 +08:00
.editorconfig Initial commit 2018-03-26 16:04:04 +08:00
.eslintignore Initial commit 2018-03-26 16:04:04 +08:00
.eslintrc.js Initial commit 2018-03-26 16:04:04 +08:00
.gitignore resolve conflict 2018-10-15 20:37:47 +08:00
.travis.yml Update CI 2018-04-11 16:41:58 +08:00
CHANGELOG.en-US.md doc:add a version number identifier for new features 2018-06-28 00:21:08 +08:00
CHANGELOG.md doc:add a version number identifier for new features 2018-06-28 00:21:08 +08:00
CONTRIBUTING.md Initial commit 2018-03-26 16:04:04 +08:00
LICENSE Initial commit 2018-03-26 16:04:04 +08:00
README.md Update README 2018-08-01 14:13:38 +08:00
README.zh-CN.md Update README 2018-08-01 14:13:38 +08:00
gulpfile.js Initial commit 2018-03-26 16:04:04 +08:00
package.json build: update version 2018-11-20 19:43:53 +08:00
postcss.config.js feat: pxtorem: set min pixel value as 2 2018-09-15 23:49:28 +08:00

README.md

English | 中文


mand-mobile

Build Status codecov npm package npm downloads gzip js size gzip css size

A mobile UI toolkit, based on Vue.js 2, is designed for financial scenarios.

Preview

You can scan the following QR code to access the examples:

Mand Mobile Examples

Install & Usage

Template for new project

Vue CLI 2

New project can be initialized and integrated with mand-mobile by vue-cli-2 with mand-mobile-template.

vue init mand-mobile/mand-mobile-template my-project

Vue CLI 3

New project can be initialized and integrated with mand-mobile by vue-cli with vue-cli-plugin-mand.

vue create my-project
cd my-project
npm install --save-dev vue-cli-plugin-mand
vue invoke mand

Manually

npm install mand-mobile --save

Import

import { Button } from 'mand-mobile'
  • Manually import
import Button from 'mand-mobile/lib/button'
  • Totally import
import Vue from 'vue'
import mandMobile from 'mand-mobile'
import 'mand-mobile/lib/mand-mobile.css'

Vue.use(mandMobile)

CDN

<link rel="stylesheet" href="https://unpkg.com/mand-mobile/lib/mand-mobile.css">
<script src="https://unpkg.com/mand-mobile/lib/mand-mobile.umd.js"></script>

Usage

Select the components you need to build your webapp. Find more details in Component Preview and Quick Start.

Development

git clone git@github.com:didi/mand-mobile.git
cd mand-mobile
npm install
npm run dev

Open your browser and visit http://127.0.0.1:4000. Find more details in Development Guide.

Contributing

Welcome to contribute by creating issues or sending pull requests. See Contributing Guide for guidelines.

License

Mand Mobile is licensed under the Apache License 2.0. See the LICENSE file.