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 时,此参数无效

  }

}

posted on 2018-11-14 10:51  半夏微澜ぺ  阅读(3156)  评论(0编辑  收藏  举报