UNPKG

gepic

Version:

基于vue3的设计器,可视化开发页面表单

111 lines (110 loc) 2.23 kB
const e = { component: async () => (await import("ant-design-vue")).Input, groupName: "表单", icon: "icon--epic--palette-outline", sort: 950, defaultSchema: { label: "颜色选择器", type: "color-picker", field: "color-picker", input: !0, componentProps: { type: "color", style: { width: "80px" } } }, config: { attribute: [ { label: "字段名", type: "input", field: "field" }, { label: "标题", type: "input", field: "label" }, { label: "默认值", type: "input", field: "componentProps.defaultValue" }, { label: "尺寸", type: "select", componentProps: { placeholder: "请选择", allowClear: !0, options: [ { label: "大号", value: "large" }, { label: "中等", value: "middle" }, { label: "小型", value: "small" } ] }, field: "componentProps.size" }, { label: "无边框", type: "switch", componentProps: { checkedValue: !1, unCheckedValue: !0 }, field: "componentProps.bordered" }, { label: "可清空", type: "switch", field: "componentProps.allowClear" }, { label: "禁用", type: "switch", field: "componentProps.disabled" }, { label: "隐藏", type: "switch", field: "componentProps.hidden" }, { label: "表单校验", type: "ERuleEditor", layout: "vertical", field: "rules", describe: "校验规则需要配合表单使用" } ], event: [ { type: "change", describe: "值修改时" }, { type: "focus", describe: "获取焦点时" }, { type: "blur", describe: "失去焦点时" } ], action: [] }, bindModel: "value" }; export { e as default };