Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
wangyingjun147 opened this issue Apr 24, 2025 · 0 comments
Open
1 task

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

wangyingjun147 opened this issue Apr 24, 2025 · 0 comments

Comments

@wangyingjun147
Copy link

wangyingjun147 commented Apr 24, 2025

  • 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会冲突

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant