Refactor #3570
parent
3acadd5ae8
commit
d68ce0fafa
|
@ -3,7 +3,7 @@
|
||||||
<ol class="p-breadcrumb-list">
|
<ol class="p-breadcrumb-list">
|
||||||
<BreadcrumbItem v-if="home" :item="home" class="p-breadcrumb-home" :exact="exact" />
|
<BreadcrumbItem v-if="home" :item="home" class="p-breadcrumb-home" :exact="exact" />
|
||||||
<template v-for="(item, i) of model" :key="item.label">
|
<template v-for="(item, i) of model" :key="item.label">
|
||||||
<li v-if="isHomeExist(i)" class="p-menuitem-separator">
|
<li v-if="home || i !== 0" class="p-menuitem-separator">
|
||||||
<span class="pi pi-chevron-right" aria-hidden="true"></span>
|
<span class="pi pi-chevron-right" aria-hidden="true"></span>
|
||||||
</li>
|
</li>
|
||||||
<BreadcrumbItem :item="item" :template="$slots.item" :exact="exact" />
|
<BreadcrumbItem :item="item" :template="$slots.item" :exact="exact" />
|
||||||
|
@ -31,11 +31,6 @@ export default {
|
||||||
default: true
|
default: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
isHomeExist(i) {
|
|
||||||
return this.home || i !== 0;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
BreadcrumbItem: BreadcrumbItem
|
BreadcrumbItem: BreadcrumbItem
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue