@rsmax/ali 1.3.11 → 1.3.13
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.
- package/CHANGELOG.md +21 -0
- package/cjs/api.d.ts +2992 -1362
- package/cjs/api.js +375 -166
- package/cjs/hostComponents/Ad/index.d.ts +14 -0
- package/cjs/hostComponents/Ad/index.js +9 -0
- package/cjs/hostComponents/Ad/node.d.ts +6 -0
- package/cjs/hostComponents/Ad/node.js +9 -0
- package/cjs/hostComponents/Button/index.d.ts +3 -2
- package/cjs/hostComponents/Button/node.d.ts +1 -0
- package/cjs/hostComponents/Button/node.js +1 -0
- package/cjs/hostComponents/Camera/index.d.ts +1 -1
- package/cjs/hostComponents/Canvas/index.d.ts +1 -1
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +1 -1
- package/cjs/hostComponents/ContactButton/index.d.ts +1 -1
- package/cjs/hostComponents/CoverImage/index.d.ts +1 -1
- package/cjs/hostComponents/CoverView/index.d.ts +1 -1
- package/cjs/hostComponents/ErrorView/index.d.ts +16 -0
- package/cjs/hostComponents/ErrorView/index.js +8 -0
- package/cjs/hostComponents/ErrorView/node.d.ts +14 -0
- package/cjs/hostComponents/ErrorView/node.js +18 -0
- package/cjs/hostComponents/Form/index.d.ts +1 -1
- package/cjs/hostComponents/Icon/index.d.ts +1 -1
- package/cjs/hostComponents/Image/index.d.ts +1 -1
- package/cjs/hostComponents/Input/index.d.ts +1 -1
- package/cjs/hostComponents/JoinGroupChat/index.d.ts +5 -0
- package/cjs/hostComponents/JoinGroupChat/index.js +5 -0
- package/cjs/hostComponents/JoinGroupChat/node.d.ts +4 -0
- package/cjs/hostComponents/JoinGroupChat/node.js +8 -0
- package/cjs/hostComponents/Label/index.d.ts +1 -1
- package/cjs/hostComponents/Lifestyle/index.d.ts +1 -1
- package/cjs/hostComponents/Lottie/index.d.ts +1 -1
- package/cjs/hostComponents/Map/index.d.ts +1 -1
- package/cjs/hostComponents/MatchMedia/index.d.ts +15 -0
- package/cjs/hostComponents/MatchMedia/index.js +5 -0
- package/cjs/hostComponents/MatchMedia/node.d.ts +13 -0
- package/cjs/hostComponents/MatchMedia/node.js +17 -0
- package/cjs/hostComponents/MovableArea/index.d.ts +1 -1
- package/cjs/hostComponents/MovableView/index.d.ts +1 -1
- package/cjs/hostComponents/Navigator/index.d.ts +1 -1
- package/cjs/hostComponents/PageContainer/index.d.ts +42 -0
- package/cjs/hostComponents/PageContainer/index.js +17 -0
- package/cjs/hostComponents/PageContainer/node.d.ts +19 -0
- package/cjs/hostComponents/PageContainer/node.js +22 -0
- package/cjs/hostComponents/PageMeta/index.d.ts +30 -0
- package/cjs/hostComponents/PageMeta/index.js +13 -0
- package/cjs/hostComponents/PageMeta/node.d.ts +17 -0
- package/cjs/hostComponents/PageMeta/node.js +20 -0
- package/cjs/hostComponents/Picker/index.d.ts +1 -1
- package/cjs/hostComponents/PickerView/index.d.ts +1 -1
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +1 -1
- package/cjs/hostComponents/Progress/index.d.ts +1 -1
- package/cjs/hostComponents/Radio/index.d.ts +1 -1
- package/cjs/hostComponents/RadioGroup/index.d.ts +1 -1
- package/cjs/hostComponents/RichText/index.d.ts +1 -1
- package/cjs/hostComponents/RootPortal/index.d.ts +13 -0
- package/cjs/hostComponents/RootPortal/index.js +8 -0
- package/cjs/hostComponents/RootPortal/node.d.ts +16 -0
- package/cjs/hostComponents/RootPortal/node.js +19 -0
- package/cjs/hostComponents/ScrollView/index.d.ts +1 -1
- package/cjs/hostComponents/ShareElement/index.d.ts +13 -0
- package/cjs/hostComponents/ShareElement/index.js +11 -0
- package/cjs/hostComponents/ShareElement/node.d.ts +7 -0
- package/cjs/hostComponents/ShareElement/node.js +10 -0
- package/cjs/hostComponents/Slider/index.d.ts +1 -1
- package/cjs/hostComponents/SubscribeMessage/index.d.ts +6 -0
- package/cjs/hostComponents/SubscribeMessage/index.js +5 -0
- package/cjs/hostComponents/SubscribeMessage/node.d.ts +5 -0
- package/cjs/hostComponents/SubscribeMessage/node.js +9 -0
- package/cjs/hostComponents/Swiper/index.d.ts +1 -1
- package/cjs/hostComponents/SwiperItem/index.d.ts +1 -1
- package/cjs/hostComponents/Text/index.d.ts +1 -1
- package/cjs/hostComponents/Textarea/index.d.ts +1 -1
- package/cjs/hostComponents/Video/index.d.ts +1 -1
- package/cjs/hostComponents/View/index.d.ts +1 -1
- package/cjs/hostComponents/WebView/index.d.ts +1 -1
- package/cjs/hostComponents/index.d.ts +9 -0
- package/cjs/hostComponents/index.js +9 -0
- package/cjs/hostComponents/node.js +26 -8
- package/cjs/node/index.js +1 -1
- package/esm/api.d.ts +2993 -1363
- package/esm/api.js +369 -162
- package/esm/hostComponents/Ad/index.d.ts +14 -0
- package/esm/hostComponents/Ad/index.js +6 -0
- package/esm/hostComponents/Ad/node.d.ts +6 -0
- package/esm/hostComponents/Ad/node.js +6 -0
- package/esm/hostComponents/Button/index.d.ts +3 -2
- package/esm/hostComponents/Button/node.d.ts +1 -0
- package/esm/hostComponents/Button/node.js +1 -0
- package/esm/hostComponents/Camera/index.d.ts +1 -1
- package/esm/hostComponents/Canvas/index.d.ts +1 -1
- package/esm/hostComponents/CheckboxGroup/index.d.ts +1 -1
- package/esm/hostComponents/ContactButton/index.d.ts +1 -1
- package/esm/hostComponents/CoverImage/index.d.ts +1 -1
- package/esm/hostComponents/CoverView/index.d.ts +1 -1
- package/esm/hostComponents/ErrorView/index.d.ts +16 -0
- package/esm/hostComponents/ErrorView/index.js +5 -0
- package/esm/hostComponents/ErrorView/node.d.ts +14 -0
- package/esm/hostComponents/ErrorView/node.js +15 -0
- package/esm/hostComponents/Form/index.d.ts +1 -1
- package/esm/hostComponents/Icon/index.d.ts +1 -1
- package/esm/hostComponents/Image/index.d.ts +1 -1
- package/esm/hostComponents/Input/index.d.ts +1 -1
- package/esm/hostComponents/JoinGroupChat/index.d.ts +5 -0
- package/esm/hostComponents/JoinGroupChat/index.js +2 -0
- package/esm/hostComponents/JoinGroupChat/node.d.ts +4 -0
- package/esm/hostComponents/JoinGroupChat/node.js +5 -0
- package/esm/hostComponents/Label/index.d.ts +1 -1
- package/esm/hostComponents/Lifestyle/index.d.ts +1 -1
- package/esm/hostComponents/Lottie/index.d.ts +1 -1
- package/esm/hostComponents/Map/index.d.ts +1 -1
- package/esm/hostComponents/MatchMedia/index.d.ts +15 -0
- package/esm/hostComponents/MatchMedia/index.js +2 -0
- package/esm/hostComponents/MatchMedia/node.d.ts +13 -0
- package/esm/hostComponents/MatchMedia/node.js +14 -0
- package/esm/hostComponents/MovableArea/index.d.ts +1 -1
- package/esm/hostComponents/MovableView/index.d.ts +1 -1
- package/esm/hostComponents/Navigator/index.d.ts +1 -1
- package/esm/hostComponents/PageContainer/index.d.ts +42 -0
- package/esm/hostComponents/PageContainer/index.js +14 -0
- package/esm/hostComponents/PageContainer/node.d.ts +19 -0
- package/esm/hostComponents/PageContainer/node.js +19 -0
- package/esm/hostComponents/PageMeta/index.d.ts +30 -0
- package/esm/hostComponents/PageMeta/index.js +10 -0
- package/esm/hostComponents/PageMeta/node.d.ts +17 -0
- package/esm/hostComponents/PageMeta/node.js +17 -0
- package/esm/hostComponents/Picker/index.d.ts +1 -1
- package/esm/hostComponents/PickerView/index.d.ts +1 -1
- package/esm/hostComponents/PickerViewColumn/index.d.ts +1 -1
- package/esm/hostComponents/Progress/index.d.ts +1 -1
- package/esm/hostComponents/Radio/index.d.ts +1 -1
- package/esm/hostComponents/RadioGroup/index.d.ts +1 -1
- package/esm/hostComponents/RichText/index.d.ts +1 -1
- package/esm/hostComponents/RootPortal/index.d.ts +13 -0
- package/esm/hostComponents/RootPortal/index.js +5 -0
- package/esm/hostComponents/RootPortal/node.d.ts +16 -0
- package/esm/hostComponents/RootPortal/node.js +16 -0
- package/esm/hostComponents/ScrollView/index.d.ts +1 -1
- package/esm/hostComponents/ShareElement/index.d.ts +13 -0
- package/esm/hostComponents/ShareElement/index.js +8 -0
- package/esm/hostComponents/ShareElement/node.d.ts +7 -0
- package/esm/hostComponents/ShareElement/node.js +7 -0
- package/esm/hostComponents/Slider/index.d.ts +1 -1
- package/esm/hostComponents/SubscribeMessage/index.d.ts +6 -0
- package/esm/hostComponents/SubscribeMessage/index.js +2 -0
- package/esm/hostComponents/SubscribeMessage/node.d.ts +5 -0
- package/esm/hostComponents/SubscribeMessage/node.js +6 -0
- package/esm/hostComponents/Swiper/index.d.ts +1 -1
- package/esm/hostComponents/SwiperItem/index.d.ts +1 -1
- package/esm/hostComponents/Text/index.d.ts +1 -1
- package/esm/hostComponents/Textarea/index.d.ts +1 -1
- package/esm/hostComponents/Video/index.d.ts +1 -1
- package/esm/hostComponents/View/index.d.ts +1 -1
- package/esm/hostComponents/WebView/index.d.ts +1 -1
- package/esm/hostComponents/index.d.ts +9 -0
- package/esm/hostComponents/index.js +9 -0
- package/esm/hostComponents/node.js +26 -8
- package/esm/node/index.js +1 -1
- package/package.json +10 -10
- package/vitest.config.js +1 -0
package/esm/api.js
CHANGED
|
@@ -1,193 +1,400 @@
|
|
|
1
1
|
import { promisify } from '@rsmax/framework-shared';
|
|
2
|
+
/**
|
|
3
|
+
* 基础 API
|
|
4
|
+
*/
|
|
5
|
+
// 基础
|
|
6
|
+
export const canIUse = my.canIUse;
|
|
7
|
+
export const env = my.env;
|
|
8
|
+
export const isIDE = my.isIDE;
|
|
9
|
+
export const getLaunchOptionsSync = my.getLaunchOptionsSync;
|
|
10
|
+
export const getEnterOptionsSync = my.getEnterOptionsSync;
|
|
11
|
+
export const SDKVersion = my.SDKVersion;
|
|
12
|
+
export const getAccountInfoSync = my.getAccountInfoSync;
|
|
13
|
+
export const getAppIdSync = my.getAppIdSync;
|
|
14
|
+
export const getRunScene = promisify(my.getRunScene);
|
|
15
|
+
export const base64ToArrayBuffer = my.base64ToArrayBuffer;
|
|
16
|
+
export const arrayBufferToBase64 = my.arrayBufferToBase64;
|
|
17
|
+
// 性能
|
|
2
18
|
// @ts-ignore
|
|
3
|
-
export const
|
|
4
|
-
|
|
19
|
+
export const getPerformance = my.getPerformance;
|
|
20
|
+
// 调试
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
export const setEnableDebug = promisify(my.setEnableDebug);
|
|
23
|
+
// 应用级事件
|
|
24
|
+
export const onAppShow = my.onAppShow;
|
|
25
|
+
export const offAppShow = my.offAppShow;
|
|
26
|
+
export const onAppHide = my.onAppHide;
|
|
27
|
+
export const offAppHide = my.offAppHide;
|
|
28
|
+
export const onPageNotFound = my.onPageNotFound;
|
|
29
|
+
export const offPageNotFound = my.offPageNotFound;
|
|
30
|
+
export const onUnhandledRejection = my.onUnhandledRejection;
|
|
31
|
+
export const offUnhandledRejection = my.offUnhandledRejection;
|
|
32
|
+
export const onError = my.onError;
|
|
33
|
+
export const offError = my.offError;
|
|
34
|
+
export const onComponentError = my.onComponentError;
|
|
35
|
+
export const offComponentError = my.offComponentError;
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
export const onLazyLoadError = my.onLazyLoadError;
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
export const offLazyLoadError = my.offLazyLoadError;
|
|
40
|
+
// 界面
|
|
41
|
+
export const setNavigationBar = promisify(my.setNavigationBar);
|
|
42
|
+
export const setNavigationBarTitle = promisify(my.setNavigationBarTitle);
|
|
43
|
+
export const setNavigationBarColor = promisify(my.setNavigationBarColor);
|
|
44
|
+
export const setNavigationBarBottomLineColor = promisify(my.setNavigationBarBottomLineColor);
|
|
45
|
+
export const hideBackHome = promisify(my.hideBackHome);
|
|
46
|
+
export const getTitleColor = promisify(my.getTitleColor);
|
|
47
|
+
export const getMenuButtonBoundingClientRect = my.getMenuButtonBoundingClientRect;
|
|
48
|
+
export const getLeftButtonsBoundingClientRect = my.getLeftButtonsBoundingClientRect;
|
|
49
|
+
export const showNavigationBarLoading = promisify(my.showNavigationBarLoading);
|
|
50
|
+
export const hideNavigationBarLoading = promisify(my.hideNavigationBarLoading);
|
|
51
|
+
// 界面 - tabbar
|
|
52
|
+
export const showTabBar = promisify(my.showTabBar);
|
|
53
|
+
export const hideTabBar = promisify(my.hideTabBar);
|
|
54
|
+
export const setTabBarBadge = promisify(my.setTabBarBadge);
|
|
55
|
+
export const setTabBarItem = promisify(my.setTabBarItem);
|
|
56
|
+
export const setTabBarStyle = promisify(my.setTabBarStyle);
|
|
57
|
+
export const removeTabBarBadge = promisify(my.removeTabBarBadge);
|
|
58
|
+
export const showTabBarRedDot = promisify(my.showTabBarRedDot);
|
|
59
|
+
export const hideTabBarRedDot = my.hideTabBarRedDot;
|
|
60
|
+
// 界面 - 路由
|
|
61
|
+
export const switchTab = promisify(my.switchTab);
|
|
62
|
+
export const navigateTo = promisify(my.navigateTo);
|
|
63
|
+
export const navigateBack = promisify(my.navigateBack);
|
|
64
|
+
export const redirectTo = promisify(my.redirectTo);
|
|
65
|
+
export const reLaunch = promisify(my.reLaunch);
|
|
66
|
+
// 界面 - 交互反馈
|
|
67
|
+
export const showLoading = promisify(my.showLoading);
|
|
68
|
+
export const hideLoading = promisify(my.hideLoading);
|
|
69
|
+
export const showModal = promisify(my.showModal);
|
|
5
70
|
export const alert = promisify(my.alert);
|
|
6
|
-
export const
|
|
71
|
+
export const showToast = promisify(my.showToast);
|
|
72
|
+
export const hideToast = promisify(my.hideToast);
|
|
73
|
+
export const showActionSheet = promisify(my.showActionSheet);
|
|
74
|
+
export const confirm = promisify(my.confirm);
|
|
75
|
+
export const prompt = promisify(my.prompt);
|
|
76
|
+
export const enableAlertBeforeUnload = promisify(my.enableAlertBeforeUnload);
|
|
77
|
+
export const disableAlertBeforeUnload = promisify(my.disableAlertBeforeUnload);
|
|
78
|
+
// @ts-ignore
|
|
79
|
+
export const showAppModal = promisify(my.showAppModal);
|
|
80
|
+
// 界面 - 下拉刷新
|
|
81
|
+
export const startPullDownRefresh = promisify(my.startPullDownRefresh);
|
|
82
|
+
export const stopPullDownRefresh = promisify(my.stopPullDownRefresh);
|
|
83
|
+
// 界面 - 联系人
|
|
84
|
+
export const choosePhoneContact = promisify(my.choosePhoneContact);
|
|
7
85
|
export const chooseAlipayContact = promisify(my.chooseAlipayContact);
|
|
8
|
-
export const chooseCity = promisify(my.chooseCity);
|
|
9
86
|
export const chooseContact = promisify(my.chooseContact);
|
|
10
|
-
|
|
11
|
-
export const
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
export const
|
|
20
|
-
export const connectSocket = promisify(my.connectSocket);
|
|
21
|
-
export const createAnimation = my.createAnimation;
|
|
22
|
-
export const createCanvasContext = my.createCanvasContext;
|
|
23
|
-
export const createIntersectionObserver = my.createIntersectionObserver;
|
|
87
|
+
// 界面 - 选择城市
|
|
88
|
+
export const chooseCity = promisify(my.chooseCity);
|
|
89
|
+
export const chooseDistrict = promisify(my.chooseDistrict);
|
|
90
|
+
export const regionPicker = promisify(my.regionPicker);
|
|
91
|
+
// 界面 - 选择日期
|
|
92
|
+
export const datePicker = promisify(my.datePicker);
|
|
93
|
+
// 界面 - 动画
|
|
94
|
+
export const createAnimation = promisify(my.createAnimation);
|
|
95
|
+
// 界面 - 地图
|
|
96
|
+
export const getMapInfo = promisify(my.getMapInfo);
|
|
24
97
|
export const createMapContext = my.createMapContext;
|
|
98
|
+
// 界面 - 计算路径
|
|
99
|
+
export const calculateRoute = promisify(my.calculateRoute);
|
|
100
|
+
// 界面 - 键盘
|
|
101
|
+
export const hideKeyboard = my.hideKeyboard;
|
|
102
|
+
// @ts-ignore
|
|
103
|
+
export const getSelectedTextRange = promisify(my.getSelectedTextRange);
|
|
104
|
+
// 界面 - 滚动
|
|
105
|
+
export const pageScrollTo = promisify(my.pageScrollTo);
|
|
106
|
+
// @ts-ignore
|
|
107
|
+
export const setPageScrollable = promisify(my.setPageScrollable);
|
|
108
|
+
// 界面 - 节点查询
|
|
25
109
|
export const createSelectorQuery = my.createSelectorQuery;
|
|
26
|
-
export const
|
|
27
|
-
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
110
|
+
export const createIntersectionObserver = my.createIntersectionObserver;
|
|
111
|
+
// 界面 - 选项选择器
|
|
112
|
+
export const optionsSelect = promisify(my.optionsSelect);
|
|
113
|
+
export const multiLevelSelect = promisify(my.multiLevelSelect);
|
|
114
|
+
export const setBackgroundColor = promisify(my.setBackgroundColor);
|
|
115
|
+
export const setBackgroundTextStyle = promisify(my.setBackgroundTextStyle);
|
|
116
|
+
export const setCanPullDown = promisify(my.setCanPullDown);
|
|
117
|
+
export const loadFontFace = promisify(my.loadFontFace);
|
|
118
|
+
// 界面 - 跳转 - 小程序相互跳转
|
|
119
|
+
export const navigateToMiniProgram = promisify(my.navigateToMiniProgram);
|
|
120
|
+
export const navigateBackMiniProgram = promisify(my.navigateBackMiniProgram);
|
|
121
|
+
// 界面 - 跳转 - 跳转支付宝应用或者页面
|
|
31
122
|
// @ts-ignore
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
export const
|
|
35
|
-
|
|
36
|
-
export const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
|
|
42
|
-
export const
|
|
123
|
+
export const openEmbeddedMiniProgram = promisify(my.openEmbeddedMiniProgram);
|
|
124
|
+
// @ts-ignore
|
|
125
|
+
export const openAlipayApp = promisify(my.app.openAlipayApp);
|
|
126
|
+
// @ts-ignore
|
|
127
|
+
export const openURL = promisify(my.app.openURL);
|
|
128
|
+
// 界面 - 重启/退出小程序
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
export const restartMiniProgram = promisify(my.restartMiniProgram);
|
|
131
|
+
export const exitMiniProgram = promisify(my.exitMiniProgram);
|
|
132
|
+
// 多媒体 -图片
|
|
133
|
+
export const chooseImage = promisify(my.chooseImage);
|
|
134
|
+
export const previewImage = promisify(my.previewImage);
|
|
43
135
|
export const getImageInfo = promisify(my.getImageInfo);
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
52
|
-
|
|
53
|
-
export const
|
|
136
|
+
export const saveImageToPhotosAlbum = promisify(my.saveImageToPhotosAlbum);
|
|
137
|
+
export const compressImage = promisify(my.compressImage);
|
|
138
|
+
export const generateImageFromCode = promisify(my.generateImageFromCode);
|
|
139
|
+
// 多媒体 - 视频
|
|
140
|
+
export const chooseVideo = promisify(my.chooseVideo);
|
|
141
|
+
export const getVideoInfo = my.getVideoInfo;
|
|
142
|
+
export const saveVideoToPhotosAlbum = promisify(my.saveVideoToPhotosAlbum);
|
|
143
|
+
export const createVideoContext = my.createVideoContext;
|
|
144
|
+
// 多媒体 - 音频
|
|
145
|
+
export const createInnerAudioContext = my.createInnerAudioContext;
|
|
146
|
+
export const onAudioInterruptionBegin = my.onAudioInterruptionBegin;
|
|
147
|
+
export const offAudioInterruptionBegin = my.offAudioInterruptionBegin;
|
|
148
|
+
export const onAudioInterruptionEnd = my.onAudioInterruptionEnd;
|
|
149
|
+
export const offAudioInterruptionEnd = my.offAudioInterruptionEnd;
|
|
150
|
+
// 多媒体 - 录音
|
|
151
|
+
export const getRecorderManager = my.getRecorderManager;
|
|
152
|
+
export const getAvailableAudioSources = promisify(my.getAvailableAudioSources);
|
|
153
|
+
// 多媒体 - lottie 动画
|
|
154
|
+
export const createLottieContext = my.createLottieContext;
|
|
155
|
+
// 多媒体 - 相机
|
|
156
|
+
// @ts-ignore
|
|
157
|
+
export const createCameraContext = my.createCameraContext;
|
|
158
|
+
// 缓存
|
|
159
|
+
export const setStorage = promisify(my.setStorage);
|
|
160
|
+
export const setStorageSync = my.setStorageSync;
|
|
54
161
|
export const getStorage = promisify(my.getStorage);
|
|
162
|
+
export const getStorageSync = my.getStorageSync;
|
|
55
163
|
export const getStorageInfo = promisify(my.getStorageInfo);
|
|
56
164
|
export const getStorageInfoSync = my.getStorageInfoSync;
|
|
57
|
-
export const
|
|
165
|
+
export const removeStorage = promisify(my.removeStorage);
|
|
166
|
+
export const removeStorageSync = my.removeStorageSync;
|
|
167
|
+
export const clearStorage = promisify(my.clearStorage);
|
|
168
|
+
export const clearStorageSync = my.clearStorageSync;
|
|
169
|
+
// 缓存 - 预拉取
|
|
170
|
+
export const getBackgroundFetchData = promisify(my.getBackgroundFetchData);
|
|
171
|
+
// 文件
|
|
172
|
+
export const openDocument = promisify(my.openDocument);
|
|
173
|
+
export const saveFileToDisk = promisify(my.saveFileToDisk);
|
|
174
|
+
export const detectFileType = promisify(my.detectFileType);
|
|
175
|
+
export const getFileSystemManager = my.getFileSystemManager;
|
|
176
|
+
// @ts-ignore
|
|
177
|
+
export const chooseFileFromDisk = promisify(my.chooseFileFromDisk);
|
|
178
|
+
// 位置
|
|
179
|
+
export const getLocation = promisify(my.getLocation);
|
|
180
|
+
export const getMainSelectedCity = promisify(my.ap.getMainSelectedCity);
|
|
181
|
+
export const chooseLocation = promisify(my.chooseLocation);
|
|
182
|
+
export const openLocation = promisify(my.openLocation);
|
|
183
|
+
// 网络
|
|
184
|
+
export const request = promisify(my.request);
|
|
185
|
+
// 网络 - 上传
|
|
186
|
+
export const uploadFile = promisify(my.uploadFile);
|
|
187
|
+
// 网络 - 下载
|
|
188
|
+
export const downloadFile = promisify(my.downloadFile);
|
|
189
|
+
// 网络 - websocket
|
|
190
|
+
export const connectSocket = promisify(my.connectSocket);
|
|
191
|
+
export const closeSocket = promisify(my.closeSocket);
|
|
192
|
+
export const sendSocketMessage = promisify(my.sendSocketMessage);
|
|
193
|
+
export const onSocketOpen = my.onSocketOpen;
|
|
194
|
+
export const offSocketOpen = my.offSocketOpen;
|
|
195
|
+
export const onSocketMessage = my.onSocketMessage;
|
|
196
|
+
export const offSocketMessage = my.offSocketMessage;
|
|
197
|
+
export const onSocketError = my.onSocketError;
|
|
198
|
+
export const offSocketError = my.offSocketError;
|
|
199
|
+
export const onSocketClose = my.onSocketClose;
|
|
200
|
+
export const offSocketClose = my.offSocketClose;
|
|
201
|
+
// 设备 - 系统信息
|
|
58
202
|
export const getSystemInfo = promisify(my.getSystemInfo);
|
|
59
203
|
export const getSystemInfoSync = my.getSystemInfoSync;
|
|
60
|
-
export const getTitleColor = promisify(my.getTitleColor);
|
|
61
|
-
export const getUpdateManager = my.getUpdateManager;
|
|
62
|
-
export const hideAddToDesktopMenu = my.hideAddToDesktopMenu;
|
|
63
|
-
export const hideAllAddToDesktopMenu = my.hideAllAddToDesktopMenu;
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
export const hideAllFavoriteMenu = my.hideAllFavoriteMenu;
|
|
66
|
-
export const hideBackHome = my.hideBackHome;
|
|
67
204
|
// @ts-ignore
|
|
68
|
-
export const
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
71
|
-
export const
|
|
72
|
-
export const
|
|
73
|
-
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
76
|
-
export const
|
|
77
|
-
|
|
78
|
-
export const
|
|
79
|
-
|
|
80
|
-
export const
|
|
81
|
-
export const
|
|
82
|
-
|
|
83
|
-
export const
|
|
205
|
+
export const getDeviceBaseInfo = my.getDeviceBaseInfo;
|
|
206
|
+
export const getSystemSetting = my.getSystemSetting;
|
|
207
|
+
export const getWindowInfo = my.getWindowInfo;
|
|
208
|
+
export const getAppBaseInfo = my.getAppBaseInfo;
|
|
209
|
+
export const getAppAuthorizeSetting = my.getAppAuthorizeSetting;
|
|
210
|
+
// 设备 - 网络状态
|
|
211
|
+
export const getNetworkType = promisify(my.getNetworkType);
|
|
212
|
+
export const onNetworkStatusChange = promisify(my.onNetworkStatusChange);
|
|
213
|
+
export const offNetworkStatusChange = promisify(my.offNetworkStatusChange);
|
|
214
|
+
// 设备 - 截屏
|
|
215
|
+
export const setVisualEffectOnCapture = promisify(my.setVisualEffectOnCapture);
|
|
216
|
+
// 设备 - 剪贴板
|
|
217
|
+
export const getClipboard = promisify(my.getClipboard);
|
|
218
|
+
export const setClipboard = promisify(my.setClipboard);
|
|
219
|
+
// 设备 - 摇一摇
|
|
220
|
+
export const watchShake = promisify(my.watchShake);
|
|
221
|
+
// 设备 - 振动
|
|
222
|
+
export const vibrate = promisify(my.vibrate);
|
|
223
|
+
export const vibrateLong = promisify(my.vibrateLong);
|
|
224
|
+
export const vibrateShort = promisify(my.vibrateShort);
|
|
225
|
+
// 设备 - 加速度计
|
|
226
|
+
export const startAccelerometer = promisify(my.startAccelerometer);
|
|
227
|
+
export const stopAccelerometer = promisify(my.stopAccelerometer);
|
|
228
|
+
export const onAccelerometerChange = my.onAccelerometerChange;
|
|
84
229
|
export const offAccelerometerChange = my.offAccelerometerChange;
|
|
85
|
-
|
|
86
|
-
export const
|
|
87
|
-
export const
|
|
88
|
-
export const
|
|
89
|
-
export const offCompassChange = my.offCompassChange;
|
|
230
|
+
// 设备 - 陀螺仪
|
|
231
|
+
export const startGyroscope = promisify(my.startGyroscope);
|
|
232
|
+
export const stopGyroscope = promisify(my.stopGyroscope);
|
|
233
|
+
export const onGyroscopeChange = my.onGyroscopeChange;
|
|
90
234
|
export const offGyroscopeChange = my.offGyroscopeChange;
|
|
91
|
-
|
|
92
|
-
export const
|
|
93
|
-
export const
|
|
94
|
-
export const
|
|
95
|
-
export const
|
|
96
|
-
|
|
235
|
+
// 设备 - 罗盘
|
|
236
|
+
export const startCompass = promisify(my.startCompass);
|
|
237
|
+
export const stopCompass = promisify(my.stopCompass);
|
|
238
|
+
export const onCompassChange = my.onCompassChange;
|
|
239
|
+
export const offCompassChange = my.offCompassChange;
|
|
240
|
+
// 设备 - 设备方向
|
|
241
|
+
// @ts-ignore
|
|
242
|
+
export const startDeviceMotionListening = promisify(my.startDeviceMotionListening);
|
|
243
|
+
// @ts-ignore
|
|
244
|
+
export const stopDeviceMotionListening = promisify(my.stopDeviceMotionListening);
|
|
245
|
+
export const onDeviceMotionChange = my.onDeviceMotionChange;
|
|
246
|
+
export const offDeviceMotionChange = my.offDeviceMotionChange;
|
|
247
|
+
// 设备 - 拨打电话
|
|
248
|
+
export const makePhoneCall = promisify(my.makePhoneCall);
|
|
249
|
+
// 设备 - 获取服务器时间
|
|
250
|
+
export const getServerTime = promisify(my.getServerTime);
|
|
251
|
+
// 设备 - 用户截屏事件
|
|
252
|
+
export const onUserCaptureScreen = my.onUserCaptureScreen;
|
|
97
253
|
export const offUserCaptureScreen = my.offUserCaptureScreen;
|
|
98
|
-
|
|
99
|
-
export const
|
|
100
|
-
export const
|
|
101
|
-
export const
|
|
254
|
+
// 设备 - 屏幕亮度
|
|
255
|
+
export const getScreenBrightness = promisify(my.getScreenBrightness);
|
|
256
|
+
export const setScreenBrightness = promisify(my.setScreenBrightness);
|
|
257
|
+
export const setKeepScreenOn = promisify(my.setKeepScreenOn);
|
|
258
|
+
// 设备 - 设置
|
|
259
|
+
export const getSetting = promisify(my.getSetting);
|
|
260
|
+
export const openSetting = promisify(my.openSetting);
|
|
261
|
+
// 设备 - 添加手机联系人
|
|
262
|
+
export const addPhoneContact = promisify(my.addPhoneContact);
|
|
263
|
+
// 设备 - 无障碍
|
|
264
|
+
export const isScreenReaderEnabled = promisify(my.isScreenReaderEnabled);
|
|
265
|
+
// 设备 - 权限引导
|
|
266
|
+
export const showAuthGuide = promisify(my.showAuthGuide);
|
|
267
|
+
// 设备 - 扫码
|
|
268
|
+
export const scan = promisify(my.scan);
|
|
269
|
+
// 设备 - 内存不足警告
|
|
270
|
+
export const onMemoryWarning = my.onMemoryWarning;
|
|
271
|
+
export const offMemoryWarning = my.offMemoryWarning;
|
|
272
|
+
// 设备 - 获取手机电量
|
|
273
|
+
export const getBatteryInfo = promisify(my.getBatteryInfo);
|
|
274
|
+
export const getBatteryInfoSync = my.getBatteryInfoSync;
|
|
275
|
+
// 设备 - 蓝牙 - 低功耗蓝牙
|
|
102
276
|
export const onBLEConnectionStateChanged = my.onBLEConnectionStateChanged;
|
|
277
|
+
export const offBLEConnectionStateChanged = my.offBLEConnectionStateChanged;
|
|
278
|
+
export const getBLEDeviceServices = promisify(my.getBLEDeviceServices);
|
|
279
|
+
export const connectBLEDevice = promisify(my.connectBLEDevice);
|
|
280
|
+
export const disconnectBLEDevice = promisify(my.disconnectBLEDevice);
|
|
281
|
+
export const getBLEDeviceCharacteristics = promisify(my.getBLEDeviceCharacteristics);
|
|
282
|
+
export const setBLEMTU = promisify(my.setBLEMTU);
|
|
283
|
+
export const getBLEMTU = promisify(my.getBLEMTU);
|
|
284
|
+
export const notifyBLECharacteristicValueChange = promisify(my.notifyBLECharacteristicValueChange);
|
|
285
|
+
export const onBLECharacteristicValueChange = my.onBLECharacteristicValueChange;
|
|
286
|
+
export const offBLECharacteristicValueChange = my.offBLECharacteristicValueChange;
|
|
287
|
+
export const writeBLECharacteristicValue = promisify(my.writeBLECharacteristicValue);
|
|
288
|
+
export const readBLECharacteristicValue = promisify(my.readBLECharacteristicValue);
|
|
289
|
+
export const getBLEDeviceRSSI = promisify(my.getBLEDeviceRSSI);
|
|
290
|
+
export const getBLEDeviceStatus = promisify(my.getBLEDeviceStatus);
|
|
291
|
+
// 设备 - 蓝牙 - 传统蓝牙
|
|
292
|
+
export const openBluetoothAdapter = promisify(my.openBluetoothAdapter);
|
|
293
|
+
export const closeBluetoothAdapter = promisify(my.closeBluetoothAdapter);
|
|
294
|
+
export const getBluetoothAdapterState = promisify(my.getBluetoothAdapterState);
|
|
103
295
|
export const onBluetoothAdapterStateChange = my.onBluetoothAdapterStateChange;
|
|
296
|
+
export const offBluetoothAdapterStateChange = my.offBluetoothAdapterStateChange;
|
|
104
297
|
export const onBluetoothDeviceFound = my.onBluetoothDeviceFound;
|
|
105
|
-
export const
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
108
|
-
export const
|
|
109
|
-
export const
|
|
110
|
-
export const
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
113
|
-
|
|
114
|
-
export const
|
|
298
|
+
export const offBluetoothDeviceFound = my.offBluetoothDeviceFound;
|
|
299
|
+
export const startBluetoothDevicesDiscovery = promisify(my.startBluetoothDevicesDiscovery);
|
|
300
|
+
export const stopBluetoothDevicesDiscovery = promisify(my.stopBluetoothDevicesDiscovery);
|
|
301
|
+
export const getBluetoothDevices = promisify(my.getBluetoothDevices);
|
|
302
|
+
export const getConnectedBluetoothDevices = promisify(my.getConnectedBluetoothDevices);
|
|
303
|
+
export const makeBluetoothPair = promisify(my.makeBluetoothPair);
|
|
304
|
+
export const getBluetoothPairs = promisify(my.getBluetoothPairs);
|
|
305
|
+
export const cancelBluetoothPair = promisify(my.cancelBluetoothPair);
|
|
306
|
+
// 设备 - 蓝牙 - iBeacon(近场定位技术)
|
|
307
|
+
export const getBeacons = promisify(my.getBeacons);
|
|
308
|
+
export const startBeaconDiscovery = promisify(my.startBeaconDiscovery);
|
|
309
|
+
export const stopBeaconDiscovery = promisify(my.stopBeaconDiscovery);
|
|
310
|
+
export const onBeaconUpdate = my.onBeaconUpdate;
|
|
311
|
+
export const offBeaconUpdate = my.offBeaconUpdate;
|
|
312
|
+
export const onBeaconServiceChange = my.onBeaconServiceChange;
|
|
313
|
+
export const offBeaconServiceChange = my.offBeaconServiceChange;
|
|
314
|
+
// 设备 - Wi-Fi
|
|
315
|
+
export const startWifi = promisify(my.startWifi);
|
|
316
|
+
export const stopWifi = promisify(my.stopWifi);
|
|
317
|
+
export const connectWifi = promisify(my.connectWifi);
|
|
318
|
+
export const getWifiList = promisify(my.getWifiList);
|
|
319
|
+
export const onWifiConnected = my.onWifiConnected;
|
|
320
|
+
export const offWifiConnected = my.offWifiConnected;
|
|
321
|
+
export const onGetWifiList = my.onGetWifiList;
|
|
322
|
+
export const offGetWifiList = my.offGetWifiList;
|
|
323
|
+
export const getConnectedWifi = promisify(my.getConnectedWifi);
|
|
324
|
+
// 设备 - 短信
|
|
115
325
|
// @ts-ignore
|
|
116
|
-
export const
|
|
326
|
+
export const sendSms = promisify(my.sendSms);
|
|
327
|
+
// Worker
|
|
328
|
+
export const createWorker = my.createWorker;
|
|
329
|
+
// 数据安全
|
|
330
|
+
export const rsa = promisify(my.rsa);
|
|
331
|
+
// 分享
|
|
332
|
+
export const showSharePanel = my.showSharePanel;
|
|
333
|
+
export const hideShareMenu = promisify(my.hideShareMenu);
|
|
334
|
+
export const showShareMenu = promisify(my.showShareMenu);
|
|
335
|
+
// 收藏
|
|
117
336
|
// @ts-ignore
|
|
118
|
-
export const
|
|
119
|
-
|
|
120
|
-
export const
|
|
337
|
+
export const isCollected = promisify(my.isCollected);
|
|
338
|
+
// 自定义通用菜单
|
|
339
|
+
export const hideAddToDesktopMenu = promisify(my.hideAddToDesktopMenu);
|
|
340
|
+
export const hideAllAddToDesktopMenu = promisify(my.hideAllAddToDesktopMenu);
|
|
341
|
+
// 更新管理
|
|
342
|
+
export const getUpdateManager = my.getUpdateManager;
|
|
343
|
+
// web-view 组件控制
|
|
344
|
+
export const createWebViewContext = my.createWebViewContext;
|
|
345
|
+
// 升级支付宝最新版本
|
|
346
|
+
export const updateAlipayClient = promisify(my.ap.updateAlipayClient);
|
|
347
|
+
// 隐私信息授权
|
|
121
348
|
// @ts-ignore
|
|
122
|
-
export const
|
|
123
|
-
export const openMerchantTicketList = my.openMerchantTicketList;
|
|
124
|
-
export const openMerchantVoucherList = my.openMerchantVoucherList;
|
|
125
|
-
export const openSetting = promisify(my.openSetting);
|
|
126
|
-
export const openTicketDetail = my.openTicketDetail;
|
|
127
|
-
export const openTicketList = my.openTicketList;
|
|
128
|
-
export const openVoucherDetail = my.openVoucherDetail;
|
|
129
|
-
export const openVoucherList = my.openVoucherList;
|
|
130
|
-
export const optionsSelect = my.optionsSelect;
|
|
131
|
-
export const pageScrollTo = promisify(my.pageScrollTo);
|
|
132
|
-
export const previewImage = promisify(my.previewImage);
|
|
133
|
-
export const prompt = promisify(my.prompt);
|
|
134
|
-
export const readBLECharacteristicValue = promisify(my.readBLECharacteristicValue);
|
|
135
|
-
export const redirectTo = promisify(my.redirectTo);
|
|
136
|
-
export const reLaunch = promisify(my.reLaunch);
|
|
137
|
-
export const removeSavedFile = promisify(my.removeSavedFile);
|
|
138
|
-
export const removeStorage = promisify(my.removeStorage);
|
|
139
|
-
export const removeStorageSync = my.removeStorageSync;
|
|
140
|
-
export const removeTabBarBadge = promisify(my.removeTabBarBadge);
|
|
349
|
+
export const requirePrivacyAuthorize = promisify(my.requirePrivacyAuthorize);
|
|
141
350
|
// @ts-ignore
|
|
142
|
-
export const
|
|
143
|
-
export const request = promisify(my.request);
|
|
144
|
-
export const rsa = promisify(my.rsa);
|
|
145
|
-
export const saveFile = promisify(my.saveFile);
|
|
146
|
-
export const saveImage = promisify(my.saveImage);
|
|
147
|
-
export const scan = promisify(my.scan);
|
|
148
|
-
export const SDKVersion = my.SDKVersion;
|
|
149
|
-
export const sendSocketMessage = promisify(my.sendSocketMessage);
|
|
150
|
-
export const setBackgroundColor = promisify(my.setBackgroundColor);
|
|
151
|
-
export const setBackgroundTextStyle = promisify(my.setBackgroundTextStyle);
|
|
152
|
-
export const setCanPullDown = my.setCanPullDown;
|
|
153
|
-
export const setClipboard = promisify(my.setClipboard);
|
|
154
|
-
export const setKeepScreenOn = promisify(my.setKeepScreenOn);
|
|
155
|
-
export const setNavigationBar = promisify(my.setNavigationBar);
|
|
351
|
+
export const openPrivacyContract = promisify(my.openPrivacyContract);
|
|
156
352
|
// @ts-ignore
|
|
157
|
-
export const
|
|
158
|
-
export const setScreenBrightness = promisify(my.setScreenBrightness);
|
|
159
|
-
export const setStorage = promisify(my.setStorage);
|
|
160
|
-
export const setStorageSync = my.setStorageSync;
|
|
161
|
-
export const setTabBarBadge = promisify(my.setTabBarBadge);
|
|
162
|
-
export const setTabBarItem = promisify(my.setTabBarItem);
|
|
163
|
-
export const setTabBarStyle = promisify(my.setTabBarStyle);
|
|
164
|
-
export const showActionSheet = promisify(my.showActionSheet);
|
|
165
|
-
export const showAuthGuide = my.showAuthGuide;
|
|
166
|
-
export const showLoading = promisify(my.showLoading);
|
|
167
|
-
export const showNavigationBarLoading = promisify(my.showNavigationBarLoading);
|
|
168
|
-
export const showSharePanel = my.showSharePanel;
|
|
169
|
-
export const showTabBar = promisify(my.showTabBar);
|
|
170
|
-
export const showTabBarRedDot = promisify(my.showTabBarRedDot);
|
|
171
|
-
export const showToast = promisify(my.showToast);
|
|
172
|
-
export const startBeaconDiscovery = promisify(my.startBeaconDiscovery);
|
|
173
|
-
export const startBluetoothDevicesDiscovery = promisify(my.startBluetoothDevicesDiscovery);
|
|
174
|
-
export const startPullDownRefresh = promisify(my.startPullDownRefresh);
|
|
353
|
+
export const onNeedPrivacyAuthorization = my.onNeedPrivacyAuthorization;
|
|
175
354
|
// @ts-ignore
|
|
176
|
-
export const
|
|
177
|
-
|
|
178
|
-
export const
|
|
179
|
-
export const stopPullDownRefresh = promisify(my.stopPullDownRefresh);
|
|
180
|
-
export const switchTab = promisify(my.switchTab);
|
|
355
|
+
export const getPrivacySetting = promisify(my.getPrivacySetting);
|
|
356
|
+
// 小程序广告
|
|
357
|
+
export const createRewardedAd = promisify(my.createRewardedAd);
|
|
181
358
|
// @ts-ignore
|
|
182
|
-
export const
|
|
359
|
+
export const createInterstitialAd = promisify(my.createInterstitialAd);
|
|
360
|
+
/**
|
|
361
|
+
* 开放能力 API
|
|
362
|
+
*/
|
|
363
|
+
// 支付
|
|
183
364
|
export const tradePay = promisify(my.tradePay);
|
|
184
|
-
|
|
185
|
-
export const
|
|
186
|
-
|
|
187
|
-
export const vibrateShort = promisify(my.vibrateShort);
|
|
188
|
-
export const watchShake = my.watchShake;
|
|
189
|
-
export const writeBLECharacteristicValue = promisify(my.writeBLECharacteristicValue);
|
|
190
|
-
export const createVideoContext = my.createVideoContext;
|
|
365
|
+
// 用户授权
|
|
366
|
+
export const getAuthCode = promisify(my.getAuthCode);
|
|
367
|
+
// 会员
|
|
191
368
|
export const getOpenUserInfo = promisify(my.getOpenUserInfo);
|
|
369
|
+
export const getAddress = promisify(my.getAddress);
|
|
370
|
+
export const getPhoneNumber = promisify(my.getPhoneNumber);
|
|
371
|
+
// 周期扣款
|
|
372
|
+
export const paySignCenter = promisify(my.paySignCenter);
|
|
373
|
+
// 商家会员卡
|
|
374
|
+
// @ts-ignore
|
|
375
|
+
export const openCardList = promisify(my.openCardList);
|
|
376
|
+
// @ts-ignore
|
|
377
|
+
export const openCardDetail = promisify(my.openCardDetail);
|
|
378
|
+
// @ts-ignore
|
|
379
|
+
export const openMerchantCardList = promisify(my.openMerchantCardList);
|
|
192
380
|
// @ts-ignore
|
|
193
|
-
export const
|
|
381
|
+
export const openMerchantCard = promisify(my.openMerchantCard);
|
|
382
|
+
// 消息
|
|
383
|
+
export const requestSubscribeMessage = promisify(my.requestSubscribeMessage);
|
|
384
|
+
export const unsubscribeMessage = promisify(my.unsubscribeMessage);
|
|
385
|
+
// 模板配置
|
|
386
|
+
export const getExtConfigSync = my.getExtConfigSync;
|
|
387
|
+
export const getExtConfig = promisify(my.getExtConfig);
|
|
388
|
+
// 支付宝卡包 - 劵
|
|
389
|
+
export const openVoucherList = promisify(my.openVoucherList);
|
|
390
|
+
export const openMerchantVoucherList = promisify(my.openMerchantVoucherList);
|
|
391
|
+
export const openVoucherDetail = promisify(my.openVoucherDetail);
|
|
392
|
+
export const openKBVoucherDetail = promisify(my.openKBVoucherDetail);
|
|
393
|
+
// 支付宝卡包 - 票
|
|
394
|
+
export const openTicketList = promisify(my.openTicketList);
|
|
395
|
+
export const openMerchantTicketList = promisify(my.openMerchantTicketList);
|
|
396
|
+
export const openTicketDetail = promisify(my.openTicketDetail);
|
|
397
|
+
// 交易组件
|
|
398
|
+
export const checkBeforeAddOrder = promisify(my.checkBeforeAddOrder);
|
|
399
|
+
// 小程序商品
|
|
400
|
+
export const prepareUseCertificate = promisify(my.ap.prepareUseCertificate);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export interface AdProps {
|
|
3
|
+
/** 广告展位码 */
|
|
4
|
+
unitId: string;
|
|
5
|
+
/** 否 广告查询成功的回调 */
|
|
6
|
+
onLoad?: (e: any) => void;
|
|
7
|
+
/** 广告查询失败的回调 */
|
|
8
|
+
onError?: (e: any) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Ad 广告组件
|
|
12
|
+
* https://opendocs.alipay.com/mini/0drov4?pathHash=2b0e72a3
|
|
13
|
+
*/
|
|
14
|
+
export declare const Ad: React.ComponentType<AdProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export interface ButtonProps {
|
|
3
3
|
readonly dataset?: DOMStringMap;
|
|
4
4
|
id?: string;
|
|
@@ -14,13 +14,14 @@ export interface ButtonProps {
|
|
|
14
14
|
hoverStayTime?: number;
|
|
15
15
|
hoverStopPropagation?: boolean;
|
|
16
16
|
formType?: 'submit' | 'reset';
|
|
17
|
-
openType?: 'share' | 'getAuthorize' | 'contactShare' | 'lifestyle';
|
|
17
|
+
openType?: 'share' | 'getAuthorize' | 'contactShare' | 'lifestyle' | 'chooseAvatar';
|
|
18
18
|
scope?: 'phoneNumber' | 'userInfo';
|
|
19
19
|
appParameter?: string;
|
|
20
20
|
publicId?: string;
|
|
21
21
|
onTap?: (e: any) => void;
|
|
22
22
|
onClick?: (e: any) => void;
|
|
23
23
|
onGetAuthorize?: (e: any) => void;
|
|
24
|
+
onChooseAvatar?: (e: any) => void;
|
|
24
25
|
onError?: (e: any) => void;
|
|
25
26
|
children?: React.ReactNode;
|
|
26
27
|
}
|