wip(VForm): VForm component development

This commit is contained in:
陈凯龙
2021-12-16 17:15:03 +08:00
parent d71bc5d6f5
commit 69909e2832
12 changed files with 309 additions and 40 deletions

View 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)
})
}