vant/README.md
Yao c0ed30e7be [new feature] Docs: 增加 contribute 指南 (#182)
* add contribute doc

* fix url path

* 文档格式调整

* readme 标题修改

* contribute guide for english

* contribute for english

* add pr & issue guildlines

* change title && add pr & issue in zh_CN.md

* add desc in zh_CN

* add zh-CN markdown
2017-10-10 14:39:58 +08:00

2.0 KiB
Raw Blame History

有赞logo

项目logo

A Vue.js 2.0 Mobile UI at YouZan

Build Status Coverage Status npm version downloads

访问中文版

Install

npm i -S vant

Usage

// .babelrc or babel-loader option
{
  "plugins": [
    ["import", { "libraryName": "vant", "style": true }]
  ]
}

Then you can import components from vant, equivalent to import manually below.

// import js and css modularly, parsed by babel-plugin-import
import { Button } from 'vant';

Manually import

import { Button } from 'vant';
import 'vant/lib/vant-css/button.css';

Import all components

import Vue from 'vue';
import vant from 'vant';
import 'vant/lib/vant-css/index.css';

Vue.use(vant);

How to contribute

Please make sure to read the Contributing Guide before making a pull request.

Preview

You can scan the following QR code to access the demo

zanui_vue_mobile_qrcode

LICENSE

MIT