File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ defineProps<{
492492</script> 
493493``` 
494494
495- ` generic `  的值与 TypeScript 中位于 ` <...> `  之间的参数列表完全相同。例如,您可以使用多个参数 ,` extends `  约束,默认类型和引用导入的类型:
495+ ` generic `  的值与 TypeScript 中位于 ` <...> `  之间的参数列表完全相同。例如,你可以使用多个参数 ,` extends `  约束,默认类型和引用导入的类型:
496496
497497``` vue 
498498<script 
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ const props = defineProps<Props>()
6464
6565在 3.2 及以下版本中,` defineProps() `  的泛型类型参数仅限于类型字面量或对本地接口的引用。
6666
67- 这个限制在 3.3 中得到了解决。最新版本的 Vue 支持在类型参数位置引用导入和有限的复杂类型。但是,由于类型到运行时转换仍然基于 AST,一些需要实际类型分析的复杂类型,例如条件类型,还未支持。您可以使用条件类型来指定单个  prop 的类型,但不能用于整个 props 对象的类型。
67+ 这个限制在 3.3 中得到了解决。最新版本的 Vue 支持在类型参数位置引用导入和有限的复杂类型。但是,由于类型到运行时转换仍然基于 AST,一些需要实际类型分析的复杂类型,例如条件类型,还未支持。你可以使用条件类型来指定单个  prop 的类型,但不能用于整个 props 对象的类型。
6868
6969### Props 解构默认值 {#props-default-values}  
7070
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments