Commit b840efe3 authored by Xuguangxing's avatar Xuguangxing

feat: 阻止导航点击事件

parent 3c8aa8a6
......@@ -30,7 +30,7 @@
:class="{pic: item.type == 2, current: +navIndex === index}"
v-for="(item, index) in navigatorConfig.navigatorData"
:key="index"
@click="handleNavUrl(item, +navIndex === index)"
@click.stop="handleNavUrl(item, +navIndex === index)"
>
<img class="icon" :src="+navIndex === index ? item.selectIcon : item.icon" alt="">
<span v-if="item.type == 1 && item.name" class="text" :style="computedNavTextStyle(item, +navIndex === index)">{{item.name}}</span>
......@@ -46,13 +46,18 @@
height: 100%;
position: relative;
.bottomNav{
box-sizing: content-box;
width: 100%;
height: 55px;
position: fixed;
bottom: 0;
left: 0;
z-index: 99;
padding: 0 4px;
z-index: 999;
padding-top: 0;
padding-left: 4px;
padding-right: 4px;
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
display: flex;
justify-content: space-around;
.navItem{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment