uniapp 使用plus自定义导航栏iconfont右侧自定义图标






 

onNavigationBarButtonTap(e) {
	console.log("点击了自定义按钮");
	console.log(e.index);//按钮的id,根据定义的顺序0,1,2
},

"app-plus": {
		"titleNView":  {
		"titleColor": "#333333",
		"backgroundColor": "#FFFFFF",
		"buttons": [{//title icon
				"fontSrc": "/static/iconfont/iconfont.ttf",
				"text": "\ue626",
				"fontSize": "18px",
				"color": "#333333",
				"background": "rgba(0,0,0,0)"
			 }]
		} 
	}

猜你喜欢

转载自blog.csdn.net/qq_35086913/article/details/111994100