UNPKG

snowy-designer

Version:

基于Epic-Designer-Pro版本的设计器,可视化开发页面表单

121 lines (120 loc) 2.62 kB
const o = { component: () => import("./radio.js"), config: { attribute: [ { field: "field", label: "字段名", type: "EpField" }, { field: "label", label: "标题", type: "input" }, { field: "componentProps.defaultValue", label: "默认值", type: "radio" }, { componentProps: { clearable: !0, options: [ { label: "大号", value: "large" }, { label: "中等", value: "default" }, { label: "小型", value: "small" } ], placeholder: "请选择" }, field: "componentProps.size", label: "尺寸", type: "select" }, { field: "componentProps.radioButton", label: "按钮模式", type: "switch" }, { description: "按钮模式下生效", field: "componentProps.textColor", label: "选项文本颜色", layout: "horizontal", show: ({ values: e }) => e.componentProps.radioButton, type: "color-picker" }, { description: "按钮模式下生效", field: "componentProps.fill", label: "选项按钮颜色", layout: "horizontal", show: ({ values: e }) => e.componentProps.radioButton, type: "color-picker" }, { field: "componentProps.disabled", label: "禁用", type: "switch" }, { field: "componentProps.hidden", label: "隐藏", type: "switch" }, { field: "componentProps.options", label: "选项管理", layout: "vertical", type: "EOptionsEditor" }, { description: "校验规则需要配合表单使用", field: "rules", label: "表单校验", layout: "vertical", type: "ERuleEditor" } ], event: [ { description: "值变化时", type: "change" } ] }, defaultSchema: { componentProps: { options: [ { label: "选项1", value: "选项1" }, { label: "选项2", value: "选项2" } ], size: "default" }, field: "radio", input: !0, label: "单选框", type: "radio" }, groupName: "表单", icon: "icon--epic--radio-button-checked-outline", sort: 850 }; export { o as default };