@next-bricks/form 1.9.17 → 1.9.19

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 (70) hide show
  1. package/dist/bricks.json +24 -24
  2. package/dist/chunks/{3171.995e4c39.js → 3171.f630870c.js} +2 -2
  3. package/dist/chunks/{3171.995e4c39.js.map → 3171.f630870c.js.map} +1 -1
  4. package/dist/chunks/{5552.d35187e2.js → 5552.74ca0c6d.js} +2 -2
  5. package/dist/chunks/{5552.d35187e2.js.map → 5552.74ca0c6d.js.map} +1 -1
  6. package/dist/chunks/{7115.7485cc92.js → 7115.79cc0c21.js} +2 -2
  7. package/dist/chunks/{7115.7485cc92.js.map → 7115.79cc0c21.js.map} +1 -1
  8. package/dist/chunks/{790.013d980d.js → 790.ebf3d31f.js} +2 -2
  9. package/dist/chunks/{790.013d980d.js.map → 790.ebf3d31f.js.map} +1 -1
  10. package/dist/chunks/871.e2b8218b.js +2 -0
  11. package/dist/chunks/871.e2b8218b.js.map +1 -0
  12. package/dist/chunks/{9248.9445e898.js → 9248.d90815d8.js} +2 -2
  13. package/dist/chunks/{9248.9445e898.js.map → 9248.d90815d8.js.map} +1 -1
  14. package/dist/chunks/9259.1eddaf5b.js +3 -0
  15. package/dist/chunks/9259.1eddaf5b.js.map +1 -0
  16. package/dist/chunks/{9496.4db82bb4.js → 9496.86c8134f.js} +2 -2
  17. package/dist/chunks/{9496.4db82bb4.js.map → 9496.86c8134f.js.map} +1 -1
  18. package/dist/chunks/eo-color-picker.962f88b6.js +2 -0
  19. package/dist/chunks/{eo-color-picker.8f4f0401.js.map → eo-color-picker.962f88b6.js.map} +1 -1
  20. package/dist/chunks/eo-date-picker.f66c868a.js +2 -0
  21. package/dist/chunks/{eo-date-picker.60cc0fdd.js.map → eo-date-picker.f66c868a.js.map} +1 -1
  22. package/dist/chunks/eo-dynamic-form-item.a476b0cb.js +3 -0
  23. package/dist/chunks/{eo-dynamic-form-item.9dd48465.js.map → eo-dynamic-form-item.a476b0cb.js.map} +1 -1
  24. package/dist/chunks/eo-form-item.e46b4624.js +3 -0
  25. package/dist/chunks/{eo-form-item.d49089da.js.map → eo-form-item.e46b4624.js.map} +1 -1
  26. package/dist/chunks/eo-radio.85cf1e91.js +3 -0
  27. package/dist/chunks/{eo-radio.9f8757f1.js.map → eo-radio.85cf1e91.js.map} +1 -1
  28. package/dist/chunks/eo-select.52dd13bc.js +3 -0
  29. package/dist/chunks/{eo-select.7494a96c.js.map → eo-select.52dd13bc.js.map} +1 -1
  30. package/dist/chunks/eo-time-picker.85541ba3.js +2 -0
  31. package/dist/chunks/{eo-time-picker.46cb48ad.js.map → eo-time-picker.85541ba3.js.map} +1 -1
  32. package/dist/chunks/eo-time-range-picker.35293d2e.js +2 -0
  33. package/dist/chunks/eo-time-range-picker.35293d2e.js.map +1 -0
  34. package/dist/chunks/eo-upload-file.b56f07a9.js +3 -0
  35. package/dist/chunks/{eo-upload-file.c35c956c.js.map → eo-upload-file.b56f07a9.js.map} +1 -1
  36. package/dist/chunks/{eo-upload-image.5cb74072.js → eo-upload-image.8f4368cf.js} +3 -3
  37. package/dist/chunks/{eo-upload-image.5cb74072.js.map → eo-upload-image.8f4368cf.js.map} +1 -1
  38. package/dist/chunks/main.5c67dc38.js +2 -0
  39. package/dist/chunks/{main.eb12b802.js.map → main.5c67dc38.js.map} +1 -1
  40. package/dist/examples.json +11 -11
  41. package/dist/index.ab887b78.js +2 -0
  42. package/dist/index.ab887b78.js.map +1 -0
  43. package/dist/manifest.json +420 -420
  44. package/dist/types.json +1366 -1366
  45. package/dist-types/time-range-picker/index.d.ts +1 -1
  46. package/package.json +2 -2
  47. package/dist/chunks/871.d0e2df19.js +0 -2
  48. package/dist/chunks/871.d0e2df19.js.map +0 -1
  49. package/dist/chunks/9259.50431057.js +0 -3
  50. package/dist/chunks/9259.50431057.js.map +0 -1
  51. package/dist/chunks/eo-color-picker.8f4f0401.js +0 -2
  52. package/dist/chunks/eo-date-picker.60cc0fdd.js +0 -2
  53. package/dist/chunks/eo-dynamic-form-item.9dd48465.js +0 -3
  54. package/dist/chunks/eo-form-item.d49089da.js +0 -3
  55. package/dist/chunks/eo-radio.9f8757f1.js +0 -3
  56. package/dist/chunks/eo-select.7494a96c.js +0 -3
  57. package/dist/chunks/eo-time-picker.46cb48ad.js +0 -2
  58. package/dist/chunks/eo-time-range-picker.b2ca48cf.js +0 -2
  59. package/dist/chunks/eo-time-range-picker.b2ca48cf.js.map +0 -1
  60. package/dist/chunks/eo-upload-file.c35c956c.js +0 -3
  61. package/dist/chunks/main.eb12b802.js +0 -2
  62. package/dist/index.e69891d7.js +0 -2
  63. package/dist/index.e69891d7.js.map +0 -1
  64. /package/dist/chunks/{9259.50431057.js.LICENSE.txt → 9259.1eddaf5b.js.LICENSE.txt} +0 -0
  65. /package/dist/chunks/{eo-dynamic-form-item.9dd48465.js.LICENSE.txt → eo-dynamic-form-item.a476b0cb.js.LICENSE.txt} +0 -0
  66. /package/dist/chunks/{eo-form-item.d49089da.js.LICENSE.txt → eo-form-item.e46b4624.js.LICENSE.txt} +0 -0
  67. /package/dist/chunks/{eo-radio.9f8757f1.js.LICENSE.txt → eo-radio.85cf1e91.js.LICENSE.txt} +0 -0
  68. /package/dist/chunks/{eo-select.7494a96c.js.LICENSE.txt → eo-select.52dd13bc.js.LICENSE.txt} +0 -0
  69. /package/dist/chunks/{eo-upload-file.c35c956c.js.LICENSE.txt → eo-upload-file.b56f07a9.js.LICENSE.txt} +0 -0
  70. /package/dist/chunks/{eo-upload-image.5cb74072.js.LICENSE.txt → eo-upload-image.8f4368cf.js.LICENSE.txt} +0 -0
