epic-designer-cjh
Version:
基于vue3的设计器,可视化开发页面表单
35 lines (34 loc) • 922 B
JavaScript
import { defineComponent as n, h as l } from "vue";
import "./el-select-4ed993c7.js";
import { h as r, g as i, E as p } from "./index-258e6c5b.js";
import "./index-97ce4605.js";
import "./use-form-item-5dfea179.js";
const R = n({
emits: ["update:modelValue"],
setup(s, { emit: u, attrs: d }) {
function m(a = null) {
u("update:modelValue", a);
}
return () => {
const a = {
...d,
"onUpdate:modelValue": m
};
return l(r, a, {
default: () => {
var t, o;
return [
a != null && a.radioButton ? (t = a.options) == null ? void 0 : t.map(
(e) => l(i, { label: e.value }, { default: () => e.label })
) : (o = a.options) == null ? void 0 : o.map(
(e) => l(p, { label: e.value }, { default: () => e.label })
)
];
}
});
};
}
});
export {
R as default
};