amis/examples/components/Form/FieldSetInTabs.jsx

102 lines
2.2 KiB
React
Raw Normal View History

2019-04-30 11:11:25 +08:00
export default {
2019-11-07 10:41:14 +08:00
$schema: 'https://houtai.baidu.com/v2/schemas/page.json#',
title: 'FieldSet In Tabs',
remark: '',
body: {
type: 'form',
collapsable: true,
tabs: [
{
title: 'Tab A',
fieldSet: [
{
title: 'Group A',
tabs: [
{
title: 'SubTab A',
controls: [
{
name: 'a',
type: 'text',
label: 'Text'
},
{
name: 'a',
type: 'text',
label: 'Text'
}
2019-04-30 11:11:25 +08:00
]
2019-11-07 10:41:14 +08:00
},
{
title: 'SubTab B',
controls: [
{
name: 'a',
type: 'text',
label: 'Text'
},
{
name: 'a',
type: 'text',
label: 'Text'
}
2019-04-30 11:11:25 +08:00
]
2019-11-07 10:41:14 +08:00
}
]
},
{
title: 'Group B',
controls: [
{
name: 'a',
type: 'text',
label: 'Text'
},
{
name: 'a',
type: 'text',
label: 'Text'
}
]
}
2019-04-30 11:11:25 +08:00
]
2019-11-07 10:41:14 +08:00
},
{
title: 'Tab B',
fieldSet: [
{
title: 'Group A',
controls: [
{
name: 'a',
type: 'text',
label: 'Text'
},
{
name: 'a',
type: 'text',
label: 'Text'
}
]
},
{
title: 'Group B',
controls: [
{
name: 'a',
type: 'text',
label: 'Text'
},
{
name: 'a',
type: 'text',
label: 'Text'
}
]
}
]
}
]
}
2019-04-30 11:11:25 +08:00
};