Files
aurora-admin/site/sources/breadcrumb/vue3.txt
T
aurora-admin c65a69c34e
Deploy to GitHub Pages / deploy (push) Failing after 16s
Regression / regression (push) Failing after 15m2s
feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
2026-09-12 14:18:41 +08:00

17 lines
559 B
Plaintext

<template>
<div class="aa-breadcrumb">
<template v-for="(it, i) in items" :key="i">
<span class="aa-breadcrumb-item" :class="{ 'is-current': i === items.length - 1 }"
@click="i !== items.length - 1 && emit('select', it)">{{ it.label }}</span>
<span v-if="i !== items.length - 1" class="aa-breadcrumb-sep">/</span>
</template>
</div>
</template>
<script setup>
const props = defineProps({ items: { type: Array, default: () => [] } });
const emit = defineEmits(['select']);
</script>
<style src="./Breadcrumb.css"></style>