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

52 lines
1.0 KiB
Vue
Raw Normal View History

2021-09-01 07:04:46 +00:00
<docs>
---
order: 2
title:
zh-CN: 其他元素
en-US: Other elements
---
## zh-CN
分割线和不可用菜单项
## en-US
Divider and disabled menu item.
</docs>
<template>
<a-dropdown>
<a class="ant-dropdown-link" @click.prevent>
Hover me
<DownOutlined />
</a>
<template #overlay>
<a-menu>
<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>
</template>
</a-dropdown>
</template>
<script lant="ts">
import { defineComponent } from 'vue';
import { DownOutlined } from '@ant-design/icons-vue';
export default defineComponent({
components: {
DownOutlined,
},
});
</script>