Skip to content

Commit d6faa98

Browse files
veabaShroXd
authored andcommitted
fix: removed v-for for refs, close vuejs#357
1 parent bd09727 commit d6faa98

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/guide/component-template-refs.md

Lines changed: 0 additions & 2 deletions
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)