Skip to content

Commit 5f5b309

Browse files
committed
您 -> 你
1 parent 15c7678 commit 5f5b309

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/sfc-script-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ defineProps<{
492492
</script>
493493
```
494494

495-
`generic` 的值与 TypeScript 中位于 `<...>` 之间的参数列表完全相同。例如,您可以使用多个参数`extends` 约束,默认类型和引用导入的类型:
495+
`generic` 的值与 TypeScript 中位于 `<...>` 之间的参数列表完全相同。例如,你可以使用多个参数`extends` 约束,默认类型和引用导入的类型:
496496

497497
```vue
498498
<script

src/guide/typescript/composition-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)