请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
显示全部楼层
11
帖子
0
勋章
67
Y币

[其他] NVNavigationBar 字体可以加粗吗

[复制链接]
发表于 2020-11-6 11:26:29
function NVNavigationBar_open() {
    var NVNavigationBar = api.require('NVNavigationBar');
    NVNavigationBar.open({
        rect: {
            x: 0,
            y: 0,
            w: api.frameWidth,
            h: 44
        },
        styles: {
            orientation: 'horizontal',
            bg: '#f2f2f2',
            bgAlpha: 1,
            font: {
                size: 15,
                sizeSelected: 15,
                color: '#333',
                colorSelected: '#50C3FC'
            },
            itemSize: {
                w: 100,
                h: 44
            }
        },
        items: [{
            title: '交通费',
            bg: '#f2f2f2'
        }, {
            title: '会务费',
            bg: '#f2f2f2'
        }, {
            title: '办公费',
            bg: '#f2f2f2'
        }, {
            title: '差旅费',
            bg: '#f2f2f2'
        }, {
            title: '房租',
            bg: '#f2f2f2'
        }],
        selectedIndex: 0,
        fixedOn: api.frameName,
        fixed: true,
        id: 'first'
    }, function(ret, err) {
        console.log(JSON.stringify(ret))
        if (ret.eventType == 'click') {
            api.execScript({
                // name: 'root',
                // frameName: 'frmName',
                script: 'fnsetFrameGroupIndex("group1","' + ret.index + '");'
            });
        }
    });
}
NVNavigationBar 选择字体可以加粗 吗

380
帖子
4
勋章
6
Y币
可以调大小,不能加粗
不能的   
您需要登录后才可以回帖 登录

本版积分规则