Fixed #4399 - Breadcrumb: duplicate key warning

pull/4402/head
Tuğçe Küçükoğlu 2023-09-06 14:50:21 +03:00
parent 46cf924d09
commit 82442f8d13
1 changed files with 1 additions and 1 deletions

View File

@ -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')" />