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

Picker 组价 多列模式 数据格式能否修改 或 扩展 #595

Open
ImpTyrion opened this issue Dec 11, 2023 · 3 comments
Open

Picker 组价 多列模式 数据格式能否修改 或 扩展 #595

ImpTyrion opened this issue Dec 11, 2023 · 3 comments

Comments

@ImpTyrion
Copy link

image
Picker 组件能否把多列的数据格式改为children呢
不然配合Popup 异步获取数据时,pickerRef.current 压根无法获取组件实例, pickerRef.current.setColumnValues(0, options)自然报错

ps: 为什么无法加入沟通群,充电了也加不了群,是否还维护呢?

@ImpTyrion
Copy link
Author

还有现在组件是知道多少列后,设置的固定columns={[{ values: [] }, { values: [] }]},实际情况不知道有多少列,不设置columns={[{ values: [] }, { values: [] }]}时,用setColumnValues就会报错

@zuolung
Copy link
Contributor

zuolung commented Dec 14, 2023

动态列可以考虑下cascader,vant原本的picker组件就是如此设计的,暂时无法调整

@ImpTyrion
Copy link
Author

cascader 在移动端的表现中,只选父级的体验不好或者说根本不合适

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

No branches or pull requests

2 participants