@next-bricks/form 1.12.0 → 1.12.1

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.
@@ -519,6 +519,105 @@
519
519
  "description": "通用单选构件",
520
520
  "category": "form-input-basic"
521
521
  },
522
+ {
523
+ "name": "eo-form-item",
524
+ "alias": [
525
+ "form.general-form-item"
526
+ ],
527
+ "properties": [
528
+ {
529
+ "name": "formElement",
530
+ "attribute": false,
531
+ "type": "Form"
532
+ },
533
+ {
534
+ "name": "curElement",
535
+ "attribute": false,
536
+ "type": "HTMLElement"
537
+ },
538
+ {
539
+ "name": "name",
540
+ "description": "字段名称",
541
+ "type": "string"
542
+ },
543
+ {
544
+ "name": "label",
545
+ "type": "string"
546
+ },
547
+ {
548
+ "name": "pattern",
549
+ "type": "string"
550
+ },
551
+ {
552
+ "name": "message",
553
+ "attribute": false,
554
+ "type": "Record<string, string>"
555
+ },
556
+ {
557
+ "name": "max",
558
+ "type": "number"
559
+ },
560
+ {
561
+ "name": "min",
562
+ "type": "number"
563
+ },
564
+ {
565
+ "name": "required",
566
+ "description": "表单项是否为必填",
567
+ "type": "boolean"
568
+ },
569
+ {
570
+ "name": "value",
571
+ "description": "初始值",
572
+ "type": "string"
573
+ },
574
+ {
575
+ "name": "valuePropsName",
576
+ "type": "string"
577
+ },
578
+ {
579
+ "name": "layout",
580
+ "type": "Layout"
581
+ },
582
+ {
583
+ "name": "size",
584
+ "type": "ComponentSize"
585
+ },
586
+ {
587
+ "name": "trim",
588
+ "description": "是否自动去除前后的空白字符",
589
+ "default": "true"
590
+ },
591
+ {
592
+ "name": "trigger",
593
+ "description": "事件触发方法名",
594
+ "type": "string"
595
+ },
596
+ {
597
+ "name": "validator",
598
+ "description": "表单项校验方法",
599
+ "attribute": false,
600
+ "type": "((value: any) => MessageBody)"
601
+ },
602
+ {
603
+ "name": "needValidate",
604
+ "description": "值变化时是否主动出发校验",
605
+ "type": "boolean"
606
+ }
607
+ ],
608
+ "events": [],
609
+ "slots": [
610
+ {
611
+ "name": null,
612
+ "description": "表单项内容"
613
+ }
614
+ ],
615
+ "methods": [],
616
+ "parts": [],
617
+ "description": "通用输入框构件",
618
+ "category": "form-input-basic",
619
+ "insider": true
620
+ },
522
621
  {
523
622
  "name": "eo-select",
524
623
  "alias": [
@@ -662,21 +761,11 @@
662
761
  "category": "form-input-basic"
663
762
  },
664
763
  {
665
- "name": "eo-form-item",
764
+ "name": "eo-checkbox",
666
765
  "alias": [
667
- "form.general-form-item"
766
+ "form.general-checkbox"
668
767
  ],
669
768
  "properties": [
670
- {
671
- "name": "formElement",
672
- "attribute": false,
673
- "type": "Form"
674
- },
675
- {
676
- "name": "curElement",
677
- "attribute": false,
678
- "type": "HTMLElement"
679
- },
680
769
  {
681
770
  "name": "name",
682
771
  "description": "字段名称",
@@ -684,81 +773,84 @@
684
773
  },
685
774
  {
686
775
  "name": "label",
776
+ "description": "字段说明",
687
777
  "type": "string"
688
778
  },
689
779
  {
690
- "name": "pattern",
691
- "type": "string"
692
- },
693
- {
694
- "name": "message",
780
+ "name": "value",
781
+ "description": "",
695
782
  "attribute": false,
696
- "type": "Record<string, string>"
783
+ "type": "CheckboxValueType[]"
697
784
  },
698
785
  {
699
- "name": "max",
700
- "type": "number"
786
+ "name": "options",
787
+ "description": "多选框选项表",
788
+ "required": true,
789
+ "default": "[]",
790
+ "attribute": false,
791
+ "type": "CheckboxOptionType[]"
701
792
  },
702
793
  {
703
- "name": "min",
704
- "type": "number"
794
+ "name": "type",
795
+ "description": "类型",
796
+ "default": "\"default\"",
797
+ "type": "CheckboxType"
705
798
  },
706
799
  {
707
- "name": "required",
708
- "description": "表单项是否为必填",
800
+ "name": "disabled",
801
+ "description": "是否禁用",
709
802
  "type": "boolean"
710
803
  },
711
804
  {
712
- "name": "value",
713
- "description": "初始值",
714
- "type": "string"
715
- },
716
- {
717
- "name": "valuePropsName",
718
- "type": "string"
719
- },
720
- {
721
- "name": "layout",
722
- "type": "Layout"
805
+ "name": "isCustom",
806
+ "description": "是否为自定义",
807
+ "default": "false",
808
+ "type": "boolean"
723
809
  },
724
810
  {
725
- "name": "size",
726
- "type": "ComponentSize"
811
+ "name": "required",
812
+ "description": "是否必填",
813
+ "type": "boolean"
727
814
  },
728
815
  {
729
- "name": "trim",
730
- "description": "是否自动去除前后的空白字符",
731
- "default": "true"
816
+ "name": "message",
817
+ "description": "校验文本",
818
+ "attribute": false,
819
+ "type": "Record<string, string>"
732
820
  },
733
821
  {
734
- "name": "trigger",
735
- "description": "事件触发方法名",
736
- "type": "string"
822
+ "name": "isGroup",
823
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
824
+ "type": "boolean"
737
825
  },
738
826
  {
739
- "name": "validator",
740
- "description": "表单项校验方法",
827
+ "name": "optionGroups",
828
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
741
829
  "attribute": false,
742
- "type": "((value: any) => MessageBody)"
743
- },
744
- {
745
- "name": "needValidate",
746
- "description": "值变化时是否主动出发校验",
747
- "type": "boolean"
830
+ "type": "OptionGroup[]"
748
831
  }
749
832
  ],
750
- "events": [],
751
- "slots": [
833
+ "events": [
752
834
  {
753
- "name": null,
754
- "description": "表单项内容"
835
+ "name": "change",
836
+ "description": "复选框变化事件",
837
+ "detail": {
838
+ "type": "CheckboxOptionType[]"
839
+ }
840
+ },
841
+ {
842
+ "name": "options.change",
843
+ "description": "复选框变化事件",
844
+ "detail": {
845
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
846
+ }
755
847
  }
756
848
  ],
849
+ "slots": [],
757
850
  "methods": [],
758
851
  "parts": [],
759
- "description": "通用输入框构件",
760
- "category": "form-input-basic",
761
- "insider": true
852
+ "description": "表单复选框构件",
853
+ "category": "form-input-basic"
762
854
  },
763
855
  {
764
856
  "name": "eo-submit-buttons",
@@ -820,98 +912,6 @@
820
912
  "description": "表单提交按钮",
821
913
  "category": "form-input-basic"
822
914
  },
823
- {
824
- "name": "eo-checkbox",
825
- "alias": [
826
- "form.general-checkbox"
827
- ],
828
- "properties": [
829
- {
830
- "name": "name",
831
- "description": "字段名称",
832
- "type": "string"
833
- },
834
- {
835
- "name": "label",
836
- "description": "字段说明",
837
- "type": "string"
838
- },
839
- {
840
- "name": "value",
841
- "description": "值",
842
- "attribute": false,
843
- "type": "CheckboxValueType[]"
844
- },
845
- {
846
- "name": "options",
847
- "description": "多选框选项表",
848
- "required": true,
849
- "default": "[]",
850
- "attribute": false,
851
- "type": "CheckboxOptionType[]"
852
- },
853
- {
854
- "name": "type",
855
- "description": "类型",
856
- "default": "\"default\"",
857
- "type": "CheckboxType"
858
- },
859
- {
860
- "name": "disabled",
861
- "description": "是否禁用",
862
- "type": "boolean"
863
- },
864
- {
865
- "name": "isCustom",
866
- "description": "是否为自定义",
867
- "default": "false",
868
- "type": "boolean"
869
- },
870
- {
871
- "name": "required",
872
- "description": "是否必填",
873
- "type": "boolean"
874
- },
875
- {
876
- "name": "message",
877
- "description": "校验文本",
878
- "attribute": false,
879
- "type": "Record<string, string>"
880
- },
881
- {
882
- "name": "isGroup",
883
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
884
- "type": "boolean"
885
- },
886
- {
887
- "name": "optionGroups",
888
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
889
- "attribute": false,
890
- "type": "OptionGroup[]"
891
- }
892
- ],
893
- "events": [
894
- {
895
- "name": "change",
896
- "description": "复选框变化事件",
897
- "detail": {
898
- "type": "CheckboxOptionType[]"
899
- }
900
- },
901
- {
902
- "name": "options.change",
903
- "description": "复选框变化事件",
904
- "detail": {
905
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
906
- }
907
- }
908
- ],
909
- "slots": [],
910
- "methods": [],
911
- "parts": [],
912
- "description": "表单复选框构件",
913
- "category": "form-input-basic"
914
- },
915
915
  {
916
916
  "name": "eo-dynamic-form-item",
917
917
  "alias": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,5 +44,5 @@
44
44
  "@next-bricks/icons": "*",
45
45
  "@next-bricks/illustrations": "*"
46
46
  },
47
- "gitHead": "71a196f4a3174203ca818b227d9fe0522fd79b56"
47
+ "gitHead": "5218d17c09d6b1602779c784935eee8bd5875f14"
48
48
  }