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 = ( @@ -7,6 +8,8 @@ const initDefaultProps = ( ? U : T[K] extends VueTypeDef ? U + : T[K] extends { type: PropType } + ? U : any; }, ): T => {