wip(VForm): VForm component development
This commit is contained in:
16
src/plugins/elementPlus/index.ts
Normal file
16
src/plugins/elementPlus/index.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { App } from 'vue'
|
||||
|
||||
// 需要全局引入一些组件,如ElScrollbar,不然一些下拉项样式有问题
|
||||
import { ElLoading, ElScrollbar } from 'element-plus'
|
||||
|
||||
const plugins = [ElLoading]
|
||||
const components = [ElScrollbar]
|
||||
|
||||
export function setupElementPlus(app: App) {
|
||||
plugins.forEach((plugin) => {
|
||||
app.use(plugin)
|
||||
})
|
||||
components.forEach((component) => {
|
||||
app.component(component.name, component)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user