Skip to content

Commit 04a866f

Browse files
committed
v0.0.4
1 parent c9bf876 commit 04a866f

File tree

3 files changed

+91
-1
lines changed

3 files changed

+91
-1
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ Wux Weapp Snippets for VS Code.
3636
| w-cascader:controlled | `wux-cascader` | Cascader |
3737
| w-checkbox | `wux-checkbox` | Checkbox |
3838
| w-checkbox-group | `wux-checkbox-group` | Checkbox Group |
39+
| w-field | `wux-field` | Field |
40+
| w-field:checkbox | `wux-field` | Field Checkbox |
41+
| w-field:input | `wux-field` | Field Input |
42+
| w-field:input-number | `wux-field` | Field InputNumber |
43+
| w-field:radio | `wux-field` | Field Radio |
44+
| w-field:rater | `wux-field` | Field Rater |
45+
| w-field:slider | `wux-field` | Field Slider |
46+
| w-field:switch | `wux-field` | Field Switch |
47+
| w-field:textarea | `wux-field` | Field Textarea |
48+
| w-field:form | `wux-field` | Form |
49+
| w-input | `wux-input` | Input |
50+
| w-input:controlled | `wux-input` | Input |
3951
| w-input-number | `wux-input-number` | InputNumber |
4052
| w-input-number:controlled | `wux-input-number` | InputNumber |
4153
| w-radio-group | `wux-radio-group` | Radio Group |
@@ -50,6 +62,8 @@ Wux Weapp Snippets for VS Code.
5062
| w-slider | `wux-slider` | Slider |
5163
| w-slider:controlled | `wux-slider` | Slider |
5264
| w-switch | `wux-switch` | Switch |
65+
| w-textarea | `wux-textarea` | Textarea |
66+
| w-textarea:controlled | `wux-textarea` | Textarea |
5367
| w-upload | `wux-upload` | Upload |
5468
| w-accordion-group | `wux-accordion-group` | Accordion Group |
5569
| w-accordion-group:controlled | `wux-accordion-group` | Accordion Group |
@@ -94,6 +108,7 @@ Wux Weapp Snippets for VS Code.
94108
| w-circle | `wux-circle` | Circle |
95109
| w-dialog | `wux-dialog` | Dialog |
96110
| w-gallery | `wux-gallery` | Gallery |
111+
| w-landscape | `wux-landscape` | Landscape |
97112
| w-loading | `wux-loading` | Loading |
98113
| w-notification | `wux-notification` | Notification |
99114
| w-popup | `wux-popup` | Popup |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Wux Weapp Snippets",
44
"description": "Wux Weapp Snippets for VS Code.",
55
"icon": "wux-weapp-snippets.png",
6-
"version": "0.0.3",
6+
"version": "0.0.4",
77
"homepage": "https://github.com/wux-weapp/wux-weapp-snippets/blob/master/README.md",
88
"bugs": {
99
"url": "https://github.com/wux-weapp/wux-weapp-snippets/issues"

snippets/wxml.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,66 @@
139139
"body": "<wux-checkbox-group>\n\t${0}\n</wux-checkbox-group>",
140140
"description": "Checkbox Group"
141141
},
142+
"wux-field": {
143+
"prefix": "w-field",
144+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t${0}\n</wux-field>",
145+
"description": "Field"
146+
},
147+
"wux-field:checkbox": {
148+
"prefix": "w-field:checkbox",
149+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t<wux-checkbox-group ${4:options=\"${5}\"}>${0}</wux-checkbox-group>\n</wux-field>",
150+
"description": "Field"
151+
},
152+
"wux-field:input": {
153+
"prefix": "w-field:input",
154+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t<wux-input />\n</wux-field>",
155+
"description": "Field"
156+
},
157+
"wux-field:input-number": {
158+
"prefix": "w-field:input-number",
159+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t<wux-input-number />\n</wux-field>",
160+
"description": "Field"
161+
},
162+
"wux-field:radio": {
163+
"prefix": "w-field:radio",
164+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t<wux-radio-group ${4:options=\"${5}\"}>${0}</wux-radio-group>\n</wux-field>",
165+
"description": "Field"
166+
},
167+
"wux-field:rater": {
168+
"prefix": "w-field:rater",
169+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t<wux-rater />\n</wux-field>",
170+
"description": "Field"
171+
},
172+
"wux-field:slider": {
173+
"prefix": "w-field:slider",
174+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t<wux-slider />\n</wux-field>",
175+
"description": "Field"
176+
},
177+
"wux-field:switch": {
178+
"prefix": "w-field:switch",
179+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"} valuePropName=\"inputChecked\">\n\t<wux-switch />\n</wux-field>",
180+
"description": "Field"
181+
},
182+
"wux-field:textarea": {
183+
"prefix": "w-field:textarea",
184+
"body": "<wux-field name=\"${1}\" ${2:initialValue=\"${3}\"}>\n\t<wux-textarea />\n</wux-field>",
185+
"description": "Field"
186+
},
187+
"wux-form": {
188+
"prefix": "w-form",
189+
"body": "<wux-form id=\"${1:wux-form}\" ${2:bind:change=\"${3:onFormChange}\"}>\n\t${0}\n</wux-form>",
190+
"description": "Form"
191+
},
192+
"wux-input": {
193+
"prefix": "w-input",
194+
"body": "<wux-input defaultValue=\"${1}\" ${2:type=\"${3|text,number,idcard,digit|}\"} />",
195+
"description": "Input"
196+
},
197+
"wux-input:controlled": {
198+
"prefix": "w-input:controlled",
199+
"body": "<wux-input value=\"${1}\" ${2:type=\"${3|text,number,idcard,digit|}\"} controlled ${4:bind:change=\"${5:onInputChange}\"} />",
200+
"description": "Input"
201+
},
142202
"wux-input-number": {
143203
"prefix": "w-input-number",
144204
"body": "<wux-input-number ${1:color=\"${2|balanced,light,stable,positive,calm,assertive,energized,royal,dark|}\"} defaultValue=\"${3}\" />",
@@ -209,6 +269,16 @@
209269
"body": "<wux-switch ${1:color=\"${2|balanced,light,stable,positive,calm,assertive,energized,royal,dark|}\"} value=\"${3}\" />",
210270
"description": "Switch"
211271
},
272+
"wux-textarea": {
273+
"prefix": "w-textarea",
274+
"body": "<wux-textarea defaultValue=\"${1}\" ${2:rows=\"${3|3|}\"} />",
275+
"description": "Textarea"
276+
},
277+
"wux-textarea:controlled": {
278+
"prefix": "w-textarea:controlled",
279+
"body": "<wux-textarea value=\"${1}\" ${2:rows=\"${3|3|}\"} controlled ${4:bind:change=\"${5:onTextareaChange}\"} />",
280+
"description": "Textarea"
281+
},
212282
"wux-upload": {
213283
"prefix": "w-upload",
214284
"body": "<wux-upload ${1:listType=\"${2|text,picture-card|}\"} url=\"${3}\">\n\t${0}\n</wux-upload>",
@@ -429,6 +499,11 @@
429499
"body": "<wux-gallery id=\"${1:wux-gallery}\" />",
430500
"description": "Gallery"
431501
},
502+
"wux-landscape": {
503+
"prefix": "w-landscape",
504+
"body": "<wux-landscape visible=\"${1}\" bind:close=\"${2:onLandscapeClose}\">\n\t${0}\n</wux-landscape>",
505+
"description": "Landscape"
506+
},
432507
"wux-loading": {
433508
"prefix": "w-loading",
434509
"body": "<wux-loading id=\"${1:wux-loading}\" />",

0 commit comments

Comments
 (0)