snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
109 lines (108 loc) • 2.2 kB
JavaScript
const e = {
bindModel: "value",
component: async () => (await import("ant-design-vue")).Input,
config: {
action: [],
attribute: [
{
field: "field",
label: "字段名",
type: "EpField"
},
{
field: "label",
label: "标题",
type: "input"
},
{
field: "componentProps.defaultValue",
label: "默认值",
type: "input"
},
{
componentProps: {
allowClear: !0,
options: [
{
label: "大号",
value: "large"
},
{
label: "中等",
value: "middle"
},
{
label: "小型",
value: "small"
}
],
placeholder: "请选择"
},
field: "componentProps.size",
label: "尺寸",
type: "select"
},
{
componentProps: {
options: [
{
label: "禁用",
value: "disabled"
},
{
label: "隐藏",
value: "hidden"
},
{
label: "无边框",
reverse: !0,
value: "bordered"
}
]
},
label: "操作属性",
layout: "vertical",
type: "EOperationConfigurator"
},
{
description: "校验规则需要配合表单使用",
field: "rules",
label: "表单校验",
layout: "vertical",
type: "ERuleEditor"
}
],
event: [
{
description: "值修改时",
type: "change"
},
{
description: "获取焦点时",
type: "focus"
},
{
description: "失去焦点时",
type: "blur"
}
]
},
defaultSchema: {
componentProps: {
style: {
width: "80px"
},
type: "color"
},
field: "color-picker",
input: !0,
label: "颜色选择器",
type: "color-picker"
},
groupName: "表单",
icon: "icon--epic--palette-outline",
sort: 950
};
export {
e as default
};