ant-design-vue/components/dropdown/demo/item.md

30 lines
729 B
Markdown
Raw Normal View History

2018-01-29 10:57:20 +00:00
<cn>
#### 其他元素
割线和不可用菜单项。
</cn>
<us>
#### Other elements
Divider and disabled menu item.
</us>
```html
<template>
<a-dropdown>
<a class="ant-dropdown-link" href="#">
Hover me <a-icon type="down" />
</a>
<a-menu slot="overlay">
<a-menu-item key="0">
<a target="_blank" rel="noopener noreferrer" href="http://www.alipay.com/">1st menu item</a>
</a-menu-item>
<a-menu-item key="1">
<a target="_blank" rel="noopener noreferrer" href="http://www.taobao.com/">2nd menu item</a>
</a-menu-item>
<a-menu-divider />
<a-menu-item key="3" disabled>3rd menu itemdisabled</a-menu-item>
</a-menu>
</a-dropdown>
</template>
```