UNPKG

motion-plus-vue

Version:

Motion Plus Vue

29 lines (28 loc) 679 B
import { Comment as i, Fragment as c } from "vue"; function s(t = []) { var n; const r = []; for (const e of t) if (e.type !== i) if (e.type === c) { const o = Array.isArray(e.children) ? e.children : (n = e.children) == null ? void 0 : n.default(); r.push(...s(o)); } else r.push(e); return r; } function l(t) { var n; const r = []; for (const e of t) if (e.type === "Fragment" || e.type === c) { const o = Array.isArray(e.children) ? e.children : (n = e.children) == null ? void 0 : n.default(); r.push(...l(o)); } else r.push(e); return r; } export { s as flattenSlots, l as renderVNode };