<template>
  <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item :to="{ name: 'index' }">首页</el-breadcrumb-item>
    <template v-for="(item, index) in list" :key="item.name">
      <el-breadcrumb-item v-if="index > 0" :to="{ name: item.name }">{{item.title}}</el-breadcrumb-item>
    </template>
  </el-breadcrumb>
</template>

<script>

export default {
  props: {
    list: Array,
  },

  setup(props) {
  }
}
</script>
