@neuxnet/neux-cli 0.2.3 → 0.2.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/README.md +10 -0
- package/README.zh-CN.md +10 -0
- package/assets/container/assets/pageFrame.js +6 -6
- package/assets/container/assets/service.js +2 -2
- package/assets/init/neux-components.code-snippets +756 -0
- package/assets/init/neux-html-data.json +3345 -0
- package/assets/init/schemas/app.schema.json +63 -0
- package/assets/init/schemas/neux-config.schema.json +18 -0
- package/assets/init/schemas/page.schema.json +20 -0
- package/assets/init/schemas/project-config.schema.json +23 -0
- package/assets/init/schemas/project-private-config.schema.json +161 -0
- package/package.json +11 -2
- package/scripts/smoke-init-types.mjs +114 -0
- package/scripts/verify-json-schemas.mjs +40 -0
- package/src/bin/cli.js +12 -0
- package/src/core/compiler.js +11 -0
- package/src/core/init.js +88 -16
- package/src/core/package-info.js +1 -0
- package/src/core/project.js +138 -1
- package/src/index.js +1 -1
|
@@ -0,0 +1,756 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Neux audio component": {
|
|
3
|
+
"prefix": "nxAudio",
|
|
4
|
+
"scope": "html",
|
|
5
|
+
"include": [
|
|
6
|
+
"**/*.nxml"
|
|
7
|
+
],
|
|
8
|
+
"body": [
|
|
9
|
+
"<audio",
|
|
10
|
+
" src=\"{{${1:src}}}\"",
|
|
11
|
+
" name=\"${2:name}\"",
|
|
12
|
+
" author=\"${3:author}\"",
|
|
13
|
+
" poster=\"${4:poster}\"",
|
|
14
|
+
" controls=\"${5|true,false|}\"",
|
|
15
|
+
" binderror=\"${6:onError}\"",
|
|
16
|
+
" bindplay=\"${7:onPlay}\"",
|
|
17
|
+
">",
|
|
18
|
+
" ${8:Content}",
|
|
19
|
+
"</audio>"
|
|
20
|
+
],
|
|
21
|
+
"description": "Insert a concise Neux audio component template with common source-backed properties and events."
|
|
22
|
+
},
|
|
23
|
+
"Neux block component": {
|
|
24
|
+
"prefix": "nxBlock",
|
|
25
|
+
"scope": "html",
|
|
26
|
+
"include": [
|
|
27
|
+
"**/*.nxml"
|
|
28
|
+
],
|
|
29
|
+
"body": [
|
|
30
|
+
"<block",
|
|
31
|
+
">",
|
|
32
|
+
" ${1:Content}",
|
|
33
|
+
"</block>"
|
|
34
|
+
],
|
|
35
|
+
"description": "Insert a concise Neux block component template with common source-backed properties and events."
|
|
36
|
+
},
|
|
37
|
+
"Neux button component": {
|
|
38
|
+
"prefix": "nxButton",
|
|
39
|
+
"scope": "html",
|
|
40
|
+
"include": [
|
|
41
|
+
"**/*.nxml"
|
|
42
|
+
],
|
|
43
|
+
"body": [
|
|
44
|
+
"<button",
|
|
45
|
+
" type=\"${1|primary,default,warn|}\"",
|
|
46
|
+
" size=\"${2|default,mini|}\"",
|
|
47
|
+
" disabled=\"${3|true,false|}\"",
|
|
48
|
+
" loading=\"${4|true,false|}\"",
|
|
49
|
+
" openType=\"${5|contact,liveActivity,share,getPhoneNumber,getRealtimePhoneNumber,getUserInfo,launchApp,openSetting|}\"",
|
|
50
|
+
" bindtap=\"${6:onTap}\"",
|
|
51
|
+
">",
|
|
52
|
+
" ${7:Content}",
|
|
53
|
+
"</button>"
|
|
54
|
+
],
|
|
55
|
+
"description": "Insert a concise Neux button component template with common source-backed properties and events."
|
|
56
|
+
},
|
|
57
|
+
"Neux camera component": {
|
|
58
|
+
"prefix": "nxCamera",
|
|
59
|
+
"scope": "html",
|
|
60
|
+
"include": [
|
|
61
|
+
"**/*.nxml"
|
|
62
|
+
],
|
|
63
|
+
"body": [
|
|
64
|
+
"<camera",
|
|
65
|
+
" mode=\"${1|normal,scanCode|}\"",
|
|
66
|
+
" devicePosition=\"${2|front,back|}\"",
|
|
67
|
+
" flash=\"${3|auto,on,off,torch|}\"",
|
|
68
|
+
" resolution=\"${4|low,medium,high|}\"",
|
|
69
|
+
" binderror=\"${5:onError}\"",
|
|
70
|
+
">",
|
|
71
|
+
" ${6:Content}",
|
|
72
|
+
"</camera>"
|
|
73
|
+
],
|
|
74
|
+
"description": "Insert a concise Neux camera component template with common source-backed properties and events."
|
|
75
|
+
},
|
|
76
|
+
"Neux canvas component": {
|
|
77
|
+
"prefix": "nxCanvas",
|
|
78
|
+
"scope": "html",
|
|
79
|
+
"include": [
|
|
80
|
+
"**/*.nxml"
|
|
81
|
+
],
|
|
82
|
+
"body": [
|
|
83
|
+
"<canvas",
|
|
84
|
+
" canvasId=\"${1:canvasId}\"",
|
|
85
|
+
" type=\"${2:type}\"",
|
|
86
|
+
" binderror=\"${3:onError}\"",
|
|
87
|
+
">",
|
|
88
|
+
" ${4:Content}",
|
|
89
|
+
"</canvas>"
|
|
90
|
+
],
|
|
91
|
+
"description": "Insert a concise Neux canvas component template with common source-backed properties and events."
|
|
92
|
+
},
|
|
93
|
+
"Neux checkbox component": {
|
|
94
|
+
"prefix": "nxCheckbox",
|
|
95
|
+
"scope": "html",
|
|
96
|
+
"include": [
|
|
97
|
+
"**/*.nxml"
|
|
98
|
+
],
|
|
99
|
+
"body": [
|
|
100
|
+
"<checkbox",
|
|
101
|
+
" value=\"${1:value}\"",
|
|
102
|
+
" checked=\"${2|true,false|}\"",
|
|
103
|
+
" disabled=\"${3|true,false|}\"",
|
|
104
|
+
">",
|
|
105
|
+
" ${4:Content}",
|
|
106
|
+
"</checkbox>"
|
|
107
|
+
],
|
|
108
|
+
"description": "Insert a concise Neux checkbox component template with common source-backed properties and events."
|
|
109
|
+
},
|
|
110
|
+
"Neux checkbox-group component": {
|
|
111
|
+
"prefix": "nxCheckboxGroup",
|
|
112
|
+
"scope": "html",
|
|
113
|
+
"include": [
|
|
114
|
+
"**/*.nxml"
|
|
115
|
+
],
|
|
116
|
+
"body": [
|
|
117
|
+
"<checkbox-group",
|
|
118
|
+
" id=\"${1:id}\"",
|
|
119
|
+
" bindchange=\"${2:onChange}\"",
|
|
120
|
+
">",
|
|
121
|
+
" ${3:Content}",
|
|
122
|
+
"</checkbox-group>"
|
|
123
|
+
],
|
|
124
|
+
"description": "Insert a concise Neux checkbox-group component template with common source-backed properties and events."
|
|
125
|
+
},
|
|
126
|
+
"Neux component-host component": {
|
|
127
|
+
"prefix": "nxComponentHost",
|
|
128
|
+
"scope": "html",
|
|
129
|
+
"include": [
|
|
130
|
+
"**/*.nxml"
|
|
131
|
+
],
|
|
132
|
+
"body": [
|
|
133
|
+
"<component-host",
|
|
134
|
+
" name=\"${1:name}\"",
|
|
135
|
+
">",
|
|
136
|
+
" ${2:Content}",
|
|
137
|
+
"</component-host>"
|
|
138
|
+
],
|
|
139
|
+
"description": "Insert a concise Neux component-host component template with common source-backed properties and events."
|
|
140
|
+
},
|
|
141
|
+
"Neux cover-image component": {
|
|
142
|
+
"prefix": "nxCoverImage",
|
|
143
|
+
"scope": "html",
|
|
144
|
+
"include": [
|
|
145
|
+
"**/*.nxml"
|
|
146
|
+
],
|
|
147
|
+
"body": [
|
|
148
|
+
"<cover-image",
|
|
149
|
+
" src=\"{{${1:src}}}\"",
|
|
150
|
+
">",
|
|
151
|
+
" ${2:Content}",
|
|
152
|
+
"</cover-image>"
|
|
153
|
+
],
|
|
154
|
+
"description": "Insert a concise Neux cover-image component template with common source-backed properties and events."
|
|
155
|
+
},
|
|
156
|
+
"Neux cover-view component": {
|
|
157
|
+
"prefix": "nxCoverView",
|
|
158
|
+
"scope": "html",
|
|
159
|
+
"include": [
|
|
160
|
+
"**/*.nxml"
|
|
161
|
+
],
|
|
162
|
+
"body": [
|
|
163
|
+
"<cover-view",
|
|
164
|
+
" scrollTop=\"${1:0}\"",
|
|
165
|
+
" scrollLeft=\"${2:0}\"",
|
|
166
|
+
" markerId=\"${3:0}\"",
|
|
167
|
+
">",
|
|
168
|
+
" ${4:Content}",
|
|
169
|
+
"</cover-view>"
|
|
170
|
+
],
|
|
171
|
+
"description": "Insert a concise Neux cover-view component template with common source-backed properties and events."
|
|
172
|
+
},
|
|
173
|
+
"Neux form component": {
|
|
174
|
+
"prefix": "nxForm",
|
|
175
|
+
"scope": "html",
|
|
176
|
+
"include": [
|
|
177
|
+
"**/*.nxml"
|
|
178
|
+
],
|
|
179
|
+
"body": [
|
|
180
|
+
"<form",
|
|
181
|
+
" reportSubmit=\"${1|true,false|}\"",
|
|
182
|
+
" bindreset=\"${2:onReset}\"",
|
|
183
|
+
" bindsubmit=\"${3:onSubmit}\"",
|
|
184
|
+
">",
|
|
185
|
+
" ${4:Content}",
|
|
186
|
+
"</form>"
|
|
187
|
+
],
|
|
188
|
+
"description": "Insert a concise Neux form component template with common source-backed properties and events."
|
|
189
|
+
},
|
|
190
|
+
"Neux icon component": {
|
|
191
|
+
"prefix": "nxIcon",
|
|
192
|
+
"scope": "html",
|
|
193
|
+
"include": [
|
|
194
|
+
"**/*.nxml"
|
|
195
|
+
],
|
|
196
|
+
"body": [
|
|
197
|
+
"<icon",
|
|
198
|
+
" type=\"${1:type}\"",
|
|
199
|
+
" size=\"${2:0}\"",
|
|
200
|
+
" color=\"${3:color}\"",
|
|
201
|
+
">",
|
|
202
|
+
" ${4:Content}",
|
|
203
|
+
"</icon>"
|
|
204
|
+
],
|
|
205
|
+
"description": "Insert a concise Neux icon component template with common source-backed properties and events."
|
|
206
|
+
},
|
|
207
|
+
"Neux image component": {
|
|
208
|
+
"prefix": "nxImage",
|
|
209
|
+
"scope": "html",
|
|
210
|
+
"include": [
|
|
211
|
+
"**/*.nxml"
|
|
212
|
+
],
|
|
213
|
+
"body": [
|
|
214
|
+
"<image",
|
|
215
|
+
" src=\"{{${1:src}}}\"",
|
|
216
|
+
" mode=\"${2|scaleToFill,aspectFit,aspectFill,widthFix,heightFix,top,bottom,center|}\"",
|
|
217
|
+
" lazyLoad=\"${3|true,false|}\"",
|
|
218
|
+
" bindtap=\"${4:onTap}\"",
|
|
219
|
+
" bindload=\"${5:onLoad}\"",
|
|
220
|
+
">",
|
|
221
|
+
" ${6:Content}",
|
|
222
|
+
"</image>"
|
|
223
|
+
],
|
|
224
|
+
"description": "Insert a concise Neux image component template with common source-backed properties and events."
|
|
225
|
+
},
|
|
226
|
+
"Neux input component": {
|
|
227
|
+
"prefix": "nxInput",
|
|
228
|
+
"scope": "html",
|
|
229
|
+
"include": [
|
|
230
|
+
"**/*.nxml"
|
|
231
|
+
],
|
|
232
|
+
"body": [
|
|
233
|
+
"<input",
|
|
234
|
+
" value=\"${1:value}\"",
|
|
235
|
+
" type=\"${2|text,number,idcard,digit,safe-password,nickname|}\"",
|
|
236
|
+
" placeholder=\"${3:placeholder}\"",
|
|
237
|
+
" disabled=\"${4|true,false|}\"",
|
|
238
|
+
" maxlength=\"${5:0}\"",
|
|
239
|
+
" bindinput=\"${6:onInput}\"",
|
|
240
|
+
" bindchange=\"${7:onChange}\"",
|
|
241
|
+
">",
|
|
242
|
+
" ${8:Content}",
|
|
243
|
+
"</input>"
|
|
244
|
+
],
|
|
245
|
+
"description": "Insert a concise Neux input component template with common source-backed properties and events."
|
|
246
|
+
},
|
|
247
|
+
"Neux keyboard-accessory component": {
|
|
248
|
+
"prefix": "nxKeyboardAccessory",
|
|
249
|
+
"scope": "html",
|
|
250
|
+
"include": [
|
|
251
|
+
"**/*.nxml"
|
|
252
|
+
],
|
|
253
|
+
"body": [
|
|
254
|
+
"<keyboard-accessory",
|
|
255
|
+
" maxHeight=\"${1:0}\"",
|
|
256
|
+
">",
|
|
257
|
+
" ${2:Content}",
|
|
258
|
+
"</keyboard-accessory>"
|
|
259
|
+
],
|
|
260
|
+
"description": "Insert a concise Neux keyboard-accessory component template with common source-backed properties and events."
|
|
261
|
+
},
|
|
262
|
+
"Neux label component": {
|
|
263
|
+
"prefix": "nxLabel",
|
|
264
|
+
"scope": "html",
|
|
265
|
+
"include": [
|
|
266
|
+
"**/*.nxml"
|
|
267
|
+
],
|
|
268
|
+
"body": [
|
|
269
|
+
"<label",
|
|
270
|
+
" for=\"${1:for}\"",
|
|
271
|
+
">",
|
|
272
|
+
" ${2:Content}",
|
|
273
|
+
"</label>"
|
|
274
|
+
],
|
|
275
|
+
"description": "Insert a concise Neux label component template with common source-backed properties and events."
|
|
276
|
+
},
|
|
277
|
+
"Neux map component": {
|
|
278
|
+
"prefix": "nxMap",
|
|
279
|
+
"scope": "html",
|
|
280
|
+
"include": [
|
|
281
|
+
"**/*.nxml"
|
|
282
|
+
],
|
|
283
|
+
"body": [
|
|
284
|
+
"<map",
|
|
285
|
+
" longitude=\"${1:0}\"",
|
|
286
|
+
" latitude=\"${2:0}\"",
|
|
287
|
+
" scale=\"${3:0}\"",
|
|
288
|
+
" markers=\"${4:markers}\"",
|
|
289
|
+
" bindtap=\"${5:onTap}\"",
|
|
290
|
+
" binderror=\"${6:onError}\"",
|
|
291
|
+
">",
|
|
292
|
+
" ${7:Content}",
|
|
293
|
+
"</map>"
|
|
294
|
+
],
|
|
295
|
+
"description": "Insert a concise Neux map component template with common source-backed properties and events."
|
|
296
|
+
},
|
|
297
|
+
"Neux movable-area component": {
|
|
298
|
+
"prefix": "nxMovableArea",
|
|
299
|
+
"scope": "html",
|
|
300
|
+
"include": [
|
|
301
|
+
"**/*.nxml"
|
|
302
|
+
],
|
|
303
|
+
"body": [
|
|
304
|
+
"<movable-area",
|
|
305
|
+
" scaleArea=\"${1|true,false|}\"",
|
|
306
|
+
" bindtap=\"${2:onTap}\"",
|
|
307
|
+
">",
|
|
308
|
+
" ${3:Content}",
|
|
309
|
+
"</movable-area>"
|
|
310
|
+
],
|
|
311
|
+
"description": "Insert a concise Neux movable-area component template with common source-backed properties and events."
|
|
312
|
+
},
|
|
313
|
+
"Neux movable-view component": {
|
|
314
|
+
"prefix": "nxMovableView",
|
|
315
|
+
"scope": "html",
|
|
316
|
+
"include": [
|
|
317
|
+
"**/*.nxml"
|
|
318
|
+
],
|
|
319
|
+
"body": [
|
|
320
|
+
"<movable-view",
|
|
321
|
+
" disabled=\"${1|true,false|}\"",
|
|
322
|
+
" bindchange=\"${2:onChange}\"",
|
|
323
|
+
">",
|
|
324
|
+
" ${3:Content}",
|
|
325
|
+
"</movable-view>"
|
|
326
|
+
],
|
|
327
|
+
"description": "Insert a concise Neux movable-view component template with common source-backed properties and events."
|
|
328
|
+
},
|
|
329
|
+
"Neux navigation-bar component": {
|
|
330
|
+
"prefix": "nxNavigationBar",
|
|
331
|
+
"scope": "html",
|
|
332
|
+
"include": [
|
|
333
|
+
"**/*.nxml"
|
|
334
|
+
],
|
|
335
|
+
"body": [
|
|
336
|
+
"<navigation-bar",
|
|
337
|
+
" title=\"${1:title}\"",
|
|
338
|
+
" loading=\"${2|true,false|}\"",
|
|
339
|
+
" frontColor=\"${3|#ffffff,#000000|}\"",
|
|
340
|
+
">",
|
|
341
|
+
" ${4:Content}",
|
|
342
|
+
"</navigation-bar>"
|
|
343
|
+
],
|
|
344
|
+
"description": "Insert a concise Neux navigation-bar component template with common source-backed properties and events."
|
|
345
|
+
},
|
|
346
|
+
"Neux navigator component": {
|
|
347
|
+
"prefix": "nxNavigator",
|
|
348
|
+
"scope": "html",
|
|
349
|
+
"include": [
|
|
350
|
+
"**/*.nxml"
|
|
351
|
+
],
|
|
352
|
+
"body": [
|
|
353
|
+
"<navigator",
|
|
354
|
+
" url=\"${1:/pages/index/index}\"",
|
|
355
|
+
" openType=\"${2:openType}\"",
|
|
356
|
+
" delta=\"${3:0}\"",
|
|
357
|
+
" bindcomplete=\"${4:onComplete}\"",
|
|
358
|
+
" bindfail=\"${5:onFail}\"",
|
|
359
|
+
">",
|
|
360
|
+
" ${6:Content}",
|
|
361
|
+
"</navigator>"
|
|
362
|
+
],
|
|
363
|
+
"description": "Insert a concise Neux navigator component template with common source-backed properties and events."
|
|
364
|
+
},
|
|
365
|
+
"Neux open-data component": {
|
|
366
|
+
"prefix": "nxOpenData",
|
|
367
|
+
"scope": "html",
|
|
368
|
+
"include": [
|
|
369
|
+
"**/*.nxml"
|
|
370
|
+
],
|
|
371
|
+
"body": [
|
|
372
|
+
"<open-data",
|
|
373
|
+
" type=\"${1:type}\"",
|
|
374
|
+
" openGid=\"${2:openGid}\"",
|
|
375
|
+
" lang=\"${3:lang}\"",
|
|
376
|
+
" binderror=\"${4:onError}\"",
|
|
377
|
+
">",
|
|
378
|
+
" ${5:Content}",
|
|
379
|
+
"</open-data>"
|
|
380
|
+
],
|
|
381
|
+
"description": "Insert a concise Neux open-data component template with common source-backed properties and events."
|
|
382
|
+
},
|
|
383
|
+
"Neux page-container component": {
|
|
384
|
+
"prefix": "nxPageContainer",
|
|
385
|
+
"scope": "html",
|
|
386
|
+
"include": [
|
|
387
|
+
"**/*.nxml"
|
|
388
|
+
],
|
|
389
|
+
"body": [
|
|
390
|
+
"<page-container",
|
|
391
|
+
" show=\"${1|true,false|}\"",
|
|
392
|
+
" duration=\"${2:0}\"",
|
|
393
|
+
" zIndex=\"${3:0}\"",
|
|
394
|
+
" bindafterenter=\"${4:onAfterenter}\"",
|
|
395
|
+
" bindafterleave=\"${5:onAfterleave}\"",
|
|
396
|
+
">",
|
|
397
|
+
" ${6:Content}",
|
|
398
|
+
"</page-container>"
|
|
399
|
+
],
|
|
400
|
+
"description": "Insert a concise Neux page-container component template with common source-backed properties and events."
|
|
401
|
+
},
|
|
402
|
+
"Neux page-meta component": {
|
|
403
|
+
"prefix": "nxPageMeta",
|
|
404
|
+
"scope": "html",
|
|
405
|
+
"include": [
|
|
406
|
+
"**/*.nxml"
|
|
407
|
+
],
|
|
408
|
+
"body": [
|
|
409
|
+
"<page-meta",
|
|
410
|
+
" diminaRpxUnit=\"${1:diminaRpxUnit}\"",
|
|
411
|
+
" backgroundTextStyle=\"${2|dark,light|}\"",
|
|
412
|
+
" backgroundColor=\"${3:backgroundColor}\"",
|
|
413
|
+
" bindscroll=\"${4:onScroll}\"",
|
|
414
|
+
">",
|
|
415
|
+
" ${5:Content}",
|
|
416
|
+
"</page-meta>"
|
|
417
|
+
],
|
|
418
|
+
"description": "Insert a concise Neux page-meta component template with common source-backed properties and events."
|
|
419
|
+
},
|
|
420
|
+
"Neux picker component": {
|
|
421
|
+
"prefix": "nxPicker",
|
|
422
|
+
"scope": "html",
|
|
423
|
+
"include": [
|
|
424
|
+
"**/*.nxml"
|
|
425
|
+
],
|
|
426
|
+
"body": [
|
|
427
|
+
"<picker",
|
|
428
|
+
" mode=\"${1|selector,multiSelector,time,date,region|}\"",
|
|
429
|
+
" range=\"${2:range}\"",
|
|
430
|
+
" rangeKey=\"${3:rangeKey}\"",
|
|
431
|
+
" value=\"${4:0}\"",
|
|
432
|
+
" disabled=\"${5|true,false|}\"",
|
|
433
|
+
" bindchange=\"${6:onChange}\"",
|
|
434
|
+
" binderror=\"${7:onError}\"",
|
|
435
|
+
">",
|
|
436
|
+
" ${8:Content}",
|
|
437
|
+
"</picker>"
|
|
438
|
+
],
|
|
439
|
+
"description": "Insert a concise Neux picker component template with common source-backed properties and events."
|
|
440
|
+
},
|
|
441
|
+
"Neux picker-view component": {
|
|
442
|
+
"prefix": "nxPickerView",
|
|
443
|
+
"scope": "html",
|
|
444
|
+
"include": [
|
|
445
|
+
"**/*.nxml"
|
|
446
|
+
],
|
|
447
|
+
"body": [
|
|
448
|
+
"<picker-view",
|
|
449
|
+
" value=\"${1:value}\"",
|
|
450
|
+
" bindchange=\"${2:onChange}\"",
|
|
451
|
+
">",
|
|
452
|
+
" ${3:Content}",
|
|
453
|
+
"</picker-view>"
|
|
454
|
+
],
|
|
455
|
+
"description": "Insert a concise Neux picker-view component template with common source-backed properties and events."
|
|
456
|
+
},
|
|
457
|
+
"Neux picker-view-column component": {
|
|
458
|
+
"prefix": "nxPickerViewColumn",
|
|
459
|
+
"scope": "html",
|
|
460
|
+
"include": [
|
|
461
|
+
"**/*.nxml"
|
|
462
|
+
],
|
|
463
|
+
"body": [
|
|
464
|
+
"<picker-view-column",
|
|
465
|
+
">",
|
|
466
|
+
" ${1:Content}",
|
|
467
|
+
"</picker-view-column>"
|
|
468
|
+
],
|
|
469
|
+
"description": "Insert a concise Neux picker-view-column component template with common source-backed properties and events."
|
|
470
|
+
},
|
|
471
|
+
"Neux progress component": {
|
|
472
|
+
"prefix": "nxProgress",
|
|
473
|
+
"scope": "html",
|
|
474
|
+
"include": [
|
|
475
|
+
"**/*.nxml"
|
|
476
|
+
],
|
|
477
|
+
"body": [
|
|
478
|
+
"<progress",
|
|
479
|
+
" percent=\"${1:0}\"",
|
|
480
|
+
" showInfo=\"${2|true,false|}\"",
|
|
481
|
+
" strokeWidth=\"${3:0}\"",
|
|
482
|
+
" active=\"${4|true,false|}\"",
|
|
483
|
+
" bindactiveend=\"${5:onActiveend}\"",
|
|
484
|
+
">",
|
|
485
|
+
" ${6:Content}",
|
|
486
|
+
"</progress>"
|
|
487
|
+
],
|
|
488
|
+
"description": "Insert a concise Neux progress component template with common source-backed properties and events."
|
|
489
|
+
},
|
|
490
|
+
"Neux radio component": {
|
|
491
|
+
"prefix": "nxRadio",
|
|
492
|
+
"scope": "html",
|
|
493
|
+
"include": [
|
|
494
|
+
"**/*.nxml"
|
|
495
|
+
],
|
|
496
|
+
"body": [
|
|
497
|
+
"<radio",
|
|
498
|
+
" value=\"${1:value}\"",
|
|
499
|
+
" checked=\"${2|true,false|}\"",
|
|
500
|
+
" disabled=\"${3|true,false|}\"",
|
|
501
|
+
" bindtap=\"${4:onTap}\"",
|
|
502
|
+
">",
|
|
503
|
+
" ${5:Content}",
|
|
504
|
+
"</radio>"
|
|
505
|
+
],
|
|
506
|
+
"description": "Insert a concise Neux radio component template with common source-backed properties and events."
|
|
507
|
+
},
|
|
508
|
+
"Neux radio-group component": {
|
|
509
|
+
"prefix": "nxRadioGroup",
|
|
510
|
+
"scope": "html",
|
|
511
|
+
"include": [
|
|
512
|
+
"**/*.nxml"
|
|
513
|
+
],
|
|
514
|
+
"body": [
|
|
515
|
+
"<radio-group",
|
|
516
|
+
" id=\"${1:id}\"",
|
|
517
|
+
" bindchange=\"${2:onChange}\"",
|
|
518
|
+
">",
|
|
519
|
+
" ${3:Content}",
|
|
520
|
+
"</radio-group>"
|
|
521
|
+
],
|
|
522
|
+
"description": "Insert a concise Neux radio-group component template with common source-backed properties and events."
|
|
523
|
+
},
|
|
524
|
+
"Neux rich-text component": {
|
|
525
|
+
"prefix": "nxRichText",
|
|
526
|
+
"scope": "html",
|
|
527
|
+
"include": [
|
|
528
|
+
"**/*.nxml"
|
|
529
|
+
],
|
|
530
|
+
"body": [
|
|
531
|
+
"<rich-text",
|
|
532
|
+
" nodes=\"${1:nodes}\"",
|
|
533
|
+
" space=\"${2|ensp,emsp,nbsp|}\"",
|
|
534
|
+
" userSelect=\"${3|true,false|}\"",
|
|
535
|
+
">",
|
|
536
|
+
" ${4:Content}",
|
|
537
|
+
"</rich-text>"
|
|
538
|
+
],
|
|
539
|
+
"description": "Insert a concise Neux rich-text component template with common source-backed properties and events."
|
|
540
|
+
},
|
|
541
|
+
"Neux root-portal component": {
|
|
542
|
+
"prefix": "nxRootPortal",
|
|
543
|
+
"scope": "html",
|
|
544
|
+
"include": [
|
|
545
|
+
"**/*.nxml"
|
|
546
|
+
],
|
|
547
|
+
"body": [
|
|
548
|
+
"<root-portal",
|
|
549
|
+
" enable=\"${1|true,false|}\"",
|
|
550
|
+
">",
|
|
551
|
+
" ${2:Content}",
|
|
552
|
+
"</root-portal>"
|
|
553
|
+
],
|
|
554
|
+
"description": "Insert a concise Neux root-portal component template with common source-backed properties and events."
|
|
555
|
+
},
|
|
556
|
+
"Neux scroll-view component": {
|
|
557
|
+
"prefix": "nxScrollView",
|
|
558
|
+
"scope": "html",
|
|
559
|
+
"include": [
|
|
560
|
+
"**/*.nxml"
|
|
561
|
+
],
|
|
562
|
+
"body": [
|
|
563
|
+
"<scroll-view",
|
|
564
|
+
" scrollY=\"${1|true,false|}\"",
|
|
565
|
+
" scrollX=\"${2|true,false|}\"",
|
|
566
|
+
" scrollTop=\"${3:0}\"",
|
|
567
|
+
" scrollIntoView=\"${4:scrollIntoView}\"",
|
|
568
|
+
" bindscroll=\"${5:onScroll}\"",
|
|
569
|
+
" bindscrolltolower=\"${6:onScrolltolower}\"",
|
|
570
|
+
">",
|
|
571
|
+
" ${7:Content}",
|
|
572
|
+
"</scroll-view>"
|
|
573
|
+
],
|
|
574
|
+
"description": "Insert a concise Neux scroll-view component template with common source-backed properties and events."
|
|
575
|
+
},
|
|
576
|
+
"Neux slider component": {
|
|
577
|
+
"prefix": "nxSlider",
|
|
578
|
+
"scope": "html",
|
|
579
|
+
"include": [
|
|
580
|
+
"**/*.nxml"
|
|
581
|
+
],
|
|
582
|
+
"body": [
|
|
583
|
+
"<slider",
|
|
584
|
+
" min=\"${1:0}\"",
|
|
585
|
+
" max=\"${2:0}\"",
|
|
586
|
+
" step=\"${3:0}\"",
|
|
587
|
+
" value=\"${4:0}\"",
|
|
588
|
+
" disabled=\"${5|true,false|}\"",
|
|
589
|
+
" bindchange=\"${6:onChange}\"",
|
|
590
|
+
">",
|
|
591
|
+
" ${7:Content}",
|
|
592
|
+
"</slider>"
|
|
593
|
+
],
|
|
594
|
+
"description": "Insert a concise Neux slider component template with common source-backed properties and events."
|
|
595
|
+
},
|
|
596
|
+
"Neux swiper component": {
|
|
597
|
+
"prefix": "nxSwiper",
|
|
598
|
+
"scope": "html",
|
|
599
|
+
"include": [
|
|
600
|
+
"**/*.nxml"
|
|
601
|
+
],
|
|
602
|
+
"body": [
|
|
603
|
+
"<swiper",
|
|
604
|
+
" indicatorDots=\"${1|true,false|}\"",
|
|
605
|
+
" autoplay=\"${2|true,false|}\"",
|
|
606
|
+
" current=\"${3:0}\"",
|
|
607
|
+
" interval=\"${4:0}\"",
|
|
608
|
+
" circular=\"${5|true,false|}\"",
|
|
609
|
+
" bindchange=\"${6:onChange}\"",
|
|
610
|
+
">",
|
|
611
|
+
" ${7:Content}",
|
|
612
|
+
"</swiper>"
|
|
613
|
+
],
|
|
614
|
+
"description": "Insert a concise Neux swiper component template with common source-backed properties and events."
|
|
615
|
+
},
|
|
616
|
+
"Neux swiper-item component": {
|
|
617
|
+
"prefix": "nxSwiperItem",
|
|
618
|
+
"scope": "html",
|
|
619
|
+
"include": [
|
|
620
|
+
"**/*.nxml"
|
|
621
|
+
],
|
|
622
|
+
"body": [
|
|
623
|
+
"<swiper-item",
|
|
624
|
+
" itemId=\"${1:itemId}\"",
|
|
625
|
+
">",
|
|
626
|
+
" ${2:Content}",
|
|
627
|
+
"</swiper-item>"
|
|
628
|
+
],
|
|
629
|
+
"description": "Insert a concise Neux swiper-item component template with common source-backed properties and events."
|
|
630
|
+
},
|
|
631
|
+
"Neux switch component": {
|
|
632
|
+
"prefix": "nxSwitch",
|
|
633
|
+
"scope": "html",
|
|
634
|
+
"include": [
|
|
635
|
+
"**/*.nxml"
|
|
636
|
+
],
|
|
637
|
+
"body": [
|
|
638
|
+
"<switch",
|
|
639
|
+
" checked=\"${1|true,false|}\"",
|
|
640
|
+
" disabled=\"${2|true,false|}\"",
|
|
641
|
+
" type=\"${3|switch,checkbox|}\"",
|
|
642
|
+
" bindchange=\"${4:onChange}\"",
|
|
643
|
+
">",
|
|
644
|
+
" ${5:Content}",
|
|
645
|
+
"</switch>"
|
|
646
|
+
],
|
|
647
|
+
"description": "Insert a concise Neux switch component template with common source-backed properties and events."
|
|
648
|
+
},
|
|
649
|
+
"Neux template component": {
|
|
650
|
+
"prefix": "nxTemplate",
|
|
651
|
+
"scope": "html",
|
|
652
|
+
"include": [
|
|
653
|
+
"**/*.nxml"
|
|
654
|
+
],
|
|
655
|
+
"body": [
|
|
656
|
+
"<template",
|
|
657
|
+
" is=\"${1:is}\"",
|
|
658
|
+
" data=\"${2:data}\"",
|
|
659
|
+
">",
|
|
660
|
+
" ${3:Content}",
|
|
661
|
+
"</template>"
|
|
662
|
+
],
|
|
663
|
+
"description": "Insert a concise Neux template component template with common source-backed properties and events."
|
|
664
|
+
},
|
|
665
|
+
"Neux text component": {
|
|
666
|
+
"prefix": "nxText",
|
|
667
|
+
"scope": "html",
|
|
668
|
+
"include": [
|
|
669
|
+
"**/*.nxml"
|
|
670
|
+
],
|
|
671
|
+
"body": [
|
|
672
|
+
"<text",
|
|
673
|
+
" selectable=\"${1|true,false|}\"",
|
|
674
|
+
" space=\"${2|ensp,emsp,nbsp|}\"",
|
|
675
|
+
" bindtap=\"${3:onTap}\"",
|
|
676
|
+
">",
|
|
677
|
+
" ${4:Content}",
|
|
678
|
+
"</text>"
|
|
679
|
+
],
|
|
680
|
+
"description": "Insert a concise Neux text component template with common source-backed properties and events."
|
|
681
|
+
},
|
|
682
|
+
"Neux textarea component": {
|
|
683
|
+
"prefix": "nxTextarea",
|
|
684
|
+
"scope": "html",
|
|
685
|
+
"include": [
|
|
686
|
+
"**/*.nxml"
|
|
687
|
+
],
|
|
688
|
+
"body": [
|
|
689
|
+
"<textarea",
|
|
690
|
+
" value=\"${1:value}\"",
|
|
691
|
+
" placeholder=\"${2:placeholder}\"",
|
|
692
|
+
" disabled=\"${3|true,false|}\"",
|
|
693
|
+
" maxlength=\"${4:0}\"",
|
|
694
|
+
" bindinput=\"${5:onInput}\"",
|
|
695
|
+
" bindchange=\"${6:onChange}\"",
|
|
696
|
+
">",
|
|
697
|
+
" ${7:Content}",
|
|
698
|
+
"</textarea>"
|
|
699
|
+
],
|
|
700
|
+
"description": "Insert a concise Neux textarea component template with common source-backed properties and events."
|
|
701
|
+
},
|
|
702
|
+
"Neux video component": {
|
|
703
|
+
"prefix": "nxVideo",
|
|
704
|
+
"scope": "html",
|
|
705
|
+
"include": [
|
|
706
|
+
"**/*.nxml"
|
|
707
|
+
],
|
|
708
|
+
"body": [
|
|
709
|
+
"<video",
|
|
710
|
+
" src=\"{{${1:src}}}\"",
|
|
711
|
+
" controls=\"${2|true,false|}\"",
|
|
712
|
+
" autoplay=\"${3|true,false|}\"",
|
|
713
|
+
" poster=\"${4:poster}\"",
|
|
714
|
+
" objectFit=\"${5:objectFit}\"",
|
|
715
|
+
" binderror=\"${6:onError}\"",
|
|
716
|
+
" bindplay=\"${7:onPlay}\"",
|
|
717
|
+
">",
|
|
718
|
+
" ${8:Content}",
|
|
719
|
+
"</video>"
|
|
720
|
+
],
|
|
721
|
+
"description": "Insert a concise Neux video component template with common source-backed properties and events."
|
|
722
|
+
},
|
|
723
|
+
"Neux view component": {
|
|
724
|
+
"prefix": "nxView",
|
|
725
|
+
"scope": "html",
|
|
726
|
+
"include": [
|
|
727
|
+
"**/*.nxml"
|
|
728
|
+
],
|
|
729
|
+
"body": [
|
|
730
|
+
"<view",
|
|
731
|
+
" hoverClass=\"${1:hoverClass}\"",
|
|
732
|
+
" bindtap=\"${2:onTap}\"",
|
|
733
|
+
">",
|
|
734
|
+
" ${3:Content}",
|
|
735
|
+
"</view>"
|
|
736
|
+
],
|
|
737
|
+
"description": "Insert a concise Neux view component template with common source-backed properties and events."
|
|
738
|
+
},
|
|
739
|
+
"Neux web-view component": {
|
|
740
|
+
"prefix": "nxWebView",
|
|
741
|
+
"scope": "html",
|
|
742
|
+
"include": [
|
|
743
|
+
"**/*.nxml"
|
|
744
|
+
],
|
|
745
|
+
"body": [
|
|
746
|
+
"<web-view",
|
|
747
|
+
" src=\"{{${1:src}}}\"",
|
|
748
|
+
" bindload=\"${2:onLoad}\"",
|
|
749
|
+
" binderror=\"${3:onError}\"",
|
|
750
|
+
">",
|
|
751
|
+
" ${4:Content}",
|
|
752
|
+
"</web-view>"
|
|
753
|
+
],
|
|
754
|
+
"description": "Insert a concise Neux web-view component template with common source-backed properties and events."
|
|
755
|
+
}
|
|
756
|
+
}
|