"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),l=require("../vc-util/Dom/class.js"),r=(e="ant-motion-collapse",s=!0)=>({name:e,appear:s,css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",l.addClass(t,e)},onEnter:t=>{i.nextTick(()=>{t.style.height=`${t.scrollHeight}px`,t.style.opacity="1"})},onAfterEnter:t=>{t&&(l.removeClass(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{l.addClass(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:t=>{setTimeout(()=>{t.style.height="0px",t.style.opacity="0"})},onAfterLeave:t=>{t&&(l.removeClass(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}});exports.default=r;
