types: fix type error

This commit is contained in:
ckl1
2022-06-06 11:15:31 +08:00
parent a4526d7cb4
commit d66f12e0e7
5 changed files with 14 additions and 14 deletions

View File

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