You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/menu/demo/index.vue

55 lines
1.6 KiB

7 years ago
<script>
import Horizontal from './horizontal';
import InlineCollapsed from './inline-collapsed';
import Inline from './inline';
import SiderCurrent from './sider-current';
import SwitchMode from './switch-mode';
import Theme from './theme';
import Vertical from './vertical';
import Template from './template';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
7 years ago
const md = {
cn: `# Menu 导航菜单
为页面和功能提供导航的菜单列表
## 何时使用
导航菜单是一个网站的灵魂用户依赖导航在各个页面中进行跳转一般分为顶部导航和侧边导航顶部导航提供全局性的类目和功能侧边导航提供多级结构来收纳和排列网站架构
## 代码演示`,
us: `# Menu
Menu list of Navigation.
## When To Use
Navigation menu is important for a website, it helps users jump from one site section to another quickly. Mostly, it includes top navigation and side navigation. Top navigation provides all the category and functions of the website. Side navigation provides the Multi-level structure of the website.
## Examples`,
};
7 years ago
export default {
7 years ago
category: 'Components',
cols: 1,
type: 'Navigation',
title: 'Menu',
subtitle: '导航菜单',
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Horizontal />
<Inline />
6 years ago
<InlineCollapsed />
7 years ago
<SiderCurrent />
<Vertical />
6 years ago
<Theme />
<SwitchMode />
<Template />
7 years ago
<api>
<CN slot='cn' />
<US/>
</api>
</div>
);
7 years ago
},
};
7 years ago
</script>
7 years ago
<style>
</style>