<template>
  <div class="item">
    <div v-for="itemssss in item" :key="itemssss.title_en" class="item">
      <div v-if="itemssss.type == 'single'" class="item">
        <el-menu-item :index="itemssss.title_en" :indexPath="itemssss.title_en">
          <i :class="itemssss.icon" style="width: 15px;height: 15px;margin-right: 20px;"></i>
          <span>{{ itemssss.title_cn }}</span>
        </el-menu-item>
      </div>
      <div v-else>
        <el-submenu :index="itemssss.title_en">
          <template #title>
            <i :class="itemssss.icon" style="width: 15px;height: 15px;margin-right: 20px;"></i>
            <span>{{ itemssss.title_cn }}</span>
          </template>
          <div v-if="itemssss.children && itemssss.children.length != 0" class="item">
            <subMenu :item="itemssss.children"></subMenu>
          </div>
        </el-submenu>
      </div>
    </div>
  </div>
</template>

<script src="./submenuRight.js"></script>

<style src="./submenuRight.css" scoped></style>