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

52 lines
1.5 KiB
Vue
Raw Normal View History

2018-01-15 02:52:16 +00:00
<script>
2018-03-09 05:26:34 +00:00
import Basic from './basic.md'
import WithIcon from './withIcon.md'
import Separator from './separator.md'
2018-03-10 05:34:26 +00:00
import Router from './router'
2018-03-09 05:26:34 +00:00
import US from './../index.en-US.md'
import CN from './../index.zh-CN.md'
const md = {
cn: `# Breadcrumb面包屑
显示当前页面在系统层级结构中的位置并能向上返回
## 何时使用
- 当系统拥有超过两级以上的层级结构时
- 当需要告知用户你在哪里
- 当需要向上导航的功能时
## 代码演示
`,
us: `# Breadcrumb
A breadcrumb displays the current location within a hierarchy. It allows going back to states higher up in the hierarchy.
## When to use
- When the system has more than two layers in a hierarchy.
- When you need to inform the user of where they are.
- When the user may need to navigate back to a higher level.
- When the application has multi-layer architecture.
## examples
`,
}
export default {
2018-03-10 05:34:26 +00:00
category: 'Components',
subtitle: '面包屑',
type: 'Navigation',
title: 'Breadcrumb',
2018-03-09 09:50:33 +00:00
render () {
2018-03-09 05:26:34 +00:00
return (
<div>
<md cn={md.cn} us={md.us} />
<Basic />
<WithIcon />
<Separator />
2018-03-10 05:34:26 +00:00
<Router/>
2018-03-09 05:26:34 +00:00
<api>
<CN slot='cn' />
<US />
</api>
</div>
)
2018-03-09 09:50:33 +00:00
},
2018-03-09 05:26:34 +00:00
}
2018-01-15 02:52:16 +00:00
</script>