ant-design-vue
ant-design-vue copied to clipboard
CollapsePanel中的key是否可以切换为其他字段
trafficstars
- [ ] I have searched the issues of this repository and believe that this is not a duplicate.
Version
4.2.6
Environment
vue3
Reproduction link
https://www.antdv.com/components/collapse-cn#api
Steps to reproduce
<Collapse v-model:active-key="activeKey" accordion>
<CollapsePanel v-for="(item, index) in data" :key="index" />
</Collapse>
What is expected?
考虑将字段换为name,但同时可以保留key,name传值时忽略key
What is actually happening?
key会冲突