Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 4daa188

Browse files
authored
Merge pull request #391 from vuejs/veaba-patch-1
fix: removed v-for for refs, close #357
2 parents 54ef2d3 + d159d9e commit 4daa188

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/guide/component-template-refs.md

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ app.component('base-input', {
3838
this.$refs.usernameInput.focusInput()
3939
```
4040

41-
`ref``v-for` 一起使用时,你得到的 `ref` 将是一个数组,其中包含镜像数据源的子组件。
42-
4341
:::warning
4442
`$refs` 只会在组件渲染完成之后生效。这仅作为一个用于直接操作子元素的“逃生舱”——你应该避免在模板或计算属性中访问 `$refs`
4543
:::

0 commit comments

Comments
 (0)