Commit 1b1880f
committed
fix(notification): correct TransitionGroup class mapping for leave animation
@v-c/util's shared getTransitionGroupProps puts `-leave-active` in
leaveActiveClass, which means notices jump straight to opacity:0 on
leave without animating — the CSS target state class is applied
together with the starting state in the same frame, so no transition
runs.
Inline a NotificationList-specific mapping that puts the rc-motion
suffixes in the right Vue lifecycle slots:
- enterFromClass / leaveFromClass = starting state (-start)
- enterActiveClass / leaveActiveClass = transition base (no -start /
no -active so they don't fight the from/to)
- enterToClass / leaveToClass = target state (-active)
Combined with the notice's own `transition: opacity, transform, ...`
declaration, the leave animation now runs (opacity 1 → 0) instead of
flashing off.
Bump to 2.0.0-rc.3.1 parent 27cc8be commit 1b1880f
2 files changed
Lines changed: 32 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
13 | 41 | | |
14 | 42 | | |
15 | 43 | | |
| |||
185 | 213 | | |
186 | 214 | | |
187 | 215 | | |
188 | | - | |
189 | | - | |
| 216 | + | |
| 217 | + | |
190 | 218 | | |
191 | 219 | | |
192 | 220 | | |
| |||
0 commit comments