当前位置:网站首页>uniapp 实现底部导航栏tabbar
uniapp 实现底部导航栏tabbar
2022-08-09 17:21:00 【小阳生煎】
pages.json文件下配置tabBar
{
"pages":[
...
],
"tabBar": {
"color":"#8a8a8a",
"selectedColor":"#00aa00",
"borderStyle":"black",
"backgroundColor":"#ffffff",
"list": [
{
"pagePath":"pages/index/index",
"text":"首页",
"iconPath":"static/home_normal.png",
"selectedIconPath":"static/home.png"
},
{
"pagePath":"pages/search/search",
"text":"发现",
"iconPath":"static/search_normal.png",
"selectedIconPath":"static/search.png"
},
{
"pagePath":"pages/me/me",
"text":"我的",
"iconPath":"static/me_normal.png",
"selectedIconPath":"static/me.png"
}
]
},
"globalStyle": {
...
}
}
tabBar参数说明
pagePath:页面路径
text:底部导航文字
iconPath:没选中前的图标路径
selectedIconPath:选中后的图标路径
边栏推荐
猜你喜欢

What is test development and why is it so popular now?

ARM 汇编基础

动手学深度学习_风格迁移

Can't install the Vmware virtual machine on the Ark Kai server?

Wallys/QCA 9880/802.11ac Mini PCIe Wi-Fi Module, Dual Band, 2,4GHz / 5GHz advanced edition

Cortex-A7 MPCore Architecture

动态RDLC报表(一)

艺术与科技的狂欢,云端XR支撑阿那亚2022砂之盒沉浸艺术季

从事软件测试一年,只会基础的功能测试,怎么进一步学习?

The senior told me that the MySQL of the big factory is connected through SSH
随机推荐
How tall is the B+ tree of the MySQL index?
win10 uwp 改变鼠标
Guo Wei (Guo Daxia): Nine Yes or No about open source
How to choose a good SaaS knowledge base tool?
Tan Zhongyi: Do you know who the "Queen of Open Source" is?
最强分布式锁工具:Redisson
JMeter notes 6 | JMeter recording agent (configuration)
OpenCV 轮廓 —— 轮廓匹配
d中shared用法
API接口是什么?API接口常见的安全问题与安全措施有哪些?
JVM:(八)运行时数据区之方法区
JSDN blog system
Entry node of ring in leetcode/linked list
win10 uwp 自定义控件 SplitViewItem
redirect action
【工业数字化大讲堂 第二十一期】企业数字化能碳AI管控平台,特邀技术中心总经理 王勇老师分享,8月11日(周四)下午4点
方舟开服务器Vmware虚拟机安装不上?
loadrunner脚本--参数化
The principle implementation of handwritten flexible.js, I finally understand the multi-terminal adaptation of the mobile terminal
Engaged in software testing for a year, only basic functional testing, how to further study?