|
[多端开发]
app.json怎么配置tabbar图标大小?
[复制链接]
本帖最后由 池中金麟 于 2021-3-19 10:22 编辑
代码:"tabBar": { "background": "#fff",
"shadow": "#eee",
"color": "#999999",
"selectedColor": "#3C6AFB",
"textOffset": 3,
"fontSize": 14,
"scrollEnabled": true,
"index": 0,
"preload": 2,
"frames": [{
"name": "home",
"url": "./pages/monitoring_home/monitoring_home.stml",
"title": "首页"
}, {
"name": "record",
"url": "./pages/record/record.stml",
"title": "记录"
}, {
"name": "setting",
"url": "./pages/setting/setting.stml",
"title": "设置"
,
"list": [{
"text": "首页",
"iconPath": "widget://image/nvtabbar/home_big.png",
"selectedIconPath": "widget://image/nvtabbar/home_active_big.png"
}, {
"text": "记录",
"iconPath": "widget://image/nvtabbar/record.png",
"selectedIconPath": "widget://image/nvtabbar/record_active.png",
"iconRect": {//此属性不生效,测试用的
"w": 25.0,
"h": 25.0
}
}, {
"text": "设置",
"iconPath": "widget://image/nvtabbar/setting.png",
"selectedIconPath": "widget://image/nvtabbar/setting_active.png"
}
|
|