ant-design-vue/components/tabs/demo/index.vue

77 lines
1.8 KiB
Vue
Raw Normal View History

2017-12-01 10:48:16 +00:00
<script>
import Basic from './basic'
import CardTop from './card-top'
import Card from './card'
import CustomAddTrigger from './custom-add-trigger'
import Disabled from './disabled'
import EditableCard from './editable-card'
import Extra from './extra'
import Icon from './icon'
import Position from './position'
import Size from './size'
import Slide from './slide'
2018-03-22 14:17:35 +00:00
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# Tabs 标签页
选项卡切换组件
## 何时使用
提供平级的区域将大块内容进行收纳和展现保持界面整洁
Ant Design 依次提供了三级选项卡分别用于不同的场景
- 卡片式的页签提供可关闭的样式常用于容器顶部
- 标准线条式页签用于容器内部的主功能切换这是最常用的 Tabs
2018-04-07 11:10:34 +00:00
- [RadioButton](/ant-design/components/radio-cn/) 使
2018-03-22 14:17:35 +00:00
## 代码演示`,
us: `# Tabs
Tabs make it easy to switch between different views.
### When To Use
Ant Design has 3 types of Tabs for different situations.
- Card Tabs: for managing too many closeable views.
- Normal Tabs: for functional aspects of a page.
2018-04-07 11:10:34 +00:00
- [RadioButton](/ant-design/components/radio/): for secondary tabs.
2018-03-22 14:17:35 +00:00
## Examples `,
}
2017-12-01 10:48:16 +00:00
export default {
2018-03-20 13:48:01 +00:00
category: 'Components',
subtitle: '标签页',
type: 'Data Display',
title: 'Tabs',
cols: 1,
2018-03-22 14:17:35 +00:00
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<CardTop />
<Card />
<CustomAddTrigger />
<Disabled />
<EditableCard />
<Extra />
<Icon />
<Position />
<Size />
<Slide/>
<api>
<template slot='cn'>
<CN/>
</template>
<US/>
</api>
</div>
)
2017-12-01 10:48:16 +00:00
},
}
</script>