You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1595,13 +1595,13 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
1595
1595
</transition>
1596
1596
```
1597
1597
1598
-
When`text`changes, the `<span>`will always be replaced instead of patched, so a transition will be triggered.
1598
+
当`text`发生改变时,`<span>`会随时被更新,因此会触发过度。
1599
1599
1600
1600
### ref
1601
1601
1602
1602
-**Expects:**`string`
1603
1603
1604
-
`ref`is used to register a reference to an element or a child component. The reference will be registered under the parent component's `$refs`object. If used on a plain DOM element, the reference will be that element; if used on a child component, the reference will be component instance:
@@ -1611,19 +1611,19 @@ All lifecycle hooks automatically have their `this` context bound to the instanc
1611
1611
<child-compref="child"></child-comp>
1612
1612
```
1613
1613
1614
-
When used on elements/components with `v-for`, the registered reference will be an Array containing DOM nodes or component instances.
1614
+
当 `v-for` 用于元素或组件的时候,引用信息将是包含DOM节点或组件实例数组。
1615
1615
1616
-
An important note about the ref registration timing: because the refs themselves are created as a result of the render function, you cannot access them on the initial render - they don't exist yet! `$refs`is also non-reactive, therefore you should not attempt to use it in templates for data-binding.
0 commit comments