@nutui/nutui-react 2.7.8 → 2.7.9

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.
@@ -0,0 +1,19 @@
1
+ import { default as Taro } from '@tarojs/taro';
2
+ interface IDeviceInfo extends Omit<Taro.getDeviceInfo.Result, 'deviceAbi' | 'CPUType'> {
3
+ }
4
+ /**
5
+ * 获取设备基础信息,兼容新旧 API
6
+ * @returns {IDeviceInfo} 设备基础信息
7
+ */
8
+ export declare const getDeviceInfo: () => IDeviceInfo;
9
+ /**
10
+ * 获取窗口信息,兼容新旧 API
11
+ * @returns {Taro.getWindowInfo.Result} 窗口信息
12
+ */
13
+ export declare const getWindowInfo: () => Taro.getWindowInfo.Result;
14
+ /**
15
+ * 获取应用基础信息,兼容新旧 API
16
+ * @returns {Taro.getAppBaseInfo.Result} 应用基础信息
17
+ */
18
+ export declare const getAppBaseInfo: () => Taro.getAppBaseInfo.Result;
19
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "2.7.8",
3
+ "version": "2.7.9",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",