From 1f07048713d979ec8920c0bd637876ba449b5286 Mon Sep 17 00:00:00 2001 From: yuntian001 Date: Wed, 29 Mar 2023 17:30:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/global.d.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/types/global.d.ts b/types/global.d.ts index cefe9e01..7aa4e2cb 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -1,4 +1,4 @@ -export {}; +import { DefineComponent } from 'vue'; declare global { //unplugin-auto-import的Element是在页面加载到的时候才生成类型,这里全局声明一下 const ElLoading: typeof import('element-plus/es')['ElLoading']; @@ -10,13 +10,11 @@ declare global { size: (StringConstructor | NumberConstructor)[]; color: StringConstructor; }>; - /* eslint-disable */ - declare const __SSR__: boolean; - declare const __DEV__: boolean; - declare const __COMPAT__: boolean; - // Feature flags - declare const __FEATURE_PROD_DEVTOOLS__: boolean; - declare const __FEATURE_SUSPENSE__: boolean; - /* eslint-disable */ + type ComponentProps = { + -readonly [K in keyof Omit< + InstanceType['$props'], + keyof InstanceType['$props'] + >]: InstanceType['$props'][K]; + }; }