breadcrumb.vue 559 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <div class="breadcrumb">
  3. <el-breadcrumb separator-class="el-icon-arrow-right">
  4. <el-breadcrumb-item v-for="location of locations" :key="location.url">
  5. <a :href="location.url">{{location.title}}</a>
  6. </el-breadcrumb-item>
  7. </el-breadcrumb>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. props: ["locations"],
  13. computed: {},
  14. mounted() {},
  15. methods: {
  16. go(url) {
  17. console.log(url);
  18. location.href = url;
  19. }
  20. }
  21. };
  22. </script>
  23. <style scoped lang="scss">
  24. .breadcrumb {
  25. padding-bottom: 10px;
  26. }
  27. </style>