Skip to content

Commit 89e4b4e

Browse files
docs: remove unnecessary characters (#1109)
Co-authored-by: Ayaka <[email protected]>
1 parent bd977a7 commit 89e4b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/composition-api-helpers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## useAttrs() {#useattrs}
44

5-
[Setup 上下文](/api/composition-api-setup#setup-context)中返回 `attrs` 对象,其中包含当前组件的[透传 attributes](/guide/components/attrs#fallthrough-attributes)。这是用于 `<script setup>` 中的,因为在 `<script setup>` 中无法获取 setup 上下文对象的
5+
[Setup 上下文](/api/composition-api-setup#setup-context)中返回 `attrs` 对象,其中包含当前组件的[透传 attributes](/guide/components/attrs#fallthrough-attributes)。这是用于 `<script setup>` 中的,因为在 `<script setup>` 中无法获取 setup 上下文对象
66

77
- **类型**
88

@@ -12,7 +12,7 @@
1212

1313
## useSlots() {#useslots}
1414

15-
从 [Setup 上下文](/api/composition-api-setup#setup-context)中返回 `slots` 对象,其中包含父组件传递的插槽。这些插槽为可调用的函数,返回虚拟 DOM 节点。这是用于 `<script setup>` 中的,因为在 `<script setup>` 中无法获取 setup 上下文对象的
15+
从 [Setup 上下文](/api/composition-api-setup#setup-context)中返回 `slots` 对象,其中包含父组件传递的插槽。这些插槽为可调用的函数,返回虚拟 DOM 节点。这是用于 `<script setup>` 中的,因为在 `<script setup>` 中无法获取 setup 上下文对象
1616

1717
如果使用 TypeScript,建议优先使用 [`defineSlots()`](/api/sfc-script-setup#defineslots)。
1818

0 commit comments

Comments
 (0)