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

//# sourceMappingURL=ExpandTransition.vue2.js.map