ant-design-x-vue
Version:
Craft AI-driven interfaces effortlessly
22 lines (21 loc) • 668 B
JavaScript
import "../x-provider/index.mjs";
import { defaultPrefixCls as a } from "../x-provider/hooks/use-x-provider-context.mjs";
const o = () => ({ height: 0, opacity: 0 }), n = (t) => {
const { scrollHeight: e } = t;
return { height: e, opacity: 1 };
}, r = (t) => ({ height: t ? t.offsetHeight : 0 }), i = (t, e) => (e == null ? void 0 : e.deadline) === !0 || e.propertyName === "height", c = (t = a) => ({
motionName: `${t}-motion-collapse`,
onAppearStart: o,
onEnterStart: o,
onAppearActive: n,
onEnterActive: n,
onLeaveStart: r,
onLeaveActive: o,
onAppearEnd: i,
onEnterEnd: i,
onLeaveEnd: i,
motionDeadline: 500
});
export {
c as default
};