Michael Wang 6 лет назад
Родитель
Сommit
36ac291211
1 измененных файлов с 21 добавлено и 0 удалено
  1. 21 0
      src/components/LinkTitlesCustom.vue

+ 21 - 0
src/components/LinkTitlesCustom.vue

@@ -0,0 +1,21 @@
+<template>
+  <el-breadcrumb
+    v-if="currentPaths.length > 0"
+    separator-class="el-icon-arrow-right"
+    style="border-bottom: 1px solid #aaa; padding-bottom: 5px;"
+  >
+    <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
+    <el-breadcrumb-item v-for="item in currentPaths" :key="item">
+      {{ item }}
+    </el-breadcrumb-item>
+  </el-breadcrumb>
+</template>
+
+<script>
+export default {
+  name: "LinkTitlesCustom",
+  props: {
+    currentPaths: Array
+  }
+};
+</script>