Merge pull request #1232 from nwind/feat-update-group-doc

feat: group 文档优化
This commit is contained in:
吴多益 2020-12-22 19:09:16 +08:00 committed by GitHub
commit 6fd656172c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ icon:
order: 24
---
表单项默认都是一行显示一个Group 组件用于在一行展示多个表单项
表单项默认都是一行显示一个Group 组件用于在一行展示多个表单项,会自动根据表单项数量均分宽度。
## 基本用法
@ -16,14 +16,6 @@ order: 24
{
"type": "form",
"controls": [
{
"type": "text",
"name": "text",
"label": "文本"
},
{
"type": "divider"
},
{
"type": "group",
"controls": [
@ -38,6 +30,29 @@ order: 24
"label": "文本2"
}
]
},
{
"type": "divider"
},
{
"type": "group",
"controls": [
{
"type": "text",
"name": "text3",
"label": "文本3"
},
{
"type": "text",
"name": "text4",
"label": "文本4"
},
{
"type": "text",
"name": "text5",
"label": "文本5"
}
]
}
]
}
@ -54,12 +69,12 @@ order: 24
"type": "form",
"controls": [
{
"type": "text",
"name": "text",
"label": "文本"
"type": "text",
"name": "text",
"label": "文本"
},
{
"type": "divider"
"type": "divider"
},
{
"type": "group",