A Vue.js 2.0 Mobile UI at YouZan
npm i -S vantimport Vue from 'vue';
import vant from 'vant';
import 'vant/lib/vant-css/index.css';
Vue.use(vant);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);make init componentNameStart development mode:
npm run devVisit http://localhost:8080 to see an example of all components.
You can scan the following QR code to access the demo: