tabbar 设置样式

app.json配置文件中,使用时需要把注释删除,配置文件不支持备注

tabbar:{

  color:'#fff',//字体颜色  需要时HexColor,设置成red 无法识别,下方颜色设置同理

  selectedColor:"#000",

  borderStyle:'black',//仅支持black/light

  backgroundColor:'#333'//设置背景颜色

  position:'bottom',//可选值 bottom、top

  list:{

  pagePath:'',//页面路径,必须在 pages 中先定义

  iconPath:'',//图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px,当 postion 为 top 时,此参数无效

  text:'',//tab上的文字

  selectedIconPath:''//选中状态图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px,当 postion 为 top 时,此参数无效

  }

}

猜你喜欢

转载自www.cnblogs.com/xiaofenguo/p/9956777.html
今日推荐