vue中element-ui的使用
2019-02-21 本文已影响0人
黪嫒
1.首先第一步是下载:npm i element-ui –S

2.在main.js中引入js和css
import ElementUI from ‘element-ui’;
import ‘element-ui/lib/theme-chalk/index.css’;

3.让vue引用Element ui
Vue.use(ElementUI);

4.然后,我们就可以使用Element :那么我们引用一部分样式看看:
