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/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: 'wx:if',
14
- else: 'wx:else',
15
- elseif: 'wx:elif',
16
- for: 'wx:for',
17
- forItem: 'wx:for-item',
18
- forIndex: 'wx:for-index',
19
- key: 'wx:key',
20
- xs: 'qds',
21
- type: 'weapp'
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 === 'string' ? page : (page === null || page === void 0 ? void 0 : page.path) || '';
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({ nodeName: name, nodeAlias: name, attributes: comp }, pagePath);
33
+ return "";
34
+ return this.buildComponentTemplate({
35
+ nodeName: name,
36
+ nodeAlias: name,
37
+ attributes: comp,
38
+ }, pagePath);
35
39
  })
36
- .join('\n');
40
+ .join("\n");
37
41
  return `<import src="${baseTempPath}" />\n${transferComp}\n${template}`;
38
42
  };
39
43
  this.pluginOptions = pluginOptions || {};
40
- this.nestElements.set('root-portal', 3);
44
+ this.nestElements.set("root-portal", 3);
41
45
  }
42
- buildXsTemplate(filePath = './utils') {
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 === 'eh') {
50
+ if (value === "eh") {
47
51
  const nameLowerCase = name.toLowerCase();
48
- if (nameLowerCase === 'bindlongtap' && componentName !== 'canvas') {
49
- return 'bindlongpress';
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['page-meta'] = result['page-meta'];
59
- this.transferComponents['navigation-bar'] = result['navigation-bar'];
60
- delete result['page-meta'];
61
- delete result['navigation-bar'];
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
- 'border-radius': '0',
70
- 'font-size': '16',
71
- duration: '30',
72
- bindActiveEnd: ''
73
+ "border-radius": "0",
74
+ "font-size": "16",
75
+ duration: "30",
76
+ bindActiveEnd: "",
73
77
  },
74
78
  RichText: {
75
- space: '',
76
- 'user-select': 'false'
79
+ space: "",
80
+ "user-select": "false",
77
81
  },
78
82
  Text: {
79
- 'user-select': 'false'
83
+ "user-select": "false",
80
84
  },
81
85
  // 表单组件
82
86
  Input: {
83
- 'always-embed': 'false',
84
- 'adjust-position': 'true',
85
- 'hold-keyboard': 'false',
86
- 'safe-password-cert-path': '',
87
- 'safe-password-length': '',
88
- 'safe-password-time-stamp': '',
89
- 'safe-password-nonce': '',
90
- 'safe-password-salt': '',
91
- 'safe-password-custom-hash': '',
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: 'en',
97
- 'session-from': '',
98
- 'send-message-title': '',
99
- 'send-message-path': '',
100
- 'send-message-img': '',
101
- 'app-parameter': '',
102
- 'show-message-card': 'false',
103
- 'phone-number-no-quota-toast': 'true',
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
- 'read-only': 'false',
123
- placeholder: '',
124
- 'show-img-size': 'false',
125
- 'show-img-toolbar': 'false',
126
- 'show-img-resize': 'false',
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
- 'report-submit': 'false',
135
- 'report-submit-timeout': '0',
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
- 'header-text': '',
144
- bindCancel: ''
147
+ "header-text": "",
148
+ bindCancel: "",
145
149
  },
146
150
  PickerView: {
147
- 'mask-style': '',
148
- 'mask-class': '',
149
- 'indicator-style': '',
150
- 'indicator-class': '',
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
- 'selected-color': "'#1aad19'",
163
- 'block-size': '28',
164
- 'block-color': "'#ffffff'"
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
- 'show-confirm-bar': 'true',
172
- 'adjust-position': 'true',
173
- 'hold-keyboard': 'false',
174
- 'disable-default-padding': 'false',
175
- 'confirm-type': "'return'",
176
- 'confirm-hold': 'false',
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
- 'open-type': "'navigate'",
183
- delta: '1',
184
- 'app-id': '',
185
- path: '',
186
- 'extra-data': '',
186
+ "open-type": "'navigate'",
187
+ delta: "1",
188
+ "app-id": "",
189
+ path: "",
190
+ "extra-data": "",
187
191
  version: "'release'",
188
- 'hover-stop-propagation': 'false',
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: 'false',
198
- controls: 'false',
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
- 'device-position': "'back'",
214
+ "device-position": "'back'",
211
215
  flash: "'auto'",
212
- 'frame-size': "'medium'",
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
- 'webp': 'false',
220
- 'show-menu-by-longpress': 'false',
221
- bindLoad: '',
222
- bindError: ''
223
+ webp: "false",
224
+ "show-menu-by-longpress": "false",
225
+ bindLoad: "",
226
+ bindError: "",
223
227
  },
224
228
  Video: {
225
- 'show-mute-btn': 'false',
226
- title: '',
227
- 'play-btn-position': "'bottom'",
228
- 'enable-play-gesture': 'false',
229
- 'auto-pause-if-navigate': 'true',
230
- 'auto-pause-if-open-native': 'true',
231
- 'vslide-gesture': 'false',
232
- 'vslide-gesture-in-fullscreen': 'true',
233
- 'ad-unit-id': '',
234
- 'poster-for-crawler': '',
235
- 'show-casting-button': 'false',
236
- 'picture-in-picture-mode': '',
237
- 'picture-in-picture-show-progress': 'false',
238
- 'enable-auto-rotation': 'false',
239
- 'show-screen-lock-button': 'false',
240
- 'show-snapshot-button': 'false',
241
- 'show-background-playback-button': 'false',
242
- 'background-poster': '',
243
- 'referrer-policy': "'origin'",
244
- 'is-drm': 'false',
245
- 'provision-url': '',
246
- 'certificate-url': '',
247
- 'license-url': '',
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
- 'sound-mode': "'speaker'",
265
- 'auto-pause-if-navigate': 'true',
266
- 'auto-pause-if-open-native': 'true',
267
- 'picture-in-picture-mode': '',
268
- 'referrer-policy': "'no-referrer'",
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: 'false',
280
- muted: 'false',
281
- 'enable-camera': 'true',
282
- 'auto-focus': 'true',
283
+ autopush: "false",
284
+ muted: "false",
285
+ "enable-camera": "true",
286
+ "auto-focus": "true",
283
287
  orientation: "'vertical'",
284
- beauty: '0',
285
- whiteness: '0',
288
+ beauty: "0",
289
+ whiteness: "0",
286
290
  aspect: "'9:16'",
287
- 'min-bitrate': '200',
288
- 'max-bitrate': '1000',
289
- 'audio-quality': "'high'",
290
- 'waiting-image': '',
291
- 'waiting-image-hash': '',
292
- zoom: 'false',
293
- 'device-position': "'front'",
294
- 'background-mute': 'false',
295
- mirror: 'false',
296
- 'remote-mirror': 'false',
297
- 'local-mirror': "'auto'",
298
- 'audio-reverb-type': '0',
299
- 'enable-mic': 'true',
300
- 'enable-agc': 'false',
301
- 'enable-ans': 'false',
302
- 'audio-volume-type': "'voicecall'",
303
- 'video-width': '360',
304
- 'video-height': '640',
305
- 'beauty-style': "'smooth'",
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
- 'picture-in-picture-mode': '',
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
- 'show-location': '',
320
- polygons: '[]',
321
- subkey: '',
322
- 'layer-style': '1',
323
- rotate: '0',
324
- skew: '0',
325
- 'enable-3D': 'false',
326
- 'show-compass': 'false',
327
- 'show-scale': 'false',
328
- 'enable-overlooking': 'false',
329
- 'enable-zoom': 'true',
330
- 'enable-scroll': 'true',
331
- 'enable-rotate': 'false',
332
- 'enable-satellite': 'false',
333
- 'enable-traffic': 'false',
334
- 'enable-poi': 'true',
335
- 'enable-building': '',
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
- 'unit-id': '',
365
- 'ad-intervals': '',
366
- 'ad-type': "'banner'",
367
- 'ad-theme': "'white'",
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
- 'unit-id': '',
374
- 'ad-intervals': '',
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
- 'open-gid': '',
388
+ type: "",
389
+ "open-gid": "",
386
390
  lang: "'en'",
387
- 'default-text': '',
388
- 'default-avatar': '',
389
- bindError: ''
391
+ "default-text": "",
392
+ "default-avatar": "",
393
+ bindError: "",
390
394
  },
391
395
  // 页面属性
392
396
  PageMeta: {
393
- 'background-text-style': '',
394
- 'background-color': '',
395
- 'background-color-top': '',
396
- 'background-color-bottom': '',
397
- 'scroll-top': "''",
398
- 'scroll-duration': '300',
399
- 'page-style': "''",
400
- 'root-font-size': "''",
401
- 'page-font-size': "''",
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
- 'front-color': "''",
410
- 'background-color': "''",
411
- 'color-animation-duration': "'0'",
412
- 'color-animation-timing-func': "'linear'"
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
- 'enable-flex': 'false',
417
- 'scroll-anchoring': 'false',
418
- enhanced: 'false',
419
- 'refresher-enabled': 'false',
420
- 'refresher-threshold': '45',
421
- 'refresher-default-style': "'black'",
422
- 'refresher-background': "'#FFF'",
423
- 'refresher-triggered': 'false',
424
- bounces: 'true',
425
- 'show-scrollbar': 'true',
426
- 'paging-enabled': 'false',
427
- 'fast-deceleration': 'false',
428
- 'scroll-with-animation': 'false',
429
- 'enable-back-to-top': 'false',
430
- 'enable-passive': 'false',
431
- 'scroll-into-view-alignment': "'start'",
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: 'false',
434
- 'cache-extent': '',
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
- 'indicator-dots': 'false',
448
- 'indicator-color': "'rgba(0, 0, 0, .3)'",
449
- 'indicator-active-color': "'#000000'",
450
- autoplay: 'false',
451
- current: '0',
452
- interval: '5000',
453
- duration: '500',
454
- circular: 'false',
455
- vertical: 'false',
456
- 'previous-margin': "'0px'",
457
- 'next-margin': "'0px'",
458
- 'snap-to-edge': 'false',
459
- 'display-multiple-items': '1',
460
- 'easing-function': "'default'",
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
- 'item-id': ''
470
+ "item-id": "",
467
471
  },
468
472
  MovableArea: {
469
- 'scale-area': 'false'
473
+ "scale-area": "false",
470
474
  },
471
475
  MovableView: {
472
476
  direction: "'none'",
473
- inertia: 'false',
474
- 'out-of-bounds': 'false',
475
- x: '',
476
- y: '',
477
- damping: '20',
478
- friction: '2',
479
- disabled: 'false',
480
- scale: 'false',
481
- 'scale-min': '0.5',
482
- 'scale-max': '10',
483
- 'scale-value': '1',
484
- animation: 'true',
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
- 'min-width': '',
492
- 'max-width': '',
493
- width: '',
494
- 'min-height': '',
495
- 'max-height': '',
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: 'false',
502
- duration: '300',
503
- 'easing-function': "'ease-out'"
504
+ key: "",
505
+ transform: "false",
506
+ duration: "300",
507
+ "easing-function": "'ease-out'",
504
508
  },
505
509
  PageContainer: {
506
- show: 'false',
507
- duration: '300',
508
- 'z-index': '100',
509
- overlay: 'true',
510
+ show: "false",
511
+ duration: "300",
512
+ "z-index": "100",
513
+ overlay: "true",
510
514
  position: "'bottom'",
511
- round: 'false',
512
- 'close-on-slide-down': 'false',
513
- 'overlay-style': '',
514
- 'custom-style': '',
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
- 'device-position': "'front'",
528
- bindError: ''
531
+ "device-position": "'front'",
532
+ bindError: "",
529
533
  },
530
534
  // Skyline 组件
531
535
  GridView: {
532
536
  type: "'aligned'",
533
- 'cross-axis-count': '2',
534
- 'main-axis-gap': '0',
535
- 'cross-axis-gap': '0',
536
- 'max-cross-axis-extent': '0',
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
- 'scroll-y': '',
541
- 'scroll-into-view': '',
542
- 'scroll-with-animation': '',
543
- padding: '',
544
- 'upper-threshold': '',
545
- 'lower-threshold': '',
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
- 'push-pinned-header': "'false'"
556
- }
558
+ padding: "",
559
+ "push-pinned-header": "'false'",
560
+ },
557
561
  };
558
562
 
559
563
  const PACKAGE_NAME = 'taro-plugin-qd';