UNPKG

ant-design-x-vue

Version:

Craft AI-driven interfaces effortlessly

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