2018-10-24 11:20:14 +00:00
|
|
|
<template functional>
|
2018-12-13 01:40:41 +00:00
|
|
|
<a-sub-menu v-on="listeners" :key="data.key">
|
2018-10-24 11:20:14 +00:00
|
|
|
<span slot="title"><a-icon type="mail" /><span>{{data.attrs.menuInfo.title}}</span></span>
|
|
|
|
<template v-for="item in data.attrs.menuInfo.children">
|
|
|
|
<a-menu-item v-if="!item.children" :key="item.key">
|
|
|
|
<a-icon type="pie-chart" />
|
|
|
|
<span>{{item.title}}</span>
|
|
|
|
</a-menu-item>
|
|
|
|
<sub-menu v-else :menuInfo="item" :key="item.key"/>
|
|
|
|
</template>
|
|
|
|
</a-sub-menu>
|
|
|
|
</template>
|