snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
118 lines (117 loc) • 2.4 kB
JavaScript
const e = {
bindModel: "value",
component: () => import("./rate.vue.js"),
config: {
action: [
{
description: "使输入框获取焦点",
type: "focus"
},
{
description: "使输入框失去焦点",
type: "blur"
}
],
attribute: [
{
field: "field",
label: "字段名",
type: "EpField"
},
{
bindable: !0,
field: "label",
label: "标题",
type: "input"
},
{
field: "componentProps.defaultValue",
label: "默认值",
type: "rate"
},
{
componentProps: {
min: 1,
placeholder: "请输入"
},
field: "componentProps.count",
label: "星星数量",
type: "number"
},
{
componentProps: {
options: [
{
label: "禁用",
value: "disabled"
},
{
label: "隐藏",
value: "hidden"
},
{
label: "允许半选",
value: "allowHalf"
},
{
label: "不可清空",
reverse: !0,
value: "allowClear"
}
]
},
label: "操作属性",
layout: "vertical",
type: "EOperationConfigurator"
},
{
componentProps: {
ruleType: "number"
},
description: "校验规则需要配合表单使用",
field: "rules",
label: "表单校验",
layout: "vertical",
type: "ERuleEditor"
}
],
event: [
{
description: "值修改时",
type: "change"
},
{
description: "鼠标经过时数值变化的回调",
type: "hoverChange"
},
{
description: "按键回调",
type: "keydown"
},
{
description: "获取焦点时",
type: "focus"
},
{
description: "失去焦点时",
type: "blur"
}
]
},
defaultSchema: {
componentProps: {
count: 5,
placeholder: "请输入"
},
field: "rate",
input: !0,
label: "评分",
type: "rate"
},
groupName: "表单",
icon: "icon--epic--border-color-outline-rounded",
sort: 880
};
export {
e as default
};