Skip to content

Commit 4bf5e33

Browse files
authored
Merge pull request #163 from mmmommm/migration-guide-transition-class-change
Migration Guide > Transition Class Change の翻訳
2 parents a6109c7 + d1733ee commit 4bf5e33

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/guide/migration/transition.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: Transition Class Change
2+
title: トランジションクラスの変更
33
badges:
44
- breaking
55
---
66

77
# {{ $frontmatter.title }} <MigrationBadges :badges="$frontmatter.badges" />
88

9-
## Overview
9+
## 概要
1010

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` へと名前が変更されました。
1212

13-
## 2.x Syntax
13+
## 2.x での構文
1414

15-
Before v2.1.8, we had two transition classes for each transition direction: initial and active states.
15+
v2.1.8 以前では、それぞれのトランジションの方向のために開始状態と活性状態の二つのトランジションクラスを使用していました。
1616

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` という名前はそのままになってしまっています。
1818

1919
```css
2020
.v-enter,
@@ -28,11 +28,11 @@ In v2.1.8, we introduced `v-enter-to` to address the timing gap between enter/le
2828
}
2929
```
3030

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_ が広義であり、クラスのフックと同じ命名規則を使っていないため、混乱を招いてしまっています。
3232

33-
## 3.x Update
33+
## 3.x でのアップデート
3434

35-
In order to be more explicit and legible, we have now renamed these initial state classes:
35+
より明示的で読みやすいように、これらの開始状態クラスの名前を変更しました。
3636

3737
```css
3838
.v-enter-from,
@@ -46,17 +46,17 @@ In order to be more explicit and legible, we have now renamed these initial stat
4646
}
4747
```
4848

49-
It's now much clearer what the difference between these states is.
49+
この変更により状態の変化が何であるかがより明確となります。
5050

5151
![Transition Diagram](/images/transitions.svg)
5252

53-
The `<transition>` component's related prop names are also changed:
53+
`<transition>` コンポーネントの関連するプロップ名も変更されます。
5454

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` と書くことができます)
5757

58-
## Migration Strategy
58+
## 移行戦略
5959

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

Comments
 (0)