@@ -188,6 +188,232 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
191
+ {
192
+ "name": "eo-textarea",
193
+ "alias": [
194
+ "form.general-textarea"
195
+ ],
196
+ "properties": [
197
+ {
198
+ "name": "name",
199
+ "description": "字段名称",
200
+ "type": "string"
201
+ },
202
+ {
203
+ "name": "label",
204
+ "description": "标签文字",
205
+ "type": "string"
206
+ },
207
+ {
208
+ "name": "value",
209
+ "description": "值",
210
+ "type": "string"
211
+ },
212
+ {
213
+ "name": "placeholder",
214
+ "description": "占位说明",
215
+ "type": "string"
216
+ },
217
+ {
218
+ "name": "disabled",
219
+ "description": "是否禁用",
220
+ "type": "boolean"
221
+ },
222
+ {
223
+ "name": "minLength",
224
+ "description": "最小长度",
225
+ "type": "number"
226
+ },
227
+ {
228
+ "name": "maxLength",
229
+ "description": "最大长度",
230
+ "type": "number"
231
+ },
232
+ {
233
+ "name": "autoSize",
234
+ "description": "大小自适应",
235
+ "attribute": false,
236
+ "type": "AutoSize"
237
+ },
238
+ {
239
+ "name": "required",
240
+ "description": "是否必填",
241
+ "type": "boolean"
242
+ },
243
+ {
244
+ "name": "max",
245
+ "description": "表单校验最大长度",
246
+ "type": "number"
247
+ },
248
+ {
249
+ "name": "min",
250
+ "description": "表单校验最小长度",
251
+ "type": "number"
252
+ },
253
+ {
254
+ "name": "message",
255
+ "description": "校验信息",
256
+ "attribute": false,
257
+ "type": "Record<string, string>"
258
+ },
259
+ {
260
+ "name": "textareaStyle",
261
+ "description": "自定义样式",
262
+ "attribute": false,
263
+ "type": "React.CSSProperties"
264
+ }
265
+ ],
266
+ "events": [
267
+ {
268
+ "name": "change",
269
+ "description": "",
270
+ "detail": {
271
+ "description": null,
272
+ "type": "string"
273
+ }
274
+ }
275
+ ],
276
+ "slots": [],
277
+ "methods": [],
278
+ "parts": [],
279
+ "description": "通用多行文本输入框构件",
280
+ "category": "form-input-basic"
281
+ },
282
+ {
283
+ "name": "eo-form",
284
+ "alias": [
285
+ "form.general-form"
286
+ ],
287
+ "properties": [
288
+ {
289
+ "name": "layout",
290
+ "description": "布局方式(默认 vertical 布局)",
291
+ "default": "vertical",
292
+ "type": "Layout"
293
+ },
294
+ {
295
+ "name": "size",
296
+ "description": "表单组件尺寸",
297
+ "type": "ComponentSize"
298
+ },
299
+ {
300
+ "name": "labelCol",
301
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
302
+ "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 }",
303
+ "attribute": false,
304
+ "type": "ColProps"
305
+ },
306
+ {
307
+ "name": "wrapperCol",
308
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
309
+ "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 }",
310
+ "attribute": false,
311
+ "type": "ColProps"
312
+ },
313
+ {
314
+ "name": "formStyle",
315
+ "attribute": false,
316
+ "type": "React.CSSProperties"
317
+ }
318
+ ],
319
+ "events": [
320
+ {
321
+ "name": "values.change",
322
+ "description": "表单值变更事件",
323
+ "detail": {
324
+ "description": null,
325
+ "type": "Record<string, unknown>"
326
+ }
327
+ },
328
+ {
329
+ "name": "validate.success",
330
+ "description": "表单验证成功时触发事件",
331
+ "detail": {
332
+ "type": "Record<string, unknown>"
333
+ }
334
+ },
335
+ {
336
+ "name": "validate.error",
337
+ "description": "表单验证报错时触发事件",
338
+ "detail": {
339
+ "type": "MessageBody[]"
340
+ }
341
+ }
342
+ ],
343
+ "slots": [
344
+ {
345
+ "name": null,
346
+ "description": "表单内容"
347
+ }
348
+ ],
349
+ "methods": [
350
+ {
351
+ "name": "validate",
352
+ "params": [],
353
+ "description": "表单校验方法",
354
+ "returns": {
355
+ "type": "boolean | Record<string, unknown>"
356
+ }
357
+ },
358
+ {
359
+ "name": "setInitValue",
360
+ "params": [
361
+ {
362
+ "name": "values",
363
+ "type": "Record<string, unknown>"
364
+ },
365
+ {
366
+ "name": "options",
367
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
368
+ }
369
+ ],
370
+ "description": "表单设置值方法",
371
+ "returns": {}
372
+ },
373
+ {
374
+ "name": "resetFields",
375
+ "params": [
376
+ {
377
+ "name": "name",
378
+ "type": "string"
379
+ }
380
+ ],
381
+ "description": "表单重置值方法",
382
+ "returns": {}
383
+ },
384
+ {
385
+ "name": "getFieldsValue",
386
+ "params": [
387
+ {
388
+ "name": "name",
389
+ "type": "string"
390
+ }
391
+ ],
392
+ "description": "获取表单值方法",
393
+ "returns": {}
394
+ },
395
+ {
396
+ "name": "validateField",
397
+ "params": [
398
+ {
399
+ "name": "name",
400
+ "type": "string"
401
+ }
402
+ ],
403
+ "description": "校验表单字段方法",
404
+ "returns": {}
405
+ },
406
+ {
407
+ "name": "resetValidateState",
408
+ "params": [],
409
+ "description": "重置表单校验状态方法",
410
+ "returns": {}
411
+ }
412
+ ],
413
+ "parts": [],
414
+ "description": "表单构件",
415
+ "category": "form-input-basic"
416
+ },
191
417
  {
192
418
  "name": "eo-form-item",
193
419
  "alias": [
@@ -269,23 +495,121 @@
269
495
  "type": "((value: any) => MessageBody)"
270
496
  },
271
497
  {
272
- "name": "needValidate",
273
- "description": "值变化时是否主动出发校验",
274
- "type": "boolean"
275
- }
276
- ],
277
- "events": [],
278
- "slots": [
279
- {
280
- "name": null,
281
- "description": "表单项内容"
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"
590
+ }
591
+ ],
592
+ "events": [
593
+ {
594
+ "name": "change",
595
+ "description": "值变化事件",
596
+ "detail": {
597
+ "type": "GeneralComplexOption | undefined"
598
+ }
599
+ },
600
+ {
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
+ }
282
606
  }
