@next-bricks/form 1.18.6 → 1.18.7

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 (32) hide show
  1. package/dist/bricks.json +33 -33
  2. package/dist/chunks/1418.14c518c8.js +3 -0
  3. package/dist/chunks/1418.14c518c8.js.map +1 -0
  4. package/dist/chunks/eo-icon-select.7e1b98a9.js +3 -0
  5. package/dist/chunks/eo-icon-select.7e1b98a9.js.map +1 -0
  6. package/dist/chunks/eo-upload-file.04ac63ee.js +3 -0
  7. package/dist/chunks/eo-upload-file.04ac63ee.js.map +1 -0
  8. package/dist/chunks/eo-upload-image.863b4bb0.js +3 -0
  9. package/dist/chunks/eo-upload-image.863b4bb0.js.map +1 -0
  10. package/dist/chunks/{main.6fd1e346.js → main.cc796669.js} +2 -2
  11. package/dist/chunks/{main.6fd1e346.js.map → main.cc796669.js.map} +1 -1
  12. package/dist/examples.json +11 -11
  13. package/dist/{index.1ca743c9.js → index.db61fd9f.js} +2 -2
  14. package/dist/{index.1ca743c9.js.map → index.db61fd9f.js.map} +1 -1
  15. package/dist/manifest.json +382 -367
  16. package/dist/types.json +1375 -1327
  17. package/dist-types/icon-select/index.d.ts +3 -0
  18. package/dist-types/upload/Upload.d.ts +1 -0
  19. package/dist-types/upload/upload-image/index.d.ts +6 -0
  20. package/package.json +2 -2
  21. package/dist/chunks/1418.de8ee716.js +0 -3
  22. package/dist/chunks/1418.de8ee716.js.map +0 -1
  23. package/dist/chunks/eo-icon-select.55cc1eec.js +0 -3
  24. package/dist/chunks/eo-icon-select.55cc1eec.js.map +0 -1
  25. package/dist/chunks/eo-upload-file.fbd3dc1f.js +0 -3
  26. package/dist/chunks/eo-upload-file.fbd3dc1f.js.map +0 -1
  27. package/dist/chunks/eo-upload-image.5bd2ef86.js +0 -3
  28. package/dist/chunks/eo-upload-image.5bd2ef86.js.map +0 -1
  29. /package/dist/chunks/{1418.de8ee716.js.LICENSE.txt → 1418.14c518c8.js.LICENSE.txt} +0 -0
  30. /package/dist/chunks/{eo-icon-select.55cc1eec.js.LICENSE.txt → eo-icon-select.7e1b98a9.js.LICENSE.txt} +0 -0
  31. /package/dist/chunks/{eo-upload-file.fbd3dc1f.js.LICENSE.txt → eo-upload-file.04ac63ee.js.LICENSE.txt} +0 -0
  32. /package/dist/chunks/{eo-upload-image.5bd2ef86.js.LICENSE.txt → eo-upload-image.863b4bb0.js.LICENSE.txt} +0 -0
@@ -4,79 +4,78 @@
4
4
  "name": "form",
