@next-bricks/form 1.21.13 → 1.21.14
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/1889.b4966a67.js +2 -0
- package/dist/chunks/1889.b4966a67.js.map +1 -0
- package/dist/chunks/{2537.be4cf82c.js → 2537.f8b70fca.js} +2 -2
- package/dist/chunks/{2537.be4cf82c.js.map → 2537.f8b70fca.js.map} +1 -1
- package/dist/chunks/3171.19eb4447.js +2 -0
- package/dist/chunks/3171.19eb4447.js.map +1 -0
- package/dist/chunks/5399.2b43f9b8.js +2 -0
- package/dist/chunks/5399.2b43f9b8.js.map +1 -0
- package/dist/chunks/5552.ac9c4b9d.js +2 -0
- package/dist/chunks/5552.ac9c4b9d.js.map +1 -0
- package/dist/chunks/{845.2f598dd9.js → 845.66ebad07.js} +3 -3
- package/dist/chunks/845.66ebad07.js.map +1 -0
- package/dist/chunks/9118.00f515f7.js +3 -0
- package/dist/chunks/9118.00f515f7.js.LICENSE.txt +11 -0
- package/dist/chunks/9118.00f515f7.js.map +1 -0
- package/dist/chunks/948.5923c86a.js +3 -0
- package/dist/chunks/948.5923c86a.js.map +1 -0
- package/dist/chunks/9949.f1969338.js +3 -0
- package/dist/chunks/9949.f1969338.js.map +1 -0
- package/dist/chunks/eo-auto-complete.0ed854e4.js.map +1 -1
- package/dist/chunks/eo-checkbox.2d0a8dbc.js.map +1 -1
- package/dist/chunks/{eo-color-picker.ecf0c4c0.js → eo-color-picker.c8832147.js} +2 -2
- package/dist/chunks/eo-color-picker.c8832147.js.map +1 -0
- package/dist/chunks/{eo-date-picker.faa60507.js → eo-date-picker.358e2716.js} +2 -2
- package/dist/chunks/eo-date-picker.358e2716.js.map +1 -0
- package/dist/chunks/{eo-dynamic-form-item.aa5f7d9e.js → eo-dynamic-form-item.04bee6fb.js} +3 -3
- package/dist/chunks/eo-dynamic-form-item.04bee6fb.js.map +1 -0
- package/dist/chunks/eo-icon-select.6a7f7e12.js.map +1 -1
- package/dist/chunks/{eo-radio.b2ed57db.js → eo-radio.f2df4f10.js} +3 -3
- package/dist/chunks/eo-radio.f2df4f10.js.map +1 -0
- package/dist/chunks/{eo-select.cd00c791.js → eo-select.7976733a.js} +3 -3
- package/dist/chunks/eo-select.7976733a.js.map +1 -0
- package/dist/chunks/eo-submit-buttons.8a293f65.js.map +1 -1
- package/dist/chunks/eo-switch.f0a27c08.js.map +1 -1
- package/dist/chunks/eo-textarea.405851dd.js.map +1 -1
- package/dist/chunks/{eo-time-picker.46e7a667.js → eo-time-picker.8bd47e44.js} +2 -2
- package/dist/chunks/{eo-time-picker.46e7a667.js.map → eo-time-picker.8bd47e44.js.map} +1 -1
- package/dist/chunks/{eo-time-range-picker.5afbad69.js → eo-time-range-picker.b6932d6b.js} +2 -2
- package/dist/chunks/eo-time-range-picker.b6932d6b.js.map +1 -0
- package/dist/chunks/{eo-upload-file.27a4288d.js → eo-upload-file.64f3a33d.js} +3 -3
- package/dist/chunks/{eo-upload-file.27a4288d.js.map → eo-upload-file.64f3a33d.js.map} +1 -1
- package/dist/chunks/eo-upload-image.b43c2329.js.map +1 -1
- package/dist/chunks/main.370da6d5.js +2 -0
- package/dist/chunks/main.370da6d5.js.map +1 -0
- package/dist/chunks/react.241c9ae9.js +2 -0
- package/dist/examples.json +3 -3
- package/dist/index.3cb0e74b.js +2 -0
- package/dist/index.3cb0e74b.js.map +1 -0
- package/dist/manifest.json +95 -95
- package/dist/types.json +3 -3
- package/dist-types/dynamic-form-item/index.d.ts +3 -3
- package/dist-types/radio/index.d.ts +3 -3
- package/dist-types/select/i18n.d.ts +1 -1
- package/dist-types/select/index.d.ts +3 -3
- package/package.json +2 -2
- package/dist/chunks/1889.96e6de82.js +0 -2
- package/dist/chunks/1889.96e6de82.js.map +0 -1
- package/dist/chunks/3171.30fac628.js +0 -2
- package/dist/chunks/3171.30fac628.js.map +0 -1
- package/dist/chunks/5399.b22b4003.js +0 -2
- package/dist/chunks/5399.b22b4003.js.map +0 -1
- package/dist/chunks/5552.75021017.js +0 -2
- package/dist/chunks/5552.75021017.js.map +0 -1
- package/dist/chunks/845.2f598dd9.js.map +0 -1
- package/dist/chunks/948.cb41e9a8.js +0 -3
- package/dist/chunks/948.cb41e9a8.js.map +0 -1
- package/dist/chunks/9949.3d28a915.js +0 -3
- package/dist/chunks/9949.3d28a915.js.map +0 -1
- package/dist/chunks/eo-color-picker.ecf0c4c0.js.map +0 -1
- package/dist/chunks/eo-date-picker.faa60507.js.map +0 -1
- package/dist/chunks/eo-dynamic-form-item.aa5f7d9e.js.map +0 -1
- package/dist/chunks/eo-radio.b2ed57db.js.map +0 -1
- package/dist/chunks/eo-select.cd00c791.js.map +0 -1
- package/dist/chunks/eo-time-range-picker.5afbad69.js.map +0 -1
- package/dist/chunks/main.59f7a796.js +0 -2
- package/dist/chunks/main.59f7a796.js.map +0 -1
- package/dist/chunks/react.2bcc835d.js +0 -2
- package/dist/index.2c92cf90.js +0 -2
- package/dist/index.2c92cf90.js.map +0 -1
- /package/dist/chunks/{845.2f598dd9.js.LICENSE.txt → 845.66ebad07.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{948.cb41e9a8.js.LICENSE.txt → 948.5923c86a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9949.3d28a915.js.LICENSE.txt → 9949.f1969338.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.aa5f7d9e.js.LICENSE.txt → eo-dynamic-form-item.04bee6fb.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.b2ed57db.js.LICENSE.txt → eo-radio.f2df4f10.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.cd00c791.js.LICENSE.txt → eo-select.7976733a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.27a4288d.js.LICENSE.txt → eo-upload-file.64f3a33d.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{react.2bcc835d.js.LICENSE.txt → react.241c9ae9.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
"name": "useBrick",
|
|
355
355
|
"description": "自定义radio的内容",
|
|
356
356
|
"attribute": false,
|
|
357
|
-
"type": "
|
|
357
|
+
"type": "UseSingleBrickConfOrRenderFunction"
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
"name": "themeVariant",
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
"name": "suffix",
|
|
462
462
|
"description": "后缀内容,使用 useBrick 在选项及选中值旁显示额外信息",
|
|
463
463
|
"attribute": false,
|
|
464
|
-
"type": "{ useBrick:
|
|
464
|
+
"type": "{ useBrick: UseSingleBrickConfOrRenderFunction }"
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
467
|
"name": "clearable",
|
|
@@ -622,9 +622,9 @@
|
|
|
622
622
|
"category": "form-input-basic"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
|
-
"name": "eo-
|
|
625
|
+
"name": "eo-checkbox",
|
|
626
626
|
"alias": [
|
|
627
|
-
"form.
|
|
627
|
+
"form.general-checkbox"
|
|
628
628
|
],
|
|
629
629
|
"properties": [
|
|
630
630
|
{
|
|
@@ -637,90 +637,93 @@
|
|
|
637
637
|
"description": "字段说明",
|
|
638
638
|
"type": "string"
|
|
639
639
|
},
|
|
640
|
-
{
|
|
641
|
-
"name": "required",
|
|
642
|
-
"description": "是否必填",
|
|
643
|
-
"type": "boolean"
|
|
644
|
-
},
|
|
645
640
|
{
|
|
646
641
|
"name": "value",
|
|
647
642
|
"description": "值",
|
|
648
643
|
"attribute": false,
|
|
649
|
-
"type": "
|
|
644
|
+
"type": "CheckboxValueType[]"
|
|
650
645
|
},
|
|
651
646
|
{
|
|
652
|
-
"name": "
|
|
653
|
-
"description": "
|
|
647
|
+
"name": "options",
|
|
648
|
+
"description": "多选框选项表",
|
|
649
|
+
"required": true,
|
|
650
|
+
"default": "[]",
|
|
654
651
|
"attribute": false,
|
|
655
|
-
"type": "
|
|
652
|
+
"type": "CheckboxOptionType[]"
|
|
656
653
|
},
|
|
657
654
|
{
|
|
658
|
-
"name": "
|
|
659
|
-
"description": "
|
|
660
|
-
"
|
|
661
|
-
"type": "
|
|
655
|
+
"name": "type",
|
|
656
|
+
"description": "类型",
|
|
657
|
+
"default": "\"default\"",
|
|
658
|
+
"type": "CheckboxType"
|
|
662
659
|
},
|
|
663
660
|
{
|
|
664
|
-
"name": "
|
|
665
|
-
"description": "
|
|
666
|
-
"
|
|
667
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
661
|
+
"name": "disabled",
|
|
662
|
+
"description": "是否禁用",
|
|
663
|
+
"type": "boolean"
|
|
668
664
|
},
|
|
669
665
|
{
|
|
670
|
-
"name": "
|
|
671
|
-
"description": "
|
|
672
|
-
"
|
|
673
|
-
"type": "boolean
|
|
666
|
+
"name": "isCustom",
|
|
667
|
+
"description": "是否为自定义样式,仅在 type=\"icon\" 时生效,启用后图标尺寸更大(52px)",
|
|
668
|
+
"default": "false",
|
|
669
|
+
"type": "boolean"
|
|
674
670
|
},
|
|
675
671
|
{
|
|
676
|
-
"name": "
|
|
677
|
-
"description": "
|
|
672
|
+
"name": "required",
|
|
673
|
+
"description": "是否必填",
|
|
674
|
+
"type": "boolean"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "message",
|
|
678
|
+
"description": "校验文本",
|
|
678
679
|
"attribute": false,
|
|
679
|
-
"type": "
|
|
680
|
+
"type": "Record<string, string>"
|
|
680
681
|
},
|
|
681
682
|
{
|
|
682
|
-
"name": "
|
|
683
|
-
"description": "
|
|
683
|
+
"name": "isGroup",
|
|
684
|
+
"description": "是否启用分组模式,为 true 时,则可设置分组数据 optionGroups",
|
|
685
|
+
"type": "boolean"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "optionGroups",
|
|
689
|
+
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
684
690
|
"attribute": false,
|
|
685
|
-
"type": "
|
|
691
|
+
"type": "OptionGroup[]"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "themeVariant",
|
|
695
|
+
"description": "主题变体",
|
|
696
|
+
"type": "\"default\" | \"elevo\""
|
|
686
697
|
}
|
|
687
698
|
],
|
|
688
699
|
"events": [
|
|
689
700
|
{
|
|
690
701
|
"name": "change",
|
|
691
|
-
"description": "
|
|
692
|
-
"detail": {
|
|
693
|
-
"description": "整个动态表单当前所有行的值列表",
|
|
694
|
-
"type": "DynamicFormValuesItem[]"
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
"name": "row.add",
|
|
699
|
-
"description": "增加一行时触发",
|
|
702
|
+
"description": "复选框选中项发生变化时触发",
|
|
700
703
|
"detail": {
|
|
701
|
-
"description": "{
|
|
702
|
-
"type": "
|
|
704
|
+
"description": "{ value: 选中项的值, label: 选中项的标签, disabled: 是否禁用, checkboxColor: 复选框颜色 }[]",
|
|
705
|
+
"type": "CheckboxOptionType[]"
|
|
703
706
|
}
|
|
704
707
|
},
|
|
705
708
|
{
|
|
706
|
-
"name": "
|
|
707
|
-
"description": "
|
|
709
|
+
"name": "options.change",
|
|
710
|
+
"description": "复选框选项数据变化时触发",
|
|
708
711
|
"detail": {
|
|
709
|
-
"description": "{
|
|
710
|
-
"type": "
|
|
712
|
+
"description": "{ options: 最新的选项列表, name: 字段名称 }",
|
|
713
|
+
"type": "OptionsChangeEventDetail"
|
|
711
714
|
}
|
|
712
715
|
}
|
|
713
716
|
],
|
|
714
717
|
"slots": [],
|
|
715
718
|
"methods": [],
|
|
716
719
|
"parts": [],
|
|
717
|
-
"description": "
|
|
720
|
+
"description": "表单复选框构件",
|
|
718
721
|
"category": "form-input-basic"
|
|
719
722
|
},
|
|
720
723
|
{
|
|
721
|
-
"name": "eo-
|
|
724
|
+
"name": "eo-dynamic-form-item",
|
|
722
725
|
"alias": [
|
|
723
|
-
"form.
|
|
726
|
+
"form.dynamic-form-item"
|
|
724
727
|
],
|
|
725
728
|
"properties": [
|
|
726
729
|
{
|
|
@@ -733,87 +736,84 @@
|
|
|
733
736
|
"description": "字段说明",
|
|
734
737
|
"type": "string"
|
|
735
738
|
},
|
|
739
|
+
{
|
|
740
|
+
"name": "required",
|
|
741
|
+
"description": "是否必填",
|
|
742
|
+
"type": "boolean"
|
|
743
|
+
},
|
|
736
744
|
{
|
|
737
745
|
"name": "value",
|
|
738
746
|
"description": "值",
|
|
739
747
|
"attribute": false,
|
|
740
|
-
"type": "
|
|
748
|
+
"type": "DynamicFormValuesItem[]"
|
|
741
749
|
},
|
|
742
750
|
{
|
|
743
|
-
"name": "
|
|
744
|
-
"description": "
|
|
745
|
-
"required": true,
|
|
746
|
-
"default": "[]",
|
|
751
|
+
"name": "message",
|
|
752
|
+
"description": "校验文本",
|
|
747
753
|
"attribute": false,
|
|
748
|
-
"type": "
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
"name": "type",
|
|
752
|
-
"description": "类型",
|
|
753
|
-
"default": "\"default\"",
|
|
754
|
-
"type": "CheckboxType"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"name": "disabled",
|
|
758
|
-
"description": "是否禁用",
|
|
759
|
-
"type": "boolean"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "isCustom",
|
|
763
|
-
"description": "是否为自定义样式,仅在 type=\"icon\" 时生效,启用后图标尺寸更大(52px)",
|
|
764
|
-
"default": "false",
|
|
765
|
-
"type": "boolean"
|
|
754
|
+
"type": "Record<string, string>"
|
|
766
755
|
},
|
|
767
756
|
{
|
|
768
|
-
"name": "
|
|
769
|
-
"description": "
|
|
770
|
-
"
|
|
757
|
+
"name": "hideRemoveButton",
|
|
758
|
+
"description": "是否隐藏每一行删除的按钮",
|
|
759
|
+
"attribute": false,
|
|
760
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
771
761
|
},
|
|
772
762
|
{
|
|
773
|
-
"name": "
|
|
774
|
-
"description": "
|
|
763
|
+
"name": "disabledRemoveButton",
|
|
764
|
+
"description": "是否禁止每一行删除的按钮",
|
|
775
765
|
"attribute": false,
|
|
776
|
-
"type": "Record<string,
|
|
766
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
777
767
|
},
|
|
778
768
|
{
|
|
779
|
-
"name": "
|
|
780
|
-
"description": "
|
|
781
|
-
"
|
|
769
|
+
"name": "hideAddButton",
|
|
770
|
+
"description": "是否隐藏添加的按钮",
|
|
771
|
+
"attribute": false,
|
|
772
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
782
773
|
},
|
|
783
774
|
{
|
|
784
|
-
"name": "
|
|
785
|
-
"description": "
|
|
775
|
+
"name": "disabledAddButton",
|
|
776
|
+
"description": "是否禁止添加的按钮",
|
|
786
777
|
"attribute": false,
|
|
787
|
-
"type": "
|
|
778
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
788
779
|
},
|
|
789
780
|
{
|
|
790
|
-
"name": "
|
|
791
|
-
"description": "
|
|
792
|
-
"
|
|
781
|
+
"name": "useBrick",
|
|
782
|
+
"description": "动态表单子项构件列表",
|
|
783
|
+
"attribute": false,
|
|
784
|
+
"type": "UseBrickConfOrRenderFunction"
|
|
793
785
|
}
|
|
794
786
|
],
|
|
795
787
|
"events": [
|
|
796
788
|
{
|
|
797
789
|
"name": "change",
|
|
798
|
-
"description": "
|
|
790
|
+
"description": "表单值改变时触发",
|
|
799
791
|
"detail": {
|
|
800
|
-
"description": "
|
|
801
|
-
"type": "
|
|
792
|
+
"description": "整个动态表单当前所有行的值列表",
|
|
793
|
+
"type": "DynamicFormValuesItem[]"
|
|
802
794
|
}
|
|
803
795
|
},
|
|
804
796
|
{
|
|
805
|
-
"name": "
|
|
806
|
-
"description": "
|
|
797
|
+
"name": "row.add",
|
|
798
|
+
"description": "增加一行时触发",
|
|
807
799
|
"detail": {
|
|
808
|
-
"description": "{
|
|
809
|
-
"type": "
|
|
800
|
+
"description": "{ detail: 该行的默认值, index: 该行的位置 }",
|
|
801
|
+
"type": "rowDataType"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "row.remove",
|
|
806
|
+
"description": "移除一行时触发",
|
|
807
|
+
"detail": {
|
|
808
|
+
"description": "{ detail: 该行的值, index: 该行的位置 }",
|
|
809
|
+
"type": "rowDataType"
|
|
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
|
{
|
package/dist/types.json
CHANGED
|
@@ -2069,7 +2069,7 @@
|
|
|
2069
2069
|
"type": "reference",
|
|
2070
2070
|
"typeName": {
|
|
2071
2071
|
"type": "identifier",
|
|
2072
|
-
"name": "
|
|
2072
|
+
"name": "UseSingleBrickConfOrRenderFunction"
|
|
2073
2073
|
}
|
|
2074
2074
|
},
|
|
2075
2075
|
"computed": false
|
|
@@ -2873,7 +2873,7 @@
|
|
|
2873
2873
|
"type": "reference",
|
|
2874
2874
|
"typeName": {
|
|
2875
2875
|
"type": "identifier",
|
|
2876
|
-
"name": "
|
|
2876
|
+
"name": "UseBrickConfOrRenderFunction"
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
2879
|
}
|
|
@@ -4308,7 +4308,7 @@
|
|
|
4308
4308
|
"type": "reference",
|
|
4309
4309
|
"typeName": {
|
|
4310
4310
|
"type": "identifier",
|
|
4311
|
-
"name": "
|
|
4311
|
+
"name": "UseSingleBrickConfOrRenderFunction"
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
4314
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Form } from "../form/index.js";
|
|
3
3
|
import type { FormItemProps } from "../form-item/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { UseBrickConfOrRenderFunction } from "@next-core/react-runtime";
|
|
5
5
|
import "@next-core/theme";
|
|
6
6
|
import { FormItemElementBase } from "@next-shared/form";
|
|
7
7
|
export declare function uniqueValidatorFN(props: DynamicFormItemProps, properties: any, t: any): () => any;
|
|
8
8
|
export type DynamicFormValuesItem = Record<string, any>;
|
|
9
9
|
export interface DynamicFormItemProps extends FormItemProps {
|
|
10
10
|
form?: Form;
|
|
11
|
-
useBrick?:
|
|
11
|
+
useBrick?: UseBrickConfOrRenderFunction;
|
|
12
12
|
value?: DynamicFormValuesItem[];
|
|
13
13
|
validateState?: string;
|
|
14
14
|
needValidate?: boolean;
|
|
@@ -82,7 +82,7 @@ declare class DynamicFormItem extends FormItemElementBase {
|
|
|
82
82
|
/**
|
|
83
83
|
* 动态表单子项构件列表
|
|
84
84
|
*/
|
|
85
|
-
accessor useBrick:
|
|
85
|
+
accessor useBrick: UseBrickConfOrRenderFunction | undefined;
|
|
86
86
|
handleDynamicFormChange: (values: DynamicFormValuesItem[]) => void;
|
|
87
87
|
render(): React.JSX.Element;
|
|
88
88
|
}
|
|
@@ -3,7 +3,7 @@ import { FormItemElementBase } from "@next-shared/form";
|
|
|
3
3
|
import type { RadioType, GeneralOption, GeneralComplexOption, UIType, RadioGroupButtonStyle, ComponentSize } from "../interface.js";
|
|
4
4
|
import "@next-core/theme";
|
|
5
5
|
import type { FormItemProps } from "../form-item/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { UseSingleBrickConfOrRenderFunction } from "@next-core/react-runtime";
|
|
7
7
|
import "./host-context.css";
|
|
8
8
|
interface CustomOptions {
|
|
9
9
|
url: string;
|
|
@@ -21,7 +21,7 @@ export interface RadioProps extends FormItemProps {
|
|
|
21
21
|
buttonStyle?: RadioGroupButtonStyle;
|
|
22
22
|
size?: ComponentSize;
|
|
23
23
|
ui?: UIType;
|
|
24
|
-
useBrick?:
|
|
24
|
+
useBrick?: UseSingleBrickConfOrRenderFunction;
|
|
25
25
|
customStyle?: React.CSSProperties;
|
|
26
26
|
themeVariant?: "default" | "elevo";
|
|
27
27
|
}
|
|
@@ -95,7 +95,7 @@ declare class Radio extends FormItemElementBase {
|
|
|
95
95
|
/**
|
|
96
96
|
* 自定义radio的内容
|
|
97
97
|
*/
|
|
98
|
-
accessor useBrick:
|
|
98
|
+
accessor useBrick: UseSingleBrickConfOrRenderFunction | undefined;
|
|
99
99
|
/** 主题变体 */
|
|
100
100
|
accessor themeVariant: "default" | "elevo" | undefined;
|
|
101
101
|
handleChange: (value: any) => void;
|
|
@@ -6,7 +6,7 @@ export declare const locales: {
|
|
|
6
6
|
en: Locale;
|
|
7
7
|
zh: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const t:
|
|
9
|
+
export declare const t: import("i18next").TFunction<"bricks/form/select", import("i18next").KeyPrefix<"bricks/form/select">, "bricks/form/select">;
|
|
10
10
|
type Locale = {
|
|
11
11
|
[k in K]: string;
|
|
12
12
|
} & {
|
|
@@ -3,7 +3,7 @@ import { FormItemElementBase } from "@next-shared/form";
|
|
|
3
3
|
import type { GeneralComplexOption } from "../interface.js";
|
|
4
4
|
import "@next-core/theme";
|
|
5
5
|
import type { FormItemProps } from "../form-item/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { UseSingleBrickConfOrRenderFunction } from "@next-core/react-runtime";
|
|
7
7
|
interface UseBackendConf {
|
|
8
8
|
provider: string;
|
|
9
9
|
args: any[] | ((...args: any[]) => any[]);
|
|
@@ -31,7 +31,7 @@ export interface SelectProps extends FormItemProps {
|
|
|
31
31
|
maxTagCount?: number;
|
|
32
32
|
groupBy?: string;
|
|
33
33
|
suffix?: {
|
|
34
|
-
useBrick:
|
|
34
|
+
useBrick: UseSingleBrickConfOrRenderFunction;
|
|
35
35
|
};
|
|
36
36
|
fields?: {
|
|
37
37
|
label?: string;
|
|
@@ -143,7 +143,7 @@ declare class Select extends FormItemElementBase {
|
|
|
143
143
|
* 后缀内容,使用 useBrick 在选项及选中值旁显示额外信息
|
|
144
144
|
*/
|
|
145
145
|
accessor suffix: {
|
|
146
|
-
useBrick:
|
|
146
|
+
useBrick: UseSingleBrickConfOrRenderFunction;
|
|
147
147
|
} | undefined;
|
|
148
148
|
/**
|
|
149
149
|
* 是否支持清除
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/form",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.14",
|
|
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": "bfc02e6cd7028ac3f92808235d9f3fcc0dfde393"
|
|
50
50
|
}
|