-
Notifications
You must be signed in to change notification settings - Fork 16
/
snippets.json
367 lines (367 loc) · 23.8 KB
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
{
"nzs_autocomplete_custom-label": {
"prefix": "nzs-autocomplete-custom-label",
"body": "<nz-input-group nzSize=\"large\" [nzSuffix]=\"suffixIcon\">\n <input [(ngModel)]=\"$1\" (input)=\"$2($event.target?.value)\" placeholder=\"$3\" nz-input [nzAutocomplete]=\"${4:auto}\" />\n <ng-template #suffixIcon>\n <span nz-icon type=\"search\"></span>\n </ng-template>\n</nz-input-group>\n<nz-autocomplete nzBackfill #$4>\n <nz-auto-optgroup *ngFor=\"let group of optionGroups\" [nzLabel]=\"groupTitle\">\n <ng-template #groupTitle>\n <span>\n {{group.title}}\n <a class=\"more-link\" href=\"https://www.google.com/search?q=ng+zorro\" target=\"_blank\">More</a>\n </span>\n </ng-template>\n <nz-auto-option *ngFor=\"let option of group.children\" [nzValue]=\"option.title\">\n {{option.title}}\n <span class=\"certain-search-item-count\">{{option.count}}</span>\n </nz-auto-option>\n </nz-auto-optgroup>\n</nz-autocomplete>",
"description": "Autocomplete includes custom label(自定义选项)"
},
"nzs_autocomplete_data-source": {
"prefix": "nzs-autocomplete-data-source",
"body": "<input nz-input [(ngModel)]=\"$1\" [nzAutocomplete]=\"${2:auto}\">\n<nz-autocomplete [nzDataSource]=\"${3:['12345', '23456', '34567']}\" #$2></nz-autocomplete>",
"description": "Autocomplete includes data source(指定数据源)"
},
"nzs_autocomplete": {
"prefix": "nzs-autocomplete",
"body": "<input [(ngModel)]=\"$1\" (input)=\"$2($event.target?.value)\" placeholder=\"$3\" nz-input [nzAutocomplete]=\"${4:auto}\">\n<nz-autocomplete nzBackfill #$4>\n <nz-auto-option *ngFor=\"let ${6:item} of $5\" [nzValue]=\"${6}\">\n {{$6}}\n </nz-auto-option>\n</nz-autocomplete>",
"description": "Autocomplete(自动完成)"
},
"nzs_breadcrumb": {
"prefix": "nzs-breadcrumb",
"body": "<nz-breadcrumb>\n <nz-breadcrumb-item><a routerLink=\"/${2}\">${1}</a></nz-breadcrumb-item>\n $0\n</nz-breadcrumb>",
"description": "Breadcrumb(面包屑)"
},
"nzs_breadcrumb_icon": {
"prefix": "nzs-breadcrumb-icon",
"body": "<nz-breadcrumb-item>\n <a [routerLink]=\"['/${1}']\"><span nz-icon type=\"${2:home}\"></span>${3:<span>${4:Home}</span>}</a>\n</nz-breadcrumb-item>\n$0",
"description": "Breadcrumb includes icon(图标)"
},
"nzs_breadcrumb_item": {
"prefix": "nzs-breadcrumb-item",
"body": "<nz-breadcrumb-item><a routerLink=\"/${2}\">${1}</a></nz-breadcrumb-item>\n$0",
"description": "Breadcrumb includes item(面包屑项)"
},
"nzs_checkbox": {
"prefix": "nzs-checkbox",
"body": "<label nz-checkbox [(ngModel)]=\"${1}\" name=\"${1}\">$0</label>",
"description": "Checkbox(多选框)"
},
"nzs_checkbox_group": {
"prefix": "nzs-checkbox-group",
"body": "<nz-checkbox-group [(ngModel)]=\"${1}\" name=\"${1}\"${2: (ngModelChange)=\"${3}\"}></nz-checkbox-group>\n$0",
"description": "Checkbox group(多选框组)"
},
"nzs_checkbox_layout": {
"prefix": "nzs-checkbox-layout",
"body": "<nz-checkbox-wrapper style=\"width: 100%;\" (nzOnChange)=\"${1:change}($event)\">\n <nz-row>\n <nz-col nzSpan=\"8\">\n <label nz-checkbox nzValue=\"A\" [ngModel]=\"true\">A</label>\n </nz-col>\n <nz-col nzSpan=\"8\">\n <label nz-checkbox nzValue=\"B\">B</label>\n </nz-col>\n </nz-row>\n</nz-checkbox-wrapper>",
"description": "Checkbox use with Grid(多选框组布局)"
},
"nzs_date": {
"prefix": "nzs-date",
"body": "<nz-date-picker [(ngModel)]=\"${1:value}\" name=\"${1}\" nzPlaceHolder=\"${3|Please select data,Please select begin time,Please select end time|}\"${4: nzShowTime}></nz-date-picker>",
"description": "Date picker(日期选择框)"
},
"nzs_date_month": {
"prefix": "nzs-date-month",
"body": "<nz-month-picker [(ngModel)]=\"${1:value}\" name=\"${1}\" nzPlaceHolder=\"${3|Please select month|}\"></nz-month-picker>",
"description": "Month picker(月份选择框)"
},
"nzs_date_range": {
"prefix": "nzs-date-range",
"body": "<nz-range-picker [(ngModel)]=\"${1:value}\" name=\"${1}\" nzPlaceHolder=\"${3|Please select data|}\"${4: nzShowTime}></nz-range-picker>",
"description": "Date range picker(日期范围选择框)"
},
"nzs_date_week": {
"prefix": "nzs-date-week",
"body": "<nz-week-picker [(ngModel)]=\"${1:value}\" name=\"${1}\" nzPlaceHolder=\"${3|Please select week|}\"></nz-week-picker>",
"description": "Week picker(周选择框)"
},
"nzs_drawer": {
"prefix": "nzs-drawer",
"body": "<nz-drawer\n [(nzVisible)]=\"${1:visible}\"\n [nzTitle]=\"${2:Title}\"\n nzPlacement=\"${3|top,right,bottom,left|}\"\n (nzOnClose)=\"close()\">\n $0\n</nz-drawer>",
"description": "抽屉(下拉菜单)"
},
"nzs_dropdown_button": {
"prefix": "nzs-dropdown-button",
"body": "<nz-dropdown-button>\n ${1}\n <ul nz-menu>\n <li nz-menu-item>$0</li>\n <li nz-menu-item><a>2nd menu item</a></li>\n </ul>\n</nz-dropdown-button>",
"description": "Dropdown button style(下拉菜单按钮)"
},
"nzs_dropdown_button.style": {
"prefix": "nzs-dropdown-button.style",
"body": "<nz-dropdown>\n <button nz-button nz-dropdown><span>${1}</span><span nz-icon type=\"${2|down,ellipsis|}\"></span></button>\n <ul nz-menu>\n <li nz-menu-item>$0</li>\n <li nz-menu-item><a>2nd menu item</a></li>\n </ul>\n</nz-dropdown>",
"description": "Dropdown button style(下拉菜单按钮内风格)"
},
"nzs_dropdown": {
"prefix": "nzs-dropdown",
"body": "<nz-dropdown>\n <a nz-dropdown>${1} <span nz-icon type=\"${2|down,ellipsis|}\"></span></a>\n <ul nz-menu nzSelectable>\n <li nz-menu-item>$0</li>\n <li nz-menu-item><a>2nd menu item</a></li>\n </ul>\n</nz-dropdown>",
"description": "Dropdown(下拉菜单)"
},
"nzs_form_control-responsive": {
"prefix": "nzs-form-control-responsive",
"body": "<nz-form-control nzSpan=\"${1:1-24}\" [nzXs]=\"${4:1-24}\" [nzSm]=\"${5:1-24}\" [nzMd]=\"${6:1-24}\" [nzLg]=\"${7:1-24}\" [nzXl]=\"${8:1-24}\" [nzXXl]=\"${9:1-24}\">\n $0\n</nz-form-control>",
"description": "Control is responsive(控件为响应式)"
},
"nzs_form_control": {
"prefix": "nzs-form-control",
"body": "<nz-form-control nzSpan=\"${1:1-24}\">\n $0\n</nz-form-control>",
"description": "Control(控件)"
},
"nzs_form": {
"prefix": "nzs-form",
"body": "<form nz-form [formGroup]=\"${1:groupName}\" (ngSubmit)=\"_submitForm($event, ${1:groupName}.value)\"${2: nzLayout=\"${3|horizontal,vertical,inline|}\"}>\n $0\n</form>",
"description": "Form(表单,向下为表单项)"
},
"nzs_form_explain-error": {
"prefix": "nzs-form-explain-error",
"body": "<nz-form-explain *ngIf=\"(${1:name}.dirty || ${1:name}.touched) && ${1:name}.errors?.${2|required,pattern,email,maxlength,minlength,min,max|}\">$3</nz-form-explain>\n$0",
"description": "A error message and only one(表单提示信息带响应式表单错误判断,只能显示一个)"
},
"nzs_form_item": {
"prefix": "nzs-form-item",
"body": "<nz-form-item ${1: nzFlex}>\n $0\n</nz-form-item>",
"description": "Used to separate the item in forms, contains label(optional) and control field.(表单项,向下为标签和控件)"
},
"nzs_form_label-responsive": {
"prefix": "nzs-form-label-responsive",
"body": "<nz-form-label nzFor=\"$1\" nzSpan=\"${2:1-24}\"${3: nzRequired} [nzXs]=\"${4:1-24}\" [nzSm]=\"${5:1-24}\" [nzMd]=\"${6:1-24}\" [nzLg]=\"${7:1-24}\" [nzXl]=\"${8:1-24}\" [nzXXl]=\"${9:1-24}\">\n $0\n</nz-form-label>",
"description": "The label of the form item.(标签为响应式)"
},
"nzs_form_label": {
"prefix": "nzs-form-label",
"body": "<nz-form-label nzFor=\"$1\" nzSpan=\"${2:1-24}\"${3: nzRequired}>$0</nz-form-label>",
"description": "The label of the form item, optional.(标签)"
},
"nzs_grid_col": {
"prefix": "nzs-grid-col",
"body": "<div nz-col${1: nzSpan=\"${2:0-24}\"}>\n $0\n</div>",
"description": "column(列)"
},
"nzs_grid": {
"prefix": "nzs-grid",
"body": "<div nz-row${1: nzGutter=\"${2|0,8,16,24,32,64|}\"}>\n <div nz-col nzSpan=\"${3:0-24}\"${4: nzOffset=\"${5:0-24}\"}>\n $0\n </div>\n</div>",
"description": "Grids System(栅格系统)"
},
"nzs_grid_responsive": {
"prefix": "nzs-grid-responsive",
"body": "<div nz-col nzXs=\"${1:1-24}\" nzSm=\"${2:1-24}\" nzMd=\"${3:1-24}\" nzLg=\"${4:1-24}\" nzXl=\"${5:1-24}\" nzXXl=\"${6:1-24}\">\n $0\n</div>",
"description": "Responsive grid system(响应式栅格系统)"
},
"nzs_grid_row-flex": {
"prefix": "nzs-grid-row-flex",
"body": "<div nz-row nzType=\"flex\"${1: nzJustify=\"${2|start,center,end,space-between,space-around|}\"}${3: nzAlign=\"${4|top,middle,bottom|}\"}>\n $0\n</div>",
"description": "Responsive grid system flex layout(响应式栅格系统Flex布局)"
},
"nzs_grid_row": {
"prefix": "nzs-grid-row",
"body": "<div nz-row${1: nzGutter=\"${2|8,16,24,32,64|}\"}>\n $0\n</div>",
"description": "row(行)"
},
"nzs_icon_spin": {
"prefix": "nzs-icon-spin",
"body": "<span nz-icon spin type=\"${1|loading,sync|}\"></span>",
"description": "Rotate icon(旋转图标)"
},
"nzs_input_addon-icon": {
"prefix": "nzs-input-addon-icon",
"body": "<nz-input-group${1: nzCompact}${2: nzAddOnBeforeIcon=\"anticon anticon-setting\"}${3: nzAddOnAfterIcon=\"anticon anticon-setting\"}>\n <input nz-input [(ngModel)]=\"${4:name}\" id=\"${4}\" name=\"${4}\"${5: placeholder=\"${5}\"}>\n</nz-input-group>\n$0",
"description": "addon icon(前后置标签按钮)"
},
"nzs_input_addon-text": {
"prefix": "nzs-input-addon-text",
"body": "<nz-input-group${1: nzCompact}${2: nzAddOnBefore=\"http://\"}${3: nzAddOnAfter=\"RMB\"}>\n <input nz-input [(ngModel)]=\"${4:name}\" id=\"${4}\" name=\"${4}\"${5: placeholder=\"${5}\"}>\n</nz-input-group>\n$0",
"description": "addon text(前后置文本按钮)"
},
"nzs_input": {
"prefix": "nzs-input",
"body": "<input nz-input [(ngModel)]=\"${1:name}\" id=\"${1}\" name=\"${1}\"${2: placeholder=\"${3}\"}>",
"description": "Input(输入框)"
},
"nzs_input_group": {
"prefix": "nzs-input-group",
"body": "<nz-input-group${1: nzCompact}${2: nzSearch}>\n <input nz-input [(ngModel)]=\"${2:name}\" id=\"${2}\" name=\"${2}\"${3: placeholder=\"${4}\"}>\n</nz-input-group>\n$0",
"description": "Input group(输入框组合)"
},
"nzs_input_prefix": {
"prefix": "nzs-input-prefix",
"body": "<input nz-input [(ngModel)]=\"${1:name}\" id=\"${1}\" name=\"${1}\" nzPrefix=\"anticon anticon-${2:user}\"${3: placeholder=\"${4}\"}>",
"description": "Input includes prefix(带有前缀图标的 input)"
},
"nzs_input_search": {
"prefix": "nzs-input-search",
"body": "<nz-input-group nzSearch nzSize=\"${1|small,middle,large,default|}\" [nzSuffix]=\"${2}Tpl\">\n <input nz-input [(ngModel)]=\"${2:name}\" name=\"${2}\"${3: placeholder=\"${4}\"}>\n <ng-template #${2}Tpl>\n <button nz-button nzType=\"primary\" nzSize=\"${1}\" nzSearch>${5|Search,Save,Confirm|}</button>\n </ng-template>\n</nz-input-group>",
"description": "Input includes search(搜索示例)"
},
"nzs_input_suffix": {
"prefix": "nzs-input-suffix",
"body": "<input nz-input [(ngModel)]=\"${1:name}\" id=\"${1}\" name=\"${1}\" nzSuffix=\"anticon anticon-${2:user}\"${3: placeholder=\"${4}\"}>",
"description": "Input includes suffix(带有后缀图标的 input)"
},
"nzs_input-number": {
"prefix": "nzs-input-number",
"body": "<nz-input-number [(ngModel)]=\"${1:num}\" name=\"${1}\" id=\"${1}\" ${2: [nzPlaceHolder]=\"'${3|Please,Required|}'\"}></nz-input-number>",
"description": "Input Number(数字输入框)"
},
"nzs_list": {
"prefix": "nzs-list",
"body": "<nz-list [nzDataSource]=\"$1\" [nzRenderItem]=\"item\">\n <ng-template #item let-${2:i}>\n <nz-list-item>\n <nz-list-item-meta\n [nzTitle]=\"$2.title\"\n [nzAvatar]=\"$2.avatar\"\n [nzDescription]=\"$2.description\">\n <ng-template #itemTitle>\n <a>{{$2.title}}</a>\n </ng-template>\n </nz-list-item-meta>\n </nz-list-item>\n </ng-template>\n</nz-list>",
"description": "List(列表,向下为项)"
},
"nzs_list_item-meta": {
"prefix": "nzs-list-item-meta",
"body": "<nz-list-item-meta\n [nzAvatar]=\"$1\"\n [nzTitle]=\"$2\"\n [nzDescription]=\"$3\"></nz-list-item-meta>\n$0",
"description": "List includes item and meta(元素)"
},
"nzs_list_item": {
"prefix": "nzs-list-item",
"body": "<nz-list-item>\n $0\n</nz-list-item>",
"description": "List includes item(项,向下为元素)"
},
"nzs_list_loadmore": {
"prefix": "nzs-list-loadmore",
"body": "<nz-list [nzDataSource]=\"data\" [nzLoading]=\"loading\" [nzRenderItem]=\"item\" [nzLoadMore]=\"loadMore\">\n <ng-template #item let-item>\n <nz-list-item [nzContent]=\"'content'\" [nzActions]=\"[editAction,moreAction]\">\n <ng-template #editAction>\n <a (click)=\"edit(item)\">edit</a>\n </ng-template>\n <ng-template #moreAction>\n <a (click)=\"edit(item)\">more</a>\n </ng-template>\n <nz-list-item-meta [nzTitle]=\"nzTitle\" nzAvatar=\"https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png\" nzDescription=\"Ant Design, a design language for background applications, is refined by Ant UED Team\">\n <ng-template #nzTitle>\n <a href=\"https://ng.ant.design\">{{item.name.last}}</a>\n </ng-template>\n </nz-list-item-meta>\n </nz-list-item>\n </ng-template>\n <ng-template #loadMore>\n <div *ngIf=\"showLoadingMore\" class=\"loadmore\">\n <button nz-button *ngIf=\"!loadingMore\" (click)=\"onLoadMore()\">loading more</button>\n <nz-spin *ngIf=\"loadingMore\" [nzSpinning]=\"loadingMore\"></nz-spin>\n </div>\n </ng-template>\n</nz-list>",
"description": "List includes loadmore(加载更多示例)"
},
"nzs_list_simple": {
"prefix": "nzs-list-simple",
"body": "<nz-list nzHeader=\"$1\" nzFooter=\"$2\">\n <nz-list-item>$3</nz-list-item>\n</nz-list>\n$0",
"description": "List(最简单的用法)"
},
"nzs_mention": {
"prefix": "nzs-mention",
"body": "<nz-mention [nzSuggestions]=\"$1\" (nzOnSelect)=\"$2($event)\">\n <input [(ngModel)]=\"$3\" (ngModelChange)=\"$4($event)\" placeholder=\"$5\" nzMentionTrigger nz-input>\n</nz-mention>\n$0",
"description": "Mention(提及)"
},
"nzs_popconfirm_button": {
"prefix": "nzs-popconfirm-button",
"body": "<nz-popconfirm nzTitle=\"${1:Are you sure?}\" (nzOnConfirm)=\"${2:del(i)}\">\n <button nz-popconfirm nz-button nzType=\"danger\">${3|Delete,Clear,Confirm|}</button>\n</nz-popconfirm>\n$0",
"description": "Popconfirm button style(按钮风格)"
},
"nzs_popconfirm": {
"prefix": "nzs-popconfirm",
"body": "<nz-popconfirm nzTitle=\"${1:Are you sure?}\" (nzOnConfirm)=\"${2:confirm(i)}\">\n <a nz-popconfirm>${3|Delete,Clear,Confirm|}</a>\n</nz-popconfirm>\n$0",
"description": "Popconfirm(气泡确认框)"
},
"nzs_popover": {
"prefix": "nzs-popover",
"body": "<nz-popover [nzTitle]=\"'${2}'\">\n <button nz-button nz-popover>${1}</button>\n</nz-popover>\n$0",
"description": "Popover(气泡卡片)"
},
"nzs_popover_help-html": {
"prefix": "nzs-popover-help-html",
"body": "<nz-popover [nzContent]=\"${1:help}Tpl\">\n <ng-template #${1}Tpl>\n $0\n </ng-template>\n <span nz-popover nz-icon type=\"question-circle\"></span>\n</nz-popover>",
"description": "Help demo (Include html)(HTML帮助示例)"
},
"nzs_popover_help": {
"prefix": "nzs-popover-help",
"body": "<nz-popover nzContent=\"$0\">\n <span nz-popover nz-icon type=\"question-circle\"></span>\n</nz-popover>",
"description": "Help demo(帮助示例)"
},
"nzs_radio_button": {
"prefix": "nzs-radio-button",
"body": "<nz-radio-group [(ngModel)]=\"$1\">\n <label nz-radio-button nzValue=\"A\">A</label>\n <label *ngFor=\"let ${3:item} of ${2:list}\" nz-radio-button [nzValue]=\"$3\">{{${3}.text}}</label>\n</nz-radio-group>\n$0",
"description": "Radio button style(单选框按钮风格)"
},
"nzs_radio": {
"prefix": "nzs-radio",
"body": "<nz-radio-group [(ngModel)]=\"$1\">\n <label nz-radio nzValue=\"A\">A</label>\n <label *ngFor=\"let ${3:item} of ${2:list}\" nz-radio [nzValue]=\"$3\">{{${3}.text}}</label>\n</nz-radio-group>\n$0",
"description": "Radio(单选框)"
},
"nzs_radio_simple": {
"prefix": "nzs-radio-simple",
"body": "<label nz-radio [nzValue]=\"${1}\">$0</label>",
"description": "Radio(单选框最简单的用法)"
},
"nzs_select": {
"prefix": "nzs-select",
"body": "<nz-select [(ngModel)]=\"${1:value}\" name=\"${1}\" nzPlaceHolder=\"${2}\"${3: nzAllowClear}>\n <nz-option\n *ngFor=\"let ${5:item} of ${4:list}\"\n [nzLabel]=\"$5.label\"\n [nzValue]=\"$5.value\"\n [nzDisabled]=\"$5.disabled\">\n </nz-option>\n</nz-select>\n$0",
"description": "Select(下拉选择器)"
},
"nzs_select_option-group": {
"prefix": "nzs-select-option-group",
"body": "<nz-option-group [nzLabel]=\"${1:item}\"></nz-option-group>",
"description": "Select option group(组)"
},
"nzs_select_option": {
"prefix": "nzs-select-option",
"body": "<nz-option\n *ngFor=\"let ${5:item} of ${4:list}\"\n [nzLabel]=\"$5.label\"\n [nzValue]=\"$5.value\"\n [nzDisabled]=\"$5.disabled\"\n [nzCustomContent]=\"tpl\">\n <ng-template #tpl>\n {{ $5 }}\n </ng-template>\n</nz-option>",
"description": "Select option(项)"
},
"nzs_spin": {
"prefix": "nzs-spin",
"body": "<nz-spin${1: [nzTip]=\"'${2|Loading...|}'\"}${3: [nzSpinning]=\"false\"}></nz-spin>\n$0",
"description": "Spin(加载中)"
},
"nzs_steps_custom-dot": {
"prefix": "nzs-steps-custom-dot",
"body": "<nz-steps [(nzCurrent)]=\"${1:current}\" [nzProgressDot]=\"${2:progressTemplate}\">\n <nz-step nzTitle=\"Finished\" nzDescription=\"You can hover on the dot.\"></nz-step>\n $0\n</nz-steps>\n<ng-template #${2} let-dot let-status=\"status\" let-index=\"index\">\n</ng-template>",
"description": "Custom dot(自定义点)"
},
"nzs_steps": {
"prefix": "nzs-steps",
"body": "<nz-steps [(nzCurrent)]=\"${1:current}\"${2: [nzStatus]=\"'${3|wait,process,finish,error|}'\"}${4: nzSize=\"small\"}${5: nzDirection=\"${6|horizontal,vertical|}\"}${7: nzProgressDot}>\n <nz-step [nzTitle]=\"'${8}'\" [nzDescription]=\"'${9}'\"></nz-step>\n $0\n</nz-steps>\n<div class=\"steps-content\">\n\n</div>",
"description": "Steps(步骤条)"
},
"nzs_steps_step-icon": {
"prefix": "nzs-steps-step-icon",
"body": "<nz-step [nzIcon]=\"nzIconTpl\" [nzTitle]=\"'${1}'\" [nzDescription]=\"'${2}'\"${3: [nzStatus]=\"'${4|wait,process,finish,error|}'\"}>\n <ng-template #nzIconTpl>$0</ng-template>\n</nz-step>",
"description": "Steps inlcudes step and icon(项带图标)"
},
"nzs_steps_step": {
"prefix": "nzs-steps-step",
"body": "<nz-step [nzTitle]=\"'${1}'\" [nzDescription]=\"'${2}'\"${3: [nzStatus]=\"'${4|wait,process,finish,error|}'\"}></nz-step>",
"description": "Step in stepds(项)"
},
"nzs_switch": {
"prefix": "nzs-switch",
"body": "<nz-switch [(ngModel)]=\"${1}\" name=\"${1}\"></nz-switch>\n$0",
"description": "Switch(开关)"
},
"nzs_switch_icon": {
"prefix": "nzs-switch-icon",
"body": "<nz-switch [(ngModel)]=\"${1}\" name=\"${1}\" [nzCheckedChildren]=\"checkedTemplate\" [nzUnCheckedChildren]=\"unCheckedTemplate\">\n <ng-template #checkedTemplate><span nz-icon type=\"${2:check}\"></span></ng-template>\n <ng-template #unCheckedTemplate><span nz-icon type=\"${3:close}\"></span></ng-template>\n</nz-switch>\n$0",
"description": "Switch includes icon(自定义图标)"
},
"nzs_switch_text": {
"prefix": "nzs-switch-text",
"body": "<nz-switch [(ngModel)]=\"${1}\" name=\"${1}\" nzCheckedChildren=\"${2|Opened,Enabled|}\" nzUnCheckedChildren=\"${3|Closed,Disabled|}\"></nz-switch>\n$0",
"description": "Switch includes text(自定义文本)"
},
"nzs_table": {
"prefix": "nzs-table",
"body": "<nz-table #nzTable [nzData]=\"${1}\" [nzPageSize]=\"${2:10}\">\n <thead>\n <tr>\n <th>Title</th>\n $3\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let i of nzTable.data\">\n <td>{{i.title}}</td>\n $4\n <td>\n <a href=\"#\" (click)=\"edit(i)\">Edit</a>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <a href=\"#\" (click)=\"del(i)\">Remove</a>${5:\n <nz-divider nzType=\"vertical\"></nz-divider>\n <nz-dropdown>\n <a class=\"ant-dropdown-link\" nz-dropdown>\n More <span nz-icon type=\"${6|down,ellipsis|}\"></span>\n </a>\n <ul nz-menu>\n <li nz-menu-item>\n <a (click)=\"\">active</a>\n </li>\n </ul>\n </nz-dropdown>\n }\n </td>\n </tr>\n </tbody>\n</nz-table>",
"description": "Table(表格)"
},
"nzs_table_static-no-pager": {
"prefix": "nzs-table-static-no-pager",
"body": "<nz-table [nzData]=\"${1|list,data|}\" [nzShowPagination]=\"false\">\n <thead>\n <tr>\n <th>$0</th>\n <th nzWidth=\"300px\"></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let ${2:i} of $1\">\n <td>{{${2}.title}}</td>\n <td>\n <a (click)=\"next(${2})\">Next</a>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <a (click)=\"edit(${2})\">Edit</a>\n <nz-divider nzType=\"vertical\"></nz-divider>\n <nz-popconfirm [nzTitle]=\"'Are you sure?'\" (nzOnConfirm)=\"del(${2})\">\n <a nz-popconfirm>Delete</a>\n </nz-popconfirm>\n </td>\n </tr>\n </tbody>\n</nz-table>",
"description": "Table not pagination(不分页静态数据)"
},
"nzs_tabs": {
"prefix": "nzs-tabs",
"body": "<nz-tabset>\n <nz-tab nzTitle=\"Tab 1\">\n Content of Tab Pane 1\n </nz-tab>\n <nz-tab nzTitle=\"Tab 2\">\n Content of Tab Pane 2\n </nz-tab>\n <nz-tab nzTitle=\"Tab 3\">\n Content of Tab Pane 3\n </nz-tab>\n</nz-tabset>",
"description": "Tabs(标签页)"
},
"nzs_tag": {
"prefix": "nzs-tag",
"body": "<nz-tag nzColor=\"${2|magenta,red,volcano,orange,gold,lime,green,cyan,blue,geekblue,purple|}\">$1</nz-tag>",
"description": "Tag(标签)"
},
"nzs_textarea": {
"prefix": "nzs-textarea",
"body": "<textarea nz-input [(ngModel)]=\"${1:remark}\" id=\"${1}\" name=\"${1}\" [nzAutosize]=\"${2|true,false,{ minRows: 2 <Change to comma by yourself> maxRows: 6 }|}\"${3: placeholder=\"${4}\"}></textarea>$0",
"description": "Textarea(多选文本框)"
},
"nzs_time": {
"prefix": "nzs-time",
"body": "<nz-time-picker [(ngModel)]=\"${1:value}\" name=\"${1}\" nzPlaceHolder=\"${3|Please select time|}\"></nz-time-picker>",
"description": "Time picker(时间选择框)"
},
"nzs_tooltip": {
"prefix": "nzs-tooltip",
"body": "<a nz-tooltip=\"$2\">$1</a>$0",
"description": "Tooltip(文字提示)"
},
"nzs_tooltip_template": {
"prefix": "nzs-tooltip-template",
"body": "<nz-tooltip>\n <span nz-tooltip>${1}</span>\n <ng-template #nzTemplate>\n <span nz-icon type=\"file\"></span>\n <span>$0</span>\n </ng-template>\n</nz-tooltip>",
"description": "Tooltip curstom template(自定义内容风格)"
},
"nzs_upload": {
"prefix": "nzs-upload",
"body": "<nz-upload nzAction=\"${1:/upload}\">\n <button nz-button>\n <span nz-icon type=\"upload\"></span>\n <span>${2:Upload}</span>\n </button>\n</nz-upload>\n$0",
"description": "Upload(上传)"
},
"nzs_upload_drag": {
"prefix": "nzs-upload-drag",
"body": "<nz-upload nzType=\"drag\"\n nzAction=\"${1:/upload}\"\n (nzChange)=\"handleChange($event)\"\n [nzMultiple]=\"true\"\n [nzLimit]=\"${2:5}\">\n <p class=\"ant-upload-drag-icon\">\n <span nz-icon type=\"inbox\"></span>\n </p>\n <p class=\"ant-upload-text\">Click or drag file to this area to upload</p>\n <p class=\"ant-upload-hint\">Support for a single or bulk upload. Strictly prohibit from uploading company data or other band files</p>\n</nz-upload>\n$0",
"description": "Upload of drag(拖拽风格)"
}
}