2018-10-24 11:20:14 +00:00
|
|
|
<template functional>
|
2019-02-01 09:23:00 +00:00
|
|
|
<a-sub-menu
|
2019-02-23 04:11:54 +00:00
|
|
|
:key="props.menuInfo.key"
|
2019-02-01 09:23:00 +00:00
|
|
|
>
|
|
|
|
<span slot="title">
|
|
|
|
<a-icon type="mail" /><span>{{ props.menuInfo.title }}</span>
|
|
|
|
</span>
|
|
|
|
<template v-for="item in props.menuInfo.children">
|
|
|
|
<a-menu-item
|
|
|
|
v-if="!item.children"
|
|
|
|
:key="item.key"
|
|
|
|
>
|
2018-10-24 11:20:14 +00:00
|
|
|
<a-icon type="pie-chart" />
|
2019-02-01 09:23:00 +00:00
|
|
|
<span>{{ item.title }}</span>
|
2018-10-24 11:20:14 +00:00
|
|
|
</a-menu-item>
|
2019-02-01 09:23:00 +00:00
|
|
|
<sub-menu
|
|
|
|
v-else
|
|
|
|
:key="item.key"
|
|
|
|
:menu-info="item"
|
|
|
|
/>
|
2018-10-24 11:20:14 +00:00
|
|
|
</template>
|
|
|
|
</a-sub-menu>
|
|
|
|
</template>
|
2019-02-01 09:23:00 +00:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: ['menuInfo'],
|
|
|
|
};
|
|
|
|
</script>
|