vant/docs/examples-docs/quickstart.md
张敏 bdbaa75b38 文档小细节优化 (#6)
* fix: loading small style, search style and dialog style

* fix: scroll to top

* fix mobile scroll

* fix scroll to top

* 文档细节优化
2017-04-24 10:43:56 +08:00

552 B

Vant

一套Vue 2.0的基础组件。
A collection of essential UI components written with Vue 2.0.

安装

npm i vant -S

引入组件

完整引入

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

Vue.use(ZanUI);

按需引入

import Vue from 'vue';
import { Button, Cell } from 'vant';
import 'vant/lib/vant-css/button.css';
import 'vant/lib/vant-css/cell.css';

Vue.component(Button.name, Button);
Vue.component(Cell.name, Cell);