283
607
  ],
608
+ "slots": [],
284
609
  "methods": [],
285
610
  "parts": [],
286
- "description": "通用输入框构件",
287
- "category": "form-input-basic",
288
- "insider": true
611
+ "description": "通用单选构件",
612
+ "category": "form-input-basic"
289
613
  },
290
614
  {
291
615
  "name": "eo-select",
@@ -429,141 +753,6 @@
429
753
  "description": "通用下拉选择构件",
430
754
  "category": "form-input-basic"
431
755
  },
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
- },
567
756
  {
568
757
  "name": "eo-submit-buttons",
569
758
  "alias": [
@@ -688,123 +877,32 @@
688
877
  "type": "boolean"
689
878
  },
690
879
  {
691
- "name": "optionGroups",
692
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
693
- "attribute": false,
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": "自定义样式",
880
+ "name": "optionGroups",
881
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
790
882
  "attribute": false,
791
- "type": "React.CSSProperties"
883
+ "type": "OptionGroup[]"
792
884
  }
793
885
  ],
794
886
  "events": [
795
887
  {
796
888
  "name": "change",
797
- "description": "",
889
+ "description": "复选框变化事件",
798
890
  "detail": {
799
- "description": null,
800
- "type": "string"
891
+ "type": "CheckboxOptionType[]"
892
+ }
893
+ },
894
+ {
895
+ "name": "options.change",
896
+ "description": "复选框变化事件",
897
+ "detail": {
898
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
801
899
  }
802
900
  }
803
901
  ],
