@bud-fe/h5-native-bridge 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,13 @@
1
1
  import { BridgePlugin, PluginContext } from '../core';
2
2
 
3
3
  export interface ToastParams {
4
- /** toast的类型 none, success, fail, exception*/
5
- type?: "none" | "success" | "fail" | "exception";
4
+ /** toast的类型 none, success, fail, exception,normal*/
5
+ type?: "none" | "success" | "fail" | "exception" | "normal";
6
6
  /** 提示信息 */
7
7
  content: string;
8
8
  /** 显示持续时间,单位毫秒,默认2000ms,按系统规范[android只有两种(<=2s >2s)] */
9
9
  duration?: number;
10
+ position?: "top" | "bottom" | "center";
10
11
  }
11
12
  export interface LoadingParams {
12
13
  /** 提示信息 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bud-fe/h5-native-bridge",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "H5与原生App通信工具库",
5
5
  "type": "module",
6
6
  "main": "./dist/native-bridge.umd.js",