“Uni-app菜单栏”的版本间的差异

来自CloudWiki
跳转至: 导航搜索
(创建页面,内容为“ ==代码== <nowiki> "tabBar": { "color": "#8B8B8B", // 表示tabBar item项中文字默认的颜色 "selectedColor": "#F63515", // 表示tabBar item…”)
 
效果图
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
  
 
==代码==
 
==代码==
 +
.
 +
 
  <nowiki>
 
  <nowiki>
 
"tabBar": {
 
"tabBar": {
第24行: 第26行:
 
==效果图==
 
==效果图==
  
[[文件:wexin22062902.png|600px]]
+
[[文件:wexin22062902.png|600]]

2022年6月29日 (三) 09:15的最新版本

代码

.

	"tabBar": {
		    "color": "#8B8B8B", // 表示tabBar item项中文字默认的颜色
		    "selectedColor": "#F63515", // 表示tabBar item项中文字选中的颜色
		    "borderStyle": "black",// 表示tabBar 上边框的颜色,目前只支持 black/white
		    "backgroundColor": "#ffffff",// 表示 tabBar 的背景颜色
		    "list": [{
		        "pagePath": "pages/index/index", // 表示第一tab项的页面路径
		        // "iconPath": "static/image/home_default.png", // 表示当前 tab 未选中时所显示的图标路径
		        // "selectedIconPath": "static/image/home_select.png", // 表示当前 tab 选中时所显示的图标文件路径
		        "text": "首页" // 表示当前 tab 的文字
		    }, {
		        "pagePath": "pages/list/list",
		        // "iconPath": "static/image/me_default.png",
		        // "selectedIconPath": "static/image/me_select.png",
		        "text": "我的"
		    }]
	
    }

效果图

600