doc: fix tag demo error #4721

pull/4723/head
tangjinzhou 2021-10-01 15:18:45 +08:00
parent 4021e89b15
commit 1228e1d604
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ Generating a set of Tags by array, you can add and remove dynamically.
</docs> </docs>
<template> <template>
<template v-for="(tag, index) in tags" :key="index"> <template v-for="(tag, index) in tags" :key="tag">
<a-tooltip v-if="tag.length > 20" :title="tag"> <a-tooltip v-if="tag.length > 20" :title="tag">
<a-tag :key="tag" :closable="index !== 0" @close="handleClose(tag)"> <a-tag :closable="index !== 0" @close="handleClose(tag)">
{{ `${tag.slice(0, 20)}...` }} {{ `${tag.slice(0, 20)}...` }}
</a-tag> </a-tag>
</a-tooltip> </a-tooltip>