帖子
帖子
用户
博客
课程
显示全部楼层
7
帖子
0
勋章
41
Y币

[多端开发] app.json怎么配置tabbar图标大小?

[复制链接]
发表于 2021-3-19 10:20:28
本帖最后由 池中金麟 于 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"
        
    }


1
帖子
0
勋章
21
Y币
改图片大小
7
帖子
0
勋章
41
Y币

只能改图片大小么?不能代码指定大小?
1
帖子
0
勋章
21
Y币
380
帖子
4
勋章
6
Y币
只能改图片大小
您需要登录后才可以回帖 登录

本版积分规则