官方示例项目https://developers.weixin.qq.com/miniprogram/dev/component/picker-view.html中添加
mask-style="background-color: #000000;opacity:0.8"
表现如下,选中区域也被覆盖了,是bug吗
<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" mask-style="background-color: #000000;opacity:0.8" value="{{value}}" bindchange="bindChange">
<picker-view-column>
<view wx:for="{{years}}" style="line-height: 50px">{{item}}年</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{months}}" style="line-height: 50px">{{item}}月</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{days}}" style="line-height: 50px">{{item}}日</view>
</picker-view-column>
</picker-view>
这个网址的解决方法,亲测有效
https://www.cnblogs.com/hodbi4/articles/14691039.html
mask-style="background-image: linear-gradient(#ff2020,rgba(255, 255, 255, 0)),linear-gradient(rgba(255, 255, 255, 0),#ff2020);"
这个属性就是设置这块儿的吧?