snowy-designer
Version:
基于Epic-Designer-Pro版本的设计器,可视化开发页面表单
114 lines (113 loc) • 2.36 kB
JavaScript
const e = {
component: async () => (await import("element-plus")).ElColorPicker,
config: {
action: [],
attribute: [
{
field: "field",
label: "字段名",
type: "EpField"
},
{
field: "label",
label: "标题",
type: "input"
},
{
field: "componentProps.defaultValue",
label: "默认值",
type: "color-picker"
},
{
componentProps: {
clearable: !0,
options: [
{
label: "大号",
value: "large"
},
{
label: "中等",
value: "default"
},
{
label: "小型",
value: "small"
}
],
placeholder: "请选择"
},
field: "componentProps.size",
label: "尺寸",
type: "select"
},
{
componentProps: {
clearable: !0,
options: [
{
label: "hsl",
value: "hsl"
},
{
label: "hsv",
value: "hsv"
},
{
label: "hex",
value: "hex"
},
{
label: "rgb",
value: "rgb"
}
],
placeholder: "请选择"
},
field: "componentProps.colorFormat",
label: "格式",
type: "select"
},
{
field: "componentProps.showAlpha",
label: "透明度选择",
type: "switch"
},
{
field: "componentProps.disabled",
label: "禁用",
type: "switch"
},
{
field: "componentProps.hidden",
label: "隐藏",
type: "switch"
},
{
description: "校验规则需要配合表单使用",
field: "rules",
label: "表单校验",
layout: "vertical",
type: "ERuleEditor"
}
],
event: [
{
description: "值变化时",
type: "change"
}
]
},
defaultSchema: {
field: "color-picker",
input: !0,
label: "颜色选择器",
type: "color-picker"
},
groupName: "表单",
icon: "icon--epic--palette-outline",
sort: 950
};
export {
e as default
};