UNPKG

epic-designer-cjh

Version:

基于vue3的设计器,可视化开发页面表单

67 lines (66 loc) 1.94 kB
import { r as f } from "./_vue_commonjs-external-eb7fec7f.js"; var i = {}, a = {}, c; function p() { if (c) return a; c = 1, Object.defineProperty(a, "__esModule", { value: !0 }), a.addClass = l, a.hasClass = r, a.removeClass = n; function r(e, t) { return e.classList ? e.classList.contains(t) : ` ${e.className} `.indexOf(` ${t} `) > -1; } function l(e, t) { e.classList ? e.classList.add(t) : r(e, t) || (e.className = `${e.className} ${t}`); } function n(e, t) { if (e.classList) e.classList.remove(t); else if (r(e, t)) { const u = e.className; e.className = ` ${u} `.replace(` ${t} `, " "); } } return a; } var o; function h() { if (o) return i; o = 1, Object.defineProperty(i, "__esModule", { value: !0 }), i.default = void 0; var r = f, l = p(), e = function() { let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "ant-motion-collapse", u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; return { name: t, appear: u, css: !0, onBeforeEnter: (s) => { s.style.height = "0px", s.style.opacity = "0", (0, l.addClass)(s, t); }, onEnter: (s) => { (0, r.nextTick)(() => { s.style.height = `${s.scrollHeight}px`, s.style.opacity = "1"; }); }, onAfterEnter: (s) => { s && ((0, l.removeClass)(s, t), s.style.height = null, s.style.opacity = null); }, onBeforeLeave: (s) => { (0, l.addClass)(s, t), s.style.height = `${s.offsetHeight}px`, s.style.opacity = null; }, onLeave: (s) => { setTimeout(() => { s.style.height = "0px", s.style.opacity = "0"; }); }, onAfterLeave: (s) => { s && ((0, l.removeClass)(s, t), s.style && (s.style.height = null, s.style.opacity = null)); } }; }; return i.default = e, i; } export { h as r };