qmw-form-design
Version:
表单设计器
40 lines (39 loc) • 901 B
JavaScript
import { onMounted as i, createElementBlock as n, openBlock as d, Fragment as o, createElementVNode as e, normalizeStyle as a, toDisplayString as r } from "vue";
const y = {
__name: "radioWidget",
props: {
//组件对象
widget: {
type: Object,
default: () => ({})
},
style: {
type: Object,
default: () => ({})
}
},
setup(t) {
return i(() => {
}), (s, l) => (d(), n(o, null, [
e("label", {
style: a(t.widget.labelStyle),
class: "widget-label"
}, r(t.widget.config.label), 5),
e("span", null, [
l[0] || (l[0] = e("input", {
type: "radio",
id: "radio",
value: "radio",
disabled: ""
}, null, -1)),
e("label", {
for: "radio",
style: a(t.style)
}, "单选框", 4)
])
], 64));
}
};
export {
y as default
};