Skip to content

Commit

Permalink
feat(elementUI): add form
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Jul 9, 2023
1 parent aa0ab96 commit 3b8da07
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions src/ui/elementUI/form.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"name": "ElForm",
"props": {
"model": {
"value": "",
"description": "表单数据对象",
"default": "",
"type": "object"
},
"rules": {
"value": "",
"description": "表单验证规则",
"default": "",
"type": "object"
},
"inline": {
"value": "",
"description": "行内表单模式",
"default": "false",
"type": "boolean"
},
"label-position": {
"value": ["right", "left", "top"],
"description": "表单域标签的位置,如果值为 left 或者 right 时,则需要设置 label-width",
"default": "right",
"type": "string"
},
"label-width": {
"value": "",
"description": "表单域标签的宽度,例如 '50px'。作为 Form 直接子元素的 form-item 会继承该值。支持 auto。",
"default": "",
"type": "string"
},
"label-suffix": {
"value": "",
"description": "表单域标签的后缀",
"default": "",
"type": "string"
},
"showIcon": {
"value": "",
"description": "是否显示图标",
"default": false,
"type": "boolean"
},
"hide-required-asterisk": {
"value": "",
"description": "是否隐藏必填字段的标签旁边的红色星号",
"default": "false",
"type": "boolean"
},
"show-message": {
"value": "",
"description": "是否显示校验错误信息",
"default": "false",
"type": "boolean"
},
"status-icon": {
"value": "",
"description": "是否在输入框中显示校验结果反馈图标",
"default": "false",
"type": "boolean"
},
"validate-on-rule-change": {
"value": "",
"description": "是否在输入框中显示校验结果反馈图标",
"default": "true",
"type": "boolean"
},
"size": {
"value": ["medium", "small", "mini"],
"description": "用于控制该表单内组件的尺寸",
"default": "",
"type": "string"
},
"disabled": {
"value": "",
"description": "是否禁用该表单内的所有组件。若设置为 true,则表单内组件上的 disabled 属性不再生效",
"default": "false",
"type": "boolean"
}
},
"events": [
{
"name": "validate",
"description": "关闭alert时触发的事件",
"callback": ""
}
]
}

0 comments on commit 3b8da07

Please sign in to comment.