51 lines
1.2 KiB
Markdown
51 lines
1.2 KiB
Markdown
<cn>
|
|
#### 顶部导航
|
|
水平的顶部导航菜单。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Top Navigation
|
|
Horizontal top navigation menu.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div>
|
|
<a-menu
|
|
v-model="current"
|
|
mode="horizontal"
|
|
>
|
|
<a-menu-item key="mail">
|
|
<a-icon type="mail" />Navigation One
|
|
</a-menu-item>
|
|
<a-menu-item key="app" disabled>
|
|
<a-icon type="appstore" />Navigation Two
|
|
</a-menu-item>
|
|
<a-sub-menu>
|
|
<span slot="title" class="submenu-title-wrapper"><a-icon type="setting" />Navigation Three - Submenu</span>
|
|
<a-menu-item-group title="Item 1">
|
|
<a-menu-item key="setting:1">Option 1</a-menu-item>
|
|
<a-menu-item key="setting:2">Option 2</a-menu-item>
|
|
</a-menu-item-group>
|
|
<a-menu-item-group title="Item 2">
|
|
<a-menu-item key="setting:3">Option 3</a-menu-item>
|
|
<a-menu-item key="setting:4">Option 4</a-menu-item>
|
|
</a-menu-item-group>
|
|
</a-sub-menu>
|
|
<a-menu-item key="alipay">
|
|
<a href="https://ant.design" target="_blank" rel="noopener noreferrer">Navigation Four - Link</a>
|
|
</a-menu-item>
|
|
</a-menu>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data () {
|
|
return {
|
|
current: ['mail'],
|
|
}
|
|
},
|
|
}
|
|
</script>
|
|
```
|