snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
171 lines (170 loc) • 3.62 kB
JavaScript
const e = {
bindModel: "value",
component: () => import("./textarea.vue.js"),
config: {
action: [
{
description: "使 input 获取焦点",
type: "focus"
},
{
description: "使 input 失去焦点",
type: "blur"
},
{
description: "选中 input 中的文字",
type: "select"
}
],
attribute: [
{
field: "field",
label: "字段名",
type: "EpField"
},
{
field: "label",
label: "标题",
type: "input"
},
{
componentProps: {
placeholder: "请输入"
},
field: "componentProps.defaultValue",
label: "默认值",
type: "textarea"
},
{
field: "componentProps.placeholder",
label: "占位内容",
type: "input"
},
{
componentProps: {
placeholder: "请输入"
},
field: "componentProps.autoSize.minRows",
label: "最小行数",
type: "number"
},
{
componentProps: {
placeholder: "请输入"
},
field: "componentProps.autoSize.maxRows",
label: "最大行数",
type: "number"
},
{
componentProps: {
allowClear: !0,
options: [
{
label: "大号",
value: "large"
},
{
label: "中等",
value: "middle"
},
{
label: "小型",
value: "small"
}
],
placeholder: "请选择"
},
field: "componentProps.size",
label: "尺寸",
type: "select"
},
{
componentProps: {
placeholder: "请输入"
},
field: "componentProps.maxLength",
label: "最大输入长度",
type: "number"
},
{
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"
},
{
description: "校验规则需要配合表单使用",
field: "rules",
label: "表单校验",
layout: "vertical",
type: "ERuleEditor"
}
],
event: [
{
description: "输入值",
type: "input"
},
{
description: "值修改",
type: "change"
},
{
description: "按下回车的回调",
type: "pressEnter"
},
{
description: "获取焦点",
type: "focus"
},
{
description: "失去焦点",
type: "blur"
}
]
},
defaultSchema: {
componentProps: {
placeholder: "请输入"
},
field: "textarea",
input: !0,
label: "文本域",
type: "textarea"
},
groupName: "表单",
icon: "icon--epic--edit-square-outline-rounded",
sort: 705
};
export {
e as default
};