|
var param = {
name: 'nav-tab',
title: 'nav-tab',
bgColor: '#f2f2f2',
slidBackEnabled: false,
navigationBar: {
hideBackButton: true
},
hideNavigationBar: true,
tabBar: {
animated: true,
list: [{
text: "微信",
iconPath: "widget://image/001.png",
selectedIconPath: "widget://image/001A.png"
}, {
text: "通讯录",
iconPath: "widget://image/002.png",
selectedIconPath: "widget://image/002Ac.png"
}, {
text: "发现",
iconPath: "widget://image/003.png",
selectedIconPath: "widget://image/003Ac.png"
}, {
text: "我",
iconPath: "widget://image/004.png",
selectedIconPath: "widget://image/004Ac.png"
}],
frames: [{
title: "微信",
name: "tab_frm_1",
url: "widget://html/tab_content_1.html"
}, {
title: "通讯录",
name: "tab_frm_2",
url: "widget://html/tab_content_2.html"
}, {
title: "发现",
name: "tab_frm_3",
url: "widget://html/tab_content_3.html"
}, {
title: "我",
name: "tab_frm_4",
url: "widget://html/tab_content_4.html"
}]
}
}
api.openTabLayout(param);
我改成了108*108 |
|