Aurora Admin v1.2.0: 79 components x 5 ends, doc site, contracts batch 1, playground, regression, deploy ready
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user