<template>
    <el-menu-item :index="nav.name" :key="nav.name" >
      <i :class="'iconfont ' + nav.icon" v-if="nav.icon"></i>
      <span>{{nav.meta.title}}</span>
    </el-menu-item>
</template>

<script>
export default {
  name: 'nav-sub-menu',
  props: ['nav']
}
</script>