From dd777aa457cae3813b0689c31220d2a5e46d129b Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Thu, 7 Sep 2023 22:02:49 +0800 Subject: [PATCH] fix: fix icons type --- src/components.d.ts | 4 ++-- src/plugins/icon.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }