@@@@@@
This commit is contained in:
17
library/index.ts
Normal file
17
library/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { createHead } from '@vueuse/head'
|
||||
// import ElementPlus from 'element-plus'
|
||||
import 'virtual:svg-icons-register'
|
||||
import { VabIcon } from 'vsv-icon'
|
||||
import type { App } from 'vue'
|
||||
import './styles/vab.scss'
|
||||
|
||||
export const setupVab = (app: App<Element>) => {
|
||||
// app.use(ElementPlus)
|
||||
app.use(createHead())
|
||||
app.component('VabIcon', VabIcon)
|
||||
const Plugins = import.meta.glob('./plugins/*.ts', { eager: true })
|
||||
Object.getOwnPropertyNames(Plugins).forEach((key) => {
|
||||
const plugin: any = Plugins[key]
|
||||
app.use(plugin.default)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user