Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jefth/vant

 
 

Repository files navigation

有赞logo

项目logo

A Vue.js 2.0 Mobile UI at YouZan

Build Status Coverage Status npm version downloads

访问中文版

Install

npm i -S vant

Usage

Import all components

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

Vue.use(vant);

On demand

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

Development

Add a new component

make init componentName

Start coding

Start development mode:

npm run dev

Visit http://localhost:8080 to see an example of all components.

Preview

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

zanui_vue_mobile_qrcode

LICENSE

MIT

About

A Vue.js 2.0 Mobile UI From YouZan

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.7%
  • Vue 27.8%
  • CSS 15.9%
  • Shell 1.5%
  • Makefile 0.1%