0

    怎样控制小程序tabbar图标大小_微信小程序tabBar的基本设置

    2023.08.05 | admin | 202次围观

    1.

    app.json2.

    当我们想要在小程序中实现下面的效果的时候微信小程序tabbar高度,可以使用tabBar3.

    从图片中可以看到tab的结构:4.

    1、3个可选的tab:5.

    list:使用tabBar对象中的list对象数组属性来控制微信小程序tabbar高度,list数组中的每个元素(对象),{"pages":["pages/index/index","pages/publish/index","pages/user/index"],"tabBar":{"color":"#dddddd","selectedColor":"#16f2e7","backgroundColor":"#fff","borderStyle":"black","list":[{"pagePath":"pages/index/index","text":"找房","iconPath":"static/image/icon_home_u.png","selectedIconPath":"static/image/icon_home_a.png"},{"pagePath":"pages/publish/index","text":"发布房源","iconPath":"static/image/icon_release_u.png","selectedIconPath":"static/image/icon_release_a.png"},{"pagePath":"pages/user/index","text

    版权声明

    本文仅代表作者观点。
    本文系作者授权发表,未经许可,不得转载。

    标签: 小程序list
    发表评论