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
This worked by accident, not by design. A `<transition>`is supposed to be triggered by changes to its children, not by toggling the `<transition>`itself.
In Vue 2, `<transition-group>`, like other custom components, needed a root element, which by default was a `<span>`but was customizable via the `tag`attribute.
@@ -22,24 +22,24 @@ In Vue 2, `<transition-group>`, like other custom components, needed a root elem
22
22
</transition-group>
23
23
```
24
24
25
-
## 3.x Syntax
25
+
## 3.x の構文
26
26
27
-
In Vue 3, we have [fragment support](../new/fragments.html), so components no longer _need_ a root node. Consequently, `<transition-group>`no longer renders one by default.
-If you already have the `tag`attribute defined in your Vue 2 code, like in the example above, everything will work as before
30
-
-If you didn't have one defined _and_ your styling or other behaviors relied on the presence of the `<span>`root element to work properly, simply add `tag="span"`to the `<transition-group>`:
In v2.1.8, we introduced `v-enter-to`to address the timing gap between enter/leave transitions. However, for backward compatibility, the `v-enter`name was untouched:
In Vue 2, it was possible to use events to listen for key stages in a component's lifecycle. These events had names that started with the prefix `hook:`, followed by the name of the corresponding lifecycle hook.
In most cases it should just require changing the prefix. The lifecycle hooks `beforeDestroy`and`destroyed`have been renamed to `beforeUnmount`and`unmounted`respectively, so the corresponding event names will also need to be updated.
-**BREAKING**: When watching an array, the callback will only trigger when the array is replaced. If you need to trigger on mutation, the `deep`option must be specified.
When using [the `watch`option](https://ja.vuejs.org/api/options-state.html#watch) to watch an array, the callback will only trigger when the array is replaced. In other words, the watch callback will no longer be triggered on array mutation. To trigger on mutation, the `deep`option must be specified.
0 commit comments