Skip to content

Migration > Transition の翻訳を追従 #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/guide/migration/transition.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ v2.1.8 では `v-enter-to` トランジションクラスを導入して、 ente

これは _enter_ と _leave_ が広義であり、クラスのフックと同じ命名規則を使っていないため、混乱を招いてしまっています。

## 3.x でのアップデート
## 3.x での更新

より明示的で読みやすいように、これらの開始状態クラスの名前を変更しました。

Expand All @@ -55,8 +55,12 @@ v2.1.8 では `v-enter-to` トランジションクラスを導入して、 ente
- `leave-class` は `leave-from-class` に名前が変更されます。(描画関数や JSX では `leaveFromClass` と書くことができます)
- `enter-class` は `enter-from-class` に名前が変更されます。(描画関数や JSX では `leaveFromClass` と書くことができます)

## 移行戦略
## 移行の戦略

1. `.v-enter` のインスタンスを `.v-enter-from` に置き換えます。
2. `.v-leave` のインスタンスを `.v-leave-from` に置き換えます。
3. 上記のように、関連するプロップ名のインスタンスを置き換えます。

## 参照

- [`<TransitionGroup>` はデフォルトでラッパー要素をレンダリングしなくなりました](/guide/migration/transition-group.html)