提交 28bcbfec 编写于 作者: D DCloud_LXH

feat: 添加鸿蒙兼容性

上级 24f0ec42
...@@ -69,8 +69,7 @@ interface Uni { ...@@ -69,8 +69,7 @@ interface Uni {
/** /**
* 获取电池电量信息 * 获取电池电量信息
* @description 获取电池电量信息 *
* @param {GetBatteryInfoOptions} options
* @example * @example
* ```typescript * ```typescript
* uni.getBatteryInfo({ * uni.getBatteryInfo({
...@@ -92,6 +91,11 @@ interface Uni { ...@@ -92,6 +91,11 @@ interface Uni {
* "osVer": "12.0", * "osVer": "12.0",
* "uniVer": "3.6.11", * "uniVer": "3.6.11",
* "unixVer": "4.11" * "unixVer": "4.11"
* },
* "harmony": {
* "osVer": "x",
* "uniVer": "x",
* "unixVer": "x"
* } * }
* } * }
* } * }
...@@ -101,7 +105,7 @@ interface Uni { ...@@ -101,7 +105,7 @@ interface Uni {
getBatteryInfo (options : GetBatteryInfoOptions) : void, getBatteryInfo (options : GetBatteryInfoOptions) : void,
/** /**
* 同步获取电池电量信息 * 同步获取电池电量信息
* @description 获取电池电量信息 *
* @example * @example
* ```typescript * ```typescript
* uni.getBatteryInfo() * uni.getBatteryInfo()
...@@ -119,6 +123,11 @@ interface Uni { ...@@ -119,6 +123,11 @@ interface Uni {
* "osVer": "12.0", * "osVer": "12.0",
* "uniVer": "3.6.11", * "uniVer": "3.6.11",
* "unixVer": "4.11" * "unixVer": "4.11"
* },
* "harmony": {
* "osVer": "x",
* "uniVer": "x",
* "unixVer": "x"
* } * }
* } * }
* } * }
......
...@@ -97,6 +97,11 @@ export interface Uni { ...@@ -97,6 +97,11 @@ export interface Uni {
* "osVer": "12.0", * "osVer": "12.0",
* "uniVer": "3.7.7", * "uniVer": "3.7.7",
* "unixVer": "4.11" * "unixVer": "4.11"
* },
* "harmony": {
* "osVer": "x",
* "uniVer": "x",
* "unixVer": "x"
* } * }
* } * }
* } * }
...@@ -121,6 +126,11 @@ export interface Uni { ...@@ -121,6 +126,11 @@ export interface Uni {
* "osVer": "12.0", * "osVer": "12.0",
* "uniVer": "3.7.7", * "uniVer": "3.7.7",
* "unixVer": "4.11" * "unixVer": "4.11"
* },
* "harmony": {
* "osVer": "x",
* "uniVer": "x",
* "unixVer": "x"
* } * }
* } * }
* } * }
...@@ -145,6 +155,11 @@ export interface Uni { ...@@ -145,6 +155,11 @@ export interface Uni {
* "osVer": "13.0", * "osVer": "13.0",
* "uniVer": "3.7.7", * "uniVer": "3.7.7",
* "unixVer": "4.11" * "unixVer": "4.11"
* },
* "harmony": {
* "osVer": "x",
* "uniVer": "x",
* "unixVer": "x"
* } * }
* } * }
* } * }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册