Skip to content

Commit 702b173

Browse files
committed
allow transition to configure enterClass/leaveClass
1 parent f04b396 commit 702b173

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transition/transition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const animDurationProp = animationProp + 'Duration'
3131
export default function Transition (el, id, hooks, vm) {
3232
this.id = id
3333
this.el = el
34-
this.enterClass = id + '-enter'
35-
this.leaveClass = id + '-leave'
34+
this.enterClass = (hooks && hooks.enterClass) || id + '-enter'
35+
this.leaveClass = (hooks && hooks.leaveClass) || id + '-leave'
3636
this.hooks = hooks
3737
this.vm = vm
3838
// async state

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy