ElementPlus的使用
1.安装element-plus框架npm install element-plus2.全局引入:在main.js文件中引入element plus组件import { createApp } from 'vue'import App from './App.vue'import ElementPlus from 'element-plus'import 'element-plus/dist/in
·
1.安装element-plus框架
npm install element-plus
2.全局引入:在main.js文件中引入element plus组件
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from "@/router";
import './assets/css/global.css'
createApp(App).use(ElementPlus).use(router).mount('#app')
使用提示框时,要在使用的组件中引入
import { ElMessage } from 'element-plus'
更多推荐
已为社区贡献2条内容
所有评论(0)