@next-bricks/form 1.9.15 → 1.9.17

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 (75) hide show
  1. package/dist/bricks.json +27 -27
  2. package/dist/chunks/3067.e7857b6f.js +3 -0
  3. package/dist/chunks/3067.e7857b6f.js.map +1 -0
  4. package/dist/chunks/{7115.f4d3b3d8.js → 7115.7485cc92.js} +2 -2
  5. package/dist/chunks/{7115.f4d3b3d8.js.map → 7115.7485cc92.js.map} +1 -1
  6. package/dist/chunks/7304.2781a21c.js +2 -0
  7. package/dist/chunks/7304.2781a21c.js.map +1 -0
  8. package/dist/chunks/818.a930db24.js +3 -0
  9. package/dist/chunks/818.a930db24.js.map +1 -0
  10. package/dist/chunks/825.3aec9f13.js +3 -0
  11. package/dist/chunks/825.3aec9f13.js.map +1 -0
  12. package/dist/chunks/852.7094d5e6.js +3 -0
  13. package/dist/chunks/852.7094d5e6.js.map +1 -0
  14. package/dist/chunks/{9248.4b0f6d06.js → 9248.9445e898.js} +2 -2
  15. package/dist/chunks/9248.9445e898.js.map +1 -0
  16. package/dist/chunks/{9259.55ccc5f1.js → 9259.50431057.js} +3 -3
  17. package/dist/chunks/9259.50431057.js.map +1 -0
  18. package/dist/chunks/{9496.fde45913.js → 9496.4db82bb4.js} +2 -2
  19. package/dist/chunks/{9496.fde45913.js.map → 9496.4db82bb4.js.map} +1 -1
  20. package/dist/chunks/eo-color-picker.8f4f0401.js +2 -0
  21. package/dist/chunks/{eo-color-picker.3fda3f30.js.map → eo-color-picker.8f4f0401.js.map} +1 -1
  22. package/dist/chunks/{eo-date-picker.203db4e1.js → eo-date-picker.60cc0fdd.js} +2 -2
  23. package/dist/chunks/{eo-date-picker.203db4e1.js.map → eo-date-picker.60cc0fdd.js.map} +1 -1
  24. package/dist/chunks/{eo-dynamic-form-item.96801e11.js → eo-dynamic-form-item.9dd48465.js} +3 -3
  25. package/dist/chunks/{eo-dynamic-form-item.96801e11.js.map → eo-dynamic-form-item.9dd48465.js.map} +1 -1
  26. package/dist/chunks/{eo-form-item.a0e5733a.js → eo-form-item.d49089da.js} +3 -3
  27. package/dist/chunks/{eo-form-item.a0e5733a.js.map → eo-form-item.d49089da.js.map} +1 -1
  28. package/dist/chunks/{eo-radio.e5293318.js → eo-radio.9f8757f1.js} +3 -3
  29. package/dist/chunks/{eo-radio.e5293318.js.map → eo-radio.9f8757f1.js.map} +1 -1
  30. package/dist/chunks/{eo-select.3f97c31e.js → eo-select.7494a96c.js} +3 -3
  31. package/dist/chunks/{eo-select.3f97c31e.js.map → eo-select.7494a96c.js.map} +1 -1
  32. package/dist/chunks/{eo-time-picker.75cf4fe2.js → eo-time-picker.46cb48ad.js} +2 -2
  33. package/dist/chunks/{eo-time-picker.75cf4fe2.js.map → eo-time-picker.46cb48ad.js.map} +1 -1
  34. package/dist/chunks/eo-time-range-picker.b2ca48cf.js +2 -0
  35. package/dist/chunks/eo-time-range-picker.b2ca48cf.js.map +1 -0
  36. package/dist/chunks/{eo-upload-file.afce9917.js → eo-upload-file.c35c956c.js} +3 -3
  37. package/dist/chunks/{eo-upload-file.afce9917.js.map → eo-upload-file.c35c956c.js.map} +1 -1
  38. package/dist/chunks/{eo-upload-image.5573190f.js → eo-upload-image.5cb74072.js} +3 -3
  39. package/dist/chunks/{eo-upload-image.5573190f.js.map → eo-upload-image.5cb74072.js.map} +1 -1
  40. package/dist/chunks/main.eb12b802.js +2 -0
  41. package/dist/chunks/{main.ae02dd07.js.map → main.eb12b802.js.map} +1 -1
  42. package/dist/examples.json +12 -12
  43. package/dist/index.e69891d7.js +2 -0
  44. package/dist/{index.f688cc38.js.map → index.e69891d7.js.map} +1 -1
  45. package/dist/manifest.json +415 -415
  46. package/dist/types.json +1341 -1341
  47. package/package.json +2 -2
  48. package/dist/chunks/3067.052f8655.js +0 -3
  49. package/dist/chunks/3067.052f8655.js.map +0 -1
  50. package/dist/chunks/7304.fb3a17e4.js +0 -2
  51. package/dist/chunks/7304.fb3a17e4.js.map +0 -1
  52. package/dist/chunks/818.0e60c75d.js +0 -3
  53. package/dist/chunks/818.0e60c75d.js.map +0 -1
  54. package/dist/chunks/825.6af9664c.js +0 -3
  55. package/dist/chunks/825.6af9664c.js.map +0 -1
  56. package/dist/chunks/9248.4b0f6d06.js.map +0 -1
  57. package/dist/chunks/9259.55ccc5f1.js.map +0 -1
  58. package/dist/chunks/9850.833b8b86.js +0 -3
  59. package/dist/chunks/9850.833b8b86.js.map +0 -1
  60. package/dist/chunks/eo-color-picker.3fda3f30.js +0 -2
  61. package/dist/chunks/eo-time-range-picker.4f2c6619.js +0 -2
  62. package/dist/chunks/eo-time-range-picker.4f2c6619.js.map +0 -1
  63. package/dist/chunks/main.ae02dd07.js +0 -2
  64. package/dist/index.f688cc38.js +0 -2
  65. /package/dist/chunks/{3067.052f8655.js.LICENSE.txt → 3067.e7857b6f.js.LICENSE.txt} +0 -0
  66. /package/dist/chunks/{818.0e60c75d.js.LICENSE.txt → 818.a930db24.js.LICENSE.txt} +0 -0
  67. /package/dist/chunks/{825.6af9664c.js.LICENSE.txt → 825.3aec9f13.js.LICENSE.txt} +0 -0
  68. /package/dist/chunks/{9850.833b8b86.js.LICENSE.txt → 852.7094d5e6.js.LICENSE.txt} +0 -0
  69. /package/dist/chunks/{9259.55ccc5f1.js.LICENSE.txt → 9259.50431057.js.LICENSE.txt} +0 -0
  70. /package/dist/chunks/{eo-dynamic-form-item.96801e11.js.LICENSE.txt → eo-dynamic-form-item.9dd48465.js.LICENSE.txt} +0 -0
  71. /package/dist/chunks/{eo-form-item.a0e5733a.js.LICENSE.txt → eo-form-item.d49089da.js.LICENSE.txt} +0 -0
  72. /package/dist/chunks/{eo-radio.e5293318.js.LICENSE.txt → eo-radio.9f8757f1.js.LICENSE.txt} +0 -0
  73. /package/dist/chunks/{eo-select.3f97c31e.js.LICENSE.txt → eo-select.7494a96c.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-upload-file.afce9917.js.LICENSE.txt → eo-upload-file.c35c956c.js.LICENSE.txt} +0 -0
  75. /package/dist/chunks/{eo-upload-image.5573190f.js.LICENSE.txt → eo-upload-image.5cb74072.js.LICENSE.txt} +0 -0
