Element UI 基本使用
2021-03-23 本文已影响0人
会飞的笨企鹅
Element ui 基本使用:
基于命令行方式:
1. 安装依赖包
npm i element-ui -S
2. 编译项目
npm run serve
3. 解决 To install it, you can run: npm install --save core-js/modules/es.object.to-string 报错

解决办法:更新依赖包
npm install core-js@3.6.4
4. 导入相关资源
// 手动配置element ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
基于可视化页面:
