index.vue 685 B

1234567891011121314151617181920212223242526272829303132333435
  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" setup>
  12. import { PropType } from 'vue';
  13. defineProps({
  14. items: {
  15. type: Array as PropType<string[]>,
  16. default() {
  17. return [];
  18. },
  19. },
  20. });
  21. </script>
  22. <style scoped lang="less">
  23. .container-breadcrumb {
  24. margin: 16px 0;
  25. :deep(.arco-breadcrumb-item) {
  26. color: rgb(var(--gray-6));
  27. &:last-child {
  28. color: rgb(var(--gray-8));
  29. }
  30. }
  31. }
  32. </style>