Plug-element-ui

element-ui is similar BootStrap framework, the former is used in vue project, which is used in the original project, of course, can also be used in the project vue

Environment to build:

1) installed: a terminal at the distal end project root

cnpm install element-ui

2) Configuration: main.js

import elements from 'element-ui'
Vue.use (components);
import 'element-ui/lib/theme-chalk/index.css';

3) Use: According to the official API interface

Guess you like

Origin www.cnblogs.com/baohanblog/p/12319768.html