使用自定义导航组件时候,顶部导航的回退图标,在进行navigateTo跳转时,图标会放大闪现一下?
组件 donttaiNavi.wxml
<view class="dongtai-nav" style="height:{{topBarHeight+navHeight}}">
<!-- 状态栏 -->
<view style="width:100%;height:{{topBarHeight}}px;"></view>
<!-- 导航栏 -->
<view style="height:{{navHeight}}px;width:100%;position:relative;" class="nav-box">
<image src="/images/icon/back.png" class="back-img" mode="widthFix" bindtap="naviBak"></image>
<view class="nav-center">
<text class="nav-title" style="height:{{navHeight}};line-height:{{navHeight}}px;">标题</text>
<image src="/images/icon/down.png" alt="" class="down-img" mode="widthFix" bindtap="showDataPicker"></image>
</view>
</view>
</view>
page.json
{
"usingComponents": {"we-navi":"dongtaiNavi/donttaiNavi",
"calendar":"../../../plugin/components/calendar/calendar"
},
"navigationStyle":"custom"
}
page.wxml
<we-navi bindcustomevent="showRL">
</we-navi>
从tab页面navigateTo到这个page.xml页面的时候明显可以看到回退的icon会闪一下,从大图片闪到正常,Android真机预览
wx.navigateTo({
url: '这个page页面路径',
});
3 回复
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。