@dcloudio/uni-app-x 0.2.0 → 0.4.0

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.
Files changed (96) hide show
  1. package/.env +2 -0
  2. package/index.d.ts +1 -2
  3. package/package.json +15 -2
  4. package/types/index.d.ts +4 -0
  5. package/{native → types/native}/CustomEvent.d.ts +6 -0
  6. package/types/native/DrawableContext.d.ts +46 -0
  7. package/{native → types/native}/IPageManager.d.ts +3 -0
  8. package/types/native/RefresherEvent.d.ts +10 -0
  9. package/{native → types/native}/ResizeEvent.d.ts +2 -0
  10. package/types/native/ScrollEvent.d.ts +15 -0
  11. package/types/native/ScrollToLowerEvent.d.ts +10 -0
  12. package/types/native/ScrollToUpperEvent.d.ts +10 -0
  13. package/{native → types/native}/index.d.ts +4 -1
  14. package/types/uni/base/index.d.ts +3 -0
  15. package/types/uni/core/index.d.ts +9 -0
  16. package/types/uni/core/lib/base/event/index.d.ts +15 -0
  17. package/types/uni/core/lib/base/event/interface.d.ts +40 -0
  18. package/types/uni/core/lib/interface.d.ts +16 -0
  19. package/types/uni/core/lib/lifecycle/index.d.ts +9 -0
  20. package/types/uni/core/lib/lifecycle/interface.d.ts +12 -0
  21. package/types/uni/core/lib/route/index.d.ts +65 -0
  22. package/types/uni/core/lib/route/interface.d.ts +208 -0
  23. package/types/uni/core/lib/ui/create-selector-query/index.d.ts +15 -0
  24. package/types/uni/core/lib/ui/create-selector-query/interface.d.ts +172 -0
  25. package/types/uni/core/lib/ui/load-font-face/index.d.ts +25 -0
  26. package/types/uni/core/lib/ui/load-font-face/interface.d.ts +59 -0
  27. package/types/uni/core/lib/ui/page-scroll-to/index.d.ts +23 -0
  28. package/types/uni/core/lib/ui/page-scroll-to/interface.d.ts +52 -0
  29. package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +25 -0
  30. package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +52 -0
  31. package/types/uni/core/lib/ui/set-navigation-bar-color/index.d.ts +23 -0
  32. package/types/uni/core/lib/ui/set-navigation-bar-color/interface.d.ts +56 -0
  33. package/types/uni/core/lib/ui/tab-bar/index.d.ts +145 -0
  34. package/types/uni/core/lib/ui/tab-bar/interface.d.ts +442 -0
  35. package/types/uni/ext/index.d.ts +19 -0
  36. package/types/uni/ext/lib/uni-audio/utssdk/index.d.ts +13 -0
  37. package/types/uni/ext/lib/uni-audio/utssdk/interface.d.ts +804 -0
  38. package/types/uni/ext/lib/uni-exit/utssdk/index.d.ts +19 -0
  39. package/types/uni/ext/lib/uni-exit/utssdk/interface.d.ts +63 -0
  40. package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +33 -0
  41. package/types/uni/ext/lib/uni-file-manager/utssdk/interface.d.ts +132 -0
  42. package/types/uni/ext/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +9 -0
  43. package/types/uni/ext/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +31 -0
  44. package/types/uni/ext/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +11 -0
  45. package/types/uni/ext/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +135 -0
  46. package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/index.d.ts +13 -0
  47. package/types/uni/ext/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +120 -0
  48. package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/index.d.ts +13 -0
  49. package/types/uni/ext/lib/uni-getDeviceInfo/utssdk/interface.d.ts +144 -0
  50. package/types/uni/ext/lib/uni-getLocation-system/utssdk/index.d.ts +15 -0
  51. package/types/uni/ext/lib/uni-getLocation-system/utssdk/interface.d.ts +99 -0
  52. package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/index.d.ts +15 -0
  53. package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/interface.d.ts +93 -0
  54. package/types/uni/ext/lib/uni-getNetworkType/utssdk/index.d.ts +23 -0
  55. package/types/uni/ext/lib/uni-getNetworkType/utssdk/interface.d.ts +67 -0
  56. package/types/uni/ext/lib/uni-getRecorderManager/utssdk/index.d.ts +13 -0
  57. package/types/uni/ext/lib/uni-getRecorderManager/utssdk/interface.d.ts +213 -0
  58. package/types/uni/ext/lib/uni-getSystemInfo/utssdk/index.d.ts +29 -0
  59. package/types/uni/ext/lib/uni-getSystemInfo/utssdk/interface.d.ts +517 -0
  60. package/types/uni/ext/lib/uni-getSystemSetting/utssdk/index.d.ts +11 -0
  61. package/types/uni/ext/lib/uni-getSystemSetting/utssdk/interface.d.ts +61 -0
  62. package/types/uni/ext/lib/uni-media/utssdk/index.d.ts +93 -0
  63. package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +877 -0
  64. package/types/uni/ext/lib/uni-network/utssdk/index.d.ts +61 -0
  65. package/types/uni/ext/lib/uni-network/utssdk/interface.d.ts +569 -0
  66. package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +23 -0
  67. package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +67 -0
  68. package/types/uni/ext/lib/uni-prompt/utssdk/index.d.ts +69 -0
  69. package/types/uni/ext/lib/uni-prompt/utssdk/interface.d.ts +686 -0
  70. package/types/uni/ext/lib/uni-storage/utssdk/index.d.ts +87 -0
  71. package/types/uni/ext/lib/uni-storage/utssdk/interface.d.ts +575 -0
  72. package/types/uni/ext/lib/uni-websocket/utssdk/index.d.ts +49 -0
  73. package/types/uni/ext/lib/uni-websocket/utssdk/interface.d.ts +511 -0
  74. package/types/uni/index.d.ts +3 -0
  75. package/types/uni-cloud/index.d.ts +274 -0
  76. package/{vue → types/vue}/CheckboxGroupChangeEvent.d.ts +9 -3
  77. package/types/vue/PickerViewChangeEvent.d.ts +16 -0
  78. package/types/vue/ProgressActiveendEvent.d.ts +16 -0
  79. package/types/vue/RadioGroupChangeEvent.d.ts +16 -0
  80. package/types/vue/SliderChangeEvent.d.ts +16 -0
  81. package/types/vue/SwitchChangeEvent.d.ts +16 -0
  82. package/types/vue/index.d.ts +6 -0
  83. package/vue/index.d.ts +0 -1
  84. /package/{native → types/native}/Event.d.ts +0 -0
  85. /package/{native → types/native}/IApp.d.ts +0 -0
  86. /package/{native → types/native}/IDocument.d.ts +0 -0
  87. /package/{native → types/native}/INode.d.ts +0 -0
  88. /package/{native → types/native}/IPage.d.ts +0 -0
  89. /package/{native → types/native}/ITabsNode.d.ts +0 -0
  90. /package/{native → types/native}/MouseEvent.d.ts +0 -0
  91. /package/{native → types/native}/NodeData.d.ts +0 -0
  92. /package/{native → types/native}/PageEvent.d.ts +0 -0
  93. /package/{native → types/native}/PageScrollEvent.d.ts +0 -0
  94. /package/{native → types/native}/TabTapEvent.d.ts +0 -0
  95. /package/{native → types/native}/TouchEvent.d.ts +0 -0
  96. /package/{native → types/native}/UniAppManager.d.ts +0 -0
