doc: fix tag demo error #4721

pull/4723/head
tangjinzhou 3 years ago
parent 4021e89b15
commit 1228e1d604

@ -17,9 +17,9 @@ Generating a set of Tags by array, you can add and remove dynamically.
</docs>
<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-tag :key="tag" :closable="index !== 0" @close="handleClose(tag)">
<a-tag :closable="index !== 0" @close="handleClose(tag)">
{{ `${tag.slice(0, 20)}...` }}
</a-tag>
</a-tooltip>

Loading…
Cancel
Save