@next-bricks/form 1.13.8 → 1.13.9

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.
Files changed (50) hide show
  1. package/dist/bricks.json +33 -33
  2. package/dist/chunks/4766.0f692a31.js +3 -0
  3. package/dist/chunks/4766.0f692a31.js.map +1 -0
  4. package/dist/chunks/{4837.5782f5bd.js → 4837.20cc4292.js} +2 -2
  5. package/dist/chunks/{4837.5782f5bd.js.map → 4837.20cc4292.js.map} +1 -1
  6. package/dist/chunks/{7218.8ed93f51.js → 7218.a0fe6307.js} +2 -2
  7. package/dist/chunks/{7218.8ed93f51.js.map → 7218.a0fe6307.js.map} +1 -1
  8. package/dist/chunks/{9259.7778bbaf.js → 9259.6eb2bb86.js} +3 -3
  9. package/dist/chunks/{9259.7778bbaf.js.map → 9259.6eb2bb86.js.map} +1 -1
  10. package/dist/chunks/{eo-color-picker.9cba3082.js → eo-color-picker.b71447b7.js} +2 -2
  11. package/dist/chunks/{eo-color-picker.9cba3082.js.map → eo-color-picker.b71447b7.js.map} +1 -1
  12. package/dist/chunks/{eo-date-picker.1f4e55b2.js → eo-date-picker.a125efb4.js} +2 -2
  13. package/dist/chunks/{eo-date-picker.1f4e55b2.js.map → eo-date-picker.a125efb4.js.map} +1 -1
  14. package/dist/chunks/{eo-dynamic-form-item.05008202.js → eo-dynamic-form-item.fc720c11.js} +3 -3
  15. package/dist/chunks/{eo-dynamic-form-item.05008202.js.map → eo-dynamic-form-item.fc720c11.js.map} +1 -1
  16. package/dist/chunks/{eo-form-item.4ddcda40.js → eo-form-item.5c977a88.js} +3 -3
  17. package/dist/chunks/{eo-form-item.4ddcda40.js.map → eo-form-item.5c977a88.js.map} +1 -1
  18. package/dist/chunks/{eo-radio.c584bd27.js → eo-radio.5a4bc4f8.js} +3 -3
  19. package/dist/chunks/{eo-radio.c584bd27.js.map → eo-radio.5a4bc4f8.js.map} +1 -1
  20. package/dist/chunks/{eo-select.28c15503.js → eo-select.02033b6a.js} +3 -3
  21. package/dist/chunks/{eo-select.28c15503.js.map → eo-select.02033b6a.js.map} +1 -1
  22. package/dist/chunks/{eo-time-picker.d81de579.js → eo-time-picker.d9565b91.js} +2 -2
  23. package/dist/chunks/{eo-time-picker.d81de579.js.map → eo-time-picker.d9565b91.js.map} +1 -1
  24. package/dist/chunks/{eo-time-range-picker.15057d2a.js → eo-time-range-picker.e8d8c902.js} +2 -2
  25. package/dist/chunks/{eo-time-range-picker.15057d2a.js.map → eo-time-range-picker.e8d8c902.js.map} +1 -1
  26. package/dist/chunks/{eo-upload-file.15c30d10.js → eo-upload-file.be14c808.js} +3 -3
  27. package/dist/chunks/{eo-upload-file.15c30d10.js.map → eo-upload-file.be14c808.js.map} +1 -1
  28. package/dist/chunks/{eo-upload-image.b96a2fcc.js → eo-upload-image.1a8b6627.js} +3 -3
  29. package/dist/chunks/{eo-upload-image.b96a2fcc.js.map → eo-upload-image.1a8b6627.js.map} +1 -1
  30. package/dist/chunks/main.360ad7e1.js +2 -0
  31. package/dist/chunks/{main.0009a6af.js.map → main.360ad7e1.js.map} +1 -1
  32. package/dist/examples.json +11 -11
  33. package/dist/index.93fdb6c8.js +2 -0
  34. package/dist/index.93fdb6c8.js.map +1 -0
  35. package/dist/manifest.json +476 -476
  36. package/dist/types.json +977 -977
  37. package/package.json +3 -3
  38. package/dist/chunks/799.72fa2e89.js +0 -3
  39. package/dist/chunks/799.72fa2e89.js.map +0 -1
  40. package/dist/chunks/main.0009a6af.js +0 -2
  41. package/dist/index.a96799f8.js +0 -2
  42. package/dist/index.a96799f8.js.map +0 -1
  43. /package/dist/chunks/{799.72fa2e89.js.LICENSE.txt → 4766.0f692a31.js.LICENSE.txt} +0 -0
  44. /package/dist/chunks/{9259.7778bbaf.js.LICENSE.txt → 9259.6eb2bb86.js.LICENSE.txt} +0 -0
  45. /package/dist/chunks/{eo-dynamic-form-item.05008202.js.LICENSE.txt → eo-dynamic-form-item.fc720c11.js.LICENSE.txt} +0 -0
  46. /package/dist/chunks/{eo-form-item.4ddcda40.js.LICENSE.txt → eo-form-item.5c977a88.js.LICENSE.txt} +0 -0
  47. /package/dist/chunks/{eo-radio.c584bd27.js.LICENSE.txt → eo-radio.5a4bc4f8.js.LICENSE.txt} +0 -0
  48. /package/dist/chunks/{eo-select.28c15503.js.LICENSE.txt → eo-select.02033b6a.js.LICENSE.txt} +0 -0
  49. /package/dist/chunks/{eo-upload-file.15c30d10.js.LICENSE.txt → eo-upload-file.be14c808.js.LICENSE.txt} +0 -0
  50. /package/dist/chunks/{eo-upload-image.b96a2fcc.js.LICENSE.txt → eo-upload-image.1a8b6627.js.LICENSE.txt} +0 -0