@@ -0,0 +1,67 @@
1
+ export interface Uni {
2
+
3
+ /**
4
+ * openAppAuthorizeSetting()
5
+ * @description
6
+ * 跳转系统授权管理页
7
+ * @param {OpenAppAuthorizeSettingOptions} options
8
+ * @return {void}
9
+ * @tutorial http://uniapp.dcloud.io/api/system/openappauthorizesetting
10
+ * @uniPlatform {
11
+ * "app": {
12
+ * "android": {
13
+ * "osVer": "4.4",
14
+ * "uniVer": "√",
15
+ * "unixVer": "3.9.0"
16
+ * },
17
+ * "ios": {
18
+ * "osVer": "9.0",
19
+ * "uniVer": "√",
20
+ * "unixVer": "3.9.0"
21
+ * }
22
+ * }
23
+ * }
24
+ * @example
25
+ ```typescript
26
+ uni.openAppAuthorizeSetting({});
27
+ ```
28
+ */
29
+ openAppAuthorizeSetting: OpenAppAuthorizeSetting;
30
+ }
31
+
32
+ export type OpenAppAuthorizeSetting = (options: OpenAppAuthorizeSettingOptions) => void;
33
+ export type OpenAppAuthorizeSettingSuccess = {
34
+ /**
35
+ * 错误信息
36
+ */
37
+ errMsg: string
38
+ };
39
+ export type OpenAppAuthorizeSettingSuccessCallback = (result: OpenAppAuthorizeSettingSuccess) => void;
40
+ export type OpenAppAuthorizeSettingFail = {
41
+ /**
42
+ * 错误信息
43
+ */
44
+ errMsg: string
45
+ };
46
+ export type OpenAppAuthorizeSettingFailCallback = (result: OpenAppAuthorizeSettingFail) => void;
47
+ export type OpenAppAuthorizeSettingComplete = {
48
+ /**
49
+ * 错误信息
50
+ */
51
+ errMsg: string
52
+ };
53
+ export type OpenAppAuthorizeSettingCompleteCallback = (result: OpenAppAuthorizeSettingComplete) => void;
54
+ export type OpenAppAuthorizeSettingOptions = {
55
+ /**
56
+ * 接口调用成功的回调函数
57
+ */
58
+ success: OpenAppAuthorizeSettingSuccessCallback | null,
59
+ /**
60
+ * 接口调用失败的回调函数
61
+ */
62
+ fail: OpenAppAuthorizeSettingFailCallback | null,
63
+ /**
64
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
65
+ */
66
+ complete: OpenAppAuthorizeSettingCompleteCallback | null
67
+ };
@@ -0,0 +1,69 @@
1
+ import {
2
+ ShowToastSuccess as ShowToastSuccessOrigin,
3
+ ShowToastFail as ShowToastFailOrigin,
4
+ ShowToastSuccessCallback as ShowToastSuccessCallbackOrigin,
5
+ ShowToastFailCallback as ShowToastFailCallbackOrigin,
6
+ ShowToastCompleteCallback as ShowToastCompleteCallbackOrigin,
7
+ ShowToastOptions as ShowToastOptionsOrigin,
8
+ ShowToast as ShowToastOrigin,
9
+ HideToast as HideToastOrigin,
10
+ ShowLoadingSuccess as ShowLoadingSuccessOrigin,
11
+ ShowLoadingFail as ShowLoadingFailOrigin,
12
+ ShowLoadingSuccessCallback as ShowLoadingSuccessCallbackOrigin,
13
+ ShowLoadingFailCallback as ShowLoadingFailCallbackOrigin,
14
+ ShowLoadingCompleteCallback as ShowLoadingCompleteCallbackOrigin,
15
+ ShowLoadingOptions as ShowLoadingOptionsOrigin,
16
+ ShowLoading as ShowLoadingOrigin,
17
+ HideLoading as HideLoadingOrigin,
18
+ ShowModalSuccess as ShowModalSuccessOrigin,
19
+ ShowModalFail as ShowModalFailOrigin,
20
+ ShowModalSuccessCallback as ShowModalSuccessCallbackOrigin,
21
+ ShowModalFailCallback as ShowModalFailCallbackOrigin,
22
+ ShowModalCompleteCallback as ShowModalCompleteCallbackOrigin,
23
+ ShowModalOptions as ShowModalOptionsOrigin,
24
+ ShowModal as ShowModalOrigin,
25
+ ShowActionSheetSuccess as ShowActionSheetSuccessOrigin,
26
+ ShowActionSheetFail as ShowActionSheetFailOrigin,
27
+ Popover as PopoverOrigin,
28
+ ShowActionSheetSuccessCallback as ShowActionSheetSuccessCallbackOrigin,
29
+ ShowActionSheetFailCallback as ShowActionSheetFailCallbackOrigin,
30
+ ShowActionSheetCompleteCallback as ShowActionSheetCompleteCallbackOrigin,
31
+ ShowActionSheetOptions as ShowActionSheetOptionsOrigin,
32
+ ShowActionSheet as ShowActionSheetOrigin,
33
+ Uni as UniOrigin
34
+ } from './interface'
35
+
36
+ declare global {
37
+ type ShowToastSuccess = ShowToastSuccessOrigin
38
+ type ShowToastFail = ShowToastFailOrigin
39
+ type ShowToastSuccessCallback = ShowToastSuccessCallbackOrigin
40
+ type ShowToastFailCallback = ShowToastFailCallbackOrigin
41
+ type ShowToastCompleteCallback = ShowToastCompleteCallbackOrigin
42
+ type ShowToastOptions = ShowToastOptionsOrigin
43
+ type ShowToast = ShowToastOrigin
44
+ type HideToast = HideToastOrigin
45
+ type ShowLoadingSuccess = ShowLoadingSuccessOrigin
46
+ type ShowLoadingFail = ShowLoadingFailOrigin
47
+ type ShowLoadingSuccessCallback = ShowLoadingSuccessCallbackOrigin
48
+ type ShowLoadingFailCallback = ShowLoadingFailCallbackOrigin
49
+ type ShowLoadingCompleteCallback = ShowLoadingCompleteCallbackOrigin
50
+ type ShowLoadingOptions = ShowLoadingOptionsOrigin
51
+ type ShowLoading = ShowLoadingOrigin
52
+ type HideLoading = HideLoadingOrigin
53
+ type ShowModalSuccess = ShowModalSuccessOrigin
54
+ type ShowModalFail = ShowModalFailOrigin
55
+ type ShowModalSuccessCallback = ShowModalSuccessCallbackOrigin
56
+ type ShowModalFailCallback = ShowModalFailCallbackOrigin
57
+ type ShowModalCompleteCallback = ShowModalCompleteCallbackOrigin
58
+ type ShowModalOptions = ShowModalOptionsOrigin
59
+ type ShowModal = ShowModalOrigin
60
+ type ShowActionSheetSuccess = ShowActionSheetSuccessOrigin
61
+ type ShowActionSheetFail = ShowActionSheetFailOrigin
62
+ type Popover = PopoverOrigin
63
+ type ShowActionSheetSuccessCallback = ShowActionSheetSuccessCallbackOrigin
64
+ type ShowActionSheetFailCallback = ShowActionSheetFailCallbackOrigin
65
+ type ShowActionSheetCompleteCallback = ShowActionSheetCompleteCallbackOrigin
66
+ type ShowActionSheetOptions = ShowActionSheetOptionsOrigin
67
+ type ShowActionSheet = ShowActionSheetOrigin
68
+ interface Uni extends UniOrigin { }
69
+ }