epic-designer-cjh
Version:
基于vue3的设计器,可视化开发页面表单
43 lines (42 loc) • 1.82 kB
JavaScript
import { i as h } from "./interopRequireDefault-40f894e3.js";
import { _ as y } from "./typeof-88a201b1.js";
import { a as _ } from "./public_api-1267ff2a.js";
import { a as q, i as E } from "./useConfigInject-bc9599af.js";
import { r as A } from "./_vue_commonjs-external-eb7fec7f.js";
var s = {}, l;
function x() {
if (l)
return s;
l = 1;
var i = h;
Object.defineProperty(s, "__esModule", {
value: !0
}), s.cloneElement = o, s.cloneVNodes = c, s.deepCloneElement = m;
var g = i(y), f = i(_()), d = q(), p = A, v = i(E());
function o(e) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, u = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, r = e;
if (Array.isArray(e) && (r = (0, d.filterEmpty)(e)[0]), !r)
return null;
var t = (0, p.cloneVNode)(r, n, u);
return t.props = a ? (0, f.default)((0, f.default)({}, t.props), n) : t.props, (0, v.default)((0, g.default)(t.props.class) !== "object", "class must be string"), t;
}
function c(e) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
return e.map(function(u) {
return o(u, n, a);
});
}
function m(e) {
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, u = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
if (Array.isArray(e))
return e.map(function(t) {
return m(t, n, a, u);
});
var r = o(e, n, a, u);
return Array.isArray(r.children) && (r.children = m(r.children)), r;
}
return s;
}
export {
x as r
};