在App.vue中设置
/deep/.uni-tabbar {
.uni-tabbar-border {
background-color: #edf1fc !important;
box-shadow: 0 0px 2px 0 rgba(24, 120, 229, 0.5);
}
/deep/.uni-tabbar__item:nth-child(4) {
width: 50px !important;
/deep/.uni-tabbar__icon.uni-tabbar__icon__difff {
position: relative;
width: 50px !important;
height: 50px !important;
border-radius: 50px !important;
transform: translateY(-35%);
background-color: #ffffff;
box-shadow: 0 0 5px 1px rgba(24, 120, 229, 0.1);
img {
width: 50px;
height: 50px;
border-radius: 50px;
box-sizing: border-box;
}
}
}
}
HBuilderx模拟器中正常显示
真机加载显示的
6***@qq.com (作者)
我看了插件市场有点采用MidButton通过uni.onTabBarMidButtonTap跳转 或 自定义vue页面做底部Tab 效果有一点差异不是很好有那种 中间凸起自定义图标的没有
2023-08-08 15:31