ソースを参照

add: 把Icon、DictTag添加到全局

puhui999 1 年間 前
コミット
2c50854be1
1 ファイル変更2 行追加1 行削除
  1. 2 1
      types/components.d.ts

+ 2 - 1
types/components.d.ts

@@ -1,6 +1,7 @@
 declare module 'vue' {
   export interface GlobalComponents {
-    Icon: typeof import('../components/Icon/src/Icon.vue')['default']
+    Icon: typeof import('@/components/Icon')['Icon']
+    DictTag: typeof import('@/components/DictTag')['DictTag']
   }
 }