50 lines
1.0 KiB
Vue
50 lines
1.0 KiB
Vue
<docs>
|
|
---
|
|
order: 6
|
|
title:
|
|
zh-CN: 多级菜单
|
|
en-US: Cascading menu
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
传入的菜单里有多个层级。
|
|
|
|
## en-US
|
|
|
|
The menu has multiple levels.
|
|
|
|
</docs>
|
|
|
|
<template>
|
|
<a-dropdown>
|
|
<a class="ant-dropdown-link" @click.prevent>
|
|
Cascading menu
|
|
<DownOutlined />
|
|
</a>
|
|
<template #overlay>
|
|
<a-menu>
|
|
<a-menu-item>1st menu item</a-menu-item>
|
|
<a-menu-item>2nd menu item</a-menu-item>
|
|
<a-sub-menu key="test" title="sub menu">
|
|
<a-menu-item>3rd menu item</a-menu-item>
|
|
<a-menu-item>4th menu item</a-menu-item>
|
|
</a-sub-menu>
|
|
<a-sub-menu title="disabled sub menu" disabled>
|
|
<a-menu-item>5d menu item</a-menu-item>
|
|
<a-menu-item>6th menu item</a-menu-item>
|
|
</a-sub-menu>
|
|
</a-menu>
|
|
</template>
|
|
</a-dropdown>
|
|
</template>
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { DownOutlined } from '@ant-design/icons-vue';
|
|
export default defineComponent({
|
|
components: {
|
|
DownOutlined,
|
|
},
|
|
});
|
|
</script>
|