微信小程序weui mp-cell 中使用picker、button点击右侧箭头无效的解决方案

添加picker:
1           <view class="weui-cell weui-cell_access weui-cell_wxss f-30 nowrap">
2             <view class="weui-cell__hd" slot="title">分类</view>
3             <view class="text-gray w-100 text-right" bindchange="changeType" style="padding-right:44rpx;">
4               <picker mode="selector" range="{{types}}" range-key="name" value="{{currentTypeIndex}}">{{types[currentTypeIndex].name}}
5                 <view class="weui-cell__ft" style="position:absolute;top:50%;right:76rpx;transform:translateX(44rpx);"></view>
6               </picker>
7               <view wx:else>{{types[currentTypeIndex].name}}</view>
8             </view>
9           </view>

 添加button:

1     <view class="weui-cell weui-cell_access weui-cell_wxss f-30 nowrap">
2       <button open-type="openSetting" slot="title" class="weui-cell__hd bg-none w-100 p-0 normal f-30 text-left">微信权限设置</button>
3       <button open-type="openSetting" slot="footer" class="bg-none w-100 h-100 p-0 normal f-30 block"> <view class="weui-cell__ft" style="position:absolute;top:50%;right:0rpx;"></view></button>
4     </view>

 

posted @ 2022-05-17 11:48  枫落曳  阅读(1279)  评论(0)    收藏  举报