Michael Wang 6 жил өмнө
parent
commit
36ac291211

+ 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>