ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

CollapsePanel中的key是否可以切换为其他字段

Open wangyingjun147 opened this issue 6 months ago • 0 comments
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会冲突

wangyingjun147 avatar Apr 24 '25 07:04 wangyingjun147