微信小程序开发-tabBar

    技术2022-07-10  102

    微信开发者文档中的介绍: https://developers.weixin.qq.com/miniprogram/dev/reference/configuration/app.html#tabBar

    微信小程序的tabBar支持以下样式的更换:

    1、字体颜色:color 2、选中时字体颜色:selectedColor 3、背景颜色:backgroundColor //不填的话背景颜色就是默认白色// 4、上边框颜色:borderStyle //默认黑色// 5、位置(上或下):position [top/bottom]//默认底部// 6、是否开启自定义模式:custom[true/false]//默认不开// 7、使用list数组来作为tabBar中跳转页面的载体://list中数量只能是2-5个 list中有4个属性: 1、pagePath 跳转页面的路径 2、 text 按钮文字 3、iconPath 按钮图标路径 4、 selectedIconPath 选中时按钮图标路径

    "tabBar": { "color": , "selectedColor": , "list": [ { "pagePath": "pages/index/index", "text": "首页" }, { "pagePath": "pages/logs/logs", "text": "日志" } ] },
    Processed: 0.013, SQL: 9