index.vue 707 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <a-breadcrumb class="container-breadcrumb">
  3. <a-breadcrumb-item>
  4. <icon-apps />
  5. </a-breadcrumb-item>
  6. <a-breadcrumb-item v-for="item in items" :key="item">
  7. {{ $t(item) }}
  8. </a-breadcrumb-item>
  9. </a-breadcrumb>
  10. </template>
  11. <script lang="ts">
  12. import { defineComponent, PropType } from 'vue';
  13. export default defineComponent({
  14. props: {
  15. items: {
  16. type: Array as PropType<string[]>,
  17. default() {
  18. return [];
  19. },
  20. },
  21. },
  22. });
  23. </script>
  24. <style scoped lang="less">
  25. .container-breadcrumb {
  26. margin: 16px 0;
  27. :deep(.arco-breadcrumb-item) {
  28. color: rgb(var(--gray-6));
  29. &:last-child {
  30. color: rgb(var(--gray-8));
  31. }
  32. }
  33. }
  34. </style>