Ver código fonte

fix: 修复类型推导错误

kailong321200875 1 ano atrás
pai
commit
649fb17d00
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/plugins/elementPlus/index.ts

+ 1 - 1
src/plugins/elementPlus/index.ts

@@ -13,6 +13,6 @@ export const setupElementPlus = (app: App<Element>) => {
   })
 
   components.forEach((component) => {
-    app.component(component.name, component)
+    app.component(component.name!, component)
   })
 }