mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-12 18:15:07 +08:00
feat: add vue3(element-plus)
This commit is contained in:
17
yudao-ui-admin-vue3/src/plugins/elementPlus/index.ts
Normal file
17
yudao-ui-admin-vue3/src/plugins/elementPlus/index.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import type { App } from 'vue'
|
||||
// 需要全局引入一些组件,如ElScrollbar,不然一些下拉项样式有问题
|
||||
import { ElLoading, ElScrollbar, ElButton } from 'element-plus'
|
||||
|
||||
const plugins = [ElLoading]
|
||||
|
||||
const components = [ElScrollbar, ElButton]
|
||||
|
||||
export const setupElementPlus = (app: App<Element>) => {
|
||||
plugins.forEach((plugin) => {
|
||||
app.use(plugin)
|
||||
})
|
||||
|
||||
components.forEach((component) => {
|
||||
app.component(component.name, component)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user