-
Notifications
You must be signed in to change notification settings - Fork 3
/
nek-ui.json
190 lines (190 loc) · 3.9 KB
/
nek-ui.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
{
"卡片": {
"prefix": "kl-card",
"body": [
"<kl-card title=\"$1\">",
" $0",
"</kl-card>"
],
"description": "卡片"
},
"栅格": {
"prefix": "kl-row",
"body": [
"<kl-row>",
" <kl-col span=3>",
" $0",
" </kl-col>",
"</kl-row>"
],
"description": "栅格"
},
"表格": {
"prefix": "kl-table",
"body": [
"<kl-table source={${1:list}}>",
" <kl-table-col name=\"$2\" key=\"$3\" />$0",
"</kl-table>"
],
"description": "表格"
},
"按钮": {
"prefix": "kl-button",
"body": [
"<kl-button type=\"${1:primary}\" title=\"$2\" />$0"
],
"description": "按钮"
},
"复选框": {
"prefix": "kl-check",
"body": [
"<kl-check name=\"$1\" />$0"
],
"description": "单选"
},
"复选组": {
"prefix": "kl-check-group",
"body": [
"<kl-check-group source={${1:source}} />$0"
],
"description": "单选组"
},
"日期选择": {
"prefix": "kl-date-picker",
"body": [
"<kl-date-picker />$0"
],
"description": "日期选择"
},
"表单": {
"prefix": "kl-form",
"body": [
"<kl-form>",
" <kl-row>",
" <kl-col span=3>",
" <kl-form-item title=\"$1\">",
" $0",
" </kl-form-item>",
" </kl-col>",
" </kl-row>",
"</kl-form>"
],
"description": "表单"
},
"输入框": {
"prefix": "kl-input",
"body": [
"<kl-input type=\"$1\" />$0"
],
"description": "输入框"
},
"多级选择": {
"prefix": "kl-multi-select",
"body": [
"<kl-multi-select source={${1:source}} />$0"
],
"description": "多级选择"
},
"单选组": {
"prefix": "kl-radio-group",
"body": [
"<kl-radio-group source={${1:source}} />$0"
],
"description": "单选组"
},
"下拉选择": {
"prefix": "kl-select",
"body": [
"<kl-select source={${1:source}} />$0"
],
"description": "下拉选择"
},
"文本": {
"prefix": "kl-text",
"body": [
"<kl-text text=\"$1\" />$0"
],
"description": "文本"
},
"文本输入": {
"prefix": "kl-textarea",
"body": [
"<kl-textarea placeholder=\"$1\" />$0"
],
"description": "文本输入"
},
"上传": {
"prefix": "kl-upload",
"body": [
"<kl-upload action=\"$1\" />$0"
],
"description": "上传"
},
"确认提示": {
"prefix": "kl-pop-confirm",
"body": [
"<kl-pop-confirm content=\"$1\">",
" $0",
"</kl-pop-confirm>"
],
"description": "确认提示"
},
"面包屑": {
"prefix": "kl-crumb",
"body": [
"<kl-crumb separator=\"/\">",
" <kl-crumb-item><kl-icon type=\"home2\" color=\"#E31436\" /></kl-crumb-item>",
" <kl-crumb-item>$1</kl-crumb-item>",
" <kl-crumb-item>$2</kl-crumb-item>",
"</kl-crumb>",
"$0"
],
"description": "面包屑"
},
"分页": {
"prefix": "kl-pager",
"body": [
"<kl-pager current=$1 sumTotal=$2 pageSize=$3 />$0"
],
"description": "分页"
},
"步骤": {
"prefix": "kl-steps",
"body": [
"<kl-steps steps={${1:steps}} current=$2 />$0"
],
"description": "步骤"
},
"选项卡": {
"prefix": "kl-tabs",
"body": [
"<kl-tabs>",
" <kl-tab title=\"$1\">$2</kl-tab>$0",
"</kl-tabs>"
],
"description": "选项卡"
},
"图标": {
"prefix": "kl-icon",
"body": [
"<kl-icon type=\"$1\" />$0"
],
"description": "图标"
},
"加载中": {
"prefix": "kl-loading",
"body": [
"<kl-loading visible=$1 />$0"
],
"description": "加载中"
},
"文字提示": {
"prefix": "kl-tooltip",
"body": [
"<kl-tooltip tip=\"$1\">",
" $0",
"</kl-tooltip>"
],
"description": "文字提示"
}
}