@next-bricks/form 1.6.2 → 1.7.0

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.
@@ -361,6 +361,10 @@
361
361
  {
362
362
  "name": "values",
363
363
  "type": "Record<string, unknown>"
364
+ },
365
+ {
366
+ "name": "options",
367
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
364
368
  }
365
369
  ],
366
370
  "description": "表单设置值方法",
@@ -410,6 +414,104 @@
410
414
  "description": "表单构件",
411
415
  "category": "form-input-basic"
412
416
  },
417
+ {
418
+ "name": "eo-radio",
419
+ "alias": [
420
+ "form.general-radio"
421
+ ],
422
+ "properties": [
423
+ {
424
+ "name": "name",
425
+ "description": "下拉框字段名",
426
+ "type": "string"
427
+ },
428
+ {
429
+ "name": "label",
430
+ "description": "单选框字段说明",
431
+ "type": "string"
432
+ },
433
+ {
434
+ "name": "options",
435
+ "description": "单选框选项表",
436
+ "required": true,
437
+ "attribute": false,
438
+ "type": "GeneralOption[]"
439
+ },
440
+ {
441
+ "name": "value",
442
+ "description": "单选框当前选中始值",
443
+ "attribute": false,
444
+ "type": "any"
445
+ },
446
+ {
447
+ "name": "required",
448
+ "description": "是否必填",
449
+ "type": "boolean"
450
+ },
451
+ {
452
+ "name": "message",
453
+ "description": "校验文本信息",
454
+ "attribute": false,
455
+ "type": "Record<string, string>"
456
+ },
457
+ {
458
+ "name": "disabled",
459
+ "description": "是否禁用",
460
+ "type": "boolean"
461
+ },
462
+ {
463
+ "name": "type",
464
+ "description": "单选框样式类型",
465
+ "default": "\"default\"",
466
+ "type": "RadioType"
467
+ },
468
+ {
469
+ "name": "ui",
470
+ "description": "UI样式",
471
+ "default": "\"default\"",
472
+ "type": "UIType"
473
+ },
474
+ {
475
+ "name": "size",
476
+ "description": "大小,只对按钮样式生效",
477
+ "default": "\"medium\"",
478
+ "type": "ComponentSize"
479
+ },
480
+ {
481
+ "name": "customStyle",
482
+ "description": "自定义radio的外层样式",
483
+ "attribute": false,
484
+ "type": "React.CSSProperties"
485
+ },
486
+ {
487
+ "name": "useBrick",
488
+ "description": "自定义radio的内容",
489
+ "attribute": false,
490
+ "type": "UseSingleBrickConf"
491
+ }
492
+ ],
493
+ "events": [
494
+ {
495
+ "name": "change",
496
+ "description": "值变化事件",
497
+ "detail": {
498
+ "type": "GeneralComplexOption | undefined"
499
+ }
500
+ },
501
+ {
502
+ "name": "options.change",
503
+ "description": "选项列表变化事件",
504
+ "detail": {
505
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
506
+ }
507
+ }
508
+ ],
509
+ "slots": [],
510
+ "methods": [],
511
+ "parts": [],
512
+ "description": "通用单选构件",
513
+ "category": "form-input-basic"
514
+ },
413
515
  {
414
516
  "name": "eo-form-item",
415
517
  "alias": [
@@ -509,104 +611,6 @@
509
611
  "category": "form-input-basic",
510
612
  "insider": true
511
613
  },
512
- {
513
- "name": "eo-radio",
514
- "alias": [
515
- "form.general-radio"
516
- ],
517
- "properties": [
518
- {
519
- "name": "name",
520
- "description": "下拉框字段名",
521
- "type": "string"
522
- },
523
- {
524
- "name": "label",
525
- "description": "单选框字段说明",
526
- "type": "string"
527
- },
528
- {
529
- "name": "options",
530
- "description": "单选框选项表",
531
- "required": true,
532
- "attribute": false,
533
- "type": "GeneralOption[]"
534
- },
535
- {
536
- "name": "value",
537
- "description": "单选框当前选中始值",
538
- "attribute": false,
539
- "type": "any"
540
- },
541
- {
542
- "name": "required",
543
- "description": "是否必填",
544
- "type": "boolean"
545
- },
546
- {
547
- "name": "message",
548
- "description": "校验文本信息",
549
- "attribute": false,
550
- "type": "Record<string, string>"
551
- },
552
- {
553
- "name": "disabled",
554
- "description": "是否禁用",
555
- "type": "boolean"
556
- },
557
- {
558
- "name": "type",
559
- "description": "单选框样式类型",
560
- "default": "\"default\"",
561
- "type": "RadioType"
562
- },
563
- {
564
- "name": "ui",
565
- "description": "UI样式",
566
- "default": "\"default\"",
567
- "type": "UIType"
568
- },
569
- {
570
- "name": "size",
571
- "description": "大小,只对按钮样式生效",
572
- "default": "\"medium\"",
573
- "type": "ComponentSize"
574
- },
575
- {
576
- "name": "customStyle",
577
- "description": "自定义radio的外层样式",
578
- "attribute": false,
579
- "type": "React.CSSProperties"
580
- },
581
- {
582
- "name": "useBrick",
583
- "description": "自定义radio的内容",
584
- "attribute": false,
585
- "type": "UseSingleBrickConf"
586
- }
587
- ],
588
- "events": [
589
- {
590
- "name": "change",
591
- "description": "值变化事件",
592
- "detail": {
593
- "type": "GeneralComplexOption | undefined"
594
- }
595
- },
596
- {
597
- "name": "options.change",
598
- "description": "选项列表变化事件",
599
- "detail": {
600
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
601
- }
602
- }
603
- ],
604
- "slots": [],
605
- "methods": [],
606
- "parts": [],
607
- "description": "通用单选构件",
608
- "category": "form-input-basic"
609
- },
610
614
  {
611
615
  "name": "eo-select",
612
616
  "alias": [
package/dist/types.json CHANGED
@@ -686,6 +686,40 @@
686
686
  ]
687
687
  }
688
688
  }
