UNPKG

epic-designer-cjh

Version:

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

25 lines (24 loc) 588 B
import { createTextVNode as a, Fragment as p, Comment as y } from "vue"; function i(f, t = !0, n = []) { return f.forEach((r) => { if (r !== null) { if (typeof r != "object") { (typeof r == "string" || typeof r == "number") && n.push(a(String(r))); return; } if (Array.isArray(r)) { i(r, t, n); return; } if (r.type === p) { if (r.children === null) return; Array.isArray(r.children) && i(r.children, t, n); } else r.type !== y && n.push(r); } }), n; } export { i as f };