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 mode为selector,pickerValueDefault改变,视图默认选中的不对,很随机,也没有发现规律 #44

Open
yinxh2016 opened this issue Jan 9, 2020 · 3 comments

Comments

@yinxh2016
Copy link

pickerValueDefault改变,视图默认选中的不对

@KuangPF
Copy link
Member

KuangPF commented Jan 12, 2020

pickerValueDefault 只会在第一次初始化 picker 的时候生效。

@aoeng
Copy link

aoeng commented Apr 7, 2020

pickerValueDefault 默认的是index索引,而不是value的值,我真的要吐了

@KuangPF
Copy link
Member

KuangPF commented Apr 17, 2020

@aoeng 用 index 索引是为了保证数据的唯一,如果用 value 数据重复的话就会存在问题,像小程序原生 picker 组件同样是用的 index 作为值。

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