-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhistoire-template.code-snippets
93 lines (93 loc) · 2.11 KB
/
histoire-template.code-snippets
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
{
"Histoire story variant": {
"prefix": "hvariant",
"body": [
"<Variant title='${1:variantTitle}'>",
"\t$0",
"</Variant>",
],
"description": "Story variant"
},
"Histoire grid layout": {
"prefix": "hgrid",
"body": [
":layout='{ type: 'grid', width: ${1:gridWidth} }'",
],
"description": "Histoire grid layout"
},
"Histoire controls": {
"prefix": "hcontrols-base",
"body": [
"<template #controls>",
"\t$0",
"</template>"
],
"description": "Histoire controls base"
},
"Histoire controls - Button": {
"prefix": "hcontrols-button",
"body": [
"<HstButton class='htw-p-2'>",
"\t$0",
"</HstButton>"
],
"description": "Histoire controls - Button"
},
"Histoire controls - Button Group": {
"prefix": "hcontrols-buttongroup",
"body": [
"<HstButtonGroup",
"\tv-model='${2:vModel}'",
"\ttitle='${1:label}'",
"\t:options='[",
"\t\t{",
"\t\t\tlabel: '${3:optionTitle}',",
"\t\t\tvalue: '${4:optionValue}'",
"\t\t}",
"\t]'",
"/>",
],
"description": "Histoire controls - Button Group"
},
"Histoire controls - Checkbox": {
"prefix": "hcontrols-checkbox",
"body": [
"<HstCheckbox",
"\tv-model='${2:vModel}'",
"\ttitle='${1:label}'",
"/>"
],
"description": "Histoire controls - Checkbox"
},
"Histoire controls - Number": {
"prefix": "hcontrols-number",
"body": [
"<HstNumber",
"\tv-model='${2:vModel}'",
"\t:step='1'",
"\ttitle='${1:label}'",
"/>"
],
"description": "Histoire controls - Number"
},
"Histoire controls - Text": {
"prefix": "hcontrols-text",
"body": [
"<HstText",
"\tv-model='${2:vModel}'",
"\ttitle='${1:label}'",
"/>"
],
"description": "Histoire controls - Text"
},
"Histoire controls - Textarea": {
"prefix": "hcontrols-textarea",
"body": [
"<HstTextarea",
"\tv-model='${2:vModel}'",
"\ttitle='${1:label}'",
"/>"
],
"description": "Histoire controls - Textarea"
},
}