From d0429737bd26a5c910661daa2fa252a5fc53f6e8 Mon Sep 17 00:00:00 2001
From: Amour1688 <lcz_1996@foxmail.com>
Date: Wed, 28 Oct 2020 15:46:00 +0800
Subject: [PATCH] chore: optimize initDefaultProps type

---
 components/_util/props-util/initDefaultProps.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/components/_util/props-util/initDefaultProps.ts b/components/_util/props-util/initDefaultProps.ts
index b42c50808..17ff85939 100644
--- a/components/_util/props-util/initDefaultProps.ts
+++ b/components/_util/props-util/initDefaultProps.ts
@@ -1,3 +1,4 @@
+import { PropType } from 'vue';
 import { VueTypeValidableDef, VueTypeDef } from 'vue-types';
 
 const initDefaultProps = <T>(
@@ -7,6 +8,8 @@ const initDefaultProps = <T>(
       ? U
       : T[K] extends VueTypeDef<infer U>
       ? U
+      : T[K] extends { type: PropType<infer U> }
+      ? U
       : any;
   },
 ): T => {