-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
1.6.2
Environment
"vue": "^2.6.10"
Reproduction link
https://github.com/vueComponent/ant-design-vue
Steps to reproduce
<a-card :loading="loading" :bordered="false" :body-style="{padding: '0'}">
<a-collapse :accordion="true">
<a-collapse-panel
v-for="item in items"
:key="1" // 这里
header="This is panel header 1"
>
<p>{{ item.text }}</p>
</a-collapse-panel>
</a-collapse>
</a-card>What is expected?
除了关闭ESLint检查,有其他的方法能规避掉这个问题吗
What is actually happening?
我想使用v-for渲染一个折叠面板,ESLint 提示与v-for的key冲突了
