uni——底部导航栏隐藏单个

案例说明

假设底部导航栏有4个模块,我想隐藏其中第一个和第三个。需要显示之后才能隐藏

uni.showTabBar()
uni.setTabBarItem({
    
    
	index: 0,
	visible: false
})
uni.setTabBarItem({
    
    
	index: 2,
	visible: false
})

网址:
https://uniapp.dcloud.net.cn/api/ui/tabbar.html#settabbaritem

猜你喜欢

转载自blog.csdn.net/xulihua_75/article/details/130386575
今日推荐