snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
207 lines (206 loc) • 4.58 kB
JavaScript
const e = {
bindModel: "value",
component: () => import("./input.vue.js"),
config: {
action: [
{
description: "使输入框获取焦点",
type: "focus"
},
{
description: "使输入框失去焦点",
type: "blur"
},
{
description: "选中输入框中的文字",
type: "select"
}
],
attribute: [
{
field: "field",
label: "字段名",
type: "EpField"
},
{
bindable: !1,
field: "label",
label: "标题",
type: "input"
},
{
field: "componentProps.placeholder",
label: "占位内容",
type: "input"
},
{
componentProps: {
placeholder: "请输入"
},
field: "componentProps.defaultValue",
label: "默认值",
type: "input"
},
// {
// label: "基础",
// type: "input",
// field: "field",
// isGroup: true,
// children: [
// ]
// },
{
isGroup: !0,
label: "属性样式",
type: "input",
children: [
{
label: "输入类型",
type: "select",
componentProps: {
allowClear: !0,
options: [
{
label: "text",
value: "text"
},
{
label: "number",
value: "number"
},
{
label: "password",
value: "password"
}
],
placeholder: "请选择"
},
field: "componentProps.type"
},
{
label: "尺寸",
type: "select",
componentProps: {
allowClear: !0,
options: [
{
label: "大号",
value: "large"
},
{
label: "中等",
value: "middle"
},
{
label: "小型",
value: "small"
}
],
placeholder: "请选择"
},
field: "componentProps.size"
},
{
label: "最大输入长度",
type: "number",
field: "componentProps.maxlength",
componentProps: {
placeholder: "请输入"
}
}
]
},
{
componentProps: {
options: [
{
label: "禁用",
value: "disabled"
},
{
label: "只读",
value: "readonly"
},
{
label: "可清空",
value: "allowClear"
},
{
label: "隐藏",
value: "hidden"
},
{
label: "无边框",
reverse: !0,
value: "bordered"
},
{
label: "统计字数",
value: "showCount"
}
]
},
label: "操作属性",
layout: "vertical",
type: "EOperationConfigurator"
},
{
field: "slots",
label: "启用插槽",
layout: "vertical",
type: "ESlotEditor"
},
{
isGroup: !0,
label: "表单校验",
type: "input",
children: [
{
type: "ERuleEditor",
layout: "vertical",
field: "rules",
description: "校验规则需要配合表单使用"
}
]
}
],
event: [
{
description: "输入值时",
type: "input"
},
{
description: "值修改时",
type: "change"
},
{
description: "按下回车时",
type: "pressEnter"
},
{
description: "获取焦点时",
type: "focus"
},
{
description: "失去焦点时",
type: "blur"
}
]
},
defaultSchema: {
componentProps: {
placeholder: "请输入"
},
field: "input",
input: !0,
label: "输入框",
type: "input"
},
groupName: "表单",
icon: "icon--epic--border-color-outline-rounded",
ownSlots: ["prefix", "suffix", "addonBefore", "addonAfter"],
sort: 700
};
export {
e as default
};