Open yinxh2016 opened 4 years ago
pickerValueDefault改变,视图默认选中的不对
pickerValueDefault 只会在第一次初始化 picker 的时候生效。
pickerValueDefault
picker
pickerValueDefault 默认的是index索引,而不是value的值,我真的要吐了
@aoeng 用 index 索引是为了保证数据的唯一,如果用 value 数据重复的话就会存在问题,像小程序原生 picker 组件同样是用的 index 作为值。
pickerValueDefault改变,视图默认选中的不对