MCPcopy Index your code
hub / github.com/TruthHun/BookStack / enter

Function enter

static/vuejs/vue.runtime.esm.js:5917–6063  ·  view source on GitHub ↗
(vnode, toggleDisplay)

Source from the content-addressed store, hash-verified

5915/* */
5916
5917function enter (vnode, toggleDisplay) {
5918 var el = vnode.elm;
5919
5920 // call leave callback now
5921 if (el._leaveCb) {
5922 el._leaveCb.cancelled = true;
5923 el._leaveCb();
5924 }
5925
5926 var data = resolveTransition(vnode.data.transition);
5927 if (!data) {
5928 return
5929 }
5930
5931 /* istanbul ignore if */
5932 if (el._enterCb || el.nodeType !== 1) {
5933 return
5934 }
5935
5936 var css = data.css;
5937 var type = data.type;
5938 var enterClass = data.enterClass;
5939 var enterToClass = data.enterToClass;
5940 var enterActiveClass = data.enterActiveClass;
5941 var appearClass = data.appearClass;
5942 var appearToClass = data.appearToClass;
5943 var appearActiveClass = data.appearActiveClass;
5944 var beforeEnter = data.beforeEnter;
5945 var enter = data.enter;
5946 var afterEnter = data.afterEnter;
5947 var enterCancelled = data.enterCancelled;
5948 var beforeAppear = data.beforeAppear;
5949 var appear = data.appear;
5950 var afterAppear = data.afterAppear;
5951 var appearCancelled = data.appearCancelled;
5952 var duration = data.duration;
5953
5954 // activeInstance will always be the <transition> component managing this
5955 // transition. One edge case to check is when the <transition> is placed
5956 // as the root node of a child component. In that case we need to check
5957 // <transition>'s parent for appear check.
5958 var context = activeInstance;
5959 var transitionNode = activeInstance.$vnode;
5960 while (transitionNode && transitionNode.parent) {
5961 transitionNode = transitionNode.parent;
5962 context = transitionNode.context;
5963 }
5964
5965 var isAppear = !context._isMounted || !vnode.isRootInsert;
5966
5967 if (isAppear && !appear && appear !== '') {
5968 return
5969 }
5970
5971 var startClass = isAppear && appearClass
5972 ? appearClass
5973 : enterClass;
5974 var activeClass = isAppear && appearActiveClass

Callers 2

_enterFunction · 0.70
vue.runtime.esm.jsFile · 0.70

Calls 13

resolveTransitionFunction · 0.70
toNumberFunction · 0.70
isObjectFunction · 0.70
checkDurationFunction · 0.70
getHookArgumentsLengthFunction · 0.70
onceFunction · 0.70
removeTransitionClassFunction · 0.70
mergeVNodeHookFunction · 0.70
addTransitionClassFunction · 0.70
nextFrameFunction · 0.70
isValidDurationFunction · 0.70
whenTransitionEndsFunction · 0.70

Tested by

no test coverage detected