@tarojs/plugin-platform-weapp 3.5.0-beta.2 → 3.5.0-beta.5
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/dist/components-react.js +13 -13
- package/dist/components-react.js.map +1 -1
- package/dist/index.js +485 -477
- package/dist/index.js.map +1 -1
- package/dist/runtime-utils.js +382 -373
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js +383 -374
- package/dist/runtime.js.map +1 -1
- package/index.js +1 -0
- package/package.json +9 -10
- package/types/components-react.d.ts +15 -14
- package/types/index.d.ts +59 -8
- package/types/runtime-utils.d.ts +335 -7
- package/types/runtime.d.ts +1 -1
- package/types/apis-list.d.ts +0 -1
- package/types/apis.d.ts +0 -1
- package/types/components.d.ts +0 -327
- package/types/program.d.ts +0 -35
- package/types/template.d.ts +0 -22
package/dist/runtime-utils.js
CHANGED
|
@@ -1,384 +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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'confirm-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
'
|
|
137
|
-
'
|
|
138
|
-
'refresher-
|
|
139
|
-
'refresher-
|
|
140
|
-
'refresher-
|
|
141
|
-
'refresher-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
'
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
'
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
'
|
|
184
|
-
'auto-pause-if-
|
|
185
|
-
'
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'auto-pause-if-
|
|
199
|
-
'
|
|
200
|
-
'vslide-gesture
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
|
|
206
|
-
//
|
|
207
|
-
//
|
|
208
|
-
// 参考
|
|
209
|
-
//
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'show-
|
|
213
|
-
'show-
|
|
214
|
-
'background-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
'ad-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
'show-img-
|
|
243
|
-
'show-img-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
'
|
|
255
|
-
width: _empty,
|
|
256
|
-
|
|
257
|
-
'
|
|
258
|
-
height: _empty,
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
'
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'waiting-image
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
'
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'enable-
|
|
294
|
-
'enable-
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
'video-
|
|
298
|
-
'
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
'
|
|
317
|
-
'default-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
'
|
|
325
|
-
'color
|
|
326
|
-
'color-animation-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
'background-
|
|
331
|
-
'background-color
|
|
332
|
-
'background-color-
|
|
333
|
-
'
|
|
334
|
-
'scroll-
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
'
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
'
|
|
362
|
-
'
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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: {}
|
|
378
380
|
};
|
|
379
381
|
|
|
380
|
-
const hostConfig = {
|
|
381
|
-
initNativeApi
|
|
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
|
+
}
|
|
382
391
|
};
|
|
383
392
|
|
|
384
393
|
export { components, hostConfig, initNativeApi, needPromiseApis };
|