@tarojs/plugin-platform-weapp 3.5.0-beta.3 → 3.5.0-beta.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,392 +1,393 @@
1
1
  import { processApis } from '@tarojs/shared';
2
2
 
3
- const needPromiseApis = new Set([
4
- 'authPrivateMessage',
5
- 'disableAlertBeforeUnload',
6
- 'enableAlertBeforeUnload',
7
- 'getBackgroundFetchData',
8
- 'getGroupEnterInfo',
9
- 'getShareInfo',
10
- 'getWeRunData',
11
- 'join1v1Chat',
12
- 'openVideoEditor',
13
- 'saveFileToDisk',
14
- 'scanItem',
15
- 'setEnable1v1Chat',
16
- 'setWindowSize',
17
- 'sendBizRedPacket',
18
- 'startFacialRecognitionVerify',
19
- 'openCustomerServiceChat',
20
- 'getLocalIPAddress',
21
- 'getUserProfile'
3
+ const needPromiseApis = new Set([
4
+ 'authPrivateMessage',
5
+ 'disableAlertBeforeUnload',
6
+ 'enableAlertBeforeUnload',
7
+ 'getBackgroundFetchData',
8
+ 'getGroupEnterInfo',
9
+ 'getShareInfo',
10
+ 'getWeRunData',
11
+ 'join1v1Chat',
12
+ 'openVideoEditor',
13
+ 'saveFileToDisk',
14
+ 'scanItem',
15
+ 'setEnable1v1Chat',
16
+ 'setWindowSize',
17
+ 'sendBizRedPacket',
18
+ 'startFacialRecognitionVerify',
19
+ 'openCustomerServiceChat',
20
+ 'getLocalIPAddress',
21
+ 'getUserProfile',
22
+ 'editImage'
22
23
  ]);
23
24
 
24
- function initNativeApi(taro) {
25
- processApis(taro, wx, {
26
- needPromiseApis,
27
- modifyApis(apis) {
28
- // fix https://github.com/NervJS/taro/issues/9899
29
- apis.delete('lanDebug');
30
- }
31
- });
32
- taro.cloud = wx.cloud;
33
- taro.getTabBar = function (pageCtx) {
34
- var _a;
35
- if (typeof (pageCtx === null || pageCtx === void 0 ? void 0 : pageCtx.getTabBar) === 'function') {
36
- return (_a = pageCtx.getTabBar()) === null || _a === void 0 ? void 0 : _a.$taroInstances;
37
- }
38
- };
25
+ function initNativeApi(taro) {
26
+ processApis(taro, wx, {
27
+ needPromiseApis,
28
+ modifyApis(apis) {
29
+ // fix https://github.com/NervJS/taro/issues/9899
30
+ apis.delete('lanDebug');
31
+ }
32
+ });
33
+ taro.cloud = wx.cloud;
34
+ taro.getTabBar = function (pageCtx) {
35
+ var _a;
36
+ if (typeof (pageCtx === null || pageCtx === void 0 ? void 0 : pageCtx.getTabBar) === 'function') {
37
+ return (_a = pageCtx.getTabBar()) === null || _a === void 0 ? void 0 : _a.$taroInstances;
38
+ }
39
+ };
39
40
  }
40
41
 
41
- const _true = 'true';
42
- const _false = 'false';
43
- const _empty = '';
44
- const _zero = '0';
45
- const components = {
46
- // ======== 调整属性 ========
47
- Progress: {
48
- 'border-radius': _zero,
49
- 'font-size': '16',
50
- duration: '30',
51
- bindActiveEnd: _empty
52
- },
53
- RichText: {
54
- space: _empty,
55
- 'user-select': _false
56
- },
57
- Text: {
58
- 'user-select': _false
59
- },
60
- Map: {
61
- polygons: '[]',
62
- subkey: _empty,
63
- rotate: _zero,
64
- skew: _zero,
65
- 'max-scale': '20',
66
- 'min-scale': '3',
67
- 'enable-3D': _false,
68
- 'show-compass': _false,
69
- 'show-scale': _false,
70
- 'enable-overlooking': _false,
71
- 'enable-zoom': _true,
72
- 'enable-scroll': _true,
73
- 'enable-rotate': _false,
74
- 'enable-satellite': _false,
75
- 'enable-traffic': _false,
76
- setting: '[]',
77
- bindLabelTap: _empty,
78
- bindRegionChange: _empty,
79
- bindPoiTap: _empty
80
- },
81
- Button: {
82
- lang: 'en',
83
- 'session-from': _empty,
84
- 'send-message-title': _empty,
85
- 'send-message-path': _empty,
86
- 'send-message-img': _empty,
87
- 'app-parameter': _empty,
88
- 'show-message-card': _false,
89
- 'business-id': _empty,
90
- bindGetUserInfo: _empty,
91
- bindContact: _empty,
92
- bindGetPhoneNumber: _empty,
93
- bindChooseAvatar: _empty,
94
- bindError: _empty,
95
- bindOpenSetting: _empty,
96
- bindLaunchApp: _empty
97
- },
98
- Form: {
99
- 'report-submit-timeout': _zero
100
- },
101
- Input: {
102
- 'always-embed': _false,
103
- 'adjust-position': _true,
104
- 'hold-keyboard': _false,
105
- 'safe-password-cert-path': '',
106
- 'safe-password-length': '',
107
- 'safe-password-time-stamp': '',
108
- 'safe-password-nonce': '',
109
- 'safe-password-salt': '',
110
- 'safe-password-custom-hash': '',
111
- 'auto-fill': _empty,
112
- bindKeyboardHeightChange: _empty
113
- },
114
- Picker: {
115
- 'header-text': _empty
116
- },
117
- PickerView: {
118
- 'immediate-change': _false,
119
- bindPickStart: _empty,
120
- bindPickEnd: _empty
121
- },
122
- Slider: {
123
- color: "'#e9e9e9'",
124
- 'selected-color': "'#1aad19'"
125
- },
126
- Textarea: {
127
- 'show-confirm-bar': _true,
128
- 'adjust-position': _true,
129
- 'hold-keyboard': _false,
130
- 'disable-default-padding': _false,
131
- 'confirm-type': "'return'",
132
- 'confirm-hold': _false,
133
- bindKeyboardHeightChange: _empty
134
- },
135
- ScrollView: {
136
- 'enable-flex': _false,
137
- 'scroll-anchoring': _false,
138
- 'refresher-enabled': _false,
139
- 'refresher-threshold': '45',
140
- 'refresher-default-style': "'black'",
141
- 'refresher-background': "'#FFF'",
142
- 'refresher-triggered': _false,
143
- enhanced: _false,
144
- bounces: _true,
145
- 'show-scrollbar': _true,
146
- 'paging-enabled': _false,
147
- 'fast-deceleration': _false,
148
- bindDragStart: _empty,
149
- bindDragging: _empty,
150
- bindDragEnd: _empty,
151
- bindRefresherPulling: _empty,
152
- bindRefresherRefresh: _empty,
153
- bindRefresherRestore: _empty,
154
- bindRefresherAbort: _empty
155
- },
156
- Swiper: {
157
- 'snap-to-edge': _false,
158
- 'easing-function': "'default'"
159
- },
160
- SwiperItem: {
161
- 'skip-hidden-item-layout': _false
162
- },
163
- Navigator: {
164
- target: "'self'",
165
- 'app-id': _empty,
166
- path: _empty,
167
- 'extra-data': _empty,
168
- version: "'version'"
169
- },
170
- Camera: {
171
- mode: "'normal'",
172
- resolution: "'medium'",
173
- 'frame-size': "'medium'",
174
- bindInitDone: _empty,
175
- bindScanCode: _empty
176
- },
177
- Image: {
178
- webp: _false,
179
- 'show-menu-by-longpress': _false
180
- },
181
- LivePlayer: {
182
- mode: "'live'",
183
- 'sound-mode': "'speaker'",
184
- 'auto-pause-if-navigate': _true,
185
- 'auto-pause-if-open-native': _true,
186
- 'picture-in-picture-mode': '[]',
187
- bindstatechange: _empty,
188
- bindfullscreenchange: _empty,
189
- bindnetstatus: _empty,
190
- bindAudioVolumeNotify: _empty,
191
- bindEnterPictureInPicture: _empty,
192
- bindLeavePictureInPicture: _empty
193
- },
194
- Video: {
195
- title: _empty,
196
- 'play-btn-position': "'bottom'",
197
- 'enable-play-gesture': _false,
198
- 'auto-pause-if-navigate': _true,
199
- 'auto-pause-if-open-native': _true,
200
- 'vslide-gesture': _false,
201
- 'vslide-gesture-in-fullscreen': _true,
202
- 'ad-unit-id': _empty,
203
- 'poster-for-crawler': _empty,
204
- 'show-casting-button': _false,
205
- 'picture-in-picture-mode': '[]',
206
- // picture-in-picture-show-progress 属性先注释掉的原因如下:
207
- // 该属性超过了 wxml 属性的长度限制,实际无法使用且导致编译报错。可等微信官方修复后再放开。
208
- // 参考1:https://developers.weixin.qq.com/community/develop/doc/000a429beb87f0eac07acc0fc5b400
209
- // 参考2: https://developers.weixin.qq.com/community/develop/doc/0006883619c48054286a4308258c00?_at=vyxqpllafi
210
- // 'picture-in-picture-show-progress': 'false',
211
- 'enable-auto-rotation': _false,
212
- 'show-screen-lock-button': _false,
213
- 'show-snapshot-button': _false,
214
- 'show-background-playback-button': _false,
215
- 'background-poster': _empty,
216
- bindProgress: _empty,
217
- bindLoadedMetadata: _empty,
218
- bindControlsToggle: _empty,
219
- bindEnterPictureInPicture: _empty,
220
- bindLeavePictureInPicture: _empty,
221
- bindSeekComplete: _empty,
222
- bindAdLoad: _empty,
223
- bindAdError: _empty,
224
- bindAdClose: _empty,
225
- bindAdPlay: _empty
226
- },
227
- Canvas: {
228
- type: _empty
229
- },
230
- Ad: {
231
- 'ad-type': "'banner'",
232
- 'ad-theme': "'white'"
233
- },
234
- CoverView: {
235
- 'marker-id': _empty,
236
- slot: _empty
237
- },
238
- // ======== 额外组件 ========
239
- Editor: {
240
- 'read-only': _false,
241
- placeholder: _empty,
242
- 'show-img-size': _false,
243
- 'show-img-toolbar': _false,
244
- 'show-img-resize': _false,
245
- focus: _false,
246
- bindReady: _empty,
247
- bindFocus: _empty,
248
- bindBlur: _empty,
249
- bindInput: _empty,
250
- bindStatusChange: _empty,
251
- name: _empty
252
- },
253
- MatchMedia: {
254
- 'min-width': _empty,
255
- 'max-width': _empty,
256
- width: _empty,
257
- 'min-height': _empty,
258
- 'max-height': _empty,
259
- height: _empty,
260
- orientation: _empty
261
- },
262
- FunctionalPageNavigator: {
263
- version: "'release'",
264
- name: _empty,
265
- args: _empty,
266
- bindSuccess: _empty,
267
- bindFail: _empty,
268
- bindCancel: _empty
269
- },
270
- LivePusher: {
271
- url: _empty,
272
- mode: "'RTC'",
273
- autopush: _false,
274
- muted: _false,
275
- 'enable-camera': _true,
276
- 'auto-focus': _true,
277
- orientation: "'vertical'",
278
- beauty: _zero,
279
- whiteness: _zero,
280
- aspect: "'9:16'",
281
- 'min-bitrate': '200',
282
- 'max-bitrate': '1000',
283
- 'audio-quality': "'high'",
284
- 'waiting-image': _empty,
285
- 'waiting-image-hash': _empty,
286
- zoom: _false,
287
- 'device-position': "'front'",
288
- 'background-mute': _false,
289
- mirror: _false,
290
- 'remote-mirror': _false,
291
- 'local-mirror': _false,
292
- 'audio-reverb-type': _zero,
293
- 'enable-mic': _true,
294
- 'enable-agc': _false,
295
- 'enable-ans': _false,
296
- 'audio-volume-type': "'voicecall'",
297
- 'video-width': '360',
298
- 'video-height': '640',
299
- 'beauty-style': "'smooth'",
300
- filter: "'standard'",
301
- animation: _empty,
302
- bindStateChange: _empty,
303
- bindNetStatus: _empty,
304
- bindBgmStart: _empty,
305
- bindBgmProgress: _empty,
306
- bindBgmComplete: _empty,
307
- bindAudioVolumeNotify: _empty
308
- },
309
- OfficialAccount: {
310
- bindLoad: _empty,
311
- bindError: _empty
312
- },
313
- OpenData: {
314
- type: _empty,
315
- 'open-gid': _empty,
316
- lang: "'en'",
317
- 'default-text': _empty,
318
- 'default-avatar': _empty,
319
- bindError: _empty
320
- },
321
- NavigationBar: {
322
- title: _empty,
323
- loading: _false,
324
- 'front-color': _empty,
325
- 'background-color': _empty,
326
- 'color-animation-duration': _zero,
327
- 'color-animation-timing-func': "'linear'"
328
- },
329
- PageMeta: {
330
- 'background-text-style': _empty,
331
- 'background-color': _empty,
332
- 'background-color-top': _empty,
333
- 'background-color-bottom': _empty,
334
- 'scroll-top': "''",
335
- 'scroll-duration': '300',
336
- 'page-style': "''",
337
- 'root-font-size': "''",
338
- bindResize: _empty,
339
- bindScroll: _empty,
340
- bindScrollDone: _empty
341
- },
342
- VoipRoom: {
343
- openid: _empty,
344
- mode: "'camera'",
345
- 'device-position': "'front'",
346
- bindError: _empty
347
- },
348
- AdCustom: {
349
- 'unit-id': _empty,
350
- 'ad-intervals': _empty,
351
- bindLoad: _empty,
352
- bindError: _empty
353
- },
354
- PageContainer: {
355
- show: _false,
356
- duration: '300',
357
- 'z-index': '100',
358
- overlay: _true,
359
- position: "'bottom'",
360
- round: _false,
361
- 'close-on-slideDown': _false,
362
- 'overlay-style': _empty,
363
- 'custom-style': _empty,
364
- bindBeforeEnter: _empty,
365
- bindEnter: _empty,
366
- bindAfterEnter: _empty,
367
- bindBeforeLeave: _empty,
368
- bindLeave: _empty,
369
- bindAfterLeave: _empty,
370
- bindClickOverlay: _empty
371
- },
372
- ShareElement: {
373
- mapkey: _empty,
374
- transform: _false,
375
- duration: '300',
376
- 'easing-function': "'ease-out'"
377
- },
378
- KeyboardAccessory: {}
42
+ const _true = 'true';
43
+ const _false = 'false';
44
+ const _empty = '';
45
+ const _zero = '0';
46
+ const components = {
47
+ // ======== 调整属性 ========
48
+ Progress: {
49
+ 'border-radius': _zero,
50
+ 'font-size': '16',
51
+ duration: '30',
52
+ bindActiveEnd: _empty
53
+ },
54
+ RichText: {
55
+ space: _empty,
56
+ 'user-select': _false
57
+ },
58
+ Text: {
59
+ 'user-select': _false
60
+ },
61
+ Map: {
62
+ polygons: '[]',
63
+ subkey: _empty,
64
+ rotate: _zero,
65
+ skew: _zero,
66
+ 'max-scale': '20',
67
+ 'min-scale': '3',
68
+ 'enable-3D': _false,
69
+ 'show-compass': _false,
70
+ 'show-scale': _false,
71
+ 'enable-overlooking': _false,
72
+ 'enable-zoom': _true,
73
+ 'enable-scroll': _true,
74
+ 'enable-rotate': _false,
75
+ 'enable-satellite': _false,
76
+ 'enable-traffic': _false,
77
+ setting: '[]',
78
+ bindLabelTap: _empty,
79
+ bindRegionChange: _empty,
80
+ bindPoiTap: _empty
81
+ },
82
+ Button: {
83
+ lang: 'en',
84
+ 'session-from': _empty,
85
+ 'send-message-title': _empty,
86
+ 'send-message-path': _empty,
87
+ 'send-message-img': _empty,
88
+ 'app-parameter': _empty,
89
+ 'show-message-card': _false,
90
+ 'business-id': _empty,
91
+ bindGetUserInfo: _empty,
92
+ bindContact: _empty,
93
+ bindGetPhoneNumber: _empty,
94
+ bindChooseAvatar: _empty,
95
+ bindError: _empty,
96
+ bindOpenSetting: _empty,
97
+ bindLaunchApp: _empty
98
+ },
99
+ Form: {
100
+ 'report-submit-timeout': _zero
101
+ },
102
+ Input: {
103
+ 'always-embed': _false,
104
+ 'adjust-position': _true,
105
+ 'hold-keyboard': _false,
106
+ 'safe-password-cert-path': '',
107
+ 'safe-password-length': '',
108
+ 'safe-password-time-stamp': '',
109
+ 'safe-password-nonce': '',
110
+ 'safe-password-salt': '',
111
+ 'safe-password-custom-hash': '',
112
+ 'auto-fill': _empty,
113
+ bindKeyboardHeightChange: _empty
114
+ },
115
+ Picker: {
116
+ 'header-text': _empty
117
+ },
118
+ PickerView: {
119
+ 'immediate-change': _false,
120
+ bindPickStart: _empty,
121
+ bindPickEnd: _empty
122
+ },
123
+ Slider: {
124
+ color: "'#e9e9e9'",
125
+ 'selected-color': "'#1aad19'"
126
+ },
127
+ Textarea: {
128
+ 'show-confirm-bar': _true,
129
+ 'adjust-position': _true,
130
+ 'hold-keyboard': _false,
131
+ 'disable-default-padding': _false,
132
+ 'confirm-type': "'return'",
133
+ 'confirm-hold': _false,
134
+ bindKeyboardHeightChange: _empty
135
+ },
136
+ ScrollView: {
137
+ 'enable-flex': _false,
138
+ 'scroll-anchoring': _false,
139
+ 'refresher-enabled': _false,
140
+ 'refresher-threshold': '45',
141
+ 'refresher-default-style': "'black'",
142
+ 'refresher-background': "'#FFF'",
143
+ 'refresher-triggered': _false,
144
+ enhanced: _false,
145
+ bounces: _true,
146
+ 'show-scrollbar': _true,
147
+ 'paging-enabled': _false,
148
+ 'fast-deceleration': _false,
149
+ bindDragStart: _empty,
150
+ bindDragging: _empty,
151
+ bindDragEnd: _empty,
152
+ bindRefresherPulling: _empty,
153
+ bindRefresherRefresh: _empty,
154
+ bindRefresherRestore: _empty,
155
+ bindRefresherAbort: _empty
156
+ },
157
+ Swiper: {
158
+ 'snap-to-edge': _false,
159
+ 'easing-function': "'default'"
160
+ },
161
+ SwiperItem: {
162
+ 'skip-hidden-item-layout': _false
163
+ },
164
+ Navigator: {
165
+ target: "'self'",
166
+ 'app-id': _empty,
167
+ path: _empty,
168
+ 'extra-data': _empty,
169
+ version: "'version'"
170
+ },
171
+ Camera: {
172
+ mode: "'normal'",
173
+ resolution: "'medium'",
174
+ 'frame-size': "'medium'",
175
+ bindInitDone: _empty,
176
+ bindScanCode: _empty
177
+ },
178
+ Image: {
179
+ webp: _false,
180
+ 'show-menu-by-longpress': _false
181
+ },
182
+ LivePlayer: {
183
+ mode: "'live'",
184
+ 'sound-mode': "'speaker'",
185
+ 'auto-pause-if-navigate': _true,
186
+ 'auto-pause-if-open-native': _true,
187
+ 'picture-in-picture-mode': '[]',
188
+ bindstatechange: _empty,
189
+ bindfullscreenchange: _empty,
190
+ bindnetstatus: _empty,
191
+ bindAudioVolumeNotify: _empty,
192
+ bindEnterPictureInPicture: _empty,
193
+ bindLeavePictureInPicture: _empty
194
+ },
195
+ Video: {
196
+ title: _empty,
197
+ 'play-btn-position': "'bottom'",
198
+ 'enable-play-gesture': _false,
199
+ 'auto-pause-if-navigate': _true,
200
+ 'auto-pause-if-open-native': _true,
201
+ 'vslide-gesture': _false,
202
+ 'vslide-gesture-in-fullscreen': _true,
203
+ 'ad-unit-id': _empty,
204
+ 'poster-for-crawler': _empty,
205
+ 'show-casting-button': _false,
206
+ 'picture-in-picture-mode': '[]',
207
+ // picture-in-picture-show-progress 属性先注释掉的原因如下:
208
+ // 该属性超过了 wxml 属性的长度限制,实际无法使用且导致编译报错。可等微信官方修复后再放开。
209
+ // 参考1:https://developers.weixin.qq.com/community/develop/doc/000a429beb87f0eac07acc0fc5b400
210
+ // 参考2: https://developers.weixin.qq.com/community/develop/doc/0006883619c48054286a4308258c00?_at=vyxqpllafi
211
+ // 'picture-in-picture-show-progress': 'false',
212
+ 'enable-auto-rotation': _false,
213
+ 'show-screen-lock-button': _false,
214
+ 'show-snapshot-button': _false,
215
+ 'show-background-playback-button': _false,
216
+ 'background-poster': _empty,
217
+ bindProgress: _empty,
218
+ bindLoadedMetadata: _empty,
219
+ bindControlsToggle: _empty,
220
+ bindEnterPictureInPicture: _empty,
221
+ bindLeavePictureInPicture: _empty,
222
+ bindSeekComplete: _empty,
223
+ bindAdLoad: _empty,
224
+ bindAdError: _empty,
225
+ bindAdClose: _empty,
226
+ bindAdPlay: _empty
227
+ },
228
+ Canvas: {
229
+ type: _empty
230
+ },
231
+ Ad: {
232
+ 'ad-type': "'banner'",
233
+ 'ad-theme': "'white'"
234
+ },
235
+ CoverView: {
236
+ 'marker-id': _empty,
237
+ slot: _empty
238
+ },
239
+ // ======== 额外组件 ========
240
+ Editor: {
241
+ 'read-only': _false,
242
+ placeholder: _empty,
243
+ 'show-img-size': _false,
244
+ 'show-img-toolbar': _false,
245
+ 'show-img-resize': _false,
246
+ focus: _false,
247
+ bindReady: _empty,
248
+ bindFocus: _empty,
249
+ bindBlur: _empty,
250
+ bindInput: _empty,
251
+ bindStatusChange: _empty,
252
+ name: _empty
253
+ },
254
+ MatchMedia: {
255
+ 'min-width': _empty,
256
+ 'max-width': _empty,
257
+ width: _empty,
258
+ 'min-height': _empty,
259
+ 'max-height': _empty,
260
+ height: _empty,
261
+ orientation: _empty
262
+ },
263
+ FunctionalPageNavigator: {
264
+ version: "'release'",
265
+ name: _empty,
266
+ args: _empty,
267
+ bindSuccess: _empty,
268
+ bindFail: _empty,
269
+ bindCancel: _empty
270
+ },
271
+ LivePusher: {
272
+ url: _empty,
273
+ mode: "'RTC'",
274
+ autopush: _false,
275
+ muted: _false,
276
+ 'enable-camera': _true,
277
+ 'auto-focus': _true,
278
+ orientation: "'vertical'",
279
+ beauty: _zero,
280
+ whiteness: _zero,
281
+ aspect: "'9:16'",
282
+ 'min-bitrate': '200',
283
+ 'max-bitrate': '1000',
284
+ 'audio-quality': "'high'",
285
+ 'waiting-image': _empty,
286
+ 'waiting-image-hash': _empty,
287
+ zoom: _false,
288
+ 'device-position': "'front'",
289
+ 'background-mute': _false,
290
+ mirror: _false,
291
+ 'remote-mirror': _false,
292
+ 'local-mirror': _false,
293
+ 'audio-reverb-type': _zero,
294
+ 'enable-mic': _true,
295
+ 'enable-agc': _false,
296
+ 'enable-ans': _false,
297
+ 'audio-volume-type': "'voicecall'",
298
+ 'video-width': '360',
299
+ 'video-height': '640',
300
+ 'beauty-style': "'smooth'",
301
+ filter: "'standard'",
302
+ animation: _empty,
303
+ bindStateChange: _empty,
304
+ bindNetStatus: _empty,
305
+ bindBgmStart: _empty,
306
+ bindBgmProgress: _empty,
307
+ bindBgmComplete: _empty,
308
+ bindAudioVolumeNotify: _empty
309
+ },
310
+ OfficialAccount: {
311
+ bindLoad: _empty,
312
+ bindError: _empty
313
+ },
314
+ OpenData: {
315
+ type: _empty,
316
+ 'open-gid': _empty,
317
+ lang: "'en'",
318
+ 'default-text': _empty,
319
+ 'default-avatar': _empty,
320
+ bindError: _empty
321
+ },
322
+ NavigationBar: {
323
+ title: _empty,
324
+ loading: _false,
325
+ 'front-color': _empty,
326
+ 'background-color': _empty,
327
+ 'color-animation-duration': _zero,
328
+ 'color-animation-timing-func': "'linear'"
329
+ },
330
+ PageMeta: {
331
+ 'background-text-style': _empty,
332
+ 'background-color': _empty,
333
+ 'background-color-top': _empty,
334
+ 'background-color-bottom': _empty,
335
+ 'scroll-top': "''",
336
+ 'scroll-duration': '300',
337
+ 'page-style': "''",
338
+ 'root-font-size': "''",
339
+ bindResize: _empty,
340
+ bindScroll: _empty,
341
+ bindScrollDone: _empty
342
+ },
343
+ VoipRoom: {
344
+ openid: _empty,
345
+ mode: "'camera'",
346
+ 'device-position': "'front'",
347
+ bindError: _empty
348
+ },
349
+ AdCustom: {
350
+ 'unit-id': _empty,
351
+ 'ad-intervals': _empty,
352
+ bindLoad: _empty,
353
+ bindError: _empty
354
+ },
355
+ PageContainer: {
356
+ show: _false,
357
+ duration: '300',
358
+ 'z-index': '100',
359
+ overlay: _true,
360
+ position: "'bottom'",
361
+ round: _false,
362
+ 'close-on-slideDown': _false,
363
+ 'overlay-style': _empty,
364
+ 'custom-style': _empty,
365
+ bindBeforeEnter: _empty,
366
+ bindEnter: _empty,
367
+ bindAfterEnter: _empty,
368
+ bindBeforeLeave: _empty,
369
+ bindLeave: _empty,
370
+ bindAfterLeave: _empty,
371
+ bindClickOverlay: _empty
372
+ },
373
+ ShareElement: {
374
+ mapkey: _empty,
375
+ transform: _false,
376
+ duration: '300',
377
+ 'easing-function': "'ease-out'"
378
+ },
379
+ KeyboardAccessory: {}
379
380
  };
380
381
 
381
- const hostConfig = {
382
- initNativeApi,
383
- getMiniLifecycle(config) {
384
- const methods = config.page[5];
385
- if (methods.indexOf('onSaveExitState') === -1) {
386
- methods.push('onSaveExitState');
387
- }
388
- return config;
389
- }
382
+ const hostConfig = {
383
+ initNativeApi,
384
+ getMiniLifecycle(config) {
385
+ const methods = config.page[5];
386
+ if (methods.indexOf('onSaveExitState') === -1) {
387
+ methods.push('onSaveExitState');
388
+ }
389
+ return config;
390
+ }
390
391
  };
391
392
 
392
393
  export { components, hostConfig, initNativeApi, needPromiseApis };