@@ -188,232 +188,6 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
191
- {
192
- "name": "eo-form",
193
- "alias": [
194
- "form.general-form"
195
- ],
196
- "properties": [
197
- {
198
- "name": "layout",
199
- "description": "布局方式(默认 vertical 布局)",
200
- "default": "vertical",
201
- "type": "Layout"
202
- },
203
- {
204
- "name": "size",
205
- "description": "表单组件尺寸",
206
- "type": "ComponentSize"
207
- },
208
- {
209
- "name": "labelCol",
210
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
211
- "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
212
- "attribute": false,
213
- "type": "ColProps"
214
- },
215
- {
216
- "name": "wrapperCol",
217
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
218
- "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
219
- "attribute": false,
220
- "type": "ColProps"
221
- },
222
- {
223
- "name": "formStyle",
224
- "attribute": false,
225
- "type": "React.CSSProperties"
226
- }
227
- ],
228
- "events": [
229
- {
230
- "name": "values.change",
231
- "description": "表单值变更事件",
232
- "detail": {
233
- "description": null,
234
- "type": "Record<string, unknown>"
235
- }
236
- },
237
- {
238
- "name": "validate.success",
239
- "description": "表单验证成功时触发事件",
240
- "detail": {
241
- "type": "Record<string, unknown>"
242
- }
243
- },
244
- {
245
- "name": "validate.error",
246
- "description": "表单验证报错时触发事件",
247
- "detail": {
248
- "type": "MessageBody[]"
249
- }
250
- }
251
- ],
252
- "slots": [
253
- {
254
- "name": null,
255
- "description": "表单内容"
256
- }
257
- ],
258
- "methods": [
259
- {
260
- "name": "validate",
261
- "params": [],
262
- "description": "表单校验方法",
263
- "returns": {
264
- "type": "boolean | Record<string, unknown>"
265
- }
266
- },
267
- {
268
- "name": "setInitValue",
269
- "params": [
270
- {
271
- "name": "values",
272
- "type": "Record<string, unknown>"
273
- },
274
- {
275
- "name": "options",
276
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
277
- }
278
- ],
279
- "description": "表单设置值方法",
280
- "returns": {}
281
- },
282
- {
283
- "name": "resetFields",
284
- "params": [
285
- {
286
- "name": "name",
287
- "type": "string"
288
- }
289
- ],
290
- "description": "表单重置值方法",
291
- "returns": {}
292
- },
293
- {
294
- "name": "getFieldsValue",
295
- "params": [
296
- {
297
- "name": "name",
298
- "type": "string"
299
- }
300
- ],
301
- "description": "获取表单值方法",
302
- "returns": {}
303
- },
304
- {
305
- "name": "validateField",
306
- "params": [
307
- {
308
- "name": "name",
309
- "type": "string"
310
- }
311
- ],
312
- "description": "校验表单字段方法",
313
- "returns": {}
314
- },
315
- {
316
- "name": "resetValidateState",
317
- "params": [],
318
- "description": "重置表单校验状态方法",
319
- "returns": {}
320
- }
321
- ],
322
- "parts": [],
323
- "description": "表单构件",
324
- "category": "form-input-basic"
325
- },
326
- {
327
- "name": "eo-textarea",
328
- "alias": [
329
- "form.general-textarea"
330
- ],
331
- "properties": [
332
- {
333
- "name": "name",
334
- "description": "字段名称",
335
- "type": "string"
336
- },
337
- {
338
- "name": "label",
339
- "description": "标签文字",
340
- "type": "string"
341
- },
342
- {
343
- "name": "value",
344
- "description": "值",
345
- "type": "string"
346
- },
347
- {
348
- "name": "placeholder",
349
- "description": "占位说明",
350
- "type": "string"
351
- },
352
- {
353
- "name": "disabled",
354
- "description": "是否禁用",
355
- "type": "boolean"
356
- },
357
- {
358
- "name": "minLength",
359
- "description": "最小长度",
360
- "type": "number"
361
- },
362
- {
363
- "name": "maxLength",
364
- "description": "最大长度",
365
- "type": "number"
366
- },
367
- {
368
- "name": "autoSize",
369
- "description": "大小自适应",
370
- "attribute": false,
371
- "type": "AutoSize"
372
- },
373
- {
374
- "name": "required",
375
- "description": "是否必填",
376
- "type": "boolean"
377
- },
378
- {
379
- "name": "max",
380
- "description": "表单校验最大长度",
381
- "type": "number"
382
- },
383
- {
384
- "name": "min",
385
- "description": "表单校验最小长度",
386
- "type": "number"
387
- },
388
- {
389
- "name": "message",
390
- "description": "校验信息",
391
- "attribute": false,
392
- "type": "Record<string, string>"
393
- },
394
- {
395
- "name": "textareaStyle",
396
- "description": "自定义样式",
397
- "attribute": false,
398
- "type": "React.CSSProperties"
399
- }
400
- ],
401
- "events": [
402
- {
403
- "name": "change",
404
- "description": "",
405
- "detail": {
406
- "description": null,
407
- "type": "string"
408
- }
409
- }
410
- ],
411
- "slots": [],
412
- "methods": [],
413
- "parts": [],
414
- "description": "通用多行文本输入框构件",
415
- "category": "form-input-basic"
416
- },
417
191
  {
418
192
  "name": "eo-form-item",
419
193
  "alias": [
@@ -495,121 +269,23 @@
495
269
  "type": "((value: any) => MessageBody)"
496
270
  },
497
271
  {
498
- "name": "needValidate",
499
- "description": "值变化时是否主动出发校验",
500
- "type": "boolean"
501
- }
502
- ],
503
- "events": [],
504
- "slots": [
505
- {
506
- "name": null,
507
- "description": "表单项内容"
508
- }
509
- ],
510
- "methods": [],
511
- "parts": [],
512
- "description": "通用输入框构件",
513
- "category": "form-input-basic",
514
- "insider": true
515
- },
516
- {
517
- "name": "eo-radio",
518
- "alias": [
519
- "form.general-radio"
520
- ],
521
- "properties": [
522
- {
523
- "name": "name",
524
- "description": "下拉框字段名",
525
- "type": "string"
526
- },
527
- {
528
- "name": "label",
529
- "description": "单选框字段说明",
530
- "type": "string"
531
- },
532
- {
533
- "name": "options",
534
- "description": "单选框选项表",
535
- "required": true,
536
- "attribute": false,
537
- "type": "GeneralOption[]"
538
- },
539
- {
540
- "name": "value",
541
- "description": "单选框当前选中始值",
542
- "attribute": false,
543
- "type": "any"
544
- },
545
- {
546
- "name": "required",
547
- "description": "是否必填",
548
- "type": "boolean"
549
- },
550
- {
551
- "name": "message",
552
- "description": "校验文本信息",
553
- "attribute": false,
554
- "type": "Record<string, string>"
555
- },
556
- {
557
- "name": "disabled",
558
- "description": "是否禁用",
559
- "type": "boolean"
560
- },
561
- {
562
- "name": "type",
563
- "description": "单选框样式类型",
564
- "default": "\"default\"",
565
- "type": "RadioType"
566
- },
567
- {
568
- "name": "ui",
569
- "description": "UI样式",
570
- "default": "\"default\"",
571
- "type": "UIType"
572
- },
573
- {
574
- "name": "size",
575
- "description": "大小,只对按钮样式生效",
576
- "default": "\"medium\"",
577
- "type": "ComponentSize"
578
- },
579
- {
580
- "name": "customStyle",
581
- "description": "自定义radio的外层样式",
582
- "attribute": false,
583
- "type": "React.CSSProperties"
584
- },
585
- {
586
- "name": "useBrick",
587
- "description": "自定义radio的内容",
588
- "attribute": false,
589
- "type": "UseSingleBrickConf"
272
+ "name": "needValidate",
273
+ "description": "值变化时是否主动出发校验",
274
+ "type": "boolean"
590
275
  }
591
276
  ],
592
- "events": [
593
- {
594
- "name": "change",
595
- "description": "值变化事件",
596
- "detail": {
597
- "type": "GeneralComplexOption | undefined"
598
- }
599
- },
277
+ "events": [],
278
+ "slots": [
600
279
  {
601
- "name": "options.change",
602
- "description": "选项列表变化事件",
603
- "detail": {
604
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
605
- }
280
+ "name": null,
281
+ "description": "表单项内容"
606
282
  }
607
283
  ],
608
- "slots": [],
609
284
  "methods": [],
610
285
  "parts": [],
611
- "description": "通用单选构件",
612
- "category": "form-input-basic"
286
+ "description": "通用输入框构件",
287
+ "category": "form-input-basic",
288
+ "insider": true
613
289
  },
614
290
  {
615
291
  "name": "eo-select",
@@ -753,6 +429,141 @@
753
429
  "description": "通用下拉选择构件",
754
430
  "category": "form-input-basic"
755
431
  },
432
+ {
433
+ "name": "eo-form",
434
+ "alias": [
435
+ "form.general-form"
436
+ ],
437
+ "properties": [
438
+ {
439
+ "name": "layout",
440
+ "description": "布局方式(默认 vertical 布局)",
441
+ "default": "vertical",
442
+ "type": "Layout"
443
+ },
444
+ {
445
+ "name": "size",
446
+ "description": "表单组件尺寸",
447
+ "type": "ComponentSize"
448
+ },
449
+ {
450
+ "name": "labelCol",
451
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
452
+ "default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
453
+ "attribute": false,
454
+ "type": "ColProps"
455
+ },
456
+ {
457
+ "name": "wrapperCol",
458
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
459
+ "default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
460
+ "attribute": false,
461
+ "type": "ColProps"
462
+ },
463
+ {
464
+ "name": "formStyle",
465
+ "attribute": false,
466
+ "type": "React.CSSProperties"
467
+ }
468
+ ],
469
+ "events": [
470
+ {
471
+ "name": "values.change",
472
+ "description": "表单值变更事件",
473
+ "detail": {
474
+ "description": null,
475
+ "type": "Record<string, unknown>"
476
+ }
477
+ },
478
+ {
479
+ "name": "validate.success",
480
+ "description": "表单验证成功时触发事件",
481
+ "detail": {
482
+ "type": "Record<string, unknown>"
483
+ }
484
+ },
485
+ {
486
+ "name": "validate.error",
487
+ "description": "表单验证报错时触发事件",
488
+ "detail": {
489
+ "type": "MessageBody[]"
490
+ }
491
+ }
492
+ ],
493
+ "slots": [
494
+ {
495
+ "name": null,
496
+ "description": "表单内容"
497
+ }
498
+ ],
499
+ "methods": [
500
+ {
501
+ "name": "validate",
502
+ "params": [],
503
+ "description": "表单校验方法",
504
+ "returns": {
505
+ "type": "boolean | Record<string, unknown>"
506
+ }
507
+ },
508
+ {
509
+ "name": "setInitValue",
510
+ "params": [
511
+ {
512
+ "name": "values",
513
+ "type": "Record<string, unknown>"
514
+ },
515
+ {
516
+ "name": "options",
517
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
518
+ }
519
+ ],
520
+ "description": "表单设置值方法",
521
+ "returns": {}
522
+ },
523
+ {
524
+ "name": "resetFields",
525
+ "params": [
526
+ {
527
+ "name": "name",
528
+ "type": "string"
529
+ }
530
+ ],
531
+ "description": "表单重置值方法",
532
+ "returns": {}
533
+ },
534
+ {
535
+ "name": "getFieldsValue",
536
+ "params": [
537
+ {
538
+ "name": "name",
539
+ "type": "string"
540
+ }
541
+ ],
542
+ "description": "获取表单值方法",
543
+ "returns": {}
544
+ },
545
+ {
546
+ "name": "validateField",
547
+ "params": [
548
+ {
549
+ "name": "name",
550
+ "type": "string"
551
+ }
552
+ ],
553
+ "description": "校验表单字段方法",
554
+ "returns": {}
555
+ },
556
+ {
557
+ "name": "resetValidateState",
558
+ "params": [],
559
+ "description": "重置表单校验状态方法",
560
+ "returns": {}
561
+ }
562
+ ],
563
+ "parts": [],
564
+ "description": "表单构件",
565
+ "category": "form-input-basic"
566
+ },
756
567
  {
757
568
  "name": "eo-submit-buttons",
758
569
  "alias": [
@@ -880,29 +691,120 @@
880
691
  "name": "optionGroups",
881
692
  "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
882
693
  "attribute": false,
883
- "type": "OptionGroup[]"
694
+ "type": "OptionGroup[]"
695
+ }
696
+ ],
697
+ "events": [
698
+ {
699
+ "name": "change",
700
+ "description": "复选框变化事件",
701
+ "detail": {
702
+ "type": "CheckboxOptionType[]"
703
+ }
704
+ },
705
+ {
706
+ "name": "options.change",
707
+ "description": "复选框变化事件",
708
+ "detail": {
709
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
710
+ }
711
+ }
712
+ ],
713
+ "slots": [],
714
+ "methods": [],
715
+ "parts": [],
716
+ "description": "表单复选框构件",
717
+ "category": "form-input-basic"
718
+ },
719
+ {
720
+ "name": "eo-textarea",
721
+ "alias": [
722
+ "form.general-textarea"
723
+ ],
724
+ "properties": [
725
+ {
726
+ "name": "name",
727
+ "description": "字段名称",
728
+ "type": "string"
729
+ },
730
+ {
731
+ "name": "label",
732
+ "description": "标签文字",
733
+ "type": "string"
734
+ },
735
+ {
736
+ "name": "value",
737
+ "description": "值",
738
+ "type": "string"
739
+ },
740
+ {
741
+ "name": "placeholder",
742
+ "description": "占位说明",
743
+ "type": "string"
744
+ },
745
+ {
746
+ "name": "disabled",
747
+ "description": "是否禁用",
748
+ "type": "boolean"
749
+ },
750
+ {
751
+ "name": "minLength",
752
+ "description": "最小长度",
753
+ "type": "number"
754
+ },
755
+ {
756
+ "name": "maxLength",
757
+ "description": "最大长度",
758
+ "type": "number"
759
+ },
760
+ {
761
+ "name": "autoSize",
762
+ "description": "大小自适应",
763
+ "attribute": false,
764
+ "type": "AutoSize"
765
+ },
766
+ {
767
+ "name": "required",
768
+ "description": "是否必填",
769
+ "type": "boolean"
770
+ },
771
+ {
772
+ "name": "max",
773
+ "description": "表单校验最大长度",
774
+ "type": "number"
775
+ },
776
+ {
777
+ "name": "min",
778
+ "description": "表单校验最小长度",
779
+ "type": "number"
780
+ },
781
+ {
782
+ "name": "message",
783
+ "description": "校验信息",
784
+ "attribute": false,
785
+ "type": "Record<string, string>"
786
+ },
787
+ {
788
+ "name": "textareaStyle",
789
+ "description": "自定义样式",
790
+ "attribute": false,
791
+ "type": "React.CSSProperties"
884
792
  }
885
793
  ],
886
794
  "events": [
887
795
  {
888
796
  "name": "change",
889
- "description": "复选框变化事件",
890
- "detail": {
891
- "type": "CheckboxOptionType[]"
892
- }
893
- },
894
- {
895
- "name": "options.change",
896
- "description": "复选框变化事件",
797
+ "description": "",
897
798
  "detail": {
898
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
799
+ "description": null,
800
+ "type": "string"
899
801
  }
900
802
  }
901
803
  ],
902
804
  "slots": [],
903
805
  "methods": [],
904
806
  "parts": [],
905
- "description": "表单复选框构件",
807
+ "description": "通用多行文本输入框构件",
906
808
  "category": "form-input-basic"
907
809
  },
