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