@next-bricks/form 0.27.2 → 0.27.4
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/dist/bricks.json +1 -1
- package/dist/chunks/99.ca3ad33c.js +2 -0
- package/dist/chunks/99.ca3ad33c.js.map +1 -0
- package/dist/chunks/eo-date-picker.4f0f0e0c.js +2 -0
- package/dist/chunks/eo-date-picker.4f0f0e0c.js.map +1 -0
- package/dist/chunks/eo-select.d487f2a4.js +3 -0
- package/dist/chunks/eo-select.d487f2a4.js.map +1 -0
- package/dist/chunks/{main.8b564703.js → main.c8373af0.js} +2 -2
- package/dist/chunks/{main.8b564703.js.map → main.c8373af0.js.map} +1 -1
- package/dist/{index.b622255a.js → index.cca516e7.js} +2 -2
- package/dist/{index.b622255a.js.map → index.cca516e7.js.map} +1 -1
- package/dist/manifest.json +1 -1
- package/dist/stories-assets/eo-checkbox.027e9f4040ca8b31cecf.svg +19 -0
- package/dist/stories-assets/eo-checkbox[basic].2bbd230a86978b7731ee.svg +35 -0
- package/dist/stories-assets/eo-checkbox[custom-icon].f460e2b8d744365b7f4d.svg +41 -0
- package/dist/stories-assets/eo-checkbox[disabled].d82ca70b7359d2ed501e.svg +20 -0
- package/dist/stories-assets/eo-checkbox[group].734638c747f0c79e72f2.svg +65 -0
- package/dist/stories-assets/eo-checkbox[icon].8b68fbd3e3ceb58e356a.svg +41 -0
- package/dist/stories-assets/eo-checkbox[item-color].c7c1be159c57ce445793.svg +18 -0
- package/dist/stories-assets/eo-checkbox[multi-column].26db99ff764830ddb47a.svg +55 -0
- package/dist/stories-assets/eo-checkbox[with-icon].c08a24b1aeee9b08f6c4.svg +36 -0
- package/dist/stories-assets/eo-date-picker.a03268275a197bd79e42.svg +51 -0
- package/dist/stories-assets/eo-date-picker[basic].84147087c7f71bac2e52.svg +51 -0
- package/dist/stories-assets/eo-dynamic-form-item.8300cda0c0ae2b97814e.svg +39 -0
- package/dist/stories-assets/eo-dynamic-form-item[basic].63dbd4318b013a8df6dd.svg +39 -0
- package/dist/stories-assets/eo-form-item.313c448f2f3423981e46.svg +22 -0
- package/dist/stories-assets/eo-form[basic].ae8af9ef7b682f073aa5.svg +23 -0
- package/dist/stories-assets/eo-form[dynamic].d907da7e523fc716f0c0.svg +68 -0
- package/dist/stories-assets/eo-icon-select.40b77d33772f579559ce.svg +26 -0
- package/dist/stories-assets/eo-icon-select[basic].5cab54ec0533eee8e924.svg +26 -0
- package/dist/stories-assets/eo-input.923ffec9dffa88c5c52a.svg +34 -0
- package/dist/stories-assets/eo-input[basic].3705851faf207a8ecab3.svg +34 -0
- package/dist/stories-assets/eo-input[copyable].badf54b2cb4ef0e7598c.svg +22 -0
- package/dist/stories-assets/eo-input[password].fadd405ae4fbd4715f36.svg +21 -0
- package/dist/stories-assets/eo-input[with-addon].e4ee2e945ece4456e95b.svg +22 -0
- package/dist/stories-assets/eo-radio.f42b9e963c8987427cd9.svg +20 -0
- package/dist/stories-assets/eo-radio[basic].59a556b92cbb2cfb32f1.svg +36 -0
- package/dist/stories-assets/eo-radio[button].996b2806fe2189ac0b8c.svg +26 -0
- package/dist/stories-assets/eo-radio[icon-button].7b24f97dbf5d206b6102.svg +20 -0
- package/dist/stories-assets/eo-radio[icon].423895fc58b38cf1c265.svg +38 -0
- package/dist/stories-assets/eo-radio[with-icon].72e7f529ec97ebb0a24d.svg +37 -0
- package/dist/stories-assets/eo-select.4298d21b2786c930cf7c.svg +29 -0
- package/dist/stories-assets/eo-select[basic].be14874bf05171f726fd.svg +29 -0
- package/dist/stories-assets/eo-select[multi].ba65bc72b361663fe64a.svg +55 -0
- package/dist/stories-assets/eo-submit-buttons.bd5d1baf8d8d1e418569.svg +24 -0
- package/dist/stories-assets/eo-submit-buttons[basic].22f9432af1089ee62e36.svg +28 -0
- package/dist/stories-assets/eo-switch.dacd876f74a586f97923.svg +15 -0
- package/dist/stories-assets/eo-switch[basic].c35a00e0a42b8dbbc698.svg +15 -0
- package/dist/stories-assets/eo-textarea.4f2feadec04ceb3c433d.svg +20 -0
- package/dist/stories-assets/eo-textarea[basic].a94739b505bb6632a017.svg +20 -0
- package/dist/stories-assets/eo-time-picker.235f41986c771d2921b5.svg +26 -0
- package/dist/stories-assets/eo-time-picker[basic].a12da6e9cd12ee9dd787.svg +26 -0
- package/dist/stories-assets/eo-time-range-picker.efe0b4c059e54f79f248.svg +42 -0
- package/dist/stories-assets/eo-time-range-picker[basic].4bc27c8d17100e965983.svg +42 -0
- package/dist/stories-assets/eo-upload-files.e2f8aa6d4fc184159871.svg +18 -0
- package/dist/stories-assets/eo-upload-files[basic].4998a72b73c930e0b105.svg +18 -0
- package/dist/stories-assets/eo-upload-img.dc97bbdb0941135c7354.svg +19 -0
- package/dist/stories-assets/eo-upload-img[basic].06aea44831bc8d20d027.svg +19 -0
- package/dist/stories.json +1491 -0
- package/dist/types.json +354 -354
- package/dist-types/date-picker/index.d.ts +2 -2
- package/package.json +2 -2
- package/dist/chunks/99.0342fc28.js +0 -2
- package/dist/chunks/99.0342fc28.js.map +0 -1
- package/dist/chunks/eo-date-picker.4b19a21d.js +0 -2
- package/dist/chunks/eo-date-picker.4b19a21d.js.map +0 -1
- package/dist/chunks/eo-select.a790e323.js +0 -3
- package/dist/chunks/eo-select.a790e323.js.map +0 -1
- /package/dist/chunks/{eo-select.a790e323.js.LICENSE.txt → eo-select.d487f2a4.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,1491 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"storyId": "eo-checkbox",
|
|
4
|
+
"text": {
|
|
5
|
+
"en": "Checkbox",
|
|
6
|
+
"zh": "多选框"
|
|
7
|
+
},
|
|
8
|
+
"description": {
|
|
9
|
+
"en": "General Checkbox",
|
|
10
|
+
"zh": "通用多选框"
|
|
11
|
+
},
|
|
12
|
+
"icon": {
|
|
13
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-checkbox.027e9f4040ca8b31cecf.svg"
|
|
14
|
+
},
|
|
15
|
+
"conf": [
|
|
16
|
+
{
|
|
17
|
+
"bricks": [
|
|
18
|
+
{
|
|
19
|
+
"brick": "eo-checkbox",
|
|
20
|
+
"properties": {
|
|
21
|
+
"name": "fruits",
|
|
22
|
+
"label": "水果",
|
|
23
|
+
"options": [
|
|
24
|
+
"Apple",
|
|
25
|
+
"Orange",
|
|
26
|
+
"Pear"
|
|
27
|
+
],
|
|
28
|
+
"value": [
|
|
29
|
+
"Apple"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"snippetId": "eo-checkbox[basic]",
|
|
35
|
+
"title": {
|
|
36
|
+
"en": "Basic General Checkbox",
|
|
37
|
+
"zh": "基础多选框"
|
|
38
|
+
},
|
|
39
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-checkbox[basic].2bbd230a86978b7731ee.svg"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"bricks": [
|
|
43
|
+
{
|
|
44
|
+
"brick": "eo-checkbox",
|
|
45
|
+
"properties": {
|
|
46
|
+
"name": "user",
|
|
47
|
+
"label": "用户",
|
|
48
|
+
"options": [
|
|
49
|
+
{
|
|
50
|
+
"label": "管理员",
|
|
51
|
+
"value": "Administrator"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "测试",
|
|
55
|
+
"value": "tester"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "开发",
|
|
59
|
+
"value": "developer",
|
|
60
|
+
"disabled": true
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"value": [
|
|
64
|
+
"tester",
|
|
65
|
+
"developer"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"snippetId": "eo-checkbox[disabled]",
|
|
71
|
+
"title": {
|
|
72
|
+
"en": "General Checkbox with Disabled Item",
|
|
73
|
+
"zh": "带禁用项的多选框"
|
|
74
|
+
},
|
|
75
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-checkbox[disabled].d82ca70b7359d2ed501e.svg"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"bricks": [
|
|
79
|
+
{
|
|
80
|
+
"brick": "eo-checkbox",
|
|
81
|
+
"description": {
|
|
82
|
+
"title": "设置选项颜色",
|
|
83
|
+
"message": "在为checkbox(type = default)传入options时,可传入「checkboxColor」属性设置选框颜色,可用颜色包括:red、orange、amber、yellow、green、teal、cyan、blue、indigo、purple、deep-purple、pink 和 blue-gray。"
|
|
84
|
+
},
|
|
85
|
+
"properties": {
|
|
86
|
+
"name": "user",
|
|
87
|
+
"label": "用户",
|
|
88
|
+
"options": [
|
|
89
|
+
{
|
|
90
|
+
"label": "管理员",
|
|
91
|
+
"value": "Administrator",
|
|
92
|
+
"checkboxColor": "teal"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"label": "测试",
|
|
96
|
+
"value": "tester",
|
|
97
|
+
"checkboxColor": "orange"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"label": "开发",
|
|
101
|
+
"value": "developer",
|
|
102
|
+
"checkboxColor": "pink"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"label": "PM",
|
|
106
|
+
"value": "pm",
|
|
107
|
+
"checkboxColor": "amber"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"value": [
|
|
111
|
+
"tester",
|
|
112
|
+
"developer",
|
|
113
|
+
"Administrator",
|
|
114
|
+
"pm"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"snippetId": "eo-checkbox[item-color]",
|
|
120
|
+
"title": {
|
|
121
|
+
"en": "General Checkbox with Color Item",
|
|
122
|
+
"zh": "选项带颜色的多选框"
|
|
123
|
+
},
|
|
124
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-checkbox[item-color].c7c1be159c57ce445793.svg"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"bricks": [
|
|
128
|
+
{
|
|
129
|
+
"brick": "eo-checkbox",
|
|
130
|
+
"description": {
|
|
131
|
+
"title": "设置checkbox图标",
|
|
132
|
+
"message": "在为checkbox(type = default)传入options时,可传入「icon」属性为其设置图标,图标来源可以为src(httpSrc/DataSrc)或平台的图标库。"
|
|
133
|
+
},
|
|
134
|
+
"properties": {
|
|
135
|
+
"label": "用户列表",
|
|
136
|
+
"name": "user",
|
|
137
|
+
"options": [
|
|
138
|
+
{
|
|
139
|
+
"label": "管理员",
|
|
140
|
+
"value": "Administrator",
|
|
141
|
+
"icon": {
|
|
142
|
+
"imgSrc": "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
143
|
+
"imgStyle": {
|
|
144
|
+
"objectFit": "cover",
|
|
145
|
+
"borderRadius": "50%"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"label": "目标用户",
|
|
151
|
+
"value": "tester",
|
|
152
|
+
"icon": {
|
|
153
|
+
"icon": "aim",
|
|
154
|
+
"lib": "antd",
|
|
155
|
+
"theme": "outlined",
|
|
156
|
+
"color": {
|
|
157
|
+
"startColor": "var(--palette-red-6)",
|
|
158
|
+
"endColor": "var(--palette-blue-6)"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"label": "其他用户",
|
|
164
|
+
"value": "developer",
|
|
165
|
+
"icon": {
|
|
166
|
+
"icon": "bar-chart",
|
|
167
|
+
"lib": "antd",
|
|
168
|
+
"theme": "outlined"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"value": [
|
|
173
|
+
"tester",
|
|
174
|
+
"developer"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"snippetId": "eo-checkbox[with-icon]",
|
|
180
|
+
"title": {
|
|
181
|
+
"en": "General Checkbox with Icon",
|
|
182
|
+
"zh": "带图标选项的多选框"
|
|
183
|
+
},
|
|
184
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-checkbox[with-icon].c08a24b1aeee9b08f6c4.svg"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"bricks": [
|
|
188
|
+
{
|
|
189
|
+
"brick": "eo-checkbox",
|
|
190
|
+
"description": {
|
|
191
|
+
"title": "分组复选框",
|
|
192
|
+
"message": "上层复选框仅作为分类标识,不作为表单数据项,勾选/取消勾选上层复选框可全选/取消全选。每个分组下可包含多个复选框。"
|
|
193
|
+
},
|
|
194
|
+
"properties": {
|
|
195
|
+
"name": "goods",
|
|
196
|
+
"label": "商品",
|
|
197
|
+
"isGroup": true,
|
|
198
|
+
"optionGroups": [
|
|
199
|
+
{
|
|
200
|
+
"name": "水果",
|
|
201
|
+
"key": "fruits",
|
|
202
|
+
"options": [
|
|
203
|
+
{
|
|
204
|
+
"label": "苹果",
|
|
205
|
+
"value": "apple"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"label": "香蕉",
|
|
209
|
+
"value": "banana"
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "蔬菜",
|
|
215
|
+
"key": "vegetables",
|
|
216
|
+
"options": [
|
|
217
|
+
{
|
|
218
|
+
"label": "土豆",
|
|
219
|
+
"value": "potato"
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"value": [
|
|
225
|
+
"banana",
|
|
226
|
+
"potato"
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"snippetId": "eo-checkbox[group]",
|
|
232
|
+
"title": {
|
|
233
|
+
"en": "Group General Checkbox",
|
|
234
|
+
"zh": "分组多选框"
|
|
235
|
+
},
|
|
236
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-checkbox[group].734638c747f0c79e72f2.svg"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"bricks": [
|
|
240
|
+
{
|
|
241
|
+
"description": {
|
|
242
|
+
"title": "使用icon类型样式案例",
|
|
243
|
+
"message": "icon图标来源可以为src(httpSrc/DataSrc)或平台的图标库"
|
|
244
|
+
},
|
|
245
|
+
"brick": "eo-checkbox",
|
|
246
|
+
"properties": {
|
|
247
|
+
"name": "icon",
|
|
248
|
+
"label": "图标",
|
|
249
|
+
"type": "icon",
|
|
250
|
+
"options": [
|
|
251
|
+
{
|
|
252
|
+
"icon": {
|
|
253
|
+
"imgSrc": "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"
|
|
254
|
+
},
|
|
255
|
+
"label": "area-chart",
|
|
256
|
+
"value": "area-chart"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"icon": {
|
|
260
|
+
"lib": "antd",
|
|
261
|
+
"icon": "bar-chart",
|
|
262
|
+
"theme": "outlined"
|
|
263
|
+
},
|
|
264
|
+
"label": "bar-chart",
|
|
265
|
+
"value": "bar-chart"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"icon": {
|
|
269
|
+
"lib": "antd",
|
|
270
|
+
"icon": "pie-chart",
|
|
271
|
+
"theme": "outlined"
|
|
272
|
+
},
|
|
273
|
+
"disabled": true,
|
|
274
|
+
"label": "pie-chart",
|
|
275
|
+
"value": "pie-chart"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"value": [
|
|
279
|
+
"area-chart",
|
|
280
|
+
"pie-chart"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"snippetId": "eo-checkbox[icon]",
|
|
286
|
+
"title": {
|
|
287
|
+
"en": "Icon General Checkbox",
|
|
288
|
+
"zh": "图标类型多选框"
|
|
289
|
+
},
|
|
290
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-checkbox[icon].8b68fbd3e3ceb58e356a.svg"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"bricks": [
|
|
294
|
+
{
|
|
295
|
+
"description": {
|
|
296
|
+
"title": "在icon模式下自定义样式案例"
|
|
297
|
+
},
|
|
298
|
+
"brick": "eo-checkbox",
|
|
299
|
+
"properties": {
|
|
300
|
+
"name": "icon",
|
|
301
|
+
"label": "图标",
|
|
302
|
+
"type": "icon",
|
|
303
|
+
"isCustom": true,
|
|
304
|
+
"options": [
|
|
305
|
+
{
|
|
306
|
+
"icon": {
|
|
307
|
+
"lib": "antd",
|
|
308
|
+
"icon": "area-chart",
|
|
309
|
+
"theme": "outlined"
|
|
310
|
+
},
|
|
311
|
+
"label": "area-chart",
|
|
312
|
+
"value": "area-chart-1"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"icon": {
|
|
316
|
+
"lib": "antd",
|
|
317
|
+
"icon": "bar-chart",
|
|
318
|
+
"theme": "outlined"
|
|
319
|
+
},
|
|
320
|
+
"label": "bar-chart",
|
|
321
|
+
"value": "bar-chart-1"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"icon": {
|
|
325
|
+
"lib": "antd",
|
|
326
|
+
"icon": "pie-chart",
|
|
327
|
+
"theme": "outlined"
|
|
328
|
+
},
|
|
329
|
+
"disabled": true,
|
|
330
|
+
"label": "pie-chart",
|
|
331
|
+
"value": "pie-chart-1"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"value": [
|
|
335
|
+
"area-chart-1",
|
|
336
|
+
"pie-chart-1"
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"snippetId": "eo-checkbox[custom-icon]",
|
|
342
|
+
"title": {
|
|
343
|
+
"en": "Custom Icon General Checkbox",
|
|
344
|
+
"zh": "自定义图标类型多选框"
|
|
345
|
+
},
|
|
346
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-checkbox[custom-icon].f460e2b8d744365b7f4d.svg"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"storyId": "eo-date-picker",
|
|
352
|
+
"text": {
|
|
353
|
+
"en": "Date Picker",
|
|
354
|
+
"zh": "日期选择框"
|
|
355
|
+
},
|
|
356
|
+
"description": {
|
|
357
|
+
"en": "",
|
|
358
|
+
"zh": ""
|
|
359
|
+
},
|
|
360
|
+
"icon": {
|
|
361
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-date-picker.a03268275a197bd79e42.svg"
|
|
362
|
+
},
|
|
363
|
+
"conf": [
|
|
364
|
+
{
|
|
365
|
+
"bricks": [
|
|
366
|
+
{
|
|
367
|
+
"description": {
|
|
368
|
+
"title": "基本都用法"
|
|
369
|
+
},
|
|
370
|
+
"brick": "eo-date-picker",
|
|
371
|
+
"properties": {
|
|
372
|
+
"name": "date",
|
|
373
|
+
"label": "hello",
|
|
374
|
+
"placeholder": "when",
|
|
375
|
+
"value": "2019-10-01",
|
|
376
|
+
"inputStyle": {
|
|
377
|
+
"width": 300
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
"snippetId": "eo-date-picker[basic]",
|
|
383
|
+
"title": {
|
|
384
|
+
"en": "Basic General Date Picker",
|
|
385
|
+
"zh": "基础日期选择框"
|
|
386
|
+
},
|
|
387
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-date-picker[basic].84147087c7f71bac2e52.svg"
|
|
388
|
+
}
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"storyId": "eo-dynamic-form-item",
|
|
393
|
+
"text": {
|
|
394
|
+
"en": "Dynamic Form Item",
|
|
395
|
+
"zh": "动态表单项"
|
|
396
|
+
},
|
|
397
|
+
"description": {
|
|
398
|
+
"en": "Multi-column display, dynamically add or delete each row of form items, currently supports input , select, and other related types",
|
|
399
|
+
"zh": "多列显示可以动态增加或删除的表单项,目前支持 input 和 select 等多种类型"
|
|
400
|
+
},
|
|
401
|
+
"icon": {
|
|
402
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-dynamic-form-item.8300cda0c0ae2b97814e.svg"
|
|
403
|
+
},
|
|
404
|
+
"conf": [
|
|
405
|
+
{
|
|
406
|
+
"bricks": [
|
|
407
|
+
{
|
|
408
|
+
"brick": "eo-dynamic-form-item",
|
|
409
|
+
"properties": {
|
|
410
|
+
"useBrick": [
|
|
411
|
+
{
|
|
412
|
+
"brick": "eo-input",
|
|
413
|
+
"properties": {
|
|
414
|
+
"name": "input"
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"brick": "eo-select",
|
|
419
|
+
"properties": {
|
|
420
|
+
"name": "select",
|
|
421
|
+
"options": [
|
|
422
|
+
"Beijing",
|
|
423
|
+
"Shanghai",
|
|
424
|
+
"Guangzhou",
|
|
425
|
+
"Shenzhen"
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
"label": "动态表单项",
|
|
431
|
+
"name": "dynamic",
|
|
432
|
+
"required": true
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"snippetId": "eo-dynamic-form-item[basic]",
|
|
437
|
+
"title": {
|
|
438
|
+
"en": "Basic Dynamic Form Item",
|
|
439
|
+
"zh": "基础动态表单项"
|
|
440
|
+
},
|
|
441
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-dynamic-form-item[basic].63dbd4318b013a8df6dd.svg"
|
|
442
|
+
}
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"storyId": "eo-form",
|
|
447
|
+
"text": {
|
|
448
|
+
"en": "General Form",
|
|
449
|
+
"zh": "普通表单"
|
|
450
|
+
},
|
|
451
|
+
"description": {
|
|
452
|
+
"en": "",
|
|
453
|
+
"zh": "通用表单容器"
|
|
454
|
+
},
|
|
455
|
+
"icon": {
|
|
456
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-form-item.313c448f2f3423981e46.svg"
|
|
457
|
+
},
|
|
458
|
+
"conf": [
|
|
459
|
+
{
|
|
460
|
+
"bricks": [
|
|
461
|
+
{
|
|
462
|
+
"description": {
|
|
463
|
+
"title": "基础表单",
|
|
464
|
+
"message": "基础用法"
|
|
465
|
+
},
|
|
466
|
+
"brick": "eo-form",
|
|
467
|
+
"properties": {
|
|
468
|
+
"name": "basic-form",
|
|
469
|
+
"layout": "vertical",
|
|
470
|
+
"values": {
|
|
471
|
+
"nickname": "lucy",
|
|
472
|
+
"username": "easyops"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"slots": {
|
|
476
|
+
"": {
|
|
477
|
+
"bricks": [
|
|
478
|
+
{
|
|
479
|
+
"brick": "eo-input",
|
|
480
|
+
"properties": {
|
|
481
|
+
"label": "用户名",
|
|
482
|
+
"labelTooltip": "一些帮助信息",
|
|
483
|
+
"name": "username",
|
|
484
|
+
"placeholder": "请输入用户名",
|
|
485
|
+
"required": true
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"brick": "eo-select",
|
|
490
|
+
"properties": {
|
|
491
|
+
"helpBrick": "这里是一些说明信息",
|
|
492
|
+
"inputStyle": {
|
|
493
|
+
"width": "100%"
|
|
494
|
+
},
|
|
495
|
+
"label": "昵称",
|
|
496
|
+
"name": "nickname",
|
|
497
|
+
"options": [
|
|
498
|
+
"jack",
|
|
499
|
+
"lucy"
|
|
500
|
+
],
|
|
501
|
+
"placeholder": "请输入密码"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"brick": "eo-submit-buttoms",
|
|
506
|
+
"properties": {
|
|
507
|
+
"cancelText": "取消",
|
|
508
|
+
"submitText": "提交"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"type": "bricks"
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
],
|
|
517
|
+
"snippetId": "eo-form[basic]",
|
|
518
|
+
"title": {
|
|
519
|
+
"en": "Basic General Form",
|
|
520
|
+
"zh": "基础表单"
|
|
521
|
+
},
|
|
522
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-form[basic].ae8af9ef7b682f073aa5.svg"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"bricks": [
|
|
526
|
+
{
|
|
527
|
+
"description": {
|
|
528
|
+
"title": "动态表单",
|
|
529
|
+
"message": "通过表单子项的notRender属性和setNotRender方法,实现动态表单"
|
|
530
|
+
},
|
|
531
|
+
"brick": "eo-form",
|
|
532
|
+
"properties": {
|
|
533
|
+
"name": "hello",
|
|
534
|
+
"layout": "vertical",
|
|
535
|
+
"values": {
|
|
536
|
+
"change": "descriptionA",
|
|
537
|
+
"username": "easyops"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"slots": {
|
|
541
|
+
"": {
|
|
542
|
+
"bricks": [
|
|
543
|
+
{
|
|
544
|
+
"brick": "eo-input",
|
|
545
|
+
"properties": {
|
|
546
|
+
"label": "用户名",
|
|
547
|
+
"message": {
|
|
548
|
+
"pattern": "只能包含小写字母、数字和-,且要以字母开头,不能超过64个字符",
|
|
549
|
+
"required": "用户名为必填项"
|
|
550
|
+
},
|
|
551
|
+
"name": "username",
|
|
552
|
+
"pattern": "^[a-z][-a-z0-9]{0,63}$",
|
|
553
|
+
"placeholder": "请输入用户名",
|
|
554
|
+
"required": true
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"brick": "eo-radio",
|
|
559
|
+
"properties": {
|
|
560
|
+
"label": "动态切换",
|
|
561
|
+
"name": "change",
|
|
562
|
+
"options": [
|
|
563
|
+
"descriptionA",
|
|
564
|
+
"descriptionB"
|
|
565
|
+
]
|
|
566
|
+
},
|
|
567
|
+
"events": {
|
|
568
|
+
"change": [
|
|
569
|
+
{
|
|
570
|
+
"args": [
|
|
571
|
+
"<% EVENT.detail.value !== 'descriptionA' %>"
|
|
572
|
+
],
|
|
573
|
+
"method": "setNotRender",
|
|
574
|
+
"target": "#descriptionA"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"args": [
|
|
578
|
+
"<% EVENT.detail.value !== 'descriptionB' %>"
|
|
579
|
+
],
|
|
580
|
+
"method": "setNotRender",
|
|
581
|
+
"target": "#descriptionB"
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"brick": "eo-textarea",
|
|
588
|
+
"properties": {
|
|
589
|
+
"id": "descriptionA",
|
|
590
|
+
"label": "描述A",
|
|
591
|
+
"max": 10,
|
|
592
|
+
"message": {
|
|
593
|
+
"max": "最长长度限制,10",
|
|
594
|
+
"required": "请输入内容"
|
|
595
|
+
},
|
|
596
|
+
"name": "descriptionA",
|
|
597
|
+
"placeholder": "请填写描述",
|
|
598
|
+
"required": true,
|
|
599
|
+
"value": "This is a long description"
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"brick": "eo-select",
|
|
604
|
+
"properties": {
|
|
605
|
+
"hidden": true,
|
|
606
|
+
"id": "descriptionB",
|
|
607
|
+
"inputStyle": {
|
|
608
|
+
"width": "100%"
|
|
609
|
+
},
|
|
610
|
+
"label": "描述B",
|
|
611
|
+
"name": "descriptionB",
|
|
612
|
+
"notRender": true,
|
|
613
|
+
"options": [
|
|
614
|
+
{
|
|
615
|
+
"label": "男",
|
|
616
|
+
"value": "male"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"label": "女",
|
|
620
|
+
"value": "female"
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"placeholder": "请填写描述",
|
|
624
|
+
"required": true
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"brick": "eo-submit-buttons",
|
|
629
|
+
"properties": {
|
|
630
|
+
"cancelText": "取消",
|
|
631
|
+
"submitText": "提交"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
],
|
|
635
|
+
"type": "bricks"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
],
|
|
640
|
+
"snippetId": "eo-form[dynamic]",
|
|
641
|
+
"title": {
|
|
642
|
+
"en": "Dynamic General Form",
|
|
643
|
+
"zh": "动态表单"
|
|
644
|
+
},
|
|
645
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-form[dynamic].d907da7e523fc716f0c0.svg"
|
|
646
|
+
}
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"storyId": "eo-icon-select",
|
|
651
|
+
"text": {
|
|
652
|
+
"en": "Icon Select",
|
|
653
|
+
"zh": "图标选择器"
|
|
654
|
+
},
|
|
655
|
+
"description": {
|
|
656
|
+
"en": "support for selecting icon and output data in specific format",
|
|
657
|
+
"zh": "支持选择图标并且输出特定格式的数据"
|
|
658
|
+
},
|
|
659
|
+
"icon": {
|
|
660
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-icon-select.40b77d33772f579559ce.svg"
|
|
661
|
+
},
|
|
662
|
+
"conf": [
|
|
663
|
+
{
|
|
664
|
+
"bricks": [
|
|
665
|
+
{
|
|
666
|
+
"brick": "eo-icon-select",
|
|
667
|
+
"properties": {
|
|
668
|
+
"value": {
|
|
669
|
+
"icon": "car",
|
|
670
|
+
"lib": "antd",
|
|
671
|
+
"theme": "outlined",
|
|
672
|
+
"color": "cyan"
|
|
673
|
+
},
|
|
674
|
+
"dataset": {
|
|
675
|
+
"testid": "basic-usage-demo"
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
],
|
|
680
|
+
"snippetId": "eo-icon-select[basic]",
|
|
681
|
+
"title": {
|
|
682
|
+
"en": "Basic Icon Select",
|
|
683
|
+
"zh": "基础图标选择器"
|
|
684
|
+
},
|
|
685
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-icon-select[basic].5cab54ec0533eee8e924.svg"
|
|
686
|
+
}
|
|
687
|
+
]
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"storyId": "eo-input",
|
|
691
|
+
"text": {
|
|
692
|
+
"en": "Input",
|
|
693
|
+
"zh": "输入框"
|
|
694
|
+
},
|
|
695
|
+
"description": {
|
|
696
|
+
"en": "",
|
|
697
|
+
"zh": ""
|
|
698
|
+
},
|
|
699
|
+
"icon": {
|
|
700
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-input.923ffec9dffa88c5c52a.svg"
|
|
701
|
+
},
|
|
702
|
+
"conf": [
|
|
703
|
+
{
|
|
704
|
+
"bricks": [
|
|
705
|
+
{
|
|
706
|
+
"brick": "eo-input",
|
|
707
|
+
"description": {
|
|
708
|
+
"title": "基本使用"
|
|
709
|
+
},
|
|
710
|
+
"properties": {
|
|
711
|
+
"name": "username",
|
|
712
|
+
"type": "text",
|
|
713
|
+
"label": "用户名",
|
|
714
|
+
"value": "test",
|
|
715
|
+
"placeholder": "请输入用户名"
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
"snippetId": "eo-input[basic]",
|
|
720
|
+
"title": {
|
|
721
|
+
"en": "Basic General Input",
|
|
722
|
+
"zh": "基础输入框"
|
|
723
|
+
},
|
|
724
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-input[basic].3705851faf207a8ecab3.svg"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"bricks": [
|
|
728
|
+
{
|
|
729
|
+
"brick": "eo-input",
|
|
730
|
+
"description": {
|
|
731
|
+
"title": "密码框"
|
|
732
|
+
},
|
|
733
|
+
"properties": {
|
|
734
|
+
"name": "password",
|
|
735
|
+
"type": "password",
|
|
736
|
+
"label": "密码",
|
|
737
|
+
"value": "123456",
|
|
738
|
+
"placeholder": "请输入密码"
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
],
|
|
742
|
+
"snippetId": "eo-input[password]",
|
|
743
|
+
"title": {
|
|
744
|
+
"en": "Password General Input",
|
|
745
|
+
"zh": "密码输入框"
|
|
746
|
+
},
|
|
747
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-input[password].fadd405ae4fbd4715f36.svg"
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"bricks": [
|
|
751
|
+
{
|
|
752
|
+
"brick": "eo-input",
|
|
753
|
+
"description": {
|
|
754
|
+
"title": "前缀,后缀"
|
|
755
|
+
},
|
|
756
|
+
"properties": {
|
|
757
|
+
"placeholder": "addon slot"
|
|
758
|
+
},
|
|
759
|
+
"slots": {
|
|
760
|
+
"addonBefore": {
|
|
761
|
+
"type": "bricks",
|
|
762
|
+
"bricks": [
|
|
763
|
+
{
|
|
764
|
+
"brick": "span",
|
|
765
|
+
"properties": {
|
|
766
|
+
"textContent": "https://"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
]
|
|
770
|
+
},
|
|
771
|
+
"addonAfter": {
|
|
772
|
+
"type": "bricks",
|
|
773
|
+
"bricks": [
|
|
774
|
+
{
|
|
775
|
+
"brick": "span",
|
|
776
|
+
"properties": {
|
|
777
|
+
"textContent": ".com"
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
"snippetId": "eo-input[with-addon]",
|
|
786
|
+
"title": {
|
|
787
|
+
"en": "General Input with Addon",
|
|
788
|
+
"zh": "带前后缀的输入框"
|
|
789
|
+
},
|
|
790
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-input[with-addon].e4ee2e945ece4456e95b.svg"
|
|
791
|
+
}
|
|
792
|
+
]
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"storyId": "eo-radio",
|
|
796
|
+
"text": {
|
|
797
|
+
"en": "Radio",
|
|
798
|
+
"zh": "单选框"
|
|
799
|
+
},
|
|
800
|
+
"description": {
|
|
801
|
+
"en": "general Radio",
|
|
802
|
+
"zh": "通用的单选框"
|
|
803
|
+
},
|
|
804
|
+
"icon": {
|
|
805
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-radio.f42b9e963c8987427cd9.svg"
|
|
806
|
+
},
|
|
807
|
+
"conf": [
|
|
808
|
+
{
|
|
809
|
+
"bricks": [
|
|
810
|
+
{
|
|
811
|
+
"brick": "eo-radio",
|
|
812
|
+
"properties": {
|
|
813
|
+
"dataset": {
|
|
814
|
+
"testid": "basic-usage-demo"
|
|
815
|
+
},
|
|
816
|
+
"name": "city",
|
|
817
|
+
"label": "城市",
|
|
818
|
+
"value": "Shanghai",
|
|
819
|
+
"options": [
|
|
820
|
+
"Shanghai",
|
|
821
|
+
"Beijing",
|
|
822
|
+
"Chengdu"
|
|
823
|
+
]
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"snippetId": "eo-radio[basic]",
|
|
828
|
+
"title": {
|
|
829
|
+
"en": "Basic General Radio",
|
|
830
|
+
"zh": "基础单选框"
|
|
831
|
+
},
|
|
832
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-radio[basic].59a556b92cbb2cfb32f1.svg"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"bricks": [
|
|
836
|
+
{
|
|
837
|
+
"brick": "eo-radio",
|
|
838
|
+
"properties": {
|
|
839
|
+
"name": "city",
|
|
840
|
+
"label": "城市",
|
|
841
|
+
"value": "Shanghai",
|
|
842
|
+
"type": "button",
|
|
843
|
+
"options": [
|
|
844
|
+
{
|
|
845
|
+
"label": "上海",
|
|
846
|
+
"value": "Shanghai"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"label": "北京",
|
|
850
|
+
"value": "Beijing"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"label": "成都",
|
|
854
|
+
"value": "Chengdu"
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
"snippetId": "eo-radio[button]",
|
|
861
|
+
"title": {
|
|
862
|
+
"en": "Button General Radio",
|
|
863
|
+
"zh": "按钮单选框"
|
|
864
|
+
},
|
|
865
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-radio[button].996b2806fe2189ac0b8c.svg"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"bricks": [
|
|
869
|
+
{
|
|
870
|
+
"brick": "eo-radio",
|
|
871
|
+
"description": {
|
|
872
|
+
"title": "当type = default时,给radio设置图标"
|
|
873
|
+
},
|
|
874
|
+
"properties": {
|
|
875
|
+
"label": "城市",
|
|
876
|
+
"name": "city",
|
|
877
|
+
"options": [
|
|
878
|
+
{
|
|
879
|
+
"label": "上海",
|
|
880
|
+
"value": "Shanghai",
|
|
881
|
+
"icon": {
|
|
882
|
+
"icon": "bar-chart",
|
|
883
|
+
"lib": "antd",
|
|
884
|
+
"theme": "outlined",
|
|
885
|
+
"iconStyle": {
|
|
886
|
+
"color": "blue",
|
|
887
|
+
"fontSize": "18px"
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"icon": {
|
|
893
|
+
"imgSrc": "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
894
|
+
"imgStyle": {
|
|
895
|
+
"objectFit": "cover",
|
|
896
|
+
"borderRadius": "50%"
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"label": "北京",
|
|
900
|
+
"value": "Beijing"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"label": "成都",
|
|
904
|
+
"value": "Chengdu",
|
|
905
|
+
"icon": {
|
|
906
|
+
"color": {
|
|
907
|
+
"endColor": "var(--palette-blue-6)",
|
|
908
|
+
"startColor": "var(--palette-red-6)"
|
|
909
|
+
},
|
|
910
|
+
"icon": "aim",
|
|
911
|
+
"lib": "antd",
|
|
912
|
+
"theme": "outlined"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
],
|
|
916
|
+
"value": "Beijing"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
],
|
|
920
|
+
"snippetId": "eo-radio[with-icon]",
|
|
921
|
+
"title": {
|
|
922
|
+
"en": "General Radio with Icon",
|
|
923
|
+
"zh": "带图标选项的单选框"
|
|
924
|
+
},
|
|
925
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-radio[with-icon].72e7f529ec97ebb0a24d.svg"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"bricks": [
|
|
929
|
+
{
|
|
930
|
+
"description": {
|
|
931
|
+
"title": "使用图标按钮样式"
|
|
932
|
+
},
|
|
933
|
+
"brick": "eo-radio",
|
|
934
|
+
"events": {
|
|
935
|
+
"general.radio.change": {
|
|
936
|
+
"action": "console.log",
|
|
937
|
+
"args": [
|
|
938
|
+
"<% EVENT.detail %>"
|
|
939
|
+
]
|
|
940
|
+
}
|
|
941
|
+
},
|
|
942
|
+
"properties": {
|
|
943
|
+
"label": "图表",
|
|
944
|
+
"name": "chart",
|
|
945
|
+
"options": [
|
|
946
|
+
{
|
|
947
|
+
"icon": {
|
|
948
|
+
"lib": "antd",
|
|
949
|
+
"icon": "area-chart",
|
|
950
|
+
"theme": "outlined"
|
|
951
|
+
},
|
|
952
|
+
"value": "area-chart"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"icon": {
|
|
956
|
+
"lib": "antd",
|
|
957
|
+
"icon": "bar-chart",
|
|
958
|
+
"theme": "outlined"
|
|
959
|
+
},
|
|
960
|
+
"value": "bar-chart"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"icon": {
|
|
964
|
+
"lib": "antd",
|
|
965
|
+
"icon": "pie-chart",
|
|
966
|
+
"theme": "outlined"
|
|
967
|
+
},
|
|
968
|
+
"value": "pie-chart"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"icon": {
|
|
972
|
+
"lib": "antd",
|
|
973
|
+
"icon": "radar-chart",
|
|
974
|
+
"theme": "outlined"
|
|
975
|
+
},
|
|
976
|
+
"value": "radar-chart"
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
"type": "button",
|
|
980
|
+
"value": "Shanghai"
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
"snippetId": "eo-radio[icon-button]",
|
|
985
|
+
"title": {
|
|
986
|
+
"en": "Icon Button General Radio",
|
|
987
|
+
"zh": "图标按钮单选框"
|
|
988
|
+
},
|
|
989
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-radio[icon-button].7b24f97dbf5d206b6102.svg"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"bricks": [
|
|
993
|
+
{
|
|
994
|
+
"description": {
|
|
995
|
+
"title": "使用icon类型样式案例"
|
|
996
|
+
},
|
|
997
|
+
"brick": "eo-radio",
|
|
998
|
+
"properties": {
|
|
999
|
+
"label": "图标",
|
|
1000
|
+
"name": "icon",
|
|
1001
|
+
"options": [
|
|
1002
|
+
{
|
|
1003
|
+
"icon": {
|
|
1004
|
+
"lib": "antd",
|
|
1005
|
+
"icon": "area-chart",
|
|
1006
|
+
"theme": "outlined"
|
|
1007
|
+
},
|
|
1008
|
+
"label": "area-chart",
|
|
1009
|
+
"value": "area-chart"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"icon": {
|
|
1013
|
+
"lib": "antd",
|
|
1014
|
+
"icon": "bar-chart",
|
|
1015
|
+
"theme": "outlined"
|
|
1016
|
+
},
|
|
1017
|
+
"label": "bar-chart",
|
|
1018
|
+
"value": "bar-chart"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"icon": {
|
|
1022
|
+
"lib": "antd",
|
|
1023
|
+
"icon": "pie-chart",
|
|
1024
|
+
"theme": "outlined"
|
|
1025
|
+
},
|
|
1026
|
+
"label": "pie-chart",
|
|
1027
|
+
"value": "pie-chart"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"type": "icon",
|
|
1031
|
+
"value": "area-chart"
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
"snippetId": "eo-radio[icon]",
|
|
1036
|
+
"title": {
|
|
1037
|
+
"en": "Icon General Radio",
|
|
1038
|
+
"zh": "图标单选框"
|
|
1039
|
+
},
|
|
1040
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-radio[icon].423895fc58b38cf1c265.svg"
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1043
|
+
"previewColumns": 2
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"storyId": "eo-select",
|
|
1047
|
+
"text": {
|
|
1048
|
+
"en": "Select",
|
|
1049
|
+
"zh": "下拉选择器"
|
|
1050
|
+
},
|
|
1051
|
+
"description": {
|
|
1052
|
+
"en": "",
|
|
1053
|
+
"zh": ""
|
|
1054
|
+
},
|
|
1055
|
+
"icon": {
|
|
1056
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-select.4298d21b2786c930cf7c.svg"
|
|
1057
|
+
},
|
|
1058
|
+
"conf": [
|
|
1059
|
+
{
|
|
1060
|
+
"bricks": [
|
|
1061
|
+
{
|
|
1062
|
+
"brick": "eo-select",
|
|
1063
|
+
"properties": {
|
|
1064
|
+
"dataset": {
|
|
1065
|
+
"testid": "basic-usage-demo"
|
|
1066
|
+
},
|
|
1067
|
+
"name": "gender",
|
|
1068
|
+
"label": "性别",
|
|
1069
|
+
"value": "female",
|
|
1070
|
+
"placeholder": "请选择性别",
|
|
1071
|
+
"emptyOption": {
|
|
1072
|
+
"label": "不分性别",
|
|
1073
|
+
"value": ""
|
|
1074
|
+
},
|
|
1075
|
+
"options": [
|
|
1076
|
+
{
|
|
1077
|
+
"label": "男",
|
|
1078
|
+
"value": "male"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"label": "女",
|
|
1082
|
+
"value": "female"
|
|
1083
|
+
}
|
|
1084
|
+
],
|
|
1085
|
+
"inputStyle": {
|
|
1086
|
+
"width": 120
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
],
|
|
1091
|
+
"snippetId": "eo-select[basic]",
|
|
1092
|
+
"title": {
|
|
1093
|
+
"en": "Basic General Select",
|
|
1094
|
+
"zh": "基础下拉选择器"
|
|
1095
|
+
},
|
|
1096
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-select[basic].be14874bf05171f726fd.svg"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"bricks": [
|
|
1100
|
+
{
|
|
1101
|
+
"brick": "eo-select",
|
|
1102
|
+
"properties": {
|
|
1103
|
+
"dataset": {
|
|
1104
|
+
"testid": "multiple-demo"
|
|
1105
|
+
},
|
|
1106
|
+
"mode": "multiple",
|
|
1107
|
+
"name": "city",
|
|
1108
|
+
"label": "城市(多选)",
|
|
1109
|
+
"value": [
|
|
1110
|
+
"Japan",
|
|
1111
|
+
"China"
|
|
1112
|
+
],
|
|
1113
|
+
"options": [
|
|
1114
|
+
{
|
|
1115
|
+
"label": "中国",
|
|
1116
|
+
"value": "China"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"label": "日本",
|
|
1120
|
+
"value": "Japan"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"label": "韩国",
|
|
1124
|
+
"value": "Korea"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"label": "美国",
|
|
1128
|
+
"value": "USA"
|
|
1129
|
+
}
|
|
1130
|
+
],
|
|
1131
|
+
"inputStyle": {
|
|
1132
|
+
"width": 250
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
],
|
|
1137
|
+
"snippetId": "eo-select[multi]",
|
|
1138
|
+
"title": {
|
|
1139
|
+
"en": "Multi General Select",
|
|
1140
|
+
"zh": "多选下拉选择器"
|
|
1141
|
+
},
|
|
1142
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-select[multi].ba65bc72b361663fe64a.svg"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
"bricks": [
|
|
1146
|
+
{
|
|
1147
|
+
"brick": "eo-select",
|
|
1148
|
+
"properties": {
|
|
1149
|
+
"dataset": {
|
|
1150
|
+
"testid": "group-by-demo"
|
|
1151
|
+
},
|
|
1152
|
+
"inputStyle": {
|
|
1153
|
+
"width": 250
|
|
1154
|
+
},
|
|
1155
|
+
"name": "city",
|
|
1156
|
+
"label": "城市(分组显示)",
|
|
1157
|
+
"groupBy": "location",
|
|
1158
|
+
"options": [
|
|
1159
|
+
{
|
|
1160
|
+
"label": "中国",
|
|
1161
|
+
"value": "China",
|
|
1162
|
+
"location": "亚洲"
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"label": "韩国",
|
|
1166
|
+
"value": "Korea",
|
|
1167
|
+
"location": "亚洲"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"label": "日本",
|
|
1171
|
+
"value": "Japan",
|
|
1172
|
+
"location": "亚洲"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"label": "美国",
|
|
1176
|
+
"value": "USA",
|
|
1177
|
+
"location": "北美洲"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"label": "加拿大",
|
|
1181
|
+
"value": "Canada",
|
|
1182
|
+
"location": "北美洲"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"label": "英国",
|
|
1186
|
+
"value": "UK",
|
|
1187
|
+
"location": "欧洲"
|
|
1188
|
+
}
|
|
1189
|
+
]
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"snippetId": "eo-select[group]",
|
|
1194
|
+
"title": {
|
|
1195
|
+
"en": "Group General Select",
|
|
1196
|
+
"zh": "分组下拉选择器"
|
|
1197
|
+
},
|
|
1198
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-select.4298d21b2786c930cf7c.svg"
|
|
1199
|
+
}
|
|
1200
|
+
]
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"storyId": "eo-checkbox",
|
|
1204
|
+
"text": {
|
|
1205
|
+
"en": "General buttons",
|
|
1206
|
+
"zh": "表单提交按钮"
|
|
1207
|
+
},
|
|
1208
|
+
"description": {
|
|
1209
|
+
"en": "can be used in general-forms,support to set submit button and cancel button",
|
|
1210
|
+
"zh": "用于general-forms的通用按钮,可以配置submit按钮和cancel按钮"
|
|
1211
|
+
},
|
|
1212
|
+
"icon": {
|
|
1213
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-submit-buttons.bd5d1baf8d8d1e418569.svg"
|
|
1214
|
+
},
|
|
1215
|
+
"conf": [
|
|
1216
|
+
{
|
|
1217
|
+
"bricks": [
|
|
1218
|
+
{
|
|
1219
|
+
"brick": "eo-submit-buttons",
|
|
1220
|
+
"properties": {
|
|
1221
|
+
"submitText": "提交",
|
|
1222
|
+
"cancelText": "取消",
|
|
1223
|
+
"dataset": {
|
|
1224
|
+
"testid": "basic-usage-demo"
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
],
|
|
1229
|
+
"snippetId": "eo-submit-buttons[basic]",
|
|
1230
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-submit-buttons[basic].22f9432af1089ee62e36.svg",
|
|
1231
|
+
"title": {
|
|
1232
|
+
"en": "Basic General Buttons",
|
|
1233
|
+
"zh": "基础表单提交按钮"
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"storyId": "eo-switch",
|
|
1240
|
+
"text": {
|
|
1241
|
+
"en": "Switch",
|
|
1242
|
+
"zh": "开关"
|
|
1243
|
+
},
|
|
1244
|
+
"description": {
|
|
1245
|
+
"en": "general switch",
|
|
1246
|
+
"zh": "通用的开关"
|
|
1247
|
+
},
|
|
1248
|
+
"icon": {
|
|
1249
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-switch.dacd876f74a586f97923.svg"
|
|
1250
|
+
},
|
|
1251
|
+
"conf": [
|
|
1252
|
+
{
|
|
1253
|
+
"bricks": [
|
|
1254
|
+
{
|
|
1255
|
+
"brick": "eo-switch",
|
|
1256
|
+
"properties": {
|
|
1257
|
+
"label": "开关",
|
|
1258
|
+
"name": "enabled"
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
],
|
|
1262
|
+
"snippetId": "eo-switch[basic]",
|
|
1263
|
+
"title": {
|
|
1264
|
+
"en": "Basic General Switch",
|
|
1265
|
+
"zh": "基础开关"
|
|
1266
|
+
},
|
|
1267
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-switch[basic].c35a00e0a42b8dbbc698.svg"
|
|
1268
|
+
}
|
|
1269
|
+
]
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"storyId": "eo-textarea",
|
|
1273
|
+
"text": {
|
|
1274
|
+
"en": "Text Area",
|
|
1275
|
+
"zh": "多行文本输入框"
|
|
1276
|
+
},
|
|
1277
|
+
"description": {
|
|
1278
|
+
"en": "autoSize, value and placeholder configurable",
|
|
1279
|
+
"zh": "可支持配置 autoSize, value 和 placeholder"
|
|
1280
|
+
},
|
|
1281
|
+
"icon": {
|
|
1282
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-textarea.4f2feadec04ceb3c433d.svg"
|
|
1283
|
+
},
|
|
1284
|
+
"conf": [
|
|
1285
|
+
{
|
|
1286
|
+
"bricks": [
|
|
1287
|
+
{
|
|
1288
|
+
"brick": "eo-textarea",
|
|
1289
|
+
"properties": {
|
|
1290
|
+
"autoSize": {
|
|
1291
|
+
"maxRows": 8,
|
|
1292
|
+
"minRows": 3
|
|
1293
|
+
},
|
|
1294
|
+
"label": "描述",
|
|
1295
|
+
"max": 10,
|
|
1296
|
+
"message": {
|
|
1297
|
+
"max": "最长长度限制,10",
|
|
1298
|
+
"required": "请输入内容"
|
|
1299
|
+
},
|
|
1300
|
+
"name": "description",
|
|
1301
|
+
"placeholder": "请填写描述",
|
|
1302
|
+
"required": true,
|
|
1303
|
+
"value": "This is a long description"
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
],
|
|
1307
|
+
"snippetId": "eo-textarea[basic]",
|
|
1308
|
+
"title": {
|
|
1309
|
+
"en": "Basic General TextArea",
|
|
1310
|
+
"zh": "基础多行文本输入框"
|
|
1311
|
+
},
|
|
1312
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-textarea[basic].a94739b505bb6632a017.svg"
|
|
1313
|
+
}
|
|
1314
|
+
]
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"storyId": "eo-time-picker",
|
|
1318
|
+
"text": {
|
|
1319
|
+
"en": "Time Picker",
|
|
1320
|
+
"zh": "时间选择器"
|
|
1321
|
+
},
|
|
1322
|
+
"description": {
|
|
1323
|
+
"en": "",
|
|
1324
|
+
"zh": ""
|
|
1325
|
+
},
|
|
1326
|
+
"icon": {
|
|
1327
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-time-picker.235f41986c771d2921b5.svg"
|
|
1328
|
+
},
|
|
1329
|
+
"conf": [
|
|
1330
|
+
{
|
|
1331
|
+
"bricks": [
|
|
1332
|
+
{
|
|
1333
|
+
"brick": "eo-time-picker",
|
|
1334
|
+
"properties": {
|
|
1335
|
+
"configProps": {
|
|
1336
|
+
"format": "HH:mm",
|
|
1337
|
+
"minuteStep": 5
|
|
1338
|
+
},
|
|
1339
|
+
"name": "time",
|
|
1340
|
+
"label": "hello",
|
|
1341
|
+
"placeholder": "when",
|
|
1342
|
+
"value": "09:14:30"
|
|
1343
|
+
},
|
|
1344
|
+
"events": {
|
|
1345
|
+
"general.time.change": {
|
|
1346
|
+
"action": "console.log",
|
|
1347
|
+
"args": [
|
|
1348
|
+
"time",
|
|
1349
|
+
"${EVENT.detail}"
|
|
1350
|
+
]
|
|
1351
|
+
},
|
|
1352
|
+
"general.time.close": {
|
|
1353
|
+
"action": "console.log"
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
],
|
|
1358
|
+
"snippetId": "eo-time-picker[basic]",
|
|
1359
|
+
"title": {
|
|
1360
|
+
"en": "Basic General Time Picker",
|
|
1361
|
+
"zh": "基础时间选择器"
|
|
1362
|
+
},
|
|
1363
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-time-picker[basic].a12da6e9cd12ee9dd787.svg"
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"storyId": "eo-time-range-picker",
|
|
1369
|
+
"text": {
|
|
1370
|
+
"en": "Time Range Picker",
|
|
1371
|
+
"zh": "时间段选择器"
|
|
1372
|
+
},
|
|
1373
|
+
"description": {
|
|
1374
|
+
"en": "combined by two time pickers",
|
|
1375
|
+
"zh": "由两个时间选择器组成"
|
|
1376
|
+
},
|
|
1377
|
+
"icon": {
|
|
1378
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-time-range-picker.efe0b4c059e54f79f248.svg"
|
|
1379
|
+
},
|
|
1380
|
+
"conf": [
|
|
1381
|
+
{
|
|
1382
|
+
"bricks": [
|
|
1383
|
+
{
|
|
1384
|
+
"brick": "eo-time-range-picker",
|
|
1385
|
+
"properties": {
|
|
1386
|
+
"label": "hello",
|
|
1387
|
+
"name": "time",
|
|
1388
|
+
"rangeType": "time",
|
|
1389
|
+
"required": true
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
],
|
|
1393
|
+
"snippetId": "eo-time-range-picker[basic]",
|
|
1394
|
+
"title": {
|
|
1395
|
+
"en": "Basic Time Range Picker",
|
|
1396
|
+
"zh": "基础时间段选择器"
|
|
1397
|
+
},
|
|
1398
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-time-range-picker[basic].4bc27c8d17100e965983.svg"
|
|
1399
|
+
}
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"storyId": "eo-upload-file",
|
|
1404
|
+
"text": {
|
|
1405
|
+
"en": "Custom storage uploads files",
|
|
1406
|
+
"zh": "自定义存储上传文件"
|
|
1407
|
+
},
|
|
1408
|
+
"description": {
|
|
1409
|
+
"en": "upload files by specific API",
|
|
1410
|
+
"zh": "上传文件,适用于表单项中对接provider"
|
|
1411
|
+
},
|
|
1412
|
+
"icon": {
|
|
1413
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-upload-files.e2f8aa6d4fc184159871.svg"
|
|
1414
|
+
},
|
|
1415
|
+
"conf": [
|
|
1416
|
+
{
|
|
1417
|
+
"bricks": [
|
|
1418
|
+
{
|
|
1419
|
+
"brick": "eo-upload-file",
|
|
1420
|
+
"properties": {
|
|
1421
|
+
"maxCount": 2
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
],
|
|
1425
|
+
"snippetId": "eo-upload-file[basic]",
|
|
1426
|
+
"title": {
|
|
1427
|
+
"en": "Basic Upload Files",
|
|
1428
|
+
"zh": "基础自定义存储上传文件"
|
|
1429
|
+
},
|
|
1430
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-upload-files.e2f8aa6d4fc184159871.svg"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"bricks": [
|
|
1434
|
+
{
|
|
1435
|
+
"brick": "eo-upload-file",
|
|
1436
|
+
"properties": {
|
|
1437
|
+
"style": {
|
|
1438
|
+
"width": "300px"
|
|
1439
|
+
},
|
|
1440
|
+
"uploadDraggable": true,
|
|
1441
|
+
"maxCount": 2,
|
|
1442
|
+
"multiple": true,
|
|
1443
|
+
"accept": "image/*",
|
|
1444
|
+
"draggableUploadTip": "支持上传图片"
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
],
|
|
1448
|
+
"snippetId": "eo-upload-file[draggable]",
|
|
1449
|
+
"title": {
|
|
1450
|
+
"en": "Draggable Upload Files",
|
|
1451
|
+
"zh": "可拖拽自定义存储上传文件"
|
|
1452
|
+
},
|
|
1453
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-upload-files[basic].4998a72b73c930e0b105.svg"
|
|
1454
|
+
}
|
|
1455
|
+
]
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
"storyId": "eo-upload-image",
|
|
1459
|
+
"text": {
|
|
1460
|
+
"en": "upload img",
|
|
1461
|
+
"zh": "上传图片"
|
|
1462
|
+
},
|
|
1463
|
+
"description": {
|
|
1464
|
+
"en": "upload image",
|
|
1465
|
+
"zh": "对接平台对象存储,提供上传图片功能的构件"
|
|
1466
|
+
},
|
|
1467
|
+
"icon": {
|
|
1468
|
+
"imgSrc": "bricks/form/dist/stories-assets/eo-upload-img.dc97bbdb0941135c7354.svg"
|
|
1469
|
+
},
|
|
1470
|
+
"conf": [
|
|
1471
|
+
{
|
|
1472
|
+
"bricks": [
|
|
1473
|
+
{
|
|
1474
|
+
"brick": "eo-upload-image",
|
|
1475
|
+
"properties": {
|
|
1476
|
+
"label": "图片上传",
|
|
1477
|
+
"maxNumber": 1,
|
|
1478
|
+
"bucketName": "test"
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
],
|
|
1482
|
+
"snippetId": "eo-upload-image[basic]",
|
|
1483
|
+
"title": {
|
|
1484
|
+
"en": "Basic Upload Img",
|
|
1485
|
+
"zh": "基础上传图片"
|
|
1486
|
+
},
|
|
1487
|
+
"thumbnail": "bricks/form/dist/stories-assets/eo-upload-img[basic].06aea44831bc8d20d027.svg"
|
|
1488
|
+
}
|
|
1489
|
+
]
|
|
1490
|
+
}
|
|
1491
|
+
]
|