amis/examples/components/Tabs/Tab1.jsx

36 lines
896 B
React
Raw Normal View History

2019-04-30 11:11:25 +08:00
export default {
type: 'page',
title: '选项卡1页面',
body: [
'<p>也可以多个页面,利用导航<code>nav</code>渲染期模拟 tabs 的效果。这样可以让 url 更加友好,而不是只能用 hash。</p>',
{
type: 'nav',
links: [
{
label: '选项卡1',
icon: 'fa fa-cloud',
2019-06-05 10:01:02 +08:00
to: './tab1'
2019-04-30 11:11:25 +08:00
},
{
label: '选项卡2',
2019-06-05 10:01:02 +08:00
to: './tab2'
2019-04-30 11:11:25 +08:00
},
{
label: '选项卡3',
icon: 'fa fa-youtube',
2019-06-05 10:01:02 +08:00
to: './tab3'
2019-04-30 11:11:25 +08:00
}
]
},
{
type: 'wrapper',
className: 'wrapper bg-white b-l b-b b-r',
body: '选项卡1的内容'
}
]
}