src/plugins/elementPlus/index.ts
@@ -1,6 +1,8 @@ import type { App } from 'vue' // 需要全局引入一些组件,如ElScrollbar,不然一些下拉项样式有问题 import { ElLoading, ElScrollbar, ElButton } from 'element-plus' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' const plugins = [ElLoading] @@ -14,4 +16,6 @@ components.forEach((component) => { app.component(component.name, component) }) app.use(ElementPlus) }