@coderlt/form-designer
Version:
基于vue3的设计器,可视化开发页面表单
40 lines (39 loc) • 1.06 kB
JavaScript
import { defineComponent as r, h as t } from "vue";
import "./el-select-4ed993c7.js";
import { g as i, f as n, E as d } from "./index-d95626dd.js";
import "./index-74b7090f.js";
import "./use-form-item-18802e58.js";
import "./isEqual-10a53e21.js";
import "./_baseIsEqual-ee7e3824.js";
import "./hasIn-61ab08dc.js";
import "./_flatRest-cdc31ace.js";
import "./_overRest-b6d63194.js";
const B = r({
emits: ["update:modelValue"],
setup(s, { emit: m, attrs: u }) {
function p(e = null) {
m("update:modelValue", e);
}
return () => {
const e = {
...u,
"onUpdate:modelValue": p
};
return t(i, e, {
default: () => {
var l, a;
return [
e != null && e.radioButton ? (l = e.options) == null ? void 0 : l.map(
(o) => t(n, { label: o.label, value: o.value })
) : (a = e.options) == null ? void 0 : a.map(
(o) => t(d, { label: o.label, value: o.value })
)
];
}
});
};
}
});
export {
B as default
};