张敏 034c66a77f 修复表单组件样式和单元测试用例 (#7)
* fix: loading small style, search style and dialog style

* fix: scroll to top

* fix mobile scroll

* fix scroll to top

* 文档细节优化

* unit test

* dialog and image-preview unit test

* fix form component style

* fix radio and checkbox style

* fix search component style
2017-04-24 17:33:40 +08:00
2017-04-20 10:38:29 +08:00
2017-04-24 10:43:56 +08:00
2017-04-24 10:03:36 +08:00
2017-02-27 20:23:53 +08:00
2017-03-03 14:47:16 +08:00
2017-02-20 01:10:00 +08:00
2017-04-13 17:03:00 +08:00
2017-04-21 21:26:18 +08:00
2017-01-15 16:15:53 +08:00
2017-03-20 21:59:28 +08:00
2016-12-27 20:11:05 +08:00
2017-04-20 10:38:29 +08:00
2017-03-02 17:30:55 +08:00
2017-04-24 10:03:37 +08:00
2017-04-20 20:03:20 +08:00
2017-04-20 19:42:30 +08:00

有赞logo

项目logo

A Vue.js 2.0 Mobile UI at YouZan

Build Status npm version downloads

一、安装

npm i -S vant

二、使用

1. 导入所有组件

import Vue from 'vue';
import vant from 'vant';
// 你也可以使用自己的主题
import 'vant/lib/vant-css/index.css';

Vue.use(vant);

2. 按需导入组件

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);

三、开发

1. 新建一个组件

make init componentName

2. 示例预览

docs/nav.config.json文件里合适的地方写入组件声明根据组件类型JS组件CSS组件Form等进行区分 在docs/examples-docs目录里新建同名的md文件waterfall.md在项目的根目录下执行以下命令启动server

npm run dev

浏览器访问http://localhost:8080就可以看到所有组件的示例了。

四、开源协议

本项目基于 MIT 协议,请自由地享受和参与开源。

Description
No description provided
Readme MIT 102 MiB
Languages
TypeScript 63.5%
Vue 16.7%
Less 11.7%
JavaScript 7.7%
HTML 0.2%
Other 0.1%