689
+ },
690
+ {
691
+ "name": "options",
692
+ "annotation": {
693
+ "type": "typeLiteral",
694
+ "members": [
695
+ {
696
+ "type": "propertySignature",
697
+ "key": {
698
+ "type": "identifier",
699
+ "name": "runInMacrotask"
700
+ },
701
+ "annotation": {
702
+ "type": "keyword",
703
+ "value": "boolean"
704
+ },
705
+ "optional": true,
706
+ "computed": false
707
+ },
708
+ {
709
+ "type": "propertySignature",
710
+ "key": {
711
+ "type": "identifier",
712
+ "name": "runInMicrotask"
713
+ },
714
+ "annotation": {
715
+ "type": "keyword",
716
+ "value": "boolean"
717
+ },
718
+ "optional": true,
719
+ "computed": false
720
+ }
721
+ ]
722
+ }
689
723
  }
690
724
  ],
691
725
  "returns": {}
@@ -56,7 +56,10 @@ declare class Form extends ReactNextElement implements FormProps, AbstractForm {
56
56
  /**
57
57
  * 表单设置值方法
58
58
  */
59
- setInitValue(values: Record<string, unknown>): void;
59
+ setInitValue(values: Record<string, unknown>, options?: {
60
+ runInMacrotask?: boolean;
61
+ runInMicrotask?: boolean;
62
+ }): void;
60
63
  /**
61
64
  * 表单重置值方法
62
65
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,5 +43,5 @@
43
43
  "@next-bricks/icons": "*",
44
44
  "@next-bricks/illustrations": "*"
45
45
  },
46
- "gitHead": "c87de6266e7d3bb6f9e76c28c11cd805baf80120"
46
+ "gitHead": "0fc36806b2bfc73070378707806f944631dc676c"
47
47
  }