picker-view如果切换显示为空白
使用picker-view时,如果hidden默认设置为true的话,切换为false就会显示空白。默认设置为false则切换正常。不论hidden设置在外层view还是直接设置在picker-view标签上,都会出现这种情况
< picker-view indicator-style = "height: 50px;" class = "cal-num_model_sel" style = "width: 100%; height: 450rpx;" value = "{{formModel.value}}" bindchange = "bindChange" > < picker-view-column > < view wx:for = "{{formModel.years}}" style = "line-height: 50px" >{{item}}年</ view > </ picker-view-column > < picker-view-column > < view wx:for = "{{formModel.months}}" style = "line-height: 50px" >{{item}}月</ view > </ picker-view-column > < picker-view-column > < view wx:for = "{{formModel.days}}" style = "line-height: 50px" >{{item}}日</ view > </ picker-view-column > </ picker-view > </ view > |
显示如下图: