const e=require("../vc-util/Dom/class.js");let t=require("vue");var n=(n=`ant-motion-collapse`,r=!0)=>({name:n,appear:r,css:!0,onBeforeEnter:t=>{t.style.height=`0px`,t.style.opacity=`0`,e.addClass(t,n)},onEnter:e=>{(0,t.nextTick)(()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity=`1`})},onAfterEnter:t=>{t&&(e.removeClass(t,n),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{e.addClass(t,n),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout(()=>{e.style.height=`0px`,e.style.opacity=`0`})},onAfterLeave:t=>{t&&(e.removeClass(t,n),t.style&&(t.style.height=null,t.style.opacity=null))}});exports.default=n;