Skip to content

Commit 1228e1d

Browse files
committed
doc: fix tag demo error #4721
1 parent 4021e89 commit 1228e1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/tag/demo/control.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Generating a set of Tags by array, you can add and remove dynamically.
1717
</docs>
1818

1919
<template>
20-
<template v-for="(tag, index) in tags" :key="index">
20+
<template v-for="(tag, index) in tags" :key="tag">
2121
<a-tooltip v-if="tag.length > 20" :title="tag">
22-
<a-tag :key="tag" :closable="index !== 0" @close="handleClose(tag)">
22+
<a-tag :closable="index !== 0" @close="handleClose(tag)">
2323
{{ `${tag.slice(0, 20)}...` }}
2424
</a-tag>
2525
</a-tooltip>

0 commit comments

Comments
 (0)