fix(transition): respect rules in *-leave-from transition class (#2597)

fix #2593
This commit is contained in:
luwuer
2020-12-03 03:41:20 +08:00
committed by GitHub
parent 20a704fc04
commit e2618a632d
3 changed files with 28 additions and 18 deletions

View File

@@ -1305,9 +1305,10 @@ describe('e2e: Transition', () => {
await classWhenTransitionStart()
await nextFrame()
expect(await html('#container')).toBe(
'<div class="test v-leave-active v-leave-to">one</div>'
'<div class="test v-leave-active v-leave-to" style="">one</div>'
)
await transitionFinish()
await nextFrame()
expect(await html('#container')).toBe(
'<div class="test v-enter-active v-enter-to">two</div>'
)