import { defineComponent as n, createBlock as r, openBlock as a, Transition as s, withCtx as p, renderSlot as c } from "vue";
const f = /* @__PURE__ */ n({
  __name: "ExpandTransition",
  setup(l) {
    const t = (e) => {
      e.classList.add("expand-collapse-fix"), e.style.setProperty("--component-height", e.scrollHeight + "px");
    }, o = (e) => {
      e.style.removeProperty("--component-height"), e.classList.remove("expand-collapse-fix");
    };
    return (e, i) => (a(), r(s, {
      name: "expand-collapse",
      onEnter: t,
      onLeave: t,
      onAfterEnter: o,
      onAfterLeave: o
    }, {
      default: p(() => [
        c(e.$slots, "default")
      ]),
      _: 3
    }));
  }
});
export {
  f as default
};
//# sourceMappingURL=ExpandTransition.vue.js.map