804
902
  "slots": [],
805
903
  "methods": [],
806
904
  "parts": [],
807
- "description": "通用多行文本输入框构件",
905
+ "description": "表单复选框构件",
808
906
  "category": "form-input-basic"
809
907
  },
810
908
  {
@@ -960,104 +1058,6 @@
960
1058
  "description": "搜索框",
961
1059
  "category": "form-input-basic"
962
1060
  },
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,76 +1531,6 @@
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
- },
1604
1534
  {
1605
1535
  "name": "eo-date-picker",
1606
1536
  "properties": [
@@ -1701,6 +1631,76 @@
1701
1631
  "description": "日期选择器",
1702
1632
  "category": "form-input-basic"
1703
1633
  },
1634
+ {
1635
+ "name": "eo-time-range-picker",
1636
+ "properties": [
1637
+ {
1638
+ "name": "name",
1639
+ "description": "时间段选择器字段名",
1640
+ "type": "string"
1641
+ },
1642
+ {
1643
+ "name": "label",
1644
+ "description": "时间段选择器说明",
1645
+ "type": "string"
1646
+ },
1647
+ {
1648
+ "name": "value",
1649
+ "description": "时间段选择器的初始值",
1650
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1651
+ "attribute": false,
1652
+ "type": "TimeRange"
1653
+ },
1654
+ {
1655
+ "name": "required",
1656
+ "description": "是否必填",
1657
+ "type": "boolean"
1658
+ },
1659
+ {
1660
+ "name": "rangeType",
1661
+ "description": "时间段类型",
1662
+ "attribute": false,
1663
+ "type": "RangeType"
1664
+ },
1665
+ {
1666
+ "name": "selectNearDays",
1667
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1668
+ "type": "number"
1669
+ },
1670
+ {
1671
+ "name": "emitChangeOnInit",
1672
+ "description": "",
1673
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1674
+ "type": "boolean"
1675
+ },
1676
+ {
1677
+ "name": "presetRanges",
1678
+ "description": "",
1679
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1680
+ "attribute": false,
1681
+ "type": "presetRangeType[]"
1682
+ },
1683
+ {
1684
+ "name": "validator",
1685
+ "attribute": false,
1686
+ "type": "((value: any) => MessageBody | string)"
1687
+ }
1688
+ ],
1689
+ "events": [
1690
+ {
1691
+ "name": "change",
1692
+ "description": "时间段变化时触发",
1693
+ "detail": {
1694
+ "type": "TimeRange"
1695
+ }
1696
+ }
1697
+ ],
1698
+ "slots": [],
1699
+ "methods": [],
1700
+ "parts": [],
1701
+ "description": "时间区间选择器",
1702
+ "category": "form-input-basic"
1703
+ },
1704
1704
  {
1705
1705
  "name": "eo-color-picker",
1706
1706
  "properties": [