Skip to content
On this page

ek.setTabBarStyle

支持 Promise

设置 Tab Bar 的整体样式。

参数

参数类型默认值必填说明
colorstringTab Bar 的文字颜色,必须是 16 进制格式
selectedColorstringTab Bar 的文字选中时的颜色,必须是 16 进制格式
backgroundColorstringTab Bar 的背景颜色,必须是 16 进制格式
borderStylestringTab Bar 的上边框线条颜色,只支持 white / black
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数
completefunction接口调用结束的回调函数(调用成功、失败都会执行)

Example

ts
ek.setTabBarStyle({
  color: '#fff',
  selectedColor: '#1989fa',
  backgroundColor: '#000'
})