setTabBarStyle
版本要求:
MiniKit≥1.0.0@ray-js/ray≥0.3.23
支持平台:
iOSAndroid
方法签名
setTabBarStyle(params: )描述
动态设置 tabBar 的整体样式
参数
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
color | string | 是 | tab 上的文字默认颜色 |
selectedColor | string | 是 | tab 上的文字选中时的颜色 |
backgroundColor | string | 是 | tab 的背景色 |
borderStyle | string | 是 | tabBar上边框的颜色, 仅支持 black/white |
complete | () => void | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
success | () => void | 否 | 接口调用成功的回调函数 |
fail | (params: Object) => void | 否 | 接口调用失败的回调函数 |
fail 回调参数
| 属性 | 类型 | 说明 |
|---|---|---|
errorMsg | string | 错误信息 |
errorCode | string | number | 错误码 |
| 错误扩展 |
返回值
无