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

77 lines
1.9 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
- [RadioButton](#/cn/components/radio/components-radio-demo-radiobutton) 可作为更次级的页签来使用
## 代码演示`,
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.
- [RadioButton](#/us/components/radio/components-radio-demo-radiobutton): for secondary tabs.
## 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>