mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-08 14:59:47 +08:00
48 lines
1.2 KiB
React
48 lines
1.2 KiB
React
|
export default {
|
||
|
type: 'page',
|
||
|
title: '表单中选项卡分组',
|
||
|
subTitle: '',
|
||
|
body: [
|
||
|
'<p>多个 controls 可以通过 tabs 来分组展示,表单将作为一个整体提交。</p>',
|
||
|
{
|
||
|
type: 'form',
|
||
|
title: '',
|
||
|
tabs: [
|
||
|
{
|
||
|
title: '选项卡1',
|
||
|
hash: 'tab1',
|
||
|
controls: [
|
||
|
{
|
||
|
type: 'text',
|
||
|
label: '文本1',
|
||
|
name: 'a'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
title: '选项卡2',
|
||
|
hash: 'tab2',
|
||
|
controls: [
|
||
|
{
|
||
|
type: 'text',
|
||
|
label: '文本2',
|
||
|
name: 'b'
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
|
||
|
{
|
||
|
title: '选项卡3',
|
||
|
hash: 'tab3',
|
||
|
controls: [
|
||
|
{
|
||
|
type: 'text',
|
||
|
label: '文本3',
|
||
|
name: 'c'
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}]
|
||
|
}
|