types: fix types error

This commit is contained in:
kailong321200875
2022-06-09 20:31:51 +08:00
parent d88e051434
commit 586486a68d
5 changed files with 14 additions and 14 deletions

View File

@@ -1,13 +1,13 @@
import type { AppContext, Plugin } from 'vue'
import type { App } from 'vue'
// 需要全局引入一些组件如ElScrollbar不然一些下拉项样式有问题
import { ElLoading, ElScrollbar } from 'element-plus'
const plugins = [ElLoading] as Plugin[]
const plugins = [ElLoading]
const components = [ElScrollbar]
export const setupElementPlus = (app: AppContext['app']) => {
export const setupElementPlus = (app: App<Element>) => {
plugins.forEach((plugin) => {
app.use(plugin)
})