908
810
  {
@@ -1058,6 +960,104 @@
1058
960
  "description": "搜索框",
1059
961
  "category": "form-input-basic"
1060
962
  },
963
+ {
964
+ "name": "eo-radio",
965
+ "alias": [
966
+ "form.general-radio"
967
+ ],
968
+ "properties": [
969
+ {
970
+ "name": "name",
971
+ "description": "下拉框字段名",
972
+ "type": "string"
973
+ },
974
+ {
975
+ "name": "label",
976
+ "description": "单选框字段说明",
977
+ "type": "string"
978
+ },
979
+ {
980
+ "name": "options",
981
+ "description": "单选框选项表",
982
+ "required": true,
983
+ "attribute": false,
984
+ "type": "GeneralOption[]"
985
+ },
986
+ {
987
+ "name": "value",
988
+ "description": "单选框当前选中始值",
989
+ "attribute": false,
990
+ "type": "any"
991
+ },
992
+ {
993
+ "name": "required",
994
+ "description": "是否必填",
995
+ "type": "boolean"
996
+ },
997
+ {
998
+ "name": "message",
999
+ "description": "校验文本信息",
1000
+ "attribute": false,
1001
+ "type": "Record<string, string>"
1002
+ },
1003
+ {
1004
+ "name": "disabled",
1005
+ "description": "是否禁用",
1006
+ "type": "boolean"
1007
+ },
1008
+ {
1009
+ "name": "type",
1010
+ "description": "单选框样式类型",
1011
+ "default": "\"default\"",
1012
+ "type": "RadioType"
1013
+ },
1014
+ {
1015
+ "name": "ui",
1016
+ "description": "UI样式",
1017
+ "default": "\"default\"",
1018
+ "type": "UIType"
1019
+ },
1020
+ {
1021
+ "name": "size",
1022
+ "description": "大小,只对按钮样式生效",
1023
+ "default": "\"medium\"",
1024
+ "type": "ComponentSize"
1025
+ },
1026
+ {
1027
+ "name": "customStyle",
1028
+ "description": "自定义radio的外层样式",
1029
+ "attribute": false,
1030
+ "type": "React.CSSProperties"
1031
+ },
1032
+ {
1033
+ "name": "useBrick",
1034
+ "description": "自定义radio的内容",
1035
+ "attribute": false,
1036
+ "type": "UseSingleBrickConf"
1037
+ }
1038
+ ],
1039
+ "events": [
1040
+ {
1041
+ "name": "change",
1042
+ "description": "值变化事件",
1043
+ "detail": {
1044
+ "type": "GeneralComplexOption | undefined"
1045
+ }
1046
+ },
1047
+ {
1048
+ "name": "options.change",
1049
+ "description": "选项列表变化事件",
1050
+ "detail": {
1051
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1052
+ }
1053
+ }
1054
+ ],
1055
+ "slots": [],
1056
+ "methods": [],
1057
+ "parts": [],
1058
+ "description": "通用单选构件",
1059
+ "category": "form-input-basic"
1060
+ },
1061
1061
  {
1062
1062
  "name": "eo-icon-select",
1063
1063
  "alias": [
@@ -1531,6 +1531,76 @@
1531
1531
  "description": "时间选择器",
1532
1532
  "category": "form-input-basic"
1533
1533
  },
1534
+ {
1535
+ "name": "eo-time-range-picker",
1536
+ "properties": [
1537
+ {
1538
+ "name": "name",
1539
+ "description": "时间段选择器字段名",
1540
+ "type": "string"
1541
+ },
1542
+ {
1543
+ "name": "label",
1544
+ "description": "时间段选择器说明",
1545
+ "type": "string"
1546
+ },
1547
+ {
1548
+ "name": "value",
1549
+ "description": "时间段选择器的初始值",
1550
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1551
+ "attribute": false,
1552
+ "type": "TimeRange"
1553
+ },
1554
+ {
1555
+ "name": "required",
1556
+ "description": "是否必填",
1557
+ "type": "boolean"
1558
+ },
1559
+ {
1560
+ "name": "rangeType",
1561
+ "description": "时间段类型",
1562
+ "attribute": false,
1563
+ "type": "RangeType"
1564
+ },
1565
+ {
1566
+ "name": "selectNearDays",
1567
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1568
+ "type": "number"
1569
+ },
1570
+ {
1571
+ "name": "emitChangeOnInit",
1572
+ "description": "",
1573
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1574
+ "type": "boolean"
1575
+ },
1576
+ {
1577
+ "name": "presetRanges",
1578
+ "description": "",
1579
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1580
+ "attribute": false,
1581
+ "type": "presetRangeType[]"
1582
+ },
1583
+ {
1584
+ "name": "validator",
1585
+ "attribute": false,
1586
+ "type": "((value: any) => MessageBody | string)"
1587
+ }
1588
+ ],
1589
+ "events": [
1590
+ {
1591
+ "name": "change",
1592
+ "description": "时间段变化时触发",
1593
+ "detail": {
1594
+ "type": "TimeRange"
1595
+ }
1596
+ }
1597
+ ],
1598
+ "slots": [],
1599
+ "methods": [],
1600
+ "parts": [],
1601
+ "description": "时间区间选择器",
1602
+ "category": "form-input-basic"
1603
+ },
1534
1604
  {
1535
1605
  "name": "eo-date-picker",
1536
1606
  "properties": [
@@ -1708,76 +1778,6 @@
1708
1778
  "methods": [],
1709
1779
  "parts": [],
1710
1780
  "description": "构件 `eo-color-picker`"
1711
- },
1712
- {
1713
- "name": "eo-time-range-picker",
1714
- "properties": [
1715
- {
1716
- "name": "name",
1717
- "description": "时间段选择器字段名",
1718
- "type": "string"
1719
- },
1720
- {
1721
- "name": "label",
1722
- "description": "时间段选择器说明",
1723
- "type": "string"
1724
- },
1725
- {
1726
- "name": "value",
1727
- "description": "时间段选择器的初始值",
1728
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1729
- "attribute": false,
1730
- "type": "TimeRange"
1731
- },
1732
- {
1733
- "name": "required",
1734
- "description": "是否必填",
1735
- "type": "boolean"
1736
- },
1737
- {
1738
- "name": "rangeType",
1739
- "description": "时间段类型",
1740
- "attribute": false,
1741
- "type": "RangeType"
1742
- },
1743
- {
1744
- "name": "selectNearDays",
1745
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1746
- "type": "number"
1747
- },
1748
- {
1749
- "name": "emitChangeOnInit",
1750
- "description": "",
1751
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1752
- "type": "boolean"
1753
- },
1754
- {
1755
- "name": "presetRanges",
1756
- "description": "",
1757
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1758
- "attribute": false,
1759
- "type": "presetRangeType[]"
1760
- },
1761
- {
1762
- "name": "validator",
1763
- "attribute": false,
1764
- "type": "((value: any) => MessageBody | string)"
1765
- }
1766
- ],
1767
- "events": [
1768
- {
1769
- "name": "change",
1770
- "description": "时间段变化时触发",
1771
- "detail": {
1772
- "type": "TimeRange"
1773
- }
1774
- }
1775
- ],
1776
- "slots": [],
1777
- "methods": [],
1778
- "parts": [],
1779
- "description": "时间区间选择器",
1780
- "category": "form-input-basic"
1781
1781
  }
1782
1782
  ],
1783
1783
  "providers": []