fix(compile-sfc): support Date prop type with defineProps (#4519)

This commit is contained in:
webfansplz
2021-09-06 06:13:12 +08:00
committed by GitHub
parent 14d65181f1
commit fac9a2926d
3 changed files with 5 additions and 0 deletions

View File

@@ -1515,6 +1515,7 @@ function inferRuntimeType(
case 'Map':
case 'WeakSet':
case 'WeakMap':
case 'Date':
return [node.typeName.name]
case 'Record':
case 'Partial':