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 :那么我们引用一部分样式看看:

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 :那么我们引用一部分样式看看:
本文标题:vue中element-ui的使用
本文链接:https://www.haomeiwen.com/subject/isymdxtx.html
网友评论