# showLoadingWithMsg
自定义提示语loading
# 调用方式
showLoadingWithMsg(msg, bgStyle = "black")
1
返回 Promise,使用 then/catch 或 await 处理结果。 仅当宿主提供此能力时导出,调用前可判断方法是否存在。
# 请求参数
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
| msg | String | Y | — | Loading 提示文本 |
| bgStyle | String | N | 'black' | 显式指定背景样式;传 white 时使用白色背景样式 |
# 接口调用示例
this.$bridge.showLoadingWithMsg('加载中', 'white')
.catch(error => console.error(error))
1
2
2
# 返回参数
返回 Promise。当前实现会在调用原生方法前处理主题样式;Promise 的完成不表示业务请求已结束。