5
5
  "bricks": [
6
6
  {
7
- "name": "eo-radio",
7
+ "name": "eo-textarea",
8
8
  "alias": [
9
- "form.general-radio"
9
+ "form.general-textarea"
10
10
  ],
11
11
  "properties": [
12
12
  {
13
13
  "name": "name",
14
- "description": "下拉框字段名",
14
+ "description": "字段名称",
15
15
  "type": "string"
16
16
  },
17
17
  {
18
18
  "name": "label",
19
- "description": "单选框字段说明",
19
+ "description": "标签文字",
20
20
  "type": "string"
21
21
  },
22
22
  {
23
- "name": "options",
24
- "description": "单选框选项表",
25
- "required": true,
26
- "attribute": false,
27
- "type": "GeneralOption[]"
23
+ "name": "value",
24
+ "description": "",
25
+ "type": "string"
28
26
  },
29
27
  {
30
- "name": "value",
31
- "description": "单选框当前选中始值",
32
- "attribute": false,
33
- "type": "any"
28
+ "name": "placeholder",
29
+ "description": "占位说明",
30
+ "type": "string"
34
31
  },
35
32
  {
36
- "name": "required",
37
- "description": "是否必填",
33
+ "name": "disabled",
34
+ "description": "是否禁用",
38
35
  "type": "boolean"
39
36
  },
40
37
  {
41
- "name": "message",
42
- "description": "校验文本信息",
43
- "attribute": false,
44
- "type": "Record<string, string>"
38
+ "name": "minLength",
39
+ "description": "最小长度",
40
+ "type": "number"
45
41
  },
46
42
  {
47
- "name": "disabled",
48
- "description": "是否禁用",
49
- "type": "boolean"
43
+ "name": "maxLength",
44
+ "description": "最大长度",
45
+ "type": "number"
50
46
  },
51
47
  {
52
- "name": "type",
53
- "description": "单选框样式类型",
54
- "default": "\"default\"",
55
- "type": "RadioType"
48
+ "name": "autoSize",
49
+ "description": "大小自适应",
50
+ "attribute": false,
51
+ "type": "AutoSize"
56
52
  },
57
53
  {
58
- "name": "ui",
59
- "description": "UI样式",
60
- "default": "\"default\"",
61
- "type": "UIType"
54
+ "name": "required",
55
+ "description": "是否必填",
56
+ "type": "boolean"
62
57
  },
63
58
  {
64
- "name": "size",
65
- "description": "大小,只对按钮样式生效",
66
- "default": "\"medium\"",
67
- "type": "ComponentSize"
59
+ "name": "max",
60
+ "description": "表单校验最大长度",
61
+ "type": "number"
68
62
  },
69
63
  {
70
- "name": "customStyle",
71
- "description": "自定义radio的外层样式",
64
+ "name": "min",
65
+ "description": "表单校验最小长度",
66
+ "type": "number"
67
+ },
68
+ {
69
+ "name": "message",
70
+ "description": "校验信息",
72
71
  "attribute": false,
73
- "type": "React.CSSProperties"
72
+ "type": "Record<string, string>"
74
73
  },
75
74
  {
76
- "name": "useBrick",
77
- "description": "自定义radio的内容",
75
+ "name": "textareaStyle",
76
+ "description": "自定义样式",
78
77
  "attribute": false,
79
- "type": "UseSingleBrickConf"
78
+ "type": "React.CSSProperties"
80
79
  },
81
80
  {
82
81
  "name": "themeVariant",
@@ -87,23 +86,24 @@
87
86
  "events": [
88
87
  {
89
88
  "name": "change",
90
- "description": "值变化事件",
91
- "detail": {
92
- "type": "GeneralComplexOption | undefined"
93
- }
94
- },
95
- {
96
- "name": "options.change",
97
- "description": "选项列表变化事件",
89
+ "description": "",
98
90
  "detail": {
99
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
91
+ "description": null,
92
+ "type": "string"
100
93
  }
101
94
  }
102
95
  ],
103
96
  "slots": [],
104
- "methods": [],
97
+ "methods": [
98
+ {
99
+ "name": "focusTextarea",
100
+ "params": [],
101
+ "description": "focus",
102
+ "returns": {}
103
+ }
104
+ ],
105
105
  "parts": [],
106
- "description": "通用单选构件",
106
+ "description": "通用多行文本输入框构件",
107
107
  "category": "form-input-basic"
108
108
  },
109
109
  {
@@ -251,173 +251,6 @@
251
251
  "description": "表单构件",
252
252
  "category": "form-input-basic"
253
253
  },
254
- {
255
- "name": "eo-select",
256
- "alias": [
257
- "form.general-select"
258
- ],
259
- "properties": [
260
- {
261
- "name": "name",
262
- "description": "字段名称",
263
- "type": "string"
264
- },
265
- {
266
- "name": "placeholder",
267
- "description": "占位说明",
268
- "type": "string"
269
- },
270
- {
271
- "name": "label",
272
- "description": "字段文本",
273
- "type": "string"
274
- },
275
- {
276
- "name": "options",
277
- "description": "选项列表",
278
- "required": true,
279
- "attribute": false,
280
- "type": "GeneralComplexOption[]"
281
- },
282
- {
283
- "name": "value",
284
- "description": "值",
285
- "attribute": false,
286
- "type": "any"
287
- },
288
- {
289
- "name": "required",
290
- "description": "是否必填",
291
- "type": "boolean"
292
- },
293
- {
294
- "name": "message",
295
- "description": "校验文本信息",
296
- "attribute": false,
297
- "type": "Record<string, string>"
298
- },
299
- {
300
- "name": "disabled",
301
- "description": "是否禁用",
302
- "type": "boolean"
303
- },
304
- {
305
- "name": "mode",
306
- "description": "类型",
307
- "type": "\"tags\" | \"multiple\""
308
- },
309
- {
310
- "name": "tokenSeparators",
311
- "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
312
- "attribute": false,
313
- "type": "string[]"
314
- },
315
- {
316
- "name": "maxTagCount",
317
- "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
318
- "type": "number"
319
- },
320
- {
321
- "name": "groupBy",
322
- "description": "分组字段",
323
- "type": "string"
324
- },
325
- {
326
- "name": "suffix",
327
- "description": "",
328
- "attribute": false,
329
- "type": "{ useBrick: UseSingleBrickConf }"
330
- },
331
- {
332
- "name": "clearable",
333
- "description": "是否支持清除",
334
- "default": "true",
335
- "type": "boolean"
336
- },
337
- {
338
- "name": "fields",
339
- "description": "列表指定字段作为 label 和 value",
340
- "attribute": false,
341
- "type": "{ label?: string; value?: string }"
342
- },
343
- {
344
- "name": "useBackend",
345
- "description": "后端搜索",
346
- "attribute": false,
347
- "type": "UseBackendConf"
348
- },
349
- {
350
- "name": "debounceSearchDelay",
351
- "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
352
- "type": "number"
353
- },
354
- {
355
- "name": "inputStyle",
356
- "description": "输入框样式",
357
- "attribute": false,
358
- "type": "React.CSSProperties"
359
- },
360
- {
361
- "name": "dropdownStyle",
362
- "description": "下拉框样式",
363
- "attribute": false,
364
- "type": "React.CSSProperties"
365
- },
366
- {
367
- "name": "dropdownHoist",
368
- "description": "下拉框是否使用固定定位防止内容被裁切",
369
- "type": "boolean"
370
- },
371
- {
372
- "name": "themeVariant",
373
- "description": "主题变体",
374
- "type": "\"default\" | \"elevo\""
375
- }
376
- ],
377
- "events": [
378
- {
379
- "name": "change",
380
- "description": "下拉选择事件",
381
- "detail": {
382
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
383
- }
384
- },
385
- {
386
- "name": "change.v2",
387
- "description": "下拉选择事件 v2(仅传递选中的值)",
388
- "detail": {
389
- "description": "选中的值",
390
- "type": "string | string[]"
391
- }
392
- },
393
- {
394
- "name": "search",
395
- "description": "下拉框search事件",
396
- "detail": {
397
- "type": "{\n value: string;\n }"
398
- }
399
- },
400
- {
401
- "name": "select.focus",
402
- "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
403
- "detail": {
404
- "type": "void"
405
- }
406
- },
407
- {
408
- "name": "options.change",
409
- "description": "选项列表变化事件",
410
- "detail": {
411
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
412
- }
413
- }
414
- ],
415
- "slots": [],
416
- "methods": [],
417
- "parts": [],
418
- "description": "通用下拉选择构件",
419
- "category": "form-input-basic"
420
- },
421
254
  {
422
255
  "name": "eo-submit-buttons",
423
256
  "alias": [
@@ -484,9 +317,9 @@
484
317
  "category": "form-input-basic"
485
318
  },
486
319
  {
487
- "name": "eo-textarea",
320
+ "name": "eo-checkbox",
488
321
  "alias": [
489
- "form.general-textarea"
322
+ "form.general-checkbox"
490
323
  ],
491
324
  "properties": [
492
325
  {
@@ -496,18 +329,28 @@
496
329
  },
497
330
  {
498
331
  "name": "label",
499
- "description": "标签文字",
332
+ "description": "字段说明",
500
333
  "type": "string"
501
334
  },
502
335
  {
503
336
  "name": "value",
504
337
  "description": "值",
505
- "type": "string"
338
+ "attribute": false,
339
+ "type": "CheckboxValueType[]"
506
340
  },
507
341
  {
508
- "name": "placeholder",
509
- "description": "占位说明",
510
- "type": "string"
342
+ "name": "options",
343
+ "description": "多选框选项表",
344
+ "required": true,
345
+ "default": "[]",
346
+ "attribute": false,
347
+ "type": "CheckboxOptionType[]"
348
+ },
349
+ {
350
+ "name": "type",
351
+ "description": "类型",
352
+ "default": "\"default\"",
353
+ "type": "CheckboxType"
511
354
  },
512
355
  {
513
356
  "name": "disabled",
@@ -515,47 +358,32 @@
515
358
  "type": "boolean"
516
359
  },
517
360
  {
518
- "name": "minLength",
519
- "description": "最小长度",
520
- "type": "number"
521
- },
522
- {
523
- "name": "maxLength",
524
- "description": "最大长度",
525
- "type": "number"
526
- },
527
- {
528
- "name": "autoSize",
529
- "description": "大小自适应",
530
- "attribute": false,
531
- "type": "AutoSize"
361
+ "name": "isCustom",
362
+ "description": "是否为自定义",
363
+ "default": "false",
364
+ "type": "boolean"
532
365
  },
533
366
  {
534
367
  "name": "required",
535
368
  "description": "是否必填",
536
369
  "type": "boolean"
537
370
  },
538
- {
539
- "name": "max",
540
- "description": "表单校验最大长度",
541
- "type": "number"
542
- },
543
- {
544
- "name": "min",
545
- "description": "表单校验最小长度",
546
- "type": "number"
547
- },
548
371
  {
549
372
  "name": "message",
550
- "description": "校验信息",
373
+ "description": "校验文本",
551
374
  "attribute": false,
552
375
  "type": "Record<string, string>"
553
376
  },
554
377
  {
555
- "name": "textareaStyle",
556
- "description": "自定义样式",
378
+ "name": "isGroup",
379
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
380
+ "type": "boolean"
381
+ },
382
+ {
383
+ "name": "optionGroups",
384
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
557
385
  "attribute": false,
558
- "type": "React.CSSProperties"
386
+ "type": "OptionGroup[]"
559
387
  },
560
388
  {
561
389
  "name": "themeVariant",
@@ -566,30 +394,29 @@
566
394
  "events": [
567
395
  {
568
396
  "name": "change",
569
- "description": "",
397
+ "description": "复选框变化事件",
570
398
  "detail": {
571
- "description": null,
572
- "type": "string"
399
+ "type": "CheckboxOptionType[]"
573
400
  }
574
- }
575
- ],
576
- "slots": [],
577
- "methods": [
401
+ },
578
402
  {
579
- "name": "focusTextarea",
580
- "params": [],
581
- "description": "focus",
582
- "returns": {}
403
+ "name": "options.change",
404
+ "description": "复选框变化事件",
405
+ "detail": {
406
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
407
+ }
583
408
  }
584
409
  ],
410
+ "slots": [],
411
+ "methods": [],
585
412
  "parts": [],
586
- "description": "通用多行文本输入框构件",
413
+ "description": "表单复选框构件",
587
414
  "category": "form-input-basic"
588
415
  },
589
416
  {
590
- "name": "eo-checkbox",
417
+ "name": "eo-select",
591
418
  "alias": [
592
- "form.general-checkbox"
419
+ "form.general-select"
593
420
  ],
594
421
  "properties": [
595
422
  {
@@ -597,30 +424,39 @@
597
424
  "description": "字段名称",
598
425
  "type": "string"
599
426
  },
427
+ {
428
+ "name": "placeholder",
429
+ "description": "占位说明",
430
+ "type": "string"
431
+ },
600
432
  {
601
433
  "name": "label",
602
- "description": "字段说明",
434
+ "description": "字段文本",
603
435
  "type": "string"
604
436
  },
437
+ {
438
+ "name": "options",
439
+ "description": "选项列表",
440
+ "required": true,
441
+ "attribute": false,
442
+ "type": "GeneralComplexOption[]"
443
+ },
605
444
  {
606
445
  "name": "value",
607
446
  "description": "值",
608
447
  "attribute": false,
609
- "type": "CheckboxValueType[]"
448
+ "type": "any"
610
449
  },
611
450
  {
612
- "name": "options",
613
- "description": "多选框选项表",
614
- "required": true,
615
- "default": "[]",
616
- "attribute": false,
617
- "type": "CheckboxOptionType[]"
451
+ "name": "required",
452
+ "description": "是否必填",
453
+ "type": "boolean"
618
454
  },
619
455
  {
620
- "name": "type",
621
- "description": "类型",
622
- "default": "\"default\"",
623
- "type": "CheckboxType"
456
+ "name": "message",
457
+ "description": "校验文本信息",
458
+ "attribute": false,
459
+ "type": "Record<string, string>"
624
460
  },
625
461
  {
626
462
  "name": "disabled",
@@ -628,32 +464,71 @@
628
464
  "type": "boolean"
629
465
  },
630
466
  {
631
- "name": "isCustom",
632
- "description": "是否为自定义",
633
- "default": "false",
634
- "type": "boolean"
467
+ "name": "mode",
468
+ "description": "类型",
469
+ "type": "\"tags\" | \"multiple\""
635
470
  },
636
471
  {
637
- "name": "required",
638
- "description": "是否必填",
639
- "type": "boolean"
472
+ "name": "tokenSeparators",
473
+ "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
474
+ "attribute": false,
475
+ "type": "string[]"
640
476
  },
641
477
  {
642
- "name": "message",
643
- "description": "校验文本",
478
+ "name": "maxTagCount",
479
+ "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
480
+ "type": "number"
481
+ },
482
+ {
483
+ "name": "groupBy",
484
+ "description": "分组字段",
485
+ "type": "string"
486
+ },
487
+ {
488
+ "name": "suffix",
489
+ "description": "",
644
490
  "attribute": false,
645
- "type": "Record<string, string>"
491
+ "type": "{ useBrick: UseSingleBrickConf }"
646
492
  },
647
493
  {
648
- "name": "isGroup",
649
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
494
+ "name": "clearable",
495
+ "description": "是否支持清除",
496
+ "default": "true",
650
497
  "type": "boolean"
651
498
  },
652
499
  {
653
- "name": "optionGroups",
654
- "description": "多选框选项分组数据,需要设置 isGroup true 才生效",
500
+ "name": "fields",
501
+ "description": "列表指定字段作为 label value",
655
502
  "attribute": false,
656
- "type": "OptionGroup[]"
503
+ "type": "{ label?: string; value?: string }"
504
+ },
505
+ {
506
+ "name": "useBackend",
507
+ "description": "后端搜索",
508
+ "attribute": false,
509
+ "type": "UseBackendConf"
510
+ },
511
+ {
512
+ "name": "debounceSearchDelay",
513
+ "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
514
+ "type": "number"
515
+ },
516
+ {
517
+ "name": "inputStyle",
518
+ "description": "输入框样式",
519
+ "attribute": false,
520
+ "type": "React.CSSProperties"
521
+ },
522
+ {
523
+ "name": "dropdownStyle",
524
+ "description": "下拉框样式",
525
+ "attribute": false,
526
+ "type": "React.CSSProperties"
527
+ },
528
+ {
529
+ "name": "dropdownHoist",
530
+ "description": "下拉框是否使用固定定位防止内容被裁切",
531
+ "type": "boolean"
657
532
  },
658
533
  {
659
534
  "name": "themeVariant",
@@ -664,23 +539,45 @@
664
539
  "events": [
665
540
  {
666
541
  "name": "change",
667
- "description": "复选框变化事件",
542
+ "description": "下拉选择事件",
668
543
  "detail": {
669
- "type": "CheckboxOptionType[]"
544
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
545
+ }
546
+ },
547
+ {
548
+ "name": "change.v2",
549
+ "description": "下拉选择事件 v2(仅传递选中的值)",
550
+ "detail": {
551
+ "description": "选中的值",
552
+ "type": "string | string[]"
553
+ }
554
+ },
555
+ {
556
+ "name": "search",
557
+ "description": "下拉框search事件",
558
+ "detail": {
559
+ "type": "{\n value: string;\n }"
560
+ }
561
+ },
562
+ {
563
+ "name": "select.focus",
564
+ "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
565
+ "detail": {
566
+ "type": "void"
670
567
  }
671
568
  },
672
569
  {
673
570
  "name": "options.change",
674
- "description": "复选框变化事件",
571
+ "description": "选项列表变化事件",
675
572
  "detail": {
676
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
573
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
677
574
  }
678
575
  }
679
576
  ],
680
577
  "slots": [],
681
578
  "methods": [],
682
579
  "parts": [],
683
- "description": "表单复选框构件",
580
+ "description": "通用下拉选择构件",
684
581
  "category": "form-input-basic"
685
582
  },
686
583
  {
@@ -775,6 +672,109 @@
775
672
  "description": "动态表单",
776
673
  "category": "form-input-basic"
777
674
  },
675
+ {
676
+ "name": "eo-radio",
677
+ "alias": [
678
+ "form.general-radio"
679
+ ],
680
+ "properties": [
681
+ {
682
+ "name": "name",
683
+ "description": "下拉框字段名",
684
+ "type": "string"
685
+ },
686
+ {
687
+ "name": "label",
688
+ "description": "单选框字段说明",
689
+ "type": "string"
690
+ },
691
+ {
692
+ "name": "options",
693
+ "description": "单选框选项表",
694
+ "required": true,
695
+ "attribute": false,
696
+ "type": "GeneralOption[]"
697
+ },
698
+ {
699
+ "name": "value",
700
+ "description": "单选框当前选中始值",
701
+ "attribute": false,
702
+ "type": "any"
703
+ },
704
+ {
705
+ "name": "required",
706
+ "description": "是否必填",
707
+ "type": "boolean"
708
+ },
709
+ {
710
+ "name": "message",
711
+ "description": "校验文本信息",
712
+ "attribute": false,
713
+ "type": "Record<string, string>"
714
+ },
715
+ {
716
+ "name": "disabled",
717
+ "description": "是否禁用",
718
+ "type": "boolean"
719
+ },
720
+ {
721
+ "name": "type",
722
+ "description": "单选框样式类型",
723
+ "default": "\"default\"",
724
+ "type": "RadioType"
725
+ },
726
+ {
727
+ "name": "ui",
728
+ "description": "UI样式",
729
+ "default": "\"default\"",
730
+ "type": "UIType"
731
+ },
732
+ {
733
+ "name": "size",
734
+ "description": "大小,只对按钮样式生效",
735
+ "default": "\"medium\"",
736
+ "type": "ComponentSize"
737
+ },
738
+ {
739
+ "name": "customStyle",
740
+ "description": "自定义radio的外层样式",
741
+ "attribute": false,
742
+ "type": "React.CSSProperties"
743
+ },
744
+ {
745
+ "name": "useBrick",
746
+ "description": "自定义radio的内容",
747
+ "attribute": false,
748
+ "type": "UseSingleBrickConf"
749
+ },
750
+ {
751
+ "name": "themeVariant",
752
+ "description": "主题变体",
753
+ "type": "\"default\" | \"elevo\""
754
+ }
755
+ ],
756
+ "events": [
757
+ {
758
+ "name": "change",
759
+ "description": "值变化事件",
760
+ "detail": {
761
+ "type": "GeneralComplexOption | undefined"
762
+ }
763
+ },
764
+ {
765
+ "name": "options.change",
766
+ "description": "选项列表变化事件",
767
+ "detail": {
768
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
769
+ }
770
+ }
771
+ ],
772
+ "slots": [],
773
+ "methods": [],
774
+ "parts": [],
775
+ "description": "通用单选构件",
776
+ "category": "form-input-basic"
777
+ },
778
778
  {
779
779
  "name": "eo-search",
780
780
  "alias": [
@@ -884,6 +884,11 @@
884
884
  "description": "是否必填",
885
885
  "attribute": false,
886
886
  "type": "Record<string, string>"
887
+ },
888
+ {
889
+ "name": "themeVariant",
890
+ "description": "主题变体",
891
+ "type": "\"default\" | \"elevo\""
887
892
  }
888
893
  ],
889
894
  "events": [
@@ -953,6 +958,16 @@
953
958
  "description": "校验文本信息",
954
959
  "attribute": false,
955
960
  "type": "Record<string, string>"
961
+ },
962
+ {
963
+ "name": "variant",
964
+ "description": "变体",
965
+ "type": "\"default\" | \"avatar\""
966
+ },
967
+ {
968
+ "name": "themeVariant",
969
+ "description": "主题变体",
970
+ "type": "\"default\" | \"elevo\""
956
971
  }
957
972
  ],
958
973
  "events": [
@@ -1426,24 +1441,27 @@
1426
1441
  "category": "form-input-basic"
1427
1442
  },
1428
1443
  {
1429
- "name": "eo-time-range-picker",
1444
+ "name": "eo-color-picker",
1430
1445
  "properties": [
1431
1446
  {
1432
1447
  "name": "name",
1433
- "description": "时间段选择器字段名",
1448
+ "description": "字段名称",
1434
1449
  "type": "string"
1435
1450
  },
1436
1451
  {
1437
1452
  "name": "label",
1438
- "description": "时间段选择器说明",
1453
+ "description": "字段说明",
1439
1454
  "type": "string"
1440
1455
  },
1441
1456
  {
1442
1457
  "name": "value",
1443
- "description": "时间段选择器的初始值",
1444
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1445
- "attribute": false,
1446
- "type": "TimeRange"
1458
+ "description": "",
1459
+ "type": "string"
1460
+ },
1461
+ {
1462
+ "name": "defaultValue",
1463
+ "description": "颜色默认的值",
1464
+ "type": "string | Color"
1447
1465
  },
1448
1466
  {
1449
1467
  "name": "required",
@@ -1451,84 +1469,74 @@
1451
1469
  "type": "boolean"
1452
1470
  },
1453
1471
  {
1454
- "name": "rangeType",
1455
- "description": "时间段类型",
1456
- "attribute": false,
1457
- "type": "RangeType"
1458
- },
1459
- {
1460
- "name": "placeholder",
1461
- "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1462
- "attribute": false,
1463
- "type": "string | [string, string]"
1472
+ "name": "allowClear",
1473
+ "description": "允许清除选择的颜色",
1474
+ "type": "boolean"
1464
1475
  },
1465
1476
  {
1466
- "name": "inputStyle",
1467
- "description": "输入框样式",
1477
+ "name": "size",
1478
+ "description": "设置触发器大小",
1479
+ "default": "middle",
1468
1480
  "attribute": false,
1469
- "type": "React.CSSProperties"
1481
+ "type": "\"small\" | \"middle\" | \"large\""
1470
1482
  },
1471
1483
  {
1472
- "name": "selectNearDays",
1473
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1474
- "type": "number"
1484
+ "name": "showText",
1485
+ "description": "显示颜色文本",
1486
+ "type": "boolean"
1475
1487
  },
1476
1488
  {
1477
- "name": "emitChangeOnInit",
1478
- "description": "",
1479
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1489
+ "name": "disabled",
1490
+ "description": "是否禁用",
1480
1491
  "type": "boolean"
1481
1492
  },
1482
1493
  {
1483
- "name": "presetRanges",
1484
- "description": "",
1485
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1494
+ "name": "format",
1495
+ "description": "颜色格式",
1496
+ "default": "hex",
1486
1497
  "attribute": false,
1487
- "type": "presetRangeType[]"
1498
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1488
1499
  },
1489
1500
  {
1490
- "name": "validator",
1501
+ "name": "configProps",
1502
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1491
1503
  "attribute": false,
1492
- "type": "((value: any) => MessageBody | string)"
1504
+ "type": "Partial<ColorPickerProps>"
1493
1505
  }
1494
1506
  ],
1495
1507
  "events": [
1496
1508
  {
1497
1509
  "name": "change",
1498
- "description": "时间段变化时触发",
1510
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1499
1511
  "detail": {
1500
- "type": "TimeRange"
1512
+ "type": "string | undefined"
1501
1513
  }
1502
1514
  }
1503
1515
  ],
1504
1516
  "slots": [],
1505
1517
  "methods": [],
1506
1518
  "parts": [],
1507
- "description": "时间区间选择器",
1508
- "category": "form-input-basic"
1519
+ "description": "构件 `eo-color-picker`"
1509
1520
  },
1510
1521
  {
1511
- "name": "eo-color-picker",
1522
+ "name": "eo-time-range-picker",
1512
1523
  "properties": [
1513
1524
  {
1514
1525
  "name": "name",
1515
- "description": "字段名称",
1526
+ "description": "时间段选择器字段名",
1516
1527
  "type": "string"
1517
1528
  },
1518
1529
  {
1519
1530
  "name": "label",
1520
- "description": "字段说明",
1531
+ "description": "时间段选择器说明",
1521
1532
  "type": "string"
1522
1533
  },
1523
1534
  {
1524
1535
  "name": "value",
1525
- "description": "",
1526
- "type": "string"
1527
- },
1528
- {
1529
- "name": "defaultValue",
1530
- "description": "颜色默认的值",
1531
- "type": "string | Color"
1536
+ "description": "时间段选择器的初始值",
1537
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1538
+ "attribute": false,
1539
+ "type": "TimeRange"
1532
1540
  },
1533
1541
  {
1534
1542
  "name": "required",
@@ -1536,54 +1544,61 @@
1536
1544
  "type": "boolean"
1537
1545
  },
1538
1546
  {
1539
- "name": "allowClear",
1540
- "description": "允许清除选择的颜色",
1541
- "type": "boolean"
1547
+ "name": "rangeType",
1548
+ "description": "时间段类型",
1549
+ "attribute": false,
1550
+ "type": "RangeType"
1542
1551
  },
1543
1552
  {
1544
- "name": "size",
1545
- "description": "设置触发器大小",
1546
- "default": "middle",
1553
+ "name": "placeholder",
1554
+ "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1547
1555
  "attribute": false,
1548
- "type": "\"small\" | \"middle\" | \"large\""
1556
+ "type": "string | [string, string]"
1549
1557
  },
1550
1558
  {
1551
- "name": "showText",
1552
- "description": "显示颜色文本",
1553
- "type": "boolean"
1559
+ "name": "inputStyle",
1560
+ "description": "输入框样式",
1561
+ "attribute": false,
1562
+ "type": "React.CSSProperties"
1554
1563
  },
1555
1564
  {
1556
- "name": "disabled",
1557
- "description": "是否禁用",
1565
+ "name": "selectNearDays",
1566
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1567
+ "type": "number"
1568
+ },
1569
+ {
1570
+ "name": "emitChangeOnInit",
1571
+ "description": "",
1572
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1558
1573
  "type": "boolean"
1559
1574
  },
1560
1575
  {
1561
- "name": "format",
1562
- "description": "颜色格式",
1563
- "default": "hex",
1576
+ "name": "presetRanges",
1577
+ "description": "",
1578
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1564
1579
  "attribute": false,
1565
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1580
+ "type": "presetRangeType[]"
1566
1581
  },
1567
1582
  {
1568
- "name": "configProps",
1569
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1583
+ "name": "validator",
1570
1584
  "attribute": false,
1571
- "type": "Partial<ColorPickerProps>"
1585
+ "type": "((value: any) => MessageBody | string)"
1572
1586
  }
1573
1587
  ],
1574
1588
  "events": [
1575
1589
  {
1576
1590
  "name": "change",
1577
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1591
+ "description": "时间段变化时触发",
1578
1592
  "detail": {
1579
- "type": "string | undefined"
1593
+ "type": "TimeRange"
1580
1594
  }
1581
1595
  }
1582
1596
  ],
1583
1597
  "slots": [],
1584
1598
  "methods": [],
1585
1599
  "parts": [],
1586
- "description": "构件 `eo-color-picker`"
1600
+ "description": "时间区间选择器",
1601
+ "category": "form-input-basic"
1587
1602
  },
1588
1603
  {
1589
1604
  "name": "eo-form-item",