snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
35 lines (34 loc) • 754 B
JavaScript
import { defineComponent as p, h as o } from "vue";
import { NRadioGroup as n, NRadio as r } from "naive-ui";
const s = p({
emits: ["update:modelValue"],
setup(m, { attrs: l, emit: d }) {
function t(e = null) {
d("update:modelValue", e);
}
return () => {
const e = {
...l,
"onUpdate:value": t,
value: l.modelValue
};
return o(n, e, {
default: () => {
var u;
return [
(u = e.options) == null ? void 0 : u.map(
(a) => o(
r,
{ key: a.value, value: a.value },
{ default: () => a.label }
)
)
];
}
});
};
}
});
export {
s as default
};