@next-bricks/form 1.21.12 → 1.21.13
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.
- package/dist/bricks.json +11 -11
- package/dist/chunks/9949.3d28a915.js.map +1 -1
- package/dist/chunks/eo-date-picker.faa60507.js.map +1 -1
- package/dist/chunks/{main.035ebb8e.js → main.59f7a796.js} +2 -2
- package/dist/chunks/{main.035ebb8e.js.map → main.59f7a796.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/{index.90f748b4.js → index.2c92cf90.js} +2 -2
- package/dist/{index.90f748b4.js.map → index.2c92cf90.js.map} +1 -1
- package/dist/manifest.json +93 -93
- package/dist-types/date-picker/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/manifest.json
CHANGED
|
@@ -622,9 +622,9 @@
|
|
|
622
622
|
"category": "form-input-basic"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
|
-
"name": "eo-
|
|
625
|
+
"name": "eo-dynamic-form-item",
|
|
626
626
|
"alias": [
|
|
627
|
-
"form.
|
|
627
|
+
"form.dynamic-form-item"
|
|
628
628
|
],
|
|
629
629
|
"properties": [
|
|
630
630
|
{
|
|
@@ -637,93 +637,90 @@
|
|
|
637
637
|
"description": "字段说明",
|
|
638
638
|
"type": "string"
|
|
639
639
|
},
|
|
640
|
+
{
|
|
641
|
+
"name": "required",
|
|
642
|
+
"description": "是否必填",
|
|
643
|
+
"type": "boolean"
|
|
644
|
+
},
|
|
640
645
|
{
|
|
641
646
|
"name": "value",
|
|
642
647
|
"description": "值",
|
|
643
648
|
"attribute": false,
|
|
644
|
-
"type": "
|
|
649
|
+
"type": "DynamicFormValuesItem[]"
|
|
645
650
|
},
|
|
646
651
|
{
|
|
647
|
-
"name": "
|
|
648
|
-
"description": "
|
|
649
|
-
"required": true,
|
|
650
|
-
"default": "[]",
|
|
652
|
+
"name": "message",
|
|
653
|
+
"description": "校验文本",
|
|
651
654
|
"attribute": false,
|
|
652
|
-
"type": "
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
"name": "type",
|
|
656
|
-
"description": "类型",
|
|
657
|
-
"default": "\"default\"",
|
|
658
|
-
"type": "CheckboxType"
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
"name": "disabled",
|
|
662
|
-
"description": "是否禁用",
|
|
663
|
-
"type": "boolean"
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"name": "isCustom",
|
|
667
|
-
"description": "是否为自定义样式,仅在 type=\"icon\" 时生效,启用后图标尺寸更大(52px)",
|
|
668
|
-
"default": "false",
|
|
669
|
-
"type": "boolean"
|
|
655
|
+
"type": "Record<string, string>"
|
|
670
656
|
},
|
|
671
657
|
{
|
|
672
|
-
"name": "
|
|
673
|
-
"description": "
|
|
674
|
-
"
|
|
658
|
+
"name": "hideRemoveButton",
|
|
659
|
+
"description": "是否隐藏每一行删除的按钮",
|
|
660
|
+
"attribute": false,
|
|
661
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
675
662
|
},
|
|
676
663
|
{
|
|
677
|
-
"name": "
|
|
678
|
-
"description": "
|
|
664
|
+
"name": "disabledRemoveButton",
|
|
665
|
+
"description": "是否禁止每一行删除的按钮",
|
|
679
666
|
"attribute": false,
|
|
680
|
-
"type": "Record<string,
|
|
667
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
681
668
|
},
|
|
682
669
|
{
|
|
683
|
-
"name": "
|
|
684
|
-
"description": "
|
|
685
|
-
"
|
|
670
|
+
"name": "hideAddButton",
|
|
671
|
+
"description": "是否隐藏添加的按钮",
|
|
672
|
+
"attribute": false,
|
|
673
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
686
674
|
},
|
|
687
675
|
{
|
|
688
|
-
"name": "
|
|
689
|
-
"description": "
|
|
676
|
+
"name": "disabledAddButton",
|
|
677
|
+
"description": "是否禁止添加的按钮",
|
|
690
678
|
"attribute": false,
|
|
691
|
-
"type": "
|
|
679
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
692
680
|
},
|
|
693
681
|
{
|
|
694
|
-
"name": "
|
|
695
|
-
"description": "
|
|
696
|
-
"
|
|
682
|
+
"name": "useBrick",
|
|
683
|
+
"description": "动态表单子项构件列表",
|
|
684
|
+
"attribute": false,
|
|
685
|
+
"type": "UseBrickConf"
|
|
697
686
|
}
|
|
698
687
|
],
|
|
699
688
|
"events": [
|
|
700
689
|
{
|
|
701
690
|
"name": "change",
|
|
702
|
-
"description": "
|
|
691
|
+
"description": "表单值改变时触发",
|
|
703
692
|
"detail": {
|
|
704
|
-
"description": "
|
|
705
|
-
"type": "
|
|
693
|
+
"description": "整个动态表单当前所有行的值列表",
|
|
694
|
+
"type": "DynamicFormValuesItem[]"
|
|
706
695
|
}
|
|
707
696
|
},
|
|
708
697
|
{
|
|
709
|
-
"name": "
|
|
710
|
-
"description": "
|
|
698
|
+
"name": "row.add",
|
|
699
|
+
"description": "增加一行时触发",
|
|
711
700
|
"detail": {
|
|
712
|
-
"description": "{
|
|
713
|
-
"type": "
|
|
701
|
+
"description": "{ detail: 该行的默认值, index: 该行的位置 }",
|
|
702
|
+
"type": "rowDataType"
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "row.remove",
|
|
707
|
+
"description": "移除一行时触发",
|
|
708
|
+
"detail": {
|
|
709
|
+
"description": "{ detail: 该行的值, index: 该行的位置 }",
|
|
710
|
+
"type": "rowDataType"
|
|
714
711
|
}
|
|
715
712
|
}
|
|
716
713
|
],
|
|
717
714
|
"slots": [],
|
|
718
715
|
"methods": [],
|
|
719
716
|
"parts": [],
|
|
720
|
-
"description": "
|
|
717
|
+
"description": "动态表单",
|
|
721
718
|
"category": "form-input-basic"
|
|
722
719
|
},
|
|
723
720
|
{
|
|
724
|
-
"name": "eo-
|
|
721
|
+
"name": "eo-checkbox",
|
|
725
722
|
"alias": [
|
|
726
|
-
"form.
|
|
723
|
+
"form.general-checkbox"
|
|
727
724
|
],
|
|
728
725
|
"properties": [
|
|
729
726
|
{
|
|
@@ -736,84 +733,87 @@
|
|
|
736
733
|
"description": "字段说明",
|
|
737
734
|
"type": "string"
|
|
738
735
|
},
|
|
739
|
-
{
|
|
740
|
-
"name": "required",
|
|
741
|
-
"description": "是否必填",
|
|
742
|
-
"type": "boolean"
|
|
743
|
-
},
|
|
744
736
|
{
|
|
745
737
|
"name": "value",
|
|
746
738
|
"description": "值",
|
|
747
739
|
"attribute": false,
|
|
748
|
-
"type": "
|
|
740
|
+
"type": "CheckboxValueType[]"
|
|
749
741
|
},
|
|
750
742
|
{
|
|
751
|
-
"name": "
|
|
752
|
-
"description": "
|
|
743
|
+
"name": "options",
|
|
744
|
+
"description": "多选框选项表",
|
|
745
|
+
"required": true,
|
|
746
|
+
"default": "[]",
|
|
753
747
|
"attribute": false,
|
|
754
|
-
"type": "
|
|
748
|
+
"type": "CheckboxOptionType[]"
|
|
755
749
|
},
|
|
756
750
|
{
|
|
757
|
-
"name": "
|
|
758
|
-
"description": "
|
|
759
|
-
"
|
|
760
|
-
"type": "
|
|
751
|
+
"name": "type",
|
|
752
|
+
"description": "类型",
|
|
753
|
+
"default": "\"default\"",
|
|
754
|
+
"type": "CheckboxType"
|
|
761
755
|
},
|
|
762
756
|
{
|
|
763
|
-
"name": "
|
|
764
|
-
"description": "
|
|
765
|
-
"
|
|
766
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
757
|
+
"name": "disabled",
|
|
758
|
+
"description": "是否禁用",
|
|
759
|
+
"type": "boolean"
|
|
767
760
|
},
|
|
768
761
|
{
|
|
769
|
-
"name": "
|
|
770
|
-
"description": "
|
|
771
|
-
"
|
|
772
|
-
"type": "boolean
|
|
762
|
+
"name": "isCustom",
|
|
763
|
+
"description": "是否为自定义样式,仅在 type=\"icon\" 时生效,启用后图标尺寸更大(52px)",
|
|
764
|
+
"default": "false",
|
|
765
|
+
"type": "boolean"
|
|
773
766
|
},
|
|
774
767
|
{
|
|
775
|
-
"name": "
|
|
776
|
-
"description": "
|
|
768
|
+
"name": "required",
|
|
769
|
+
"description": "是否必填",
|
|
770
|
+
"type": "boolean"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "message",
|
|
774
|
+
"description": "校验文本",
|
|
777
775
|
"attribute": false,
|
|
778
|
-
"type": "
|
|
776
|
+
"type": "Record<string, string>"
|
|
779
777
|
},
|
|
780
778
|
{
|
|
781
|
-
"name": "
|
|
782
|
-
"description": "
|
|
779
|
+
"name": "isGroup",
|
|
780
|
+
"description": "是否启用分组模式,为 true 时,则可设置分组数据 optionGroups",
|
|
781
|
+
"type": "boolean"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "optionGroups",
|
|
785
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
783
786
|
"attribute": false,
|
|
784
|
-
"type": "
|
|
787
|
+
"type": "OptionGroup[]"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "themeVariant",
|
|
791
|
+
"description": "主题变体",
|
|
792
|
+
"type": "\"default\" | \"elevo\""
|
|
785
793
|
}
|
|
786
794
|
],
|
|
787
795
|
"events": [
|
|
788
796
|
{
|
|
789
797
|
"name": "change",
|
|
790
|
-
"description": "
|
|
791
|
-
"detail": {
|
|
792
|
-
"description": "整个动态表单当前所有行的值列表",
|
|
793
|
-
"type": "DynamicFormValuesItem[]"
|
|
794
|
-
}
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
"name": "row.add",
|
|
798
|
-
"description": "增加一行时触发",
|
|
798
|
+
"description": "复选框选中项发生变化时触发",
|
|
799
799
|
"detail": {
|
|
800
|
-
"description": "{
|
|
801
|
-
"type": "
|
|
800
|
+
"description": "{ value: 选中项的值, label: 选中项的标签, disabled: 是否禁用, checkboxColor: 复选框颜色 }[]",
|
|
801
|
+
"type": "CheckboxOptionType[]"
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
804
|
{
|
|
805
|
-
"name": "
|
|
806
|
-
"description": "
|
|
805
|
+
"name": "options.change",
|
|
806
|
+
"description": "复选框选项数据变化时触发",
|
|
807
807
|
"detail": {
|
|
808
|
-
"description": "{
|
|
809
|
-
"type": "
|
|
808
|
+
"description": "{ options: 最新的选项列表, name: 字段名称 }",
|
|
809
|
+
"type": "OptionsChangeEventDetail"
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
],
|
|
813
813
|
"slots": [],
|
|
814
814
|
"methods": [],
|
|
815
815
|
"parts": [],
|
|
816
|
-
"description": "
|
|
816
|
+
"description": "表单复选框构件",
|
|
817
817
|
"category": "form-input-basic"
|
|
818
818
|
},
|
|
819
819
|
{
|
|
@@ -19,7 +19,7 @@ interface InternalStateDatePickerProps {
|
|
|
19
19
|
onChange?: (value: Dayjs | null, dateString: string) => void;
|
|
20
20
|
onOk?: (date: Dayjs) => void;
|
|
21
21
|
}
|
|
22
|
-
interface EoDatePickerProps extends Omit<InternalStateDatePickerProps, "value" | "onChange" | "onOk">, FormItemProps {
|
|
22
|
+
export interface EoDatePickerProps extends Omit<InternalStateDatePickerProps, "value" | "onChange" | "onOk">, FormItemProps {
|
|
23
23
|
shadowRoot: ShadowRoot | null;
|
|
24
24
|
value?: string;
|
|
25
25
|
onChange?: (value: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.13",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/form",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"@next-bricks/icons": "*",
|
|
47
47
|
"@next-bricks/illustrations": "*"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "5b81f1a9d385dac35b2502ead1ab93168309cd2f"
|
|
50
50
|
}
|