@@ -3,6 +3,191 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-input",
8
+ "alias": [
9
+ "form.general-input"
10
+ ],
11
+ "properties": [
12
+ {
13
+ "name": "name",
14
+ "description": "字段名称",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "label",
19
+ "description": "标签文字",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "required",
24
+ "description": "是否必填",
25
+ "type": "boolean"
26
+ },
27
+ {
28
+ "name": "pattern",
29
+ "description": "正则校验规则",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "max",
34
+ "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
35
+ "type": "number"
36
+ },
37
+ {
38
+ "name": "min",
39
+ "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "message",
44
+ "description": "错误时显示消息",
45
+ "attribute": false,
46
+ "type": "Record<string, string>"
47
+ },
48
+ {
49
+ "name": "value",
50
+ "description": "输入框值",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "placeholder",
55
+ "description": "占位说明",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "name": "disabled",
60
+ "description": "是否禁用",
61
+ "type": "boolean"
62
+ },
63
+ {
64
+ "name": "readonly",
65
+ "description": "是否只读",
66
+ "type": "boolean"
67
+ },
68
+ {
69
+ "name": "clearable",
70
+ "description": "是否显示清除按钮",
71
+ "type": "boolean"
72
+ },
73
+ {
74
+ "name": "autoFocus",
75
+ "description": "是否自动聚焦",
76
+ "type": "boolean"
77
+ },
78
+ {
79
+ "name": "type",
80
+ "description": "类型",
81
+ "default": "\"text\"",
82
+ "type": "InputType"
83
+ },
84
+ {
85
+ "name": "size",
86
+ "description": "大小",
87
+ "default": "\"medium\"",
88
+ "type": "ComponentSize"
89
+ },
90
+ {
91
+ "name": "minLength",
92
+ "description": "最小长度",
93
+ "type": "number"
94
+ },
95
+ {
96
+ "name": "maxLength",
97
+ "description": "最大长度(用户无法输入超过此最大长度的字符串)",
98
+ "type": "number"
99
+ },
100
+ {
101
+ "name": "inputStyle",
102
+ "description": "输入框样式",
103
+ "attribute": false,
104
+ "type": "React.CSSProperties"
105
+ },
106
+ {
107
+ "name": "validator",
108
+ "description": "表单项校验方法",
109
+ "attribute": false,
110
+ "type": "((value: any) => MessageBody)"
111
+ }
112
+ ],
113
+ "events": [
114
+ {
115
+ "name": "change",
116
+ "description": "值改变事件",
117
+ "detail": {
118
+ "type": "string"
119
+ }
120
+ }
121
+ ],
122
+ "slots": [
123
+ {
124
+ "name": "addonBefore",
125
+ "description": "输入框前置标签"
126
+ },
127
+ {
128
+ "name": "addonAfter",
129
+ "description": "输入框后置标签"
130
+ },
131
+ {
132
+ "name": "prefix",
133
+ "description": "输入框前缀图标"
134
+ },
135
+ {
136
+ "name": "suffix",
137
+ "description": "输入框后缀图标"
138
+ }
139
+ ],
140
+ "methods": [
141
+ {
142
+ "name": "focusInput",
143
+ "params": [],
144
+ "description": "focus",
145
+ "returns": {}
146
+ },
147
+ {
148
+ "name": "blurInput",
149
+ "params": [],
150
+ "description": "blur",
151
+ "returns": {}
152
+ }
153
+ ],
154
+ "parts": [
155
+ {
156
+ "name": "addon-wrapper",
157
+ "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
158
+ },
159
+ {
160
+ "name": "affix-wrapper",
161
+ "description": "包裹输入组件、前缀和后缀的容器"
162
+ },
163
+ {
164
+ "name": "input",
165
+ "description": "输入组件"
166
+ },
167
+ {
168
+ "name": "clear-icon",
169
+ "description": "清除按钮"
170
+ },
171
+ {
172
+ "name": "prefix",
173
+ "description": "输入框前缀容器"
174
+ },
175
+ {
176
+ "name": "suffix",
177
+ "description": "输入框后缀容器"
178
+ },
179
+ {
180
+ "name": "before-addon",
181
+ "description": "输入框前置容器"
182
+ },
183
+ {
184
+ "name": "after-addon",
185
+ "description": "输入框后置容器"
186
+ }
187
+ ],
188
+ "description": "通用输入框构件",
189
+ "category": "form-input-basic"
190
+ },
6
191
  {
7
192
  "name": "eo-form",
8
193
  "alias": [
@@ -144,21 +329,11 @@
144
329
  "category": "form-input-basic"
145
330
  },
146
331
  {
147
- "name": "eo-form-item",
332
+ "name": "eo-textarea",
148
333
  "alias": [
149
- "form.general-form-item"
334
+ "form.general-textarea"
150
335
  ],
151
336
  "properties": [
152
- {
153
- "name": "formElement",
154
- "attribute": false,
155
- "type": "Form"
156
- },
157
- {
158
- "name": "curElement",
159
- "attribute": false,
160
- "type": "HTMLElement"
161
- },
162
337
  {
163
338
  "name": "name",
164
339
  "description": "字段名称",
@@ -166,114 +341,39 @@
166
341
  },
167
342
  {
168
343
  "name": "label",
344
+ "description": "标签文字",
169
345
  "type": "string"
170
346
  },
171
- {
172
- "name": "pattern",
173
- "type": "string"
174
- },
175
- {
176
- "name": "message",
177
- "attribute": false,
178
- "type": "Record<string, string>"
179
- },
180
- {
181
- "name": "type",
182
- "type": "string"
183
- },
184
- {
185
- "name": "max",
186
- "type": "number"
187
- },
188
- {
189
- "name": "min",
190
- "type": "number"
191
- },
192
- {
193
- "name": "required",
194
- "description": "表单项是否为必填",
195
- "type": "boolean"
196
- },
197
347
  {
198
348
  "name": "value",
199
- "description": "初始值",
200
- "type": "string"
201
- },
202
- {
203
- "name": "valuePropsName",
349
+ "description": "",
204
350
  "type": "string"
205
351
  },
206
352
  {
207
- "name": "layout",
208
- "type": "Layout"
209
- },
210
- {
211
- "name": "size",
212
- "type": "ComponentSize"
213
- },
214
- {
215
- "name": "trim",
216
- "description": "是否自动去除前后的空白字符",
217
- "default": "true"
218
- },
219
- {
220
- "name": "trigger",
221
- "description": "事件触发方法名",
353
+ "name": "placeholder",
354
+ "description": "占位说明",
222
355
  "type": "string"
223
356
  },
224
357
  {
225
- "name": "validator",
226
- "description": "表单项校验方法",
227
- "attribute": false,
228
- "type": "((value: any) => MessageBody)"
229
- },
230
- {
231
- "name": "needValidate",
232
- "description": "值变化时是否主动出发校验",
358
+ "name": "disabled",
359
+ "description": "是否禁用",
233
360
  "type": "boolean"
234
- }
235
- ],
236
- "events": [],
237
- "slots": [
238
- {
239
- "name": null,
240
- "description": "表单项内容"
241
- }
242
- ],
243
- "methods": [],
244
- "parts": [],
245
- "description": "通用输入框构件",
246
- "category": "form-input-basic",
247
- "insider": true
248
- },
249
- {
250
- "name": "eo-radio",
251
- "alias": [
252
- "form.general-radio"
253
- ],
254
- "properties": [
255
- {
256
- "name": "name",
257
- "description": "下拉框字段名",
258
- "type": "string"
259
361
  },
260
362
  {
261
- "name": "label",
262
- "description": "单选框字段说明",
263
- "type": "string"
363
+ "name": "minLength",
364
+ "description": "最小长度",
365
+ "type": "number"
264
366
  },
265
367
  {
266
- "name": "options",
267
- "description": "单选框选项表",
268
- "required": true,
269
- "attribute": false,
270
- "type": "GeneralOption[]"
368
+ "name": "maxLength",
369
+ "description": "最大长度",
370
+ "type": "number"
271
371
  },
272
372
  {
273
- "name": "value",
274
- "description": "单选框当前选中始值",
373
+ "name": "autoSize",
374
+ "description": "大小自适应",
275
375
  "attribute": false,
276
- "type": "any"
376
+ "type": "AutoSize"
277
377
  },
278
378
  {
279
379
  "name": "required",
@@ -281,75 +381,67 @@
281
381
  "type": "boolean"
282
382
  },
283
383
  {
284
- "name": "message",
285
- "description": "校验文本信息",
286
- "attribute": false,
287
- "type": "Record<string, string>"
288
- },
289
- {
290
- "name": "disabled",
291
- "description": "是否禁用",
292
- "type": "boolean"
293
- },
294
- {
295
- "name": "type",
296
- "description": "单选框样式类型",
297
- "default": "\"default\"",
298
- "type": "RadioType"
299
- },
300
- {
301
- "name": "ui",
302
- "description": "UI样式",
303
- "default": "\"default\"",
304
- "type": "UIType"
384
+ "name": "max",
385
+ "description": "表单校验最大长度",
386
+ "type": "number"
305
387
  },
306
388
  {
307
- "name": "size",
308
- "description": "大小,只对按钮样式生效",
309
- "default": "\"medium\"",
310
- "type": "ComponentSize"
389
+ "name": "min",
390
+ "description": "表单校验最小长度",
391
+ "type": "number"
311
392
  },
312
393
  {
313
- "name": "customStyle",
314
- "description": "自定义radio的外层样式",
394
+ "name": "message",
395
+ "description": "校验信息",
315
396
  "attribute": false,
316
- "type": "React.CSSProperties"
397
+ "type": "Record<string, string>"
317
398
  },
318
399
  {
319
- "name": "useBrick",
320
- "description": "自定义radio的内容",
400
+ "name": "textareaStyle",
401
+ "description": "自定义样式",
321
402
  "attribute": false,
322
- "type": "UseSingleBrickConf"
403
+ "type": "React.CSSProperties"
323
404
  }
324
405
  ],
325
406
  "events": [
326
407
  {
327
408
  "name": "change",
328
- "description": "值变化事件",
329
- "detail": {
330
- "type": "GeneralComplexOption | undefined"
331
- }
332
- },
333
- {
334
- "name": "options.change",
335
- "description": "选项列表变化事件",
409
+ "description": "",
336
410
  "detail": {
337
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
411
+ "description": null,
412
+ "type": "string"
338
413
  }
339
414
  }
340
415
  ],
341
416
  "slots": [],
342
- "methods": [],
417
+ "methods": [
418
+ {
419
+ "name": "focusTextarea",
420
+ "params": [],
421
+ "description": "focus",
422
+ "returns": {}
423
+ }
424
+ ],
343
425
  "parts": [],
344
- "description": "通用单选构件",
426
+ "description": "通用多行文本输入框构件",
345
427
  "category": "form-input-basic"
346
428
  },
347
429
  {
348
- "name": "eo-textarea",
430
+ "name": "eo-form-item",
349
431
  "alias": [
350
- "form.general-textarea"
432
+ "form.general-form-item"
351
433
  ],
352
434
  "properties": [
435
+ {
436
+ "name": "formElement",
437
+ "attribute": false,
438
+ "type": "Form"
439
+ },
440
+ {
441
+ "name": "curElement",
442
+ "attribute": false,
443
+ "type": "HTMLElement"
444
+ },
353
445
  {
354
446
  "name": "name",
355
447
  "description": "字段名称",
@@ -357,149 +449,182 @@
357
449
  },
358
450
  {
359
451
  "name": "label",
360
- "description": "标签文字",
361
452
  "type": "string"
362
453
  },
363
454
  {
364
- "name": "value",
365
- "description": "值",
455
+ "name": "pattern",
366
456
  "type": "string"
367
457
  },
368
458
  {
369
- "name": "placeholder",
370
- "description": "占位说明",
371
- "type": "string"
459
+ "name": "message",
460
+ "attribute": false,
461
+ "type": "Record<string, string>"
372
462
  },
373
463
  {
374
- "name": "disabled",
375
- "description": "是否禁用",
376
- "type": "boolean"
464
+ "name": "type",
465
+ "type": "string"
377
466
  },
378
467
  {
379
- "name": "minLength",
380
- "description": "最小长度",
468
+ "name": "max",
381
469
  "type": "number"
382
470
  },
383
471
  {
384
- "name": "maxLength",
385
- "description": "最大长度",
472
+ "name": "min",
386
473
  "type": "number"
387
474
  },
388
- {
389
- "name": "autoSize",
390
- "description": "大小自适应",
391
- "attribute": false,
392
- "type": "AutoSize"
393
- },
394
475
  {
395
476
  "name": "required",
396
- "description": "是否必填",
477
+ "description": "表单项是否为必填",
397
478
  "type": "boolean"
398
479
  },
399
480
  {
400
- "name": "max",
401
- "description": "表单校验最大长度",
402
- "type": "number"
481
+ "name": "value",
482
+ "description": "初始值",
483
+ "type": "string"
403
484
  },
404
485
  {
405
- "name": "min",
406
- "description": "表单校验最小长度",
407
- "type": "number"
486
+ "name": "valuePropsName",
487
+ "type": "string"
488
+ },
489
+ {
490
+ "name": "layout",
491
+ "type": "Layout"
492
+ },
493
+ {
494
+ "name": "size",
495
+ "type": "ComponentSize"
496
+ },
497
+ {
498
+ "name": "trim",
499
+ "description": "是否自动去除前后的空白字符",
500
+ "default": "true"
501
+ },
502
+ {
503
+ "name": "trigger",
504
+ "description": "事件触发方法名",
505
+ "type": "string"
408
506
  },
409
507
  {
410
- "name": "message",
411
- "description": "校验信息",
508
+ "name": "validator",
509
+ "description": "表单项校验方法",
412
510
  "attribute": false,
413
- "type": "Record<string, string>"
511
+ "type": "((value: any) => MessageBody)"
414
512
  },
415
513
  {
416
- "name": "textareaStyle",
417
- "description": "自定义样式",
418
- "attribute": false,
419
- "type": "React.CSSProperties"
420
- }
421
- ],
422
- "events": [
423
- {
424
- "name": "change",
425
- "description": "",
426
- "detail": {
427
- "description": null,
428
- "type": "string"
429
- }
514
+ "name": "needValidate",
515
+ "description": "值变化时是否主动出发校验",
516
+ "type": "boolean"
430
517
  }
431
518
  ],
432
- "slots": [],
433
- "methods": [
519
+ "events": [],
520
+ "slots": [
434
521
  {
435
- "name": "focusTextarea",
436
- "params": [],
437
- "description": "focus",
438
- "returns": {}
522
+ "name": null,
523
+ "description": "表单项内容"
439
524
  }
440
525
  ],
526
+ "methods": [],
441
527
  "parts": [],
442
- "description": "通用多行文本输入框构件",
443
- "category": "form-input-basic"
528
+ "description": "通用输入框构件",
529
+ "category": "form-input-basic",
530
+ "insider": true
444
531
  },
445
532
  {
446
- "name": "eo-submit-buttons",
533
+ "name": "eo-radio",
447
534
  "alias": [
448
- "form.submit-buttons"
535
+ "form.general-radio"
449
536
  ],
450
537
  "properties": [
451
538
  {
452
- "name": "submitText",
453
- "description": "提交按钮的文字",
454
- "default": "\"提交\"",
539
+ "name": "name",
540
+ "description": "下拉框字段名",
455
541
  "type": "string"
456
542
  },
457
543
  {
458
- "name": "cancelText",
459
- "description": "取消按钮的文字,不设置则不显示取消按钮",
544
+ "name": "label",
545
+ "description": "单选框字段说明",
460
546
  "type": "string"
461
547
  },
462
548
  {
463
- "name": "disableAfterClick",
464
- "description": "点击确定按钮后自动禁用",
549
+ "name": "options",
550
+ "description": "单选框选项表",
551
+ "required": true,
552
+ "attribute": false,
553
+ "type": "GeneralOption[]"
554
+ },
555
+ {
556
+ "name": "value",
557
+ "description": "单选框当前选中始值",
558
+ "attribute": false,
559
+ "type": "any"
560
+ },
561
+ {
562
+ "name": "required",
563
+ "description": "是否必填",
465
564
  "type": "boolean"
466
565
  },
467
566
  {
468
- "name": "submitDisabled",
469
- "description": "禁用提交按钮",
567
+ "name": "message",
568
+ "description": "校验文本信息",
569
+ "attribute": false,
570
+ "type": "Record<string, string>"
571
+ },
572
+ {
573
+ "name": "disabled",
574
+ "description": "是否禁用",
470
575
  "type": "boolean"
471
576
  },
472
577
  {
473
- "name": "submitType",
474
- "description": "提交按钮类型",
475
- "type": "ButtonType"
578
+ "name": "type",
579
+ "description": "单选框样式类型",
580
+ "default": "\"default\"",
581
+ "type": "RadioType"
476
582
  },
477
583
  {
478
- "name": "cancelType",
479
- "description": "取消按钮类型",
480
- "type": "ButtonType"
584
+ "name": "ui",
585
+ "description": "UI样式",
586
+ "default": "\"default\"",
587
+ "type": "UIType"
588
+ },
589
+ {
590
+ "name": "size",
591
+ "description": "大小,只对按钮样式生效",
592
+ "default": "\"medium\"",
593
+ "type": "ComponentSize"
594
+ },
595
+ {
596
+ "name": "customStyle",
597
+ "description": "自定义radio的外层样式",
598
+ "attribute": false,
599
+ "type": "React.CSSProperties"
600
+ },
601
+ {
602
+ "name": "useBrick",
603
+ "description": "自定义radio的内容",
604
+ "attribute": false,
605
+ "type": "UseSingleBrickConf"
481
606
  }
482
607
  ],
483
608
  "events": [
484
609
  {
485
- "name": "submit",
486
- "description": "点击提交按钮触发的事件",
610
+ "name": "change",
611
+ "description": "值变化事件",
487
612
  "detail": {
488
- "type": "void"
613
+ "type": "GeneralComplexOption | undefined"
489
614
  }
490
615
  },
491
616
  {
492
- "name": "cancel",
493
- "description": "点击取消按钮触发的事件",
617
+ "name": "options.change",
618
+ "description": "选项列表变化事件",
494
619
  "detail": {
495
- "type": "void"
620
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
496
621
  }
497
622
  }
498
623
  ],
499
624
  "slots": [],
500
625
  "methods": [],
501
626
  "parts": [],
502
- "description": "表单提交按钮",
627
+ "description": "通用单选构件",
503
628
  "category": "form-input-basic"
504
629
  },
505
630
  {
@@ -644,6 +769,66 @@
644
769
  "description": "通用下拉选择构件",
645
770
  "category": "form-input-basic"
646
771
  },
772
+ {
773
+ "name": "eo-submit-buttons",
774
+ "alias": [
775
+ "form.submit-buttons"
776
+ ],
777
+ "properties": [
778
+ {
779
+ "name": "submitText",
780
+ "description": "提交按钮的文字",
781
+ "default": "\"提交\"",
782
+ "type": "string"
783
+ },
784
+ {
785
+ "name": "cancelText",
786
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
787
+ "type": "string"
788
+ },
789
+ {
790
+ "name": "disableAfterClick",
791
+ "description": "点击确定按钮后自动禁用",
792
+ "type": "boolean"
793
+ },
794
+ {
795
+ "name": "submitDisabled",
796
+ "description": "禁用提交按钮",
797
+ "type": "boolean"
798
+ },
799
+ {
800
+ "name": "submitType",
801
+ "description": "提交按钮类型",
802
+ "type": "ButtonType"
803
+ },
804
+ {
805
+ "name": "cancelType",
806
+ "description": "取消按钮类型",
807
+ "type": "ButtonType"
808
+ }
809
+ ],
810
+ "events": [
811
+ {
812
+ "name": "submit",
813
+ "description": "点击提交按钮触发的事件",
814
+ "detail": {
815
+ "type": "void"
816
+ }
817
+ },
818
+ {
819
+ "name": "cancel",
820
+ "description": "点击取消按钮触发的事件",
821
+ "detail": {
822
+ "type": "void"
823
+ }
824
+ }
825
+ ],
826
+ "slots": [],
827
+ "methods": [],
828
+ "parts": [],
829
+ "description": "表单提交按钮",
830
+ "category": "form-input-basic"
831
+ },
647
832
  {
648
833
  "name": "eo-checkbox",
649
834
  "alias": [
@@ -940,76 +1125,7 @@
940
1125
  "slots": [],
941
1126
  "methods": [],
942
1127
  "parts": [],
943
- "description": "图标选择构件",
944
- "category": "form-input-basic"
945
- },
946
- {
947
- "name": "eo-switch",
948
- "alias": [
949
- "form.general-switch"
950
- ],
951
- "properties": [
952
- {
953
- "name": "name",
954
- "description": "字段名称",
955
- "type": "string"
956
- },
957
- {
958
- "name": "label",
959
- "description": "字段文本",
960
- "type": "string"
961
- },
962
- {
963
- "name": "value",
964
- "description": "初始值",
965
- "type": "boolean"
966
- },
967
- {
968
- "name": "disabled",
969
- "description": "是否禁用",
970
- "type": "boolean"
971
- },
972
- {
973
- "name": "size",
974
- "description": "按钮大小,目前只支持small和非small两种大小。",
975
- "type": "ComponentSize"
976
- },
977
- {
978
- "name": "checkedText",
979
- "description": "选中时的文本",
980
- "type": "string"
981
- },
982
- {
983
- "name": "unCheckedText",
984
- "description": "非选中时的文本",
985
- "type": "string"
986
- },
987
- {
988
- "name": "checkedIcon",
989
- "description": "选中时的图标",
990
- "attribute": false,
991
- "type": "GeneralIconProps"
992
- },
993
- {
994
- "name": "unCheckedIcon",
995
- "description": "非选中时的文本",
996
- "attribute": false,
997
- "type": "GeneralIconProps"
998
- }
999
- ],
1000
- "events": [
1001
- {
1002
- "name": "switch",
1003
- "description": "开关改变时触发",
1004
- "detail": {
1005
- "type": "boolean"
1006
- }
1007
- }
1008
- ],
1009
- "slots": [],
1010
- "methods": [],
1011
- "parts": [],
1012
- "description": "开关",
1128
+ "description": "图标选择构件",
1013
1129
  "category": "form-input-basic"
1014
1130
  },
1015
1131
  {
@@ -1081,6 +1197,75 @@
1081
1197
  "description": "上传图片构件",
1082
1198
  "category": "form-input-basic"
1083
1199
  },
1200
+ {
1201
+ "name": "eo-switch",
1202
+ "alias": [
1203
+ "form.general-switch"
1204
+ ],
1205
+ "properties": [
1206
+ {
1207
+ "name": "name",
1208
+ "description": "字段名称",
1209
+ "type": "string"
1210
+ },
1211
+ {
1212
+ "name": "label",
1213
+ "description": "字段文本",
1214
+ "type": "string"
1215
+ },
1216
+ {
1217
+ "name": "value",
1218
+ "description": "初始值",
1219
+ "type": "boolean"
1220
+ },
1221
+ {
1222
+ "name": "disabled",
1223
+ "description": "是否禁用",
1224
+ "type": "boolean"
1225
+ },
1226
+ {
1227
+ "name": "size",
1228
+ "description": "按钮大小,目前只支持small和非small两种大小。",
1229
+ "type": "ComponentSize"
1230
+ },
1231
+ {
1232
+ "name": "checkedText",
1233
+ "description": "选中时的文本",
1234
+ "type": "string"
1235
+ },
1236
+ {
1237
+ "name": "unCheckedText",
1238
+ "description": "非选中时的文本",
1239
+ "type": "string"
1240
+ },
1241
+ {
1242
+ "name": "checkedIcon",
1243
+ "description": "选中时的图标",
1244
+ "attribute": false,
1245
+ "type": "GeneralIconProps"
1246
+ },
1247
+ {
1248
+ "name": "unCheckedIcon",
1249
+ "description": "非选中时的文本",
1250
+ "attribute": false,
1251
+ "type": "GeneralIconProps"
1252
+ }
1253
+ ],
1254
+ "events": [
1255
+ {
1256
+ "name": "switch",
1257
+ "description": "开关改变时触发",
1258
+ "detail": {
1259
+ "type": "boolean"
1260
+ }
1261
+ }
1262
+ ],
1263
+ "slots": [],
1264
+ "methods": [],
1265
+ "parts": [],
1266
+ "description": "开关",
1267
+ "category": "form-input-basic"
1268
+ },
1084
1269
  {
1085
1270
  "name": "eo-upload-file",
1086
1271
  "properties": [
@@ -1287,191 +1472,6 @@
1287
1472
  "description": "带候选项的输入框",
1288
1473
  "category": "form-input-basic"
1289
1474
  },
1290
- {
1291
- "name": "eo-input",
1292
- "alias": [
1293
- "form.general-input"
1294
- ],
1295
- "properties": [
1296
- {
1297
- "name": "name",
1298
- "description": "字段名称",
1299
- "type": "string"
1300
- },
1301
- {
1302
- "name": "label",
1303
- "description": "标签文字",
1304
- "type": "string"
1305
- },
1306
- {
1307
- "name": "required",
1308
- "description": "是否必填",
1309
- "type": "boolean"
1310
- },
1311
- {
1312
- "name": "pattern",
1313
- "description": "正则校验规则",
1314
- "type": "string"
1315
- },
1316
- {
1317
- "name": "max",
1318
- "description": "表单校验最大长度(当 type 为 number 时,表示最大值)",
1319
- "type": "number"
1320
- },
1321
- {
1322
- "name": "min",
1323
- "description": "表单校验最小长度(当 type 为 number 时,表示最小值)",
1324
- "type": "number"
1325
- },
1326
- {
1327
- "name": "message",
1328
- "description": "错误时显示消息",
1329
- "attribute": false,
1330
- "type": "Record<string, string>"
1331
- },
1332
- {
1333
- "name": "value",
1334
- "description": "输入框值",
1335
- "type": "string"
1336
- },
1337
- {
1338
- "name": "placeholder",
1339
- "description": "占位说明",
1340
- "type": "string"
1341
- },
1342
- {
1343
- "name": "disabled",
1344
- "description": "是否禁用",
1345
- "type": "boolean"
1346
- },
1347
- {
1348
- "name": "readonly",
1349
- "description": "是否只读",
1350
- "type": "boolean"
1351
- },
1352
- {
1353
- "name": "clearable",
1354
- "description": "是否显示清除按钮",
1355
- "type": "boolean"
1356
- },
1357
- {
1358
- "name": "autoFocus",
1359
- "description": "是否自动聚焦",
1360
- "type": "boolean"
1361
- },
1362
- {
1363
- "name": "type",
1364
- "description": "类型",
1365
- "default": "\"text\"",
1366
- "type": "InputType"
1367
- },
1368
- {
1369
- "name": "size",
1370
- "description": "大小",
1371
- "default": "\"medium\"",
1372
- "type": "ComponentSize"
1373
- },
1374
- {
1375
- "name": "minLength",
1376
- "description": "最小长度",
1377
- "type": "number"
1378
- },
1379
- {
1380
- "name": "maxLength",
1381
- "description": "最大长度(用户无法输入超过此最大长度的字符串)",
1382
- "type": "number"
1383
- },
1384
- {
1385
- "name": "inputStyle",
1386
- "description": "输入框样式",
1387
- "attribute": false,
1388
- "type": "React.CSSProperties"
1389
- },
1390
- {
1391
- "name": "validator",
1392
- "description": "表单项校验方法",
1393
- "attribute": false,
1394
- "type": "((value: any) => MessageBody)"
1395
- }
1396
- ],
1397
- "events": [
1398
- {
1399
- "name": "change",
1400
- "description": "值改变事件",
1401
- "detail": {
1402
- "type": "string"
1403
- }
1404
- }
1405
- ],
1406
- "slots": [
1407
- {
1408
- "name": "addonBefore",
1409
- "description": "输入框前置标签"
1410
- },
1411
- {
1412
- "name": "addonAfter",
1413
- "description": "输入框后置标签"
1414
- },
1415
- {
1416
- "name": "prefix",
1417
- "description": "输入框前缀图标"
1418
- },
1419
- {
1420
- "name": "suffix",
1421
- "description": "输入框后缀图标"
1422
- }
1423
- ],
1424
- "methods": [
1425
- {
1426
- "name": "focusInput",
1427
- "params": [],
1428
- "description": "focus",
1429
- "returns": {}
1430
- },
1431
- {
1432
- "name": "blurInput",
1433
- "params": [],
1434
- "description": "blur",
1435
- "returns": {}
1436
- }
1437
- ],
1438
- "parts": [
1439
- {
1440
- "name": "addon-wrapper",
1441
- "description": "包裹输入组件、前缀、后缀、前置和后置的容器"
1442
- },
1443
- {
1444
- "name": "affix-wrapper",
1445
- "description": "包裹输入组件、前缀和后缀的容器"
1446
- },
1447
- {
1448
- "name": "input",
1449
- "description": "输入组件"
1450
- },
1451
- {
1452
- "name": "clear-icon",
1453
- "description": "清除按钮"
1454
- },
1455
- {
1456
- "name": "prefix",
1457
- "description": "输入框前缀容器"
1458
- },
1459
- {
1460
- "name": "suffix",
1461
- "description": "输入框后缀容器"
1462
- },
1463
- {
1464
- "name": "before-addon",
1465
- "description": "输入框前置容器"
1466
- },
1467
- {
1468
- "name": "after-addon",
1469
- "description": "输入框后置容器"
1470
- }
1471
- ],
1472
- "description": "通用输入框构件",
1473
- "category": "form-input-basic"
1474
- },
1475
1475
  {
1476
1476
  "name": "eo-time-picker",
1477
1477
  "properties": [