<view class="grace-rows">
<button @click="showOtherInfo">显示关联数据</button>
</view>
<uni-drawer :visible="flag">
<view style="padding:30upx;">
<view class="uni-title">抽屉式导航</view>
</view>
</uni-drawer>
showOtherInfo:function(){
this.flag = true;
},
我将visible的值设为了一个变量,点击按钮为将flag设置为true,但是把这个抽屉关闭过后,在点按钮就不显示了
3 个回复
5***@qq.com
关闭的时候要把你的状态值设为false
Neil_HL
插件市场最新版Drawer组件已经修复此问题
2***@qq.com
数据多了怎么让他滑动
DCloud_uniCloud_WYQ
自己套一个scroll-view
2020-02-04 10:57