@tarojs/plugin-platform-weapp 3.3.14 → 3.5.0-canary.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.
- package/dist/components-react.js.map +1 -1
- package/dist/index.js +260 -231
- package/dist/index.js.map +1 -1
- package/dist/runtime-utils.js +233 -228
- package/dist/runtime-utils.js.map +1 -1
- package/dist/runtime.js +233 -228
- package/dist/runtime.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-react.js","sources":["../../taro-components/mini/index.js","../src/components-react.ts"],"sourcesContent":["export const View = 'view'\nexport const Icon = 'icon'\nexport const Progress = 'progress'\nexport const RichText = 'rich-text'\nexport const Text = 'text'\nexport const Button = 'button'\nexport const Checkbox = 'checkbox'\nexport const CheckboxGroup = 'checkbox-group'\nexport const Form = 'form'\nexport const Input = 'input'\nexport const Label = 'label'\nexport const Picker = 'picker'\nexport const PickerView = 'picker-view'\nexport const PickerViewColumn = 'picker-view-column'\nexport const Radio = 'radio'\nexport const RadioGroup = 'radio-group'\nexport const Slider = 'slider'\nexport const Switch = 'switch'\nexport const CoverImage = 'cover-image'\nexport const Textarea = 'textarea'\nexport const CoverView = 'cover-view'\nexport const MovableArea = 'movable-area'\nexport const MovableView = 'movable-view'\nexport const ScrollView = 'scroll-view'\nexport const Swiper = 'swiper'\nexport const SwiperItem = 'swiper-item'\nexport const Navigator = 'navigator'\nexport const Audio = 'audio'\nexport const Camera = 'camera'\nexport const Image = 'image'\nexport const LivePlayer = 'live-player'\nexport const Video = 'video'\nexport const Canvas = 'canvas'\nexport const Ad = 'ad'\nexport const WebView = 'web-view'\nexport const Block = 'block'\nexport const Map = 'map'\nexport const Slot = 'slot'\nexport const CustomWrapper = 'custom-wrapper'\n","// For React.createElement's type\nexport * from '@tarojs/components/mini'\nexport const Editor = 'editor'\nexport const MatchMedia = 'match-media'\nexport const FunctionalPageNavigator = 'functional-page-navigator'\nexport const LivePusher = 'live-pusher'\nexport const OfficialAccount = 'official-account'\nexport const OpenData = 'open-data'\nexport const NavigationBar = 'navigation-bar'\nexport const PageMeta = 'page-meta'\nexport const VoipRoom = 'voip-room'\nexport const AdCustom = 'ad-custom'\nexport const PageContainer = 'page-container'\nexport const KeyboardAccessory = 'keyboard-accessory'\n"],"names":[],"mappings":"AAAY,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,QAAQ,GAAG,WAAU;AACtB,MAAC,QAAQ,GAAG,YAAW;AACvB,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,QAAQ,GAAG,WAAU;AACtB,MAAC,aAAa,GAAG,iBAAgB;AACjC,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,gBAAgB,GAAG,qBAAoB;AACxC,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,QAAQ,GAAG,WAAU;AACtB,MAAC,SAAS,GAAG,aAAY;AACzB,MAAC,WAAW,GAAG,eAAc;AAC7B,MAAC,WAAW,GAAG,eAAc;AAC7B,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,SAAS,GAAG,YAAW;AACxB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,EAAE,GAAG,KAAI;AACV,MAAC,OAAO,GAAG,WAAU;AACrB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,GAAG,GAAG,MAAK;AACZ,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,aAAa,GAAG;;ACtC7B;
|
|
1
|
+
{"version":3,"file":"components-react.js","sources":["../../taro-components/mini/index.js","../src/components-react.ts"],"sourcesContent":["export const View = 'view'\nexport const Icon = 'icon'\nexport const Progress = 'progress'\nexport const RichText = 'rich-text'\nexport const Text = 'text'\nexport const Button = 'button'\nexport const Checkbox = 'checkbox'\nexport const CheckboxGroup = 'checkbox-group'\nexport const Form = 'form'\nexport const Input = 'input'\nexport const Label = 'label'\nexport const Picker = 'picker'\nexport const PickerView = 'picker-view'\nexport const PickerViewColumn = 'picker-view-column'\nexport const Radio = 'radio'\nexport const RadioGroup = 'radio-group'\nexport const Slider = 'slider'\nexport const Switch = 'switch'\nexport const CoverImage = 'cover-image'\nexport const Textarea = 'textarea'\nexport const CoverView = 'cover-view'\nexport const MovableArea = 'movable-area'\nexport const MovableView = 'movable-view'\nexport const ScrollView = 'scroll-view'\nexport const Swiper = 'swiper'\nexport const SwiperItem = 'swiper-item'\nexport const Navigator = 'navigator'\nexport const Audio = 'audio'\nexport const Camera = 'camera'\nexport const Image = 'image'\nexport const LivePlayer = 'live-player'\nexport const Video = 'video'\nexport const Canvas = 'canvas'\nexport const Ad = 'ad'\nexport const WebView = 'web-view'\nexport const Block = 'block'\nexport const Map = 'map'\nexport const Slot = 'slot'\nexport const CustomWrapper = 'custom-wrapper'\n","// For React.createElement's type\nexport * from '@tarojs/components/mini'\nexport const Editor = 'editor'\nexport const MatchMedia = 'match-media'\nexport const FunctionalPageNavigator = 'functional-page-navigator'\nexport const LivePusher = 'live-pusher'\nexport const OfficialAccount = 'official-account'\nexport const OpenData = 'open-data'\nexport const NavigationBar = 'navigation-bar'\nexport const PageMeta = 'page-meta'\nexport const VoipRoom = 'voip-room'\nexport const AdCustom = 'ad-custom'\nexport const PageContainer = 'page-container'\nexport const KeyboardAccessory = 'keyboard-accessory'\n"],"names":[],"mappings":"AAAY,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,QAAQ,GAAG,WAAU;AACtB,MAAC,QAAQ,GAAG,YAAW;AACvB,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,QAAQ,GAAG,WAAU;AACtB,MAAC,aAAa,GAAG,iBAAgB;AACjC,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,gBAAgB,GAAG,qBAAoB;AACxC,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,QAAQ,GAAG,WAAU;AACtB,MAAC,SAAS,GAAG,aAAY;AACzB,MAAC,WAAW,GAAG,eAAc;AAC7B,MAAC,WAAW,GAAG,eAAc;AAC7B,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,SAAS,GAAG,YAAW;AACxB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,UAAU,GAAG,cAAa;AAC3B,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,MAAM,GAAG,SAAQ;AAClB,MAAC,EAAE,GAAG,KAAI;AACV,MAAC,OAAO,GAAG,WAAU;AACrB,MAAC,KAAK,GAAG,QAAO;AAChB,MAAC,GAAG,GAAG,MAAK;AACZ,MAAC,IAAI,GAAG,OAAM;AACd,MAAC,aAAa,GAAG;;ACtC7B;MAEa,MAAM,GAAG,SAAQ;MACjB,UAAU,GAAG,cAAa;MAC1B,uBAAuB,GAAG,4BAA2B;MACrD,UAAU,GAAG,cAAa;MAC1B,eAAe,GAAG,mBAAkB;MACpC,QAAQ,GAAG,YAAW;MACtB,aAAa,GAAG,iBAAgB;MAChC,QAAQ,GAAG,YAAW;MACtB,QAAQ,GAAG,YAAW;MACtB,QAAQ,GAAG,YAAW;MACtB,aAAa,GAAG,iBAAgB;MAChC,iBAAiB,GAAG;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,30 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var service = require('@tarojs/service');
|
|
6
6
|
var template = require('@tarojs/shared/dist/template');
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
/*! *****************************************************************************
|
|
9
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
11
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
12
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
|
|
14
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
16
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
17
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
18
|
+
|
|
19
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
20
|
+
and limitations under the License.
|
|
21
|
+
***************************************************************************** */
|
|
22
|
+
|
|
23
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
24
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
25
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
26
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
27
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
28
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
29
|
+
});
|
|
30
|
+
}
|
|
8
31
|
|
|
9
32
|
class Template extends template.UnRecursiveTemplate {
|
|
10
33
|
constructor(pluginOptions) {
|
|
@@ -75,322 +98,326 @@ class Template extends template.UnRecursiveTemplate {
|
|
|
75
98
|
}
|
|
76
99
|
}
|
|
77
100
|
|
|
101
|
+
const _true = 'true';
|
|
102
|
+
const _false = 'false';
|
|
103
|
+
const _empty = '';
|
|
104
|
+
const _zero = '0';
|
|
78
105
|
const components = {
|
|
79
106
|
// ======== 调整属性 ========
|
|
80
107
|
Progress: {
|
|
81
|
-
'border-radius':
|
|
108
|
+
'border-radius': _zero,
|
|
82
109
|
'font-size': '16',
|
|
83
110
|
duration: '30',
|
|
84
|
-
bindActiveEnd:
|
|
111
|
+
bindActiveEnd: _empty
|
|
85
112
|
},
|
|
86
113
|
RichText: {
|
|
87
|
-
space:
|
|
114
|
+
space: _empty
|
|
88
115
|
},
|
|
89
116
|
Text: {
|
|
90
|
-
'user-select':
|
|
117
|
+
'user-select': _false
|
|
91
118
|
},
|
|
92
119
|
Map: {
|
|
93
120
|
polygons: '[]',
|
|
94
|
-
subkey:
|
|
95
|
-
rotate:
|
|
96
|
-
skew:
|
|
121
|
+
subkey: _empty,
|
|
122
|
+
rotate: _zero,
|
|
123
|
+
skew: _zero,
|
|
97
124
|
'max-scale': '20',
|
|
98
125
|
'min-scale': '3',
|
|
99
|
-
'enable-3D':
|
|
100
|
-
'show-compass':
|
|
101
|
-
'show-scale':
|
|
102
|
-
'enable-overlooking':
|
|
103
|
-
'enable-zoom':
|
|
104
|
-
'enable-scroll':
|
|
105
|
-
'enable-rotate':
|
|
106
|
-
'enable-satellite':
|
|
107
|
-
'enable-traffic':
|
|
126
|
+
'enable-3D': _false,
|
|
127
|
+
'show-compass': _false,
|
|
128
|
+
'show-scale': _false,
|
|
129
|
+
'enable-overlooking': _false,
|
|
130
|
+
'enable-zoom': _true,
|
|
131
|
+
'enable-scroll': _true,
|
|
132
|
+
'enable-rotate': _false,
|
|
133
|
+
'enable-satellite': _false,
|
|
134
|
+
'enable-traffic': _false,
|
|
108
135
|
setting: '[]',
|
|
109
|
-
bindLabelTap:
|
|
110
|
-
bindRegionChange:
|
|
111
|
-
bindPoiTap:
|
|
136
|
+
bindLabelTap: _empty,
|
|
137
|
+
bindRegionChange: _empty,
|
|
138
|
+
bindPoiTap: _empty
|
|
112
139
|
},
|
|
113
140
|
Button: {
|
|
114
141
|
lang: 'en',
|
|
115
|
-
'session-from':
|
|
116
|
-
'send-message-title':
|
|
117
|
-
'send-message-path':
|
|
118
|
-
'send-message-img':
|
|
119
|
-
'app-parameter':
|
|
120
|
-
'show-message-card':
|
|
121
|
-
'business-id':
|
|
122
|
-
bindGetUserInfo:
|
|
123
|
-
bindContact:
|
|
124
|
-
bindGetPhoneNumber:
|
|
125
|
-
bindError:
|
|
126
|
-
bindOpenSetting:
|
|
127
|
-
bindLaunchApp:
|
|
142
|
+
'session-from': _empty,
|
|
143
|
+
'send-message-title': _empty,
|
|
144
|
+
'send-message-path': _empty,
|
|
145
|
+
'send-message-img': _empty,
|
|
146
|
+
'app-parameter': _empty,
|
|
147
|
+
'show-message-card': _false,
|
|
148
|
+
'business-id': _empty,
|
|
149
|
+
bindGetUserInfo: _empty,
|
|
150
|
+
bindContact: _empty,
|
|
151
|
+
bindGetPhoneNumber: _empty,
|
|
152
|
+
bindError: _empty,
|
|
153
|
+
bindOpenSetting: _empty,
|
|
154
|
+
bindLaunchApp: _empty
|
|
128
155
|
},
|
|
129
156
|
Form: {
|
|
130
|
-
'report-submit-timeout':
|
|
157
|
+
'report-submit-timeout': _zero
|
|
131
158
|
},
|
|
132
159
|
Input: {
|
|
133
|
-
'always-embed':
|
|
134
|
-
'adjust-position':
|
|
135
|
-
'hold-keyboard':
|
|
136
|
-
bindKeyboardHeightChange:
|
|
160
|
+
'always-embed': _false,
|
|
161
|
+
'adjust-position': _true,
|
|
162
|
+
'hold-keyboard': _false,
|
|
163
|
+
bindKeyboardHeightChange: _empty
|
|
137
164
|
},
|
|
138
165
|
Picker: {
|
|
139
|
-
'header-text':
|
|
166
|
+
'header-text': _empty
|
|
140
167
|
},
|
|
141
168
|
PickerView: {
|
|
142
|
-
bindPickStart:
|
|
143
|
-
bindPickEnd:
|
|
169
|
+
bindPickStart: _empty,
|
|
170
|
+
bindPickEnd: _empty
|
|
144
171
|
},
|
|
145
172
|
Slider: {
|
|
146
|
-
color:
|
|
147
|
-
'selected-color':
|
|
173
|
+
color: "'#e9e9e9'",
|
|
174
|
+
'selected-color': "'#1aad19'"
|
|
148
175
|
},
|
|
149
176
|
Textarea: {
|
|
150
|
-
'show-confirm-bar':
|
|
151
|
-
'adjust-position':
|
|
152
|
-
'hold-keyboard':
|
|
153
|
-
'disable-default-padding':
|
|
154
|
-
'confirm-type':
|
|
155
|
-
'confirm-hold':
|
|
156
|
-
bindKeyboardHeightChange:
|
|
177
|
+
'show-confirm-bar': _true,
|
|
178
|
+
'adjust-position': _true,
|
|
179
|
+
'hold-keyboard': _false,
|
|
180
|
+
'disable-default-padding': _false,
|
|
181
|
+
'confirm-type': "'return'",
|
|
182
|
+
'confirm-hold': _false,
|
|
183
|
+
bindKeyboardHeightChange: _empty
|
|
157
184
|
},
|
|
158
185
|
ScrollView: {
|
|
159
|
-
'enable-flex':
|
|
160
|
-
'scroll-anchoring':
|
|
161
|
-
'refresher-enabled':
|
|
186
|
+
'enable-flex': _false,
|
|
187
|
+
'scroll-anchoring': _false,
|
|
188
|
+
'refresher-enabled': _false,
|
|
162
189
|
'refresher-threshold': '45',
|
|
163
|
-
'refresher-default-style':
|
|
164
|
-
'refresher-background':
|
|
165
|
-
'refresher-triggered':
|
|
166
|
-
enhanced:
|
|
167
|
-
bounces:
|
|
168
|
-
'show-scrollbar':
|
|
169
|
-
'paging-enabled':
|
|
170
|
-
'fast-deceleration':
|
|
171
|
-
bindDragStart:
|
|
172
|
-
bindDragging:
|
|
173
|
-
bindDragEnd:
|
|
174
|
-
bindRefresherPulling:
|
|
175
|
-
bindRefresherRefresh:
|
|
176
|
-
bindRefresherRestore:
|
|
177
|
-
bindRefresherAbort:
|
|
190
|
+
'refresher-default-style': "'black'",
|
|
191
|
+
'refresher-background': "'#FFF'",
|
|
192
|
+
'refresher-triggered': _false,
|
|
193
|
+
enhanced: _false,
|
|
194
|
+
bounces: _true,
|
|
195
|
+
'show-scrollbar': _true,
|
|
196
|
+
'paging-enabled': _false,
|
|
197
|
+
'fast-deceleration': _false,
|
|
198
|
+
bindDragStart: _empty,
|
|
199
|
+
bindDragging: _empty,
|
|
200
|
+
bindDragEnd: _empty,
|
|
201
|
+
bindRefresherPulling: _empty,
|
|
202
|
+
bindRefresherRefresh: _empty,
|
|
203
|
+
bindRefresherRestore: _empty,
|
|
204
|
+
bindRefresherAbort: _empty
|
|
178
205
|
},
|
|
179
206
|
Swiper: {
|
|
180
|
-
'snap-to-edge':
|
|
181
|
-
'easing-function':
|
|
207
|
+
'snap-to-edge': _false,
|
|
208
|
+
'easing-function': "'default'"
|
|
182
209
|
},
|
|
183
210
|
SwiperItem: {
|
|
184
|
-
'skip-hidden-item-layout':
|
|
211
|
+
'skip-hidden-item-layout': _false
|
|
185
212
|
},
|
|
186
213
|
Navigator: {
|
|
187
|
-
target:
|
|
188
|
-
'app-id':
|
|
189
|
-
path:
|
|
190
|
-
'extra-data':
|
|
191
|
-
version:
|
|
214
|
+
target: "'self'",
|
|
215
|
+
'app-id': _empty,
|
|
216
|
+
path: _empty,
|
|
217
|
+
'extra-data': _empty,
|
|
218
|
+
version: "'version'"
|
|
192
219
|
},
|
|
193
220
|
Camera: {
|
|
194
|
-
mode:
|
|
195
|
-
resolution:
|
|
196
|
-
'frame-size':
|
|
197
|
-
bindInitDone:
|
|
198
|
-
bindScanCode:
|
|
221
|
+
mode: "'normal'",
|
|
222
|
+
resolution: "'medium'",
|
|
223
|
+
'frame-size': "'medium'",
|
|
224
|
+
bindInitDone: _empty,
|
|
225
|
+
bindScanCode: _empty
|
|
199
226
|
},
|
|
200
227
|
Image: {
|
|
201
|
-
webp:
|
|
202
|
-
'show-menu-by-longpress':
|
|
228
|
+
webp: _false,
|
|
229
|
+
'show-menu-by-longpress': _false
|
|
203
230
|
},
|
|
204
231
|
LivePlayer: {
|
|
205
|
-
mode:
|
|
206
|
-
'sound-mode':
|
|
207
|
-
'auto-pause-if-navigate':
|
|
208
|
-
'auto-pause-if-open-native':
|
|
232
|
+
mode: "'live'",
|
|
233
|
+
'sound-mode': "'speaker'",
|
|
234
|
+
'auto-pause-if-navigate': _true,
|
|
235
|
+
'auto-pause-if-open-native': _true,
|
|
209
236
|
'picture-in-picture-mode': '[]',
|
|
210
|
-
bindstatechange:
|
|
211
|
-
bindfullscreenchange:
|
|
212
|
-
bindnetstatus:
|
|
213
|
-
bindAudioVolumeNotify:
|
|
214
|
-
bindEnterPictureInPicture:
|
|
215
|
-
bindLeavePictureInPicture:
|
|
237
|
+
bindstatechange: _empty,
|
|
238
|
+
bindfullscreenchange: _empty,
|
|
239
|
+
bindnetstatus: _empty,
|
|
240
|
+
bindAudioVolumeNotify: _empty,
|
|
241
|
+
bindEnterPictureInPicture: _empty,
|
|
242
|
+
bindLeavePictureInPicture: _empty
|
|
216
243
|
},
|
|
217
244
|
Video: {
|
|
218
|
-
title:
|
|
219
|
-
'play-btn-position':
|
|
220
|
-
'enable-play-gesture':
|
|
221
|
-
'auto-pause-if-navigate':
|
|
222
|
-
'auto-pause-if-open-native':
|
|
223
|
-
'vslide-gesture':
|
|
224
|
-
'vslide-gesture-in-fullscreen':
|
|
225
|
-
'ad-unit-id':
|
|
226
|
-
'poster-for-crawler':
|
|
227
|
-
'show-casting-button':
|
|
245
|
+
title: _empty,
|
|
246
|
+
'play-btn-position': "'bottom'",
|
|
247
|
+
'enable-play-gesture': _false,
|
|
248
|
+
'auto-pause-if-navigate': _true,
|
|
249
|
+
'auto-pause-if-open-native': _true,
|
|
250
|
+
'vslide-gesture': _false,
|
|
251
|
+
'vslide-gesture-in-fullscreen': _true,
|
|
252
|
+
'ad-unit-id': _empty,
|
|
253
|
+
'poster-for-crawler': _empty,
|
|
254
|
+
'show-casting-button': _false,
|
|
228
255
|
'picture-in-picture-mode': '[]',
|
|
229
256
|
// picture-in-picture-show-progress 属性先注释掉的原因如下:
|
|
230
257
|
// 该属性超过了 wxml 属性的长度限制,实际无法使用且导致编译报错。可等微信官方修复后再放开。
|
|
231
258
|
// 参考1:https://developers.weixin.qq.com/community/develop/doc/000a429beb87f0eac07acc0fc5b400
|
|
232
259
|
// 参考2: https://developers.weixin.qq.com/community/develop/doc/0006883619c48054286a4308258c00?_at=vyxqpllafi
|
|
233
260
|
// 'picture-in-picture-show-progress': 'false',
|
|
234
|
-
'enable-auto-rotation':
|
|
235
|
-
'show-screen-lock-button':
|
|
236
|
-
'show-snapshot-button':
|
|
237
|
-
'show-background-playback-button':
|
|
238
|
-
'background-poster':
|
|
239
|
-
bindProgress:
|
|
240
|
-
bindLoadedMetadata:
|
|
241
|
-
bindControlsToggle:
|
|
242
|
-
bindEnterPictureInPicture:
|
|
243
|
-
bindLeavePictureInPicture:
|
|
244
|
-
bindSeekComplete:
|
|
245
|
-
bindAdLoad:
|
|
246
|
-
bindAdError:
|
|
247
|
-
bindAdClose:
|
|
248
|
-
bindAdPlay:
|
|
261
|
+
'enable-auto-rotation': _false,
|
|
262
|
+
'show-screen-lock-button': _false,
|
|
263
|
+
'show-snapshot-button': _false,
|
|
264
|
+
'show-background-playback-button': _false,
|
|
265
|
+
'background-poster': _empty,
|
|
266
|
+
bindProgress: _empty,
|
|
267
|
+
bindLoadedMetadata: _empty,
|
|
268
|
+
bindControlsToggle: _empty,
|
|
269
|
+
bindEnterPictureInPicture: _empty,
|
|
270
|
+
bindLeavePictureInPicture: _empty,
|
|
271
|
+
bindSeekComplete: _empty,
|
|
272
|
+
bindAdLoad: _empty,
|
|
273
|
+
bindAdError: _empty,
|
|
274
|
+
bindAdClose: _empty,
|
|
275
|
+
bindAdPlay: _empty
|
|
249
276
|
},
|
|
250
277
|
Canvas: {
|
|
251
|
-
type:
|
|
278
|
+
type: _empty
|
|
252
279
|
},
|
|
253
280
|
Ad: {
|
|
254
|
-
'ad-type':
|
|
255
|
-
'ad-theme':
|
|
281
|
+
'ad-type': "'banner'",
|
|
282
|
+
'ad-theme': "'white'"
|
|
256
283
|
},
|
|
257
284
|
CoverView: {
|
|
258
|
-
'marker-id':
|
|
259
|
-
slot:
|
|
285
|
+
'marker-id': _empty,
|
|
286
|
+
slot: _empty
|
|
260
287
|
},
|
|
261
288
|
// ======== 额外组件 ========
|
|
262
289
|
Editor: {
|
|
263
|
-
'read-only':
|
|
264
|
-
placeholder:
|
|
265
|
-
'show-img-size':
|
|
266
|
-
'show-img-toolbar':
|
|
267
|
-
'show-img-resize':
|
|
268
|
-
focus:
|
|
269
|
-
bindReady:
|
|
270
|
-
bindFocus:
|
|
271
|
-
bindBlur:
|
|
272
|
-
bindInput:
|
|
273
|
-
bindStatusChange:
|
|
274
|
-
name:
|
|
290
|
+
'read-only': _false,
|
|
291
|
+
placeholder: _empty,
|
|
292
|
+
'show-img-size': _false,
|
|
293
|
+
'show-img-toolbar': _false,
|
|
294
|
+
'show-img-resize': _false,
|
|
295
|
+
focus: _false,
|
|
296
|
+
bindReady: _empty,
|
|
297
|
+
bindFocus: _empty,
|
|
298
|
+
bindBlur: _empty,
|
|
299
|
+
bindInput: _empty,
|
|
300
|
+
bindStatusChange: _empty,
|
|
301
|
+
name: _empty
|
|
275
302
|
},
|
|
276
303
|
MatchMedia: {
|
|
277
|
-
'min-width':
|
|
278
|
-
'max-width':
|
|
279
|
-
width:
|
|
280
|
-
'min-height':
|
|
281
|
-
'max-height':
|
|
282
|
-
height:
|
|
283
|
-
orientation:
|
|
304
|
+
'min-width': _empty,
|
|
305
|
+
'max-width': _empty,
|
|
306
|
+
width: _empty,
|
|
307
|
+
'min-height': _empty,
|
|
308
|
+
'max-height': _empty,
|
|
309
|
+
height: _empty,
|
|
310
|
+
orientation: _empty
|
|
284
311
|
},
|
|
285
312
|
FunctionalPageNavigator: {
|
|
286
|
-
version:
|
|
287
|
-
name:
|
|
288
|
-
args:
|
|
289
|
-
bindSuccess:
|
|
290
|
-
bindFail:
|
|
291
|
-
bindCancel:
|
|
313
|
+
version: "'release'",
|
|
314
|
+
name: _empty,
|
|
315
|
+
args: _empty,
|
|
316
|
+
bindSuccess: _empty,
|
|
317
|
+
bindFail: _empty,
|
|
318
|
+
bindCancel: _empty
|
|
292
319
|
},
|
|
293
320
|
LivePusher: {
|
|
294
|
-
url:
|
|
295
|
-
mode:
|
|
296
|
-
autopush:
|
|
297
|
-
muted:
|
|
298
|
-
'enable-camera':
|
|
299
|
-
'auto-focus':
|
|
300
|
-
orientation:
|
|
301
|
-
beauty:
|
|
302
|
-
whiteness:
|
|
303
|
-
aspect:
|
|
321
|
+
url: _empty,
|
|
322
|
+
mode: "'RTC'",
|
|
323
|
+
autopush: _false,
|
|
324
|
+
muted: _false,
|
|
325
|
+
'enable-camera': _true,
|
|
326
|
+
'auto-focus': _true,
|
|
327
|
+
orientation: "'vertical'",
|
|
328
|
+
beauty: _zero,
|
|
329
|
+
whiteness: _zero,
|
|
330
|
+
aspect: "'9:16'",
|
|
304
331
|
'min-bitrate': '200',
|
|
305
332
|
'max-bitrate': '1000',
|
|
306
|
-
'audio-quality':
|
|
307
|
-
'waiting-image':
|
|
308
|
-
'waiting-image-hash':
|
|
309
|
-
zoom:
|
|
310
|
-
'device-position':
|
|
311
|
-
'background-mute':
|
|
312
|
-
mirror:
|
|
313
|
-
'remote-mirror':
|
|
314
|
-
'local-mirror':
|
|
315
|
-
'audio-reverb-type':
|
|
316
|
-
'enable-mic':
|
|
317
|
-
'enable-agc':
|
|
318
|
-
'enable-ans':
|
|
319
|
-
'audio-volume-type':
|
|
333
|
+
'audio-quality': "'high'",
|
|
334
|
+
'waiting-image': _empty,
|
|
335
|
+
'waiting-image-hash': _empty,
|
|
336
|
+
zoom: _false,
|
|
337
|
+
'device-position': "'front'",
|
|
338
|
+
'background-mute': _false,
|
|
339
|
+
mirror: _false,
|
|
340
|
+
'remote-mirror': _false,
|
|
341
|
+
'local-mirror': _false,
|
|
342
|
+
'audio-reverb-type': _zero,
|
|
343
|
+
'enable-mic': _true,
|
|
344
|
+
'enable-agc': _false,
|
|
345
|
+
'enable-ans': _false,
|
|
346
|
+
'audio-volume-type': "'voicecall'",
|
|
320
347
|
'video-width': '360',
|
|
321
348
|
'video-height': '640',
|
|
322
|
-
'beauty-style':
|
|
323
|
-
filter:
|
|
324
|
-
animation:
|
|
325
|
-
bindStateChange:
|
|
326
|
-
bindNetStatus:
|
|
327
|
-
bindBgmStart:
|
|
328
|
-
bindBgmProgress:
|
|
329
|
-
bindBgmComplete:
|
|
330
|
-
bindAudioVolumeNotify:
|
|
349
|
+
'beauty-style': "'smooth'",
|
|
350
|
+
filter: "'standard'",
|
|
351
|
+
animation: _empty,
|
|
352
|
+
bindStateChange: _empty,
|
|
353
|
+
bindNetStatus: _empty,
|
|
354
|
+
bindBgmStart: _empty,
|
|
355
|
+
bindBgmProgress: _empty,
|
|
356
|
+
bindBgmComplete: _empty,
|
|
357
|
+
bindAudioVolumeNotify: _empty
|
|
331
358
|
},
|
|
332
359
|
OfficialAccount: {
|
|
333
|
-
bindLoad:
|
|
334
|
-
bindError:
|
|
360
|
+
bindLoad: _empty,
|
|
361
|
+
bindError: _empty
|
|
335
362
|
},
|
|
336
363
|
OpenData: {
|
|
337
|
-
type:
|
|
338
|
-
'open-gid':
|
|
339
|
-
lang:
|
|
340
|
-
'default-text':
|
|
341
|
-
'default-avatar':
|
|
342
|
-
bindError:
|
|
364
|
+
type: _empty,
|
|
365
|
+
'open-gid': _empty,
|
|
366
|
+
lang: "'en'",
|
|
367
|
+
'default-text': _empty,
|
|
368
|
+
'default-avatar': _empty,
|
|
369
|
+
bindError: _empty
|
|
343
370
|
},
|
|
344
371
|
NavigationBar: {
|
|
345
|
-
title:
|
|
346
|
-
loading:
|
|
347
|
-
'front-color':
|
|
348
|
-
'background-color':
|
|
349
|
-
'color-animation-duration':
|
|
350
|
-
'color-animation-timing-func':
|
|
372
|
+
title: _empty,
|
|
373
|
+
loading: _false,
|
|
374
|
+
'front-color': _empty,
|
|
375
|
+
'background-color': _empty,
|
|
376
|
+
'color-animation-duration': _zero,
|
|
377
|
+
'color-animation-timing-func': "'linear'"
|
|
351
378
|
},
|
|
352
379
|
PageMeta: {
|
|
353
|
-
'background-text-style':
|
|
354
|
-
'background-color':
|
|
355
|
-
'background-color-top':
|
|
356
|
-
'background-color-bottom':
|
|
357
|
-
'scroll-top':
|
|
380
|
+
'background-text-style': _empty,
|
|
381
|
+
'background-color': _empty,
|
|
382
|
+
'background-color-top': _empty,
|
|
383
|
+
'background-color-bottom': _empty,
|
|
384
|
+
'scroll-top': "''",
|
|
358
385
|
'scroll-duration': '300',
|
|
359
|
-
'page-style':
|
|
360
|
-
'root-font-size':
|
|
361
|
-
bindResize:
|
|
362
|
-
bindScroll:
|
|
363
|
-
bindScrollDone:
|
|
386
|
+
'page-style': "''",
|
|
387
|
+
'root-font-size': "''",
|
|
388
|
+
bindResize: _empty,
|
|
389
|
+
bindScroll: _empty,
|
|
390
|
+
bindScrollDone: _empty
|
|
364
391
|
},
|
|
365
392
|
VoipRoom: {
|
|
366
|
-
openid:
|
|
367
|
-
mode:
|
|
368
|
-
'device-position':
|
|
369
|
-
bindError:
|
|
393
|
+
openid: _empty,
|
|
394
|
+
mode: "'camera'",
|
|
395
|
+
'device-position': "'front'",
|
|
396
|
+
bindError: _empty
|
|
370
397
|
},
|
|
371
398
|
AdCustom: {
|
|
372
|
-
'unit-id':
|
|
373
|
-
'ad-intervals':
|
|
374
|
-
bindLoad:
|
|
375
|
-
bindError:
|
|
399
|
+
'unit-id': _empty,
|
|
400
|
+
'ad-intervals': _empty,
|
|
401
|
+
bindLoad: _empty,
|
|
402
|
+
bindError: _empty
|
|
376
403
|
},
|
|
377
404
|
PageContainer: {
|
|
378
|
-
show:
|
|
405
|
+
show: _false,
|
|
379
406
|
duration: '300',
|
|
380
407
|
'z-index': '100',
|
|
381
|
-
overlay:
|
|
382
|
-
position:
|
|
383
|
-
round:
|
|
384
|
-
'close-on-slideDown':
|
|
385
|
-
'overlay-style':
|
|
386
|
-
'custom-style':
|
|
387
|
-
bindBeforeEnter:
|
|
388
|
-
bindEnter:
|
|
389
|
-
bindAfterEnter:
|
|
390
|
-
bindBeforeLeave:
|
|
391
|
-
bindLeave:
|
|
392
|
-
bindAfterLeave:
|
|
393
|
-
bindClickOverlay:
|
|
408
|
+
overlay: _true,
|
|
409
|
+
position: "'bottom'",
|
|
410
|
+
round: _false,
|
|
411
|
+
'close-on-slideDown': _false,
|
|
412
|
+
'overlay-style': _empty,
|
|
413
|
+
'custom-style': _empty,
|
|
414
|
+
bindBeforeEnter: _empty,
|
|
415
|
+
bindEnter: _empty,
|
|
416
|
+
bindAfterEnter: _empty,
|
|
417
|
+
bindBeforeLeave: _empty,
|
|
418
|
+
bindLeave: _empty,
|
|
419
|
+
bindAfterLeave: _empty,
|
|
420
|
+
bindClickOverlay: _empty
|
|
394
421
|
},
|
|
395
422
|
KeyboardAccessory: {}
|
|
396
423
|
};
|
|
@@ -455,13 +482,15 @@ var index = (ctx, options) => {
|
|
|
455
482
|
ctx.registerPlatform({
|
|
456
483
|
name: 'weapp',
|
|
457
484
|
useConfigName: 'mini',
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
485
|
+
fn({ config }) {
|
|
486
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
487
|
+
const program = new Weapp(ctx, config, options || {});
|
|
488
|
+
yield program.start();
|
|
489
|
+
});
|
|
461
490
|
}
|
|
462
491
|
});
|
|
463
492
|
};
|
|
464
493
|
|
|
465
494
|
exports.Weapp = Weapp;
|
|
466
|
-
exports
|
|
495
|
+
exports['default'] = index;
|
|
467
496
|
//# sourceMappingURL=index.js.map
|