doc: fix tag demo error #4721
parent
4021e89b15
commit
1228e1d604
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue