picker取消,确定按钮样式改变
引入picker组件后,在开发者工具中样式是正常的,在真机上样式就变了
在开发者工具:
在真机上调试(荣耀V20):
引入部分代码:
wxml:
<picker bindchange="bindPickerChange" value="{{index}}" range="{{staffArr}}">
<view class="picker right_picker {{company.size==''?'right_picker_noselect':''}}">
{{company.size==''?'请选择':company.size}}
</view>
</picker>
wxss:
.right_picker{
margin-right: 10rpx;
font-size: 30rpx;
}
.right_picker_noselect{
color: #ccc;
}