Fixed #4399 - Breadcrumb: duplicate key warning
parent
46cf924d09
commit
82442f8d13
|
@ -2,7 +2,7 @@
|
||||||
<nav :class="cx('root')" v-bind="ptm('root')" data-pc-name="breadcrumb">
|
<nav :class="cx('root')" v-bind="ptm('root')" data-pc-name="breadcrumb">
|
||||||
<ol :class="cx('menu')" v-bind="ptm('menu')">
|
<ol :class="cx('menu')" v-bind="ptm('menu')">
|
||||||
<BreadcrumbItem v-if="home" :item="home" :class="cx('home')" :templates="$slots" :exact="exact" :pt="pt" :unstyled="unstyled" v-bind="ptm('home')" />
|
<BreadcrumbItem v-if="home" :item="home" :class="cx('home')" :templates="$slots" :exact="exact" :pt="pt" :unstyled="unstyled" v-bind="ptm('home')" />
|
||||||
<template v-for="(item, i) of model" :key="item.label">
|
<template v-for="(item, i) of model" :key="item.label + '_' + i">
|
||||||
<li v-if="home || i !== 0" :class="cx('separator')" v-bind="ptm('separator')">
|
<li v-if="home || i !== 0" :class="cx('separator')" v-bind="ptm('separator')">
|
||||||
<slot name="separator">
|
<slot name="separator">
|
||||||
<ChevronRightIcon aria-hidden="true" v-bind="ptm('separatorIcon')" />
|
<ChevronRightIcon aria-hidden="true" v-bind="ptm('separatorIcon')" />
|
||||||
|
|
Loading…
Reference in New Issue