ek.setTabBarStyle
支持 Promise
设置 Tab Bar 的整体样式。
参数
参数 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
color | string | 否 | Tab Bar 的文字颜色,必须是 16 进制格式 | |
selectedColor | string | 否 | Tab Bar 的文字选中时的颜色,必须是 16 进制格式 | |
backgroundColor | string | 否 | Tab Bar 的背景颜色,必须是 16 进制格式 | |
borderStyle | string | 否 | Tab Bar 的上边框线条颜色,只支持 white / black | |
success | function | 否 | 接口调用成功的回调函数 | |
fail | function | 否 | 接口调用失败的回调函数 | |
complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
Example
ts
ek.setTabBarStyle({
color: '#fff',
selectedColor: '#1989fa',
backgroundColor: '#000'
})