2020-07-28 10:03:53 +08:00
|
|
|
---
|
|
|
|
title: Tabs 选项卡
|
2020-07-29 16:20:21 +08:00
|
|
|
description:
|
2020-07-28 10:03:53 +08:00
|
|
|
type: 0
|
|
|
|
group: null
|
|
|
|
menuName: Tabs 选项卡
|
2020-07-29 16:20:21 +08:00
|
|
|
icon:
|
2020-07-28 10:03:53 +08:00
|
|
|
order: 53
|
|
|
|
---
|
|
|
|
|
|
|
|
有多组输入框时,也可以通过选项卡来分组。
|
|
|
|
|
|
|
|
## 基本用法
|
|
|
|
|
2021-01-07 23:35:03 +08:00
|
|
|
```schema: scope="body"
|
2020-07-28 10:03:53 +08:00
|
|
|
{
|
|
|
|
"type": "form",
|
|
|
|
"debug": true,
|
|
|
|
"controls": [
|
2020-10-28 23:32:33 +08:00
|
|
|
{
|
|
|
|
"type": "tabs",
|
|
|
|
"tabs": [
|
2020-07-28 10:03:53 +08:00
|
|
|
{
|
2020-10-28 23:32:33 +08:00
|
|
|
"title": "基本配置",
|
|
|
|
"controls": [
|
|
|
|
{
|
|
|
|
"name": "text1",
|
|
|
|
"type": "text",
|
|
|
|
"label": "文本1"
|
|
|
|
},
|
2020-07-28 10:03:53 +08:00
|
|
|
|
2020-10-28 23:32:33 +08:00
|
|
|
{
|
|
|
|
"name": "text2",
|
|
|
|
"type": "text",
|
|
|
|
"label": "文本2"
|
|
|
|
}
|
|
|
|
]
|
2020-07-28 10:03:53 +08:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2020-10-28 23:32:33 +08:00
|
|
|
"title": "其他配置",
|
|
|
|
"controls": [
|
|
|
|
{
|
|
|
|
"name": "text3",
|
|
|
|
"type": "text",
|
|
|
|
"label": "文本3"
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"name": "text4",
|
|
|
|
"type": "text",
|
|
|
|
"label": "文本4"
|
|
|
|
}
|
|
|
|
]
|
2020-07-28 10:03:53 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2020-10-28 23:32:33 +08:00
|
|
|
## 更多功能
|
|
|
|
|
|
|
|
请参考[这里](../tabs)。
|
|
|
|
|
2020-07-28 10:03:53 +08:00
|
|
|
## 属性表
|
|
|
|
|
2020-10-28 23:32:33 +08:00
|
|
|
请参考[这里](../tabs#属性表)。
|