diff --git a/src/components.d.ts b/src/components.d.ts index 549a0f69..fe4add54 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -1,7 +1,7 @@ -import { icons } from '@/plugins/icon' +import type { Icons } from '@/plugins/icon' declare module 'vue' { - export type GlobalComponents = typeof icons + export type GlobalComponents = Icons } export {} \ No newline at end of file diff --git a/src/plugins/icon.ts b/src/plugins/icon.ts index 20c1c556..53934bc3 100644 --- a/src/plugins/icon.ts +++ b/src/plugins/icon.ts @@ -118,7 +118,7 @@ import { Right, } from '@icon-park/vue-next' -interface Icons { +export interface Icons { [key: string]: typeof PlayOne }