|
[插件使用]
NVNavigationBar选中小短横怎么实现
[复制链接]
- navigationBar.open({
- rect: {
- w: api.winWidth - 38,
- h: 38
- },
- styles: {
- orientation: 'horizontal',
- bg: '#fff',
- bgAlpha: 1,
- font: {
- size: 14,
- sizeSelected: 15,
- color: '#333',
- colorSelected: '#ff6096',
- alpha: 1
- },
- itemSize: {
- w: 68,
- }
- },
- items: window[frameNames[index]].item,
- selectedIndex: 0,
- fixedOn: api.frameName,
- id: frameNames[index]+'_id'
- }, function (ret, err) {
- switch (ret.eventType) {
- case 'show':
- window[frameNames[currentIndex] + '_id'] = ret.id;
- break;
- case 'click':
- api.setFrameGroupIndex({
- name: frameNames[currentIndex],
- index: ret.index,
- scroll: true
- });
- break;
- }
- });
复制代码 navigationBar = api.require('NVNavigationBar');
NVNavigationBar bg放图片没反应!!!! 我现在是想要实现那个选中的小短横,求方法!!用的旧版的有这个属性,但是新版的没有,但是旧版的每个item不能自定义宽度
|
|