<template>
  <div class="page-breadcrumb">
    <span> 当前所在位置： </span>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item v-for="(item, index) in props.data" :key="index">{{
        item
      }}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script setup lang="ts">
  defineOptions({
    name: 'PageBreadcrumb',
  });

  const props = defineProps({
    data: {
      type: Array,
      default: () => [],
    },
  });
</script>
