You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Global/components/Misc/Breadcrumbs.vue

33 lines
889 B

<template>
<v-breadcrumbs :items="items">
<template v-slot:divider>
<v-icon>fas fa-chevron-left</v-icon>
</template>
<template v-slot:item="props">
<router-link :to="props.item.href" class="WM-Link WM-Margin-T-5" :class="[LinkClass, props.item.disabled && 'disabled']"><v-icon>fas fa-{{ props.item.icon }}</v-icon> {{ props.item.text.toUpperCase() }}</router-link>
</template>
</v-breadcrumbs>
</template>
<script>
export default {
props: {
LinkClass: { default: 'WM-Link-Red' },
items: { default: [] },
},
};
</script>
<style scoped lang="scss">
.WM-Link .v-icon{
margin-bottom: 7px;
margin-left: 5px;
}
.disabled {
color: grey;
pointer-events: none
}
.v-breadcrumbs li:nth-child(2n) {
padding: 0 12px 0 30px;
}
</style>