|
[其他]
NVNavigationBar 字体可以加粗吗
[复制链接]
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 选择字体可以加粗 吗
|
|