1
1
---
2
- title : Transition Class Change
2
+ title : トランジションクラスの変更
3
3
badges :
4
4
- breaking
5
5
---
6
6
7
7
# {{ $frontmatter.title }} <MigrationBadges :badges =" $frontmatter.badges " />
8
8
9
- ## Overview
9
+ ## 概要
10
10
11
- The ` v-enter ` transition class has been renamed to ` v-enter-from ` and the ` v-leave ` transition class has been renamed to ` v-leave-from ` .
11
+ ` v-enter ` トランジションクラスは ` v-enter-from ` へ、そして ` v-leave ` トランジションクラスは ` v-leave-from ` へと名前が変更されました。
12
12
13
- ## 2.x Syntax
13
+ ## 2.x での構文
14
14
15
- Before v2.1.8, we had two transition classes for each transition direction: initial and active states.
15
+ v2.1.8 以前では、それぞれのトランジションの方向のために開始状態と活性状態の二つのトランジションクラスを使用していました。
16
16
17
- 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:
17
+ v2.1.8 では ` v-enter-to ` トランジションクラスを導入して、 enter/leave トランジション間のタイミングのギャップに対応しました。しかし、後方互換性のために ` v-enter ` という名前はそのままになってしまっています。
18
18
19
19
``` css
20
20
.v-enter ,
@@ -28,11 +28,11 @@ In v2.1.8, we introduced `v-enter-to` to address the timing gap between enter/le
28
28
}
29
29
```
30
30
31
- This became confusing, as _ enter_ and _ leave_ were broad and not using the same naming convention as their class hook counterparts.
31
+ これは _ enter_ と _ leave_ が広義であり、クラスのフックと同じ命名規則を使っていないため、混乱を招いてしまっています。
32
32
33
- ## 3.x Update
33
+ ## 3.x でのアップデート
34
34
35
- In order to be more explicit and legible, we have now renamed these initial state classes:
35
+ より明示的で読みやすいように、これらの開始状態クラスの名前を変更しました。
36
36
37
37
``` css
38
38
.v-enter-from ,
@@ -46,17 +46,17 @@ In order to be more explicit and legible, we have now renamed these initial stat
46
46
}
47
47
```
48
48
49
- It's now much clearer what the difference between these states is.
49
+ この変更により状態の変化が何であるかがより明確となります。
50
50
51
51
![ Transition Diagram] ( /images/transitions.svg )
52
52
53
- The ` <transition> ` component's related prop names are also changed:
53
+ ` <transition> ` コンポーネントの関連するプロップ名も変更されます。
54
54
55
- - ` leave-class ` is renamed to ` leave-from-class ` (can be written as ` leaveFromClass ` in render functions or JSX)
56
- - ` enter-class ` is renamed to ` enter-from-class ` (can be written as ` enterFromClass ` in render functions or JSX)
55
+ - ` leave-class ` は ` leave-from-class ` に名前が変更されます。(描画関数やJSXでは ` leaveFromClass ` と書くことができます)
56
+ - ` enter-class ` は ` enter-from-class ` に名前が変更されます。(描画関数やJSXでは ` leaveFromClass ` と書くことができます)
57
57
58
- ## Migration Strategy
58
+ ## 移行戦略
59
59
60
- 1 . Replace instances of ` .v-enter ` to ` .v-enter-from `
61
- 2 . Replace instances of ` .v-leave ` to ` .v-leave-from `
62
- 3 . Replace instances of related prop names, as above.
60
+ 1 . ` .v-enter ` のインスタンスを ` .v-enter-from ` に置き換えます。
61
+ 2 . ` .v-leave ` のインスタンスを ` .v-leave-from ` に置き換えます。
62
+ 3 . 上記のように、関連するプロップ名のインスタンスを置き換えます。
0 commit comments