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

28 lines
719 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>
2019-09-28 12:45:07 +00:00
<a class="ant-dropdown-link" href="#"> Hover me <a-icon type="down" /> </a>
2018-01-29 10:57:20 +00:00
<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>
```