taro-plugin-qd 1.0.0 → 1.0.1
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/README.md +65 -0
- package/dist/index.js +396 -392
- package/dist/runtime.js +369 -369
- package/dist/types/components.d.ts +178 -178
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,43 +10,47 @@ class Template extends template.UnRecursiveTemplate {
|
|
|
10
10
|
super();
|
|
11
11
|
this.supportXS = true;
|
|
12
12
|
this.Adapter = {
|
|
13
|
-
if:
|
|
14
|
-
else:
|
|
15
|
-
elseif:
|
|
16
|
-
for:
|
|
17
|
-
forItem:
|
|
18
|
-
forIndex:
|
|
19
|
-
key:
|
|
20
|
-
xs:
|
|
21
|
-
type:
|
|
13
|
+
if: "qd:if",
|
|
14
|
+
else: "qd:else",
|
|
15
|
+
elseif: "qd:elif",
|
|
16
|
+
for: "qd:for",
|
|
17
|
+
forItem: "qd:for-item",
|
|
18
|
+
forIndex: "qd:for-index",
|
|
19
|
+
key: "qd:key",
|
|
20
|
+
xs: "qds",
|
|
21
|
+
type: "weapp",
|
|
22
22
|
};
|
|
23
23
|
this.modifyTemplateResult = (res, _nodeName, _level, _children) => {
|
|
24
24
|
return res;
|
|
25
25
|
};
|
|
26
26
|
this.buildPageTemplate = (baseTempPath, page) => {
|
|
27
|
-
const pagePath = typeof page ===
|
|
27
|
+
const pagePath = typeof page === "string" ? page : (page === null || page === void 0 ? void 0 : page.path) || "";
|
|
28
28
|
const template = this.buildBaseComponentTemplate(pagePath);
|
|
29
29
|
const transferComp = Object.keys(this.transferComponents || {})
|
|
30
|
-
.map(name => {
|
|
30
|
+
.map((name) => {
|
|
31
31
|
const comp = this.transferComponents[name];
|
|
32
32
|
if (!comp)
|
|
33
|
-
return
|
|
34
|
-
return this.buildComponentTemplate({
|
|
33
|
+
return "";
|
|
34
|
+
return this.buildComponentTemplate({
|
|
35
|
+
nodeName: name,
|
|
36
|
+
nodeAlias: name,
|
|
37
|
+
attributes: comp,
|
|
38
|
+
}, pagePath);
|
|
35
39
|
})
|
|
36
|
-
.join(
|
|
40
|
+
.join("\n");
|
|
37
41
|
return `<import src="${baseTempPath}" />\n${transferComp}\n${template}`;
|
|
38
42
|
};
|
|
39
43
|
this.pluginOptions = pluginOptions || {};
|
|
40
|
-
this.nestElements.set(
|
|
44
|
+
this.nestElements.set("root-portal", 3);
|
|
41
45
|
}
|
|
42
|
-
buildXsTemplate(filePath =
|
|
46
|
+
buildXsTemplate(filePath = "./utils") {
|
|
43
47
|
return `<qds module="xs" src="${filePath}.qds" />`;
|
|
44
48
|
}
|
|
45
49
|
replacePropName(name, value, componentName, _componentAlias) {
|
|
46
|
-
if (value ===
|
|
50
|
+
if (value === "eh") {
|
|
47
51
|
const nameLowerCase = name.toLowerCase();
|
|
48
|
-
if (nameLowerCase ===
|
|
49
|
-
return
|
|
52
|
+
if (nameLowerCase === "bindlongtap" && componentName !== "canvas") {
|
|
53
|
+
return "bindlongpress";
|
|
50
54
|
}
|
|
51
55
|
return nameLowerCase;
|
|
52
56
|
}
|
|
@@ -55,10 +59,10 @@ class Template extends template.UnRecursiveTemplate {
|
|
|
55
59
|
createMiniComponents(components) {
|
|
56
60
|
const result = super.createMiniComponents(components);
|
|
57
61
|
this.transferComponents = this.transferComponents || {};
|
|
58
|
-
this.transferComponents[
|
|
59
|
-
this.transferComponents[
|
|
60
|
-
delete result[
|
|
61
|
-
delete result[
|
|
62
|
+
this.transferComponents["page-meta"] = result["page-meta"];
|
|
63
|
+
this.transferComponents["navigation-bar"] = result["navigation-bar"];
|
|
64
|
+
delete result["page-meta"];
|
|
65
|
+
delete result["navigation-bar"];
|
|
62
66
|
return result;
|
|
63
67
|
}
|
|
64
68
|
}
|
|
@@ -66,494 +70,494 @@ class Template extends template.UnRecursiveTemplate {
|
|
|
66
70
|
const components = {
|
|
67
71
|
// 基础内容
|
|
68
72
|
Progress: {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
duration:
|
|
72
|
-
bindActiveEnd:
|
|
73
|
+
"border-radius": "0",
|
|
74
|
+
"font-size": "16",
|
|
75
|
+
duration: "30",
|
|
76
|
+
bindActiveEnd: "",
|
|
73
77
|
},
|
|
74
78
|
RichText: {
|
|
75
|
-
space:
|
|
76
|
-
|
|
79
|
+
space: "",
|
|
80
|
+
"user-select": "false",
|
|
77
81
|
},
|
|
78
82
|
Text: {
|
|
79
|
-
|
|
83
|
+
"user-select": "false",
|
|
80
84
|
},
|
|
81
85
|
// 表单组件
|
|
82
86
|
Input: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
bindKeyboardHeightChange:
|
|
93
|
-
bindNicknameReview:
|
|
87
|
+
"always-embed": "false",
|
|
88
|
+
"adjust-position": "true",
|
|
89
|
+
"hold-keyboard": "false",
|
|
90
|
+
"safe-password-cert-path": "",
|
|
91
|
+
"safe-password-length": "",
|
|
92
|
+
"safe-password-time-stamp": "",
|
|
93
|
+
"safe-password-nonce": "",
|
|
94
|
+
"safe-password-salt": "",
|
|
95
|
+
"safe-password-custom-hash": "",
|
|
96
|
+
bindKeyboardHeightChange: "",
|
|
97
|
+
bindNicknameReview: "",
|
|
94
98
|
},
|
|
95
99
|
Button: {
|
|
96
|
-
lang:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
bindGetUserInfo:
|
|
105
|
-
bindContact:
|
|
106
|
-
bindGetPhoneNumber:
|
|
107
|
-
bindGetRealTimePhoneNumber:
|
|
108
|
-
bindChooseAvatar:
|
|
109
|
-
bindError:
|
|
110
|
-
bindOpenSetting:
|
|
111
|
-
bindLaunchApp:
|
|
112
|
-
bindAgreeprivacyauthorization:
|
|
113
|
-
bindSubmit:
|
|
100
|
+
lang: "en",
|
|
101
|
+
"session-from": "",
|
|
102
|
+
"send-message-title": "",
|
|
103
|
+
"send-message-path": "",
|
|
104
|
+
"send-message-img": "",
|
|
105
|
+
"app-parameter": "",
|
|
106
|
+
"show-message-card": "false",
|
|
107
|
+
"phone-number-no-quota-toast": "true",
|
|
108
|
+
bindGetUserInfo: "",
|
|
109
|
+
bindContact: "",
|
|
110
|
+
bindGetPhoneNumber: "",
|
|
111
|
+
bindGetRealTimePhoneNumber: "",
|
|
112
|
+
bindChooseAvatar: "",
|
|
113
|
+
bindError: "",
|
|
114
|
+
bindOpenSetting: "",
|
|
115
|
+
bindLaunchApp: "",
|
|
116
|
+
bindAgreeprivacyauthorization: "",
|
|
117
|
+
bindSubmit: "",
|
|
114
118
|
},
|
|
115
119
|
Checkbox: {
|
|
116
|
-
color: "'#09BB07'"
|
|
120
|
+
color: "'#09BB07'",
|
|
117
121
|
},
|
|
118
122
|
CheckboxGroup: {
|
|
119
|
-
bindChange:
|
|
123
|
+
bindChange: "",
|
|
120
124
|
},
|
|
121
125
|
Editor: {
|
|
122
|
-
|
|
123
|
-
placeholder:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
bindReady:
|
|
128
|
-
bindFocus:
|
|
129
|
-
bindBlur:
|
|
130
|
-
bindInput:
|
|
131
|
-
bindStatusChange:
|
|
126
|
+
"read-only": "false",
|
|
127
|
+
placeholder: "",
|
|
128
|
+
"show-img-size": "false",
|
|
129
|
+
"show-img-toolbar": "false",
|
|
130
|
+
"show-img-resize": "false",
|
|
131
|
+
bindReady: "",
|
|
132
|
+
bindFocus: "",
|
|
133
|
+
bindBlur: "",
|
|
134
|
+
bindInput: "",
|
|
135
|
+
bindStatusChange: "",
|
|
132
136
|
},
|
|
133
137
|
Form: {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
bindSubmit:
|
|
137
|
-
bindReset:
|
|
138
|
+
"report-submit": "false",
|
|
139
|
+
"report-submit-timeout": "0",
|
|
140
|
+
bindSubmit: "",
|
|
141
|
+
bindReset: "",
|
|
138
142
|
},
|
|
139
143
|
Label: {
|
|
140
|
-
for:
|
|
144
|
+
for: "",
|
|
141
145
|
},
|
|
142
146
|
Picker: {
|
|
143
|
-
|
|
144
|
-
bindCancel:
|
|
147
|
+
"header-text": "",
|
|
148
|
+
bindCancel: "",
|
|
145
149
|
},
|
|
146
150
|
PickerView: {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
bindPickStart:
|
|
152
|
-
bindPickEnd:
|
|
151
|
+
"mask-style": "",
|
|
152
|
+
"mask-class": "",
|
|
153
|
+
"indicator-style": "",
|
|
154
|
+
"indicator-class": "",
|
|
155
|
+
bindPickStart: "",
|
|
156
|
+
bindPickEnd: "",
|
|
153
157
|
},
|
|
154
158
|
Radio: {
|
|
155
|
-
color: "'#09BB07'"
|
|
159
|
+
color: "'#09BB07'",
|
|
156
160
|
},
|
|
157
161
|
RadioGroup: {
|
|
158
|
-
bindChange:
|
|
162
|
+
bindChange: "",
|
|
159
163
|
},
|
|
160
164
|
Slider: {
|
|
161
165
|
color: "'#e9e9e9'",
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
166
|
+
"selected-color": "'rgb(124, 102, 255)'",
|
|
167
|
+
"block-size": "28",
|
|
168
|
+
"block-color": "'#ffffff'",
|
|
165
169
|
},
|
|
166
170
|
Switch: {
|
|
167
171
|
type: "'switch'",
|
|
168
|
-
color: "'#04BE02'"
|
|
172
|
+
color: "'#04BE02'",
|
|
169
173
|
},
|
|
170
174
|
Textarea: {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
bindKeyboardHeightChange:
|
|
175
|
+
"show-confirm-bar": "true",
|
|
176
|
+
"adjust-position": "true",
|
|
177
|
+
"hold-keyboard": "false",
|
|
178
|
+
"disable-default-padding": "false",
|
|
179
|
+
"confirm-type": "'return'",
|
|
180
|
+
"confirm-hold": "false",
|
|
181
|
+
bindKeyboardHeightChange: "",
|
|
178
182
|
},
|
|
179
183
|
// 导航
|
|
180
184
|
Navigator: {
|
|
181
185
|
target: "'self'",
|
|
182
|
-
|
|
183
|
-
delta:
|
|
184
|
-
|
|
185
|
-
path:
|
|
186
|
-
|
|
186
|
+
"open-type": "'navigate'",
|
|
187
|
+
delta: "1",
|
|
188
|
+
"app-id": "",
|
|
189
|
+
path: "",
|
|
190
|
+
"extra-data": "",
|
|
187
191
|
version: "'release'",
|
|
188
|
-
|
|
189
|
-
bindSuccess:
|
|
190
|
-
bindFail:
|
|
191
|
-
bindComplete:
|
|
192
|
+
"hover-stop-propagation": "false",
|
|
193
|
+
bindSuccess: "",
|
|
194
|
+
bindFail: "",
|
|
195
|
+
bindComplete: "",
|
|
192
196
|
},
|
|
193
197
|
// 媒体组件
|
|
194
198
|
Audio: {
|
|
195
|
-
id:
|
|
196
|
-
src:
|
|
197
|
-
loop:
|
|
198
|
-
controls:
|
|
199
|
-
poster:
|
|
200
|
-
name:
|
|
201
|
-
author:
|
|
202
|
-
bindError:
|
|
203
|
-
bindPlay:
|
|
204
|
-
bindPause:
|
|
205
|
-
bindTimeUpdate:
|
|
206
|
-
bindEnded:
|
|
199
|
+
id: "",
|
|
200
|
+
src: "",
|
|
201
|
+
loop: "false",
|
|
202
|
+
controls: "false",
|
|
203
|
+
poster: "",
|
|
204
|
+
name: "",
|
|
205
|
+
author: "",
|
|
206
|
+
bindError: "",
|
|
207
|
+
bindPlay: "",
|
|
208
|
+
bindPause: "",
|
|
209
|
+
bindTimeUpdate: "",
|
|
210
|
+
bindEnded: "",
|
|
207
211
|
},
|
|
208
212
|
Camera: {
|
|
209
213
|
mode: "'normal'",
|
|
210
|
-
|
|
214
|
+
"device-position": "'back'",
|
|
211
215
|
flash: "'auto'",
|
|
212
|
-
|
|
213
|
-
bindStop:
|
|
214
|
-
bindError:
|
|
215
|
-
bindInitDone:
|
|
216
|
-
bindScanCode:
|
|
216
|
+
"frame-size": "'medium'",
|
|
217
|
+
bindStop: "",
|
|
218
|
+
bindError: "",
|
|
219
|
+
bindInitDone: "",
|
|
220
|
+
bindScanCode: "",
|
|
217
221
|
},
|
|
218
222
|
Image: {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
bindLoad:
|
|
222
|
-
bindError:
|
|
223
|
+
webp: "false",
|
|
224
|
+
"show-menu-by-longpress": "false",
|
|
225
|
+
bindLoad: "",
|
|
226
|
+
bindError: "",
|
|
223
227
|
},
|
|
224
228
|
Video: {
|
|
225
|
-
|
|
226
|
-
title:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
bindProgress:
|
|
249
|
-
bindLoadedMetaData:
|
|
250
|
-
bindControlsToggle:
|
|
251
|
-
bindEnterPictureInPicture:
|
|
252
|
-
bindLeavePictureInPicture:
|
|
253
|
-
bindSeekComplete:
|
|
254
|
-
bindAdLoad:
|
|
255
|
-
bindAdError:
|
|
256
|
-
bindAdClose:
|
|
257
|
-
bindAdPlay:
|
|
258
|
-
bindCastingUserSelect:
|
|
259
|
-
bindCastingStateChange:
|
|
260
|
-
bindCastingInterrupt:
|
|
229
|
+
"show-mute-btn": "false",
|
|
230
|
+
title: "",
|
|
231
|
+
"play-btn-position": "'bottom'",
|
|
232
|
+
"enable-play-gesture": "false",
|
|
233
|
+
"auto-pause-if-navigate": "true",
|
|
234
|
+
"auto-pause-if-open-native": "true",
|
|
235
|
+
"vslide-gesture": "false",
|
|
236
|
+
"vslide-gesture-in-fullscreen": "true",
|
|
237
|
+
"ad-unit-id": "",
|
|
238
|
+
"poster-for-crawler": "",
|
|
239
|
+
"show-casting-button": "false",
|
|
240
|
+
"picture-in-picture-mode": "",
|
|
241
|
+
"picture-in-picture-show-progress": "false",
|
|
242
|
+
"enable-auto-rotation": "false",
|
|
243
|
+
"show-screen-lock-button": "false",
|
|
244
|
+
"show-snapshot-button": "false",
|
|
245
|
+
"show-background-playback-button": "false",
|
|
246
|
+
"background-poster": "",
|
|
247
|
+
"referrer-policy": "'origin'",
|
|
248
|
+
"is-drm": "false",
|
|
249
|
+
"provision-url": "",
|
|
250
|
+
"certificate-url": "",
|
|
251
|
+
"license-url": "",
|
|
252
|
+
bindProgress: "",
|
|
253
|
+
bindLoadedMetaData: "",
|
|
254
|
+
bindControlsToggle: "",
|
|
255
|
+
bindEnterPictureInPicture: "",
|
|
256
|
+
bindLeavePictureInPicture: "",
|
|
257
|
+
bindSeekComplete: "",
|
|
258
|
+
bindAdLoad: "",
|
|
259
|
+
bindAdError: "",
|
|
260
|
+
bindAdClose: "",
|
|
261
|
+
bindAdPlay: "",
|
|
262
|
+
bindCastingUserSelect: "",
|
|
263
|
+
bindCastingStateChange: "",
|
|
264
|
+
bindCastingInterrupt: "",
|
|
261
265
|
},
|
|
262
266
|
LivePlayer: {
|
|
263
267
|
mode: "'live'",
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
bindStateChange:
|
|
270
|
-
bindFullScreenChange:
|
|
271
|
-
bindNetStatus:
|
|
272
|
-
bindAudioVolumeNotify:
|
|
273
|
-
bindEnterPictureInPicture:
|
|
274
|
-
bindLeavePictureInPicture:
|
|
268
|
+
"sound-mode": "'speaker'",
|
|
269
|
+
"auto-pause-if-navigate": "true",
|
|
270
|
+
"auto-pause-if-open-native": "true",
|
|
271
|
+
"picture-in-picture-mode": "",
|
|
272
|
+
"referrer-policy": "'no-referrer'",
|
|
273
|
+
bindStateChange: "",
|
|
274
|
+
bindFullScreenChange: "",
|
|
275
|
+
bindNetStatus: "",
|
|
276
|
+
bindAudioVolumeNotify: "",
|
|
277
|
+
bindEnterPictureInPicture: "",
|
|
278
|
+
bindLeavePictureInPicture: "",
|
|
275
279
|
},
|
|
276
280
|
LivePusher: {
|
|
277
|
-
url:
|
|
281
|
+
url: "",
|
|
278
282
|
mode: "'RTC'",
|
|
279
|
-
autopush:
|
|
280
|
-
muted:
|
|
281
|
-
|
|
282
|
-
|
|
283
|
+
autopush: "false",
|
|
284
|
+
muted: "false",
|
|
285
|
+
"enable-camera": "true",
|
|
286
|
+
"auto-focus": "true",
|
|
283
287
|
orientation: "'vertical'",
|
|
284
|
-
beauty:
|
|
285
|
-
whiteness:
|
|
288
|
+
beauty: "0",
|
|
289
|
+
whiteness: "0",
|
|
286
290
|
aspect: "'9:16'",
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
zoom:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
mirror:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
291
|
+
"min-bitrate": "200",
|
|
292
|
+
"max-bitrate": "1000",
|
|
293
|
+
"audio-quality": "'high'",
|
|
294
|
+
"waiting-image": "",
|
|
295
|
+
"waiting-image-hash": "",
|
|
296
|
+
zoom: "false",
|
|
297
|
+
"device-position": "'front'",
|
|
298
|
+
"background-mute": "false",
|
|
299
|
+
mirror: "false",
|
|
300
|
+
"remote-mirror": "false",
|
|
301
|
+
"local-mirror": "'auto'",
|
|
302
|
+
"audio-reverb-type": "0",
|
|
303
|
+
"enable-mic": "true",
|
|
304
|
+
"enable-agc": "false",
|
|
305
|
+
"enable-ans": "false",
|
|
306
|
+
"audio-volume-type": "'voicecall'",
|
|
307
|
+
"video-width": "360",
|
|
308
|
+
"video-height": "640",
|
|
309
|
+
"beauty-style": "'smooth'",
|
|
306
310
|
filter: "'standard'",
|
|
307
|
-
|
|
308
|
-
bindStateChange:
|
|
309
|
-
bindNetStatus:
|
|
310
|
-
bindBgmStart:
|
|
311
|
-
bindBgmProgress:
|
|
312
|
-
bindBgmComplete:
|
|
313
|
-
bindAudioVolumeNotify:
|
|
314
|
-
bindEnterPictureInPicture:
|
|
315
|
-
bindLeavePictureInPicture:
|
|
311
|
+
"picture-in-picture-mode": "",
|
|
312
|
+
bindStateChange: "",
|
|
313
|
+
bindNetStatus: "",
|
|
314
|
+
bindBgmStart: "",
|
|
315
|
+
bindBgmProgress: "",
|
|
316
|
+
bindBgmComplete: "",
|
|
317
|
+
bindAudioVolumeNotify: "",
|
|
318
|
+
bindEnterPictureInPicture: "",
|
|
319
|
+
bindLeavePictureInPicture: "",
|
|
316
320
|
},
|
|
317
321
|
// 地图
|
|
318
322
|
Map: {
|
|
319
|
-
|
|
320
|
-
polygons:
|
|
321
|
-
subkey:
|
|
322
|
-
|
|
323
|
-
rotate:
|
|
324
|
-
skew:
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
setting:
|
|
337
|
-
bindMarkerTap:
|
|
338
|
-
bindLabelTap:
|
|
339
|
-
bindControlTap:
|
|
340
|
-
bindCalloutTap:
|
|
341
|
-
bindUpdated:
|
|
342
|
-
bindRegionChange:
|
|
343
|
-
bindPoiTap:
|
|
344
|
-
bindAnchorPointTap:
|
|
323
|
+
"show-location": "",
|
|
324
|
+
polygons: "[]",
|
|
325
|
+
subkey: "",
|
|
326
|
+
"layer-style": "1",
|
|
327
|
+
rotate: "0",
|
|
328
|
+
skew: "0",
|
|
329
|
+
"enable-3D": "false",
|
|
330
|
+
"show-compass": "false",
|
|
331
|
+
"show-scale": "false",
|
|
332
|
+
"enable-overlooking": "false",
|
|
333
|
+
"enable-zoom": "true",
|
|
334
|
+
"enable-scroll": "true",
|
|
335
|
+
"enable-rotate": "false",
|
|
336
|
+
"enable-satellite": "false",
|
|
337
|
+
"enable-traffic": "false",
|
|
338
|
+
"enable-poi": "true",
|
|
339
|
+
"enable-building": "",
|
|
340
|
+
setting: "[]",
|
|
341
|
+
bindMarkerTap: "",
|
|
342
|
+
bindLabelTap: "",
|
|
343
|
+
bindControlTap: "",
|
|
344
|
+
bindCalloutTap: "",
|
|
345
|
+
bindUpdated: "",
|
|
346
|
+
bindRegionChange: "",
|
|
347
|
+
bindPoiTap: "",
|
|
348
|
+
bindAnchorPointTap: "",
|
|
345
349
|
},
|
|
346
350
|
// 画布
|
|
347
351
|
Canvas: {
|
|
348
|
-
type:
|
|
349
|
-
bindTouchStart:
|
|
350
|
-
bindTouchMove:
|
|
351
|
-
bindTouchEnd:
|
|
352
|
-
bindTouchCancel:
|
|
353
|
-
bindLongTap:
|
|
354
|
-
bindError:
|
|
352
|
+
type: "",
|
|
353
|
+
bindTouchStart: "",
|
|
354
|
+
bindTouchMove: "",
|
|
355
|
+
bindTouchEnd: "",
|
|
356
|
+
bindTouchCancel: "",
|
|
357
|
+
bindLongTap: "",
|
|
358
|
+
bindError: "",
|
|
355
359
|
},
|
|
356
360
|
// 开放能力
|
|
357
361
|
WebView: {
|
|
358
|
-
src:
|
|
359
|
-
bindMessage:
|
|
360
|
-
bindLoad:
|
|
361
|
-
bindError:
|
|
362
|
+
src: "",
|
|
363
|
+
bindMessage: "",
|
|
364
|
+
bindLoad: "",
|
|
365
|
+
bindError: "",
|
|
362
366
|
},
|
|
363
367
|
Ad: {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
bindLoad:
|
|
369
|
-
bindError:
|
|
370
|
-
bindClose:
|
|
368
|
+
"unit-id": "",
|
|
369
|
+
"ad-intervals": "",
|
|
370
|
+
"ad-type": "'banner'",
|
|
371
|
+
"ad-theme": "'white'",
|
|
372
|
+
bindLoad: "",
|
|
373
|
+
bindError: "",
|
|
374
|
+
bindClose: "",
|
|
371
375
|
},
|
|
372
376
|
AdCustom: {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
bindLoad:
|
|
376
|
-
bindError:
|
|
377
|
-
bindClose:
|
|
377
|
+
"unit-id": "",
|
|
378
|
+
"ad-intervals": "",
|
|
379
|
+
bindLoad: "",
|
|
380
|
+
bindError: "",
|
|
381
|
+
bindClose: "",
|
|
378
382
|
},
|
|
379
383
|
OfficialAccount: {
|
|
380
|
-
bindLoad:
|
|
381
|
-
bindError:
|
|
384
|
+
bindLoad: "",
|
|
385
|
+
bindError: "",
|
|
382
386
|
},
|
|
383
387
|
OpenData: {
|
|
384
|
-
type:
|
|
385
|
-
|
|
388
|
+
type: "",
|
|
389
|
+
"open-gid": "",
|
|
386
390
|
lang: "'en'",
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
bindError:
|
|
391
|
+
"default-text": "",
|
|
392
|
+
"default-avatar": "",
|
|
393
|
+
bindError: "",
|
|
390
394
|
},
|
|
391
395
|
// 页面属性
|
|
392
396
|
PageMeta: {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
bindResize:
|
|
403
|
-
bindScroll:
|
|
404
|
-
bindScrollDone:
|
|
397
|
+
"background-text-style": "",
|
|
398
|
+
"background-color": "",
|
|
399
|
+
"background-color-top": "",
|
|
400
|
+
"background-color-bottom": "",
|
|
401
|
+
"scroll-top": "''",
|
|
402
|
+
"scroll-duration": "300",
|
|
403
|
+
"page-style": "''",
|
|
404
|
+
"root-font-size": "''",
|
|
405
|
+
"page-font-size": "''",
|
|
406
|
+
bindResize: "",
|
|
407
|
+
bindScroll: "",
|
|
408
|
+
bindScrollDone: "",
|
|
405
409
|
},
|
|
406
410
|
NavigationBar: {
|
|
407
411
|
title: "''",
|
|
408
412
|
loading: "'false'",
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
+
"front-color": "''",
|
|
414
|
+
"background-color": "''",
|
|
415
|
+
"color-animation-duration": "'0'",
|
|
416
|
+
"color-animation-timing-func": "'linear'",
|
|
413
417
|
},
|
|
414
418
|
// 视图容器 (补充)
|
|
415
419
|
ScrollView: {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
enhanced:
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
bounces:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
420
|
+
"enable-flex": "false",
|
|
421
|
+
"scroll-anchoring": "false",
|
|
422
|
+
enhanced: "false",
|
|
423
|
+
"refresher-enabled": "false",
|
|
424
|
+
"refresher-threshold": "45",
|
|
425
|
+
"refresher-default-style": "'black'",
|
|
426
|
+
"refresher-background": "'#FFF'",
|
|
427
|
+
"refresher-triggered": "false",
|
|
428
|
+
bounces: "true",
|
|
429
|
+
"show-scrollbar": "true",
|
|
430
|
+
"paging-enabled": "false",
|
|
431
|
+
"fast-deceleration": "false",
|
|
432
|
+
"scroll-with-animation": "false",
|
|
433
|
+
"enable-back-to-top": "false",
|
|
434
|
+
"enable-passive": "false",
|
|
435
|
+
"scroll-into-view-alignment": "'start'",
|
|
432
436
|
type: "'list'",
|
|
433
|
-
reverse:
|
|
434
|
-
|
|
435
|
-
padding:
|
|
436
|
-
bindDragStart:
|
|
437
|
-
bindDragging:
|
|
438
|
-
bindDragEnd:
|
|
439
|
-
bindRefresherPulling:
|
|
440
|
-
bindRefresherRefresh:
|
|
441
|
-
bindRefresherRestore:
|
|
442
|
-
bindRefresherAbort:
|
|
443
|
-
bindScrollStart:
|
|
444
|
-
bindScrollEnd:
|
|
437
|
+
reverse: "false",
|
|
438
|
+
"cache-extent": "",
|
|
439
|
+
padding: "",
|
|
440
|
+
bindDragStart: "",
|
|
441
|
+
bindDragging: "",
|
|
442
|
+
bindDragEnd: "",
|
|
443
|
+
bindRefresherPulling: "",
|
|
444
|
+
bindRefresherRefresh: "",
|
|
445
|
+
bindRefresherRestore: "",
|
|
446
|
+
bindRefresherAbort: "",
|
|
447
|
+
bindScrollStart: "",
|
|
448
|
+
bindScrollEnd: "",
|
|
445
449
|
},
|
|
446
450
|
Swiper: {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
autoplay:
|
|
451
|
-
current:
|
|
452
|
-
interval:
|
|
453
|
-
duration:
|
|
454
|
-
circular:
|
|
455
|
-
vertical:
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
bindChange:
|
|
462
|
-
bindTransition:
|
|
463
|
-
bindAnimationFinish:
|
|
451
|
+
"indicator-dots": "false",
|
|
452
|
+
"indicator-color": "'rgba(0, 0, 0, .3)'",
|
|
453
|
+
"indicator-active-color": "'#000000'",
|
|
454
|
+
autoplay: "false",
|
|
455
|
+
current: "0",
|
|
456
|
+
interval: "5000",
|
|
457
|
+
duration: "500",
|
|
458
|
+
circular: "false",
|
|
459
|
+
vertical: "false",
|
|
460
|
+
"previous-margin": "'0px'",
|
|
461
|
+
"next-margin": "'0px'",
|
|
462
|
+
"snap-to-edge": "false",
|
|
463
|
+
"display-multiple-items": "1",
|
|
464
|
+
"easing-function": "'default'",
|
|
465
|
+
bindChange: "",
|
|
466
|
+
bindTransition: "",
|
|
467
|
+
bindAnimationFinish: "",
|
|
464
468
|
},
|
|
465
469
|
SwiperItem: {
|
|
466
|
-
|
|
470
|
+
"item-id": "",
|
|
467
471
|
},
|
|
468
472
|
MovableArea: {
|
|
469
|
-
|
|
473
|
+
"scale-area": "false",
|
|
470
474
|
},
|
|
471
475
|
MovableView: {
|
|
472
476
|
direction: "'none'",
|
|
473
|
-
inertia:
|
|
474
|
-
|
|
475
|
-
x:
|
|
476
|
-
y:
|
|
477
|
-
damping:
|
|
478
|
-
friction:
|
|
479
|
-
disabled:
|
|
480
|
-
scale:
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
animation:
|
|
485
|
-
bindChange:
|
|
486
|
-
bindScale:
|
|
487
|
-
bindHTouchMove:
|
|
488
|
-
bindVTouchMove:
|
|
477
|
+
inertia: "false",
|
|
478
|
+
"out-of-bounds": "false",
|
|
479
|
+
x: "",
|
|
480
|
+
y: "",
|
|
481
|
+
damping: "20",
|
|
482
|
+
friction: "2",
|
|
483
|
+
disabled: "false",
|
|
484
|
+
scale: "false",
|
|
485
|
+
"scale-min": "0.5",
|
|
486
|
+
"scale-max": "10",
|
|
487
|
+
"scale-value": "1",
|
|
488
|
+
animation: "true",
|
|
489
|
+
bindChange: "",
|
|
490
|
+
bindScale: "",
|
|
491
|
+
bindHTouchMove: "",
|
|
492
|
+
bindVTouchMove: "",
|
|
489
493
|
},
|
|
490
494
|
MatchMedia: {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
width:
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
height:
|
|
497
|
-
orientation:
|
|
495
|
+
"min-width": "",
|
|
496
|
+
"max-width": "",
|
|
497
|
+
width: "",
|
|
498
|
+
"min-height": "",
|
|
499
|
+
"max-height": "",
|
|
500
|
+
height: "",
|
|
501
|
+
orientation: "",
|
|
498
502
|
},
|
|
499
503
|
ShareElement: {
|
|
500
|
-
key:
|
|
501
|
-
transform:
|
|
502
|
-
duration:
|
|
503
|
-
|
|
504
|
+
key: "",
|
|
505
|
+
transform: "false",
|
|
506
|
+
duration: "300",
|
|
507
|
+
"easing-function": "'ease-out'",
|
|
504
508
|
},
|
|
505
509
|
PageContainer: {
|
|
506
|
-
show:
|
|
507
|
-
duration:
|
|
508
|
-
|
|
509
|
-
overlay:
|
|
510
|
+
show: "false",
|
|
511
|
+
duration: "300",
|
|
512
|
+
"z-index": "100",
|
|
513
|
+
overlay: "true",
|
|
510
514
|
position: "'bottom'",
|
|
511
|
-
round:
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
bindBeforeEnter:
|
|
516
|
-
bindEnter:
|
|
517
|
-
bindAfterEnter:
|
|
518
|
-
bindBeforeLeave:
|
|
519
|
-
bindLeave:
|
|
520
|
-
bindAfterLeave:
|
|
521
|
-
bindClickOverlay:
|
|
515
|
+
round: "false",
|
|
516
|
+
"close-on-slide-down": "false",
|
|
517
|
+
"overlay-style": "",
|
|
518
|
+
"custom-style": "",
|
|
519
|
+
bindBeforeEnter: "",
|
|
520
|
+
bindEnter: "",
|
|
521
|
+
bindAfterEnter: "",
|
|
522
|
+
bindBeforeLeave: "",
|
|
523
|
+
bindLeave: "",
|
|
524
|
+
bindAfterLeave: "",
|
|
525
|
+
bindClickOverlay: "",
|
|
522
526
|
},
|
|
523
527
|
RootPortal: {},
|
|
524
528
|
VoipRoom: {
|
|
525
|
-
openid:
|
|
529
|
+
openid: "",
|
|
526
530
|
mode: "'camera'",
|
|
527
|
-
|
|
528
|
-
bindError:
|
|
531
|
+
"device-position": "'front'",
|
|
532
|
+
bindError: "",
|
|
529
533
|
},
|
|
530
534
|
// Skyline 组件
|
|
531
535
|
GridView: {
|
|
532
536
|
type: "'aligned'",
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
padding: "'0'"
|
|
537
|
+
"cross-axis-count": "2",
|
|
538
|
+
"main-axis-gap": "0",
|
|
539
|
+
"cross-axis-gap": "0",
|
|
540
|
+
"max-cross-axis-extent": "0",
|
|
541
|
+
padding: "'0'",
|
|
538
542
|
},
|
|
539
543
|
ListView: {
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
padding:
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
bindScrollToUpper:
|
|
547
|
-
bindScrollToLower:
|
|
548
|
-
bindScroll:
|
|
544
|
+
"scroll-y": "",
|
|
545
|
+
"scroll-into-view": "",
|
|
546
|
+
"scroll-with-animation": "",
|
|
547
|
+
padding: "",
|
|
548
|
+
"upper-threshold": "",
|
|
549
|
+
"lower-threshold": "",
|
|
550
|
+
bindScrollToUpper: "",
|
|
551
|
+
bindScrollToLower: "",
|
|
552
|
+
bindScroll: "",
|
|
549
553
|
},
|
|
550
554
|
StickyHeader: {
|
|
551
|
-
padding:
|
|
555
|
+
padding: "",
|
|
552
556
|
},
|
|
553
557
|
StickySection: {
|
|
554
|
-
padding:
|
|
555
|
-
|
|
556
|
-
}
|
|
558
|
+
padding: "",
|
|
559
|
+
"push-pinned-header": "'false'",
|
|
560
|
+
},
|
|
557
561
|
};
|
|
558
562
|
|
|
559
563
|
const PACKAGE_NAME = 'taro-plugin-qd';
|