LinkTitlesCustom.vue 618 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <el-breadcrumb
  3. v-if="currentPaths.length > 0"
  4. separator-class="el-icon-arrow-right"
  5. style="
  6. border-bottom: 1px solid #ddd;
  7. padding-bottom: 5px;
  8. margin-top: -20px;
  9. margin-bottom: 20px;
  10. "
  11. >
  12. <el-breadcrumb-item :to="{ path: '/home/overview' }">
  13. 首页
  14. </el-breadcrumb-item>
  15. <el-breadcrumb-item v-for="item in currentPaths" :key="item">
  16. {{ item }}
  17. </el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </template>
  20. <script>
  21. export default {
  22. name: "LinkTitlesCustom",
  23. props: {
  24. currentPaths: { type: Array, default: () => [] },
  25. },
  26. };
  27. </script>