Skip to content
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

[Feature]: 在checkbox和checkgroup组件中指定key作为选中标识,最终拿到的checklist只有key值的列表,原有的数据结构失效了 #7

Open
LitxGoGoGo opened this issue Jun 12, 2023 · 2 comments

Comments

@LitxGoGoGo
Copy link

What problem does this feature solve

在checkbox和checkgroup组件中指定key作为选中标识,最终拿到的checklist只有key值的列表,原有的数据结构失效了

What does the proposed API look like

在checkbox和checkgroup组件中指定key作为选中标识,最终拿到的checklist只有key值的列表,原有的数据结构失效了

@lamianbu
Copy link
Collaborator

“指定key作为选中标识”,我并没有理解这里做了什么?

我猜下,如果使用 “通过属性valueKey配置组件选中项数据的键值“,确实会改变原有数据接口,选中值变成了valueKey指定的。

@201701024106
Copy link

valueKey指定Checkgroup选中的结果。若不指定valueKey,得到的结果是数组中选中的每一项的集合;若指定valueKey,得到的结果是valueKey的集合。

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

3 participants