请问代码中的 tabbar的文件是什么样的
发布于 6 年前 作者 lei22 12149 次浏览 来自 问答

https://developers.weixin.qq.com/miniprogram/dev/extended/weui/tabbar.html

请问代码中的 tabbar的文件是什么样的

3 回复
{
  "usingComponents": {
    "mp-tabbar": "../components/tabbar/tabbar"
  },
  "navigationBarTitleText": "UI组件库"
}

谢谢分享!!

我的意思是这个里面应该写什么 -》../components/tabbar/tabbar

底部标签栏

或许是这样

“tabBar”: {

	"color": "\#666666",

	"selectedColor": "\#ff373a",

	"borderStyle": "black",

	"backgroundColor": "\#FFFFFF",

	"iconWidth": "20px",

	"list": \[{

			"pagePath": "pages/index/index",

			"text": "首页",

			"iconPath": "static/index/nav-1.png",

			"selectedIconPath": "static/index/nav-1-h.png"

		},

		{

			"pagePath": "pages/userShop/shop",

			"text": "商城",

			"iconPath": "static/index/nav-2.png",

			"selectedIconPath": "static/index/nav-2-h.png"

		},

		{

			"pagePath": "pages/watch/index",

			"text": "直播",

			"iconPath": "static/index/nav-3.png",

			"selectedIconPath": "static/index/nav-3-h.png"

		},

		{

			"pagePath": "pages/msg/message",

			"text": "消息",

			"iconPath": "static/index/nav-4.png",

			"selectedIconPath": "static/index/nav-4-h.png"

		},

		{

			"pagePath": "pages/my/me",

			"text": "我的",

			"iconPath": "static/index/nav-5.png",

			"selectedIconPath": "static/index/nav-5-h.png"

		}

	\]



}
回到顶部