@next-bricks/form 1.15.14 → 1.15.15
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 +23 -23
- package/dist/chunks/5347.88980d83.js +3 -0
- package/dist/chunks/5347.88980d83.js.map +1 -0
- package/dist/chunks/{eo-textarea.a0fa1c87.js → eo-textarea.66c4e981.js} +3 -3
- package/dist/chunks/eo-textarea.66c4e981.js.map +1 -0
- package/dist/chunks/{main.4e1429cd.js → main.962fdfff.js} +2 -2
- package/dist/chunks/{main.4e1429cd.js.map → main.962fdfff.js.map} +1 -1
- package/dist/examples.json +11 -11
- package/dist/{index.c9a40671.js → index.227a37c9.js} +2 -2
- package/dist/{index.c9a40671.js.map → index.227a37c9.js.map} +1 -1
- package/dist/manifest.json +366 -366
- package/dist/types.json +188 -188
- package/package.json +2 -2
- package/dist/chunks/5347.eef1273e.js +0 -3
- package/dist/chunks/5347.eef1273e.js.map +0 -1
- package/dist/chunks/eo-textarea.a0fa1c87.js.map +0 -1
- /package/dist/chunks/{5347.eef1273e.js.LICENSE.txt → 5347.88980d83.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.a0fa1c87.js.LICENSE.txt → eo-textarea.66c4e981.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -3,151 +3,6 @@
|
|
|
3
3
|
"package": "@next-bricks/form",
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
|
-
{
|
|
7
|
-
"name": "eo-form",
|
|
8
|
-
"alias": [
|
|
9
|
-
"form.general-form"
|
|
10
|
-
],
|
|
11
|
-
"properties": [
|
|
12
|
-
{
|
|
13
|
-
"name": "staticValues",
|
|
14
|
-
"attribute": false,
|
|
15
|
-
"type": "Record<string, unknown>"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "layout",
|
|
19
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
20
|
-
"default": "vertical",
|
|
21
|
-
"type": "Layout"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "size",
|
|
25
|
-
"description": "表单组件尺寸",
|
|
26
|
-
"type": "ComponentSize"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "labelCol",
|
|
30
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
31
|
-
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
32
|
-
"attribute": false,
|
|
33
|
-
"type": "ColProps"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "wrapperCol",
|
|
37
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
38
|
-
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
39
|
-
"attribute": false,
|
|
40
|
-
"type": "ColProps"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "formStyle",
|
|
44
|
-
"attribute": false,
|
|
45
|
-
"type": "React.CSSProperties"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "textContent",
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "文本内容"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"events": [
|
|
54
|
-
{
|
|
55
|
-
"name": "values.change",
|
|
56
|
-
"description": "表单值变更事件",
|
|
57
|
-
"detail": {
|
|
58
|
-
"description": null,
|
|
59
|
-
"type": "Record<string, unknown>"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"name": "validate.success",
|
|
64
|
-
"description": "表单验证成功时触发事件",
|
|
65
|
-
"detail": {
|
|
66
|
-
"type": "Record<string, unknown>"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "validate.error",
|
|
71
|
-
"description": "表单验证报错时触发事件",
|
|
72
|
-
"detail": {
|
|
73
|
-
"type": "(MessageBody & { name: string })[]"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"slots": [
|
|
78
|
-
{
|
|
79
|
-
"name": null,
|
|
80
|
-
"description": "表单内容"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"methods": [
|
|
84
|
-
{
|
|
85
|
-
"name": "validate",
|
|
86
|
-
"params": [],
|
|
87
|
-
"description": "表单校验方法",
|
|
88
|
-
"returns": {
|
|
89
|
-
"type": "boolean | Record<string, unknown>"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"name": "setInitValue",
|
|
94
|
-
"params": [
|
|
95
|
-
{
|
|
96
|
-
"name": "values",
|
|
97
|
-
"type": "Record<string, unknown>"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "options",
|
|
101
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"description": "表单设置值方法",
|
|
105
|
-
"returns": {}
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
"name": "resetFields",
|
|
109
|
-
"params": [
|
|
110
|
-
{
|
|
111
|
-
"name": "name",
|
|
112
|
-
"type": "string"
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"description": "表单重置值方法",
|
|
116
|
-
"returns": {}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "getFieldsValue",
|
|
120
|
-
"params": [
|
|
121
|
-
{
|
|
122
|
-
"name": "name",
|
|
123
|
-
"type": "string"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"description": "获取表单值方法",
|
|
127
|
-
"returns": {}
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"name": "validateField",
|
|
131
|
-
"params": [
|
|
132
|
-
{
|
|
133
|
-
"name": "name",
|
|
134
|
-
"type": "string"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"description": "校验表单字段方法",
|
|
138
|
-
"returns": {}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "resetValidateState",
|
|
142
|
-
"params": [],
|
|
143
|
-
"description": "重置表单校验状态方法",
|
|
144
|
-
"returns": {}
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"parts": [],
|
|
148
|
-
"description": "表单构件",
|
|
149
|
-
"category": "form-input-basic"
|
|
150
|
-
},
|
|
151
6
|
{
|
|
152
7
|
"name": "eo-radio",
|
|
153
8
|
"alias": [
|
|
@@ -246,104 +101,6 @@
|
|
|
246
101
|
"description": "通用单选构件",
|
|
247
102
|
"category": "form-input-basic"
|
|
248
103
|
},
|
|
249
|
-
{
|
|
250
|
-
"name": "eo-textarea",
|
|
251
|
-
"alias": [
|
|
252
|
-
"form.general-textarea"
|
|
253
|
-
],
|
|
254
|
-
"properties": [
|
|
255
|
-
{
|
|
256
|
-
"name": "name",
|
|
257
|
-
"description": "字段名称",
|
|
258
|
-
"type": "string"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "label",
|
|
262
|
-
"description": "标签文字",
|
|
263
|
-
"type": "string"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
"name": "value",
|
|
267
|
-
"description": "值",
|
|
268
|
-
"type": "string"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"name": "placeholder",
|
|
272
|
-
"description": "占位说明",
|
|
273
|
-
"type": "string"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"name": "disabled",
|
|
277
|
-
"description": "是否禁用",
|
|
278
|
-
"type": "boolean"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"name": "minLength",
|
|
282
|
-
"description": "最小长度",
|
|
283
|
-
"type": "number"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"name": "maxLength",
|
|
287
|
-
"description": "最大长度",
|
|
288
|
-
"type": "number"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"name": "autoSize",
|
|
292
|
-
"description": "大小自适应",
|
|
293
|
-
"attribute": false,
|
|
294
|
-
"type": "AutoSize"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"name": "required",
|
|
298
|
-
"description": "是否必填",
|
|
299
|
-
"type": "boolean"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"name": "max",
|
|
303
|
-
"description": "表单校验最大长度",
|
|
304
|
-
"type": "number"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "min",
|
|
308
|
-
"description": "表单校验最小长度",
|
|
309
|
-
"type": "number"
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"name": "message",
|
|
313
|
-
"description": "校验信息",
|
|
314
|
-
"attribute": false,
|
|
315
|
-
"type": "Record<string, string>"
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"name": "textareaStyle",
|
|
319
|
-
"description": "自定义样式",
|
|
320
|
-
"attribute": false,
|
|
321
|
-
"type": "React.CSSProperties"
|
|
322
|
-
}
|
|
323
|
-
],
|
|
324
|
-
"events": [
|
|
325
|
-
{
|
|
326
|
-
"name": "change",
|
|
327
|
-
"description": "",
|
|
328
|
-
"detail": {
|
|
329
|
-
"description": null,
|
|
330
|
-
"type": "string"
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
],
|
|
334
|
-
"slots": [],
|
|
335
|
-
"methods": [
|
|
336
|
-
{
|
|
337
|
-
"name": "focusTextarea",
|
|
338
|
-
"params": [],
|
|
339
|
-
"description": "focus",
|
|
340
|
-
"returns": {}
|
|
341
|
-
}
|
|
342
|
-
],
|
|
343
|
-
"parts": [],
|
|
344
|
-
"description": "通用多行文本输入框构件",
|
|
345
|
-
"category": "form-input-basic"
|
|
346
|
-
},
|
|
347
104
|
{
|
|
348
105
|
"name": "eo-select",
|
|
349
106
|
"alias": [
|
|
@@ -927,85 +684,16 @@
|
|
|
927
684
|
"category": "form-input-basic"
|
|
928
685
|
},
|
|
929
686
|
{
|
|
930
|
-
"name": "eo-
|
|
931
|
-
"alias": [
|
|
932
|
-
"form.general-switch"
|
|
933
|
-
],
|
|
687
|
+
"name": "eo-upload-file",
|
|
934
688
|
"properties": [
|
|
935
689
|
{
|
|
936
|
-
"name": "
|
|
937
|
-
"description": "
|
|
690
|
+
"name": "label",
|
|
691
|
+
"description": "字段说明",
|
|
938
692
|
"type": "string"
|
|
939
693
|
},
|
|
940
694
|
{
|
|
941
|
-
"name": "
|
|
942
|
-
"description": "
|
|
943
|
-
"type": "string"
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
"name": "value",
|
|
947
|
-
"description": "初始值",
|
|
948
|
-
"type": "boolean"
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
"name": "disabled",
|
|
952
|
-
"description": "是否禁用",
|
|
953
|
-
"type": "boolean"
|
|
954
|
-
},
|
|
955
|
-
{
|
|
956
|
-
"name": "size",
|
|
957
|
-
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
958
|
-
"type": "ComponentSize"
|
|
959
|
-
},
|
|
960
|
-
{
|
|
961
|
-
"name": "checkedText",
|
|
962
|
-
"description": "选中时的文本",
|
|
963
|
-
"type": "string"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
"name": "unCheckedText",
|
|
967
|
-
"description": "非选中时的文本",
|
|
968
|
-
"type": "string"
|
|
969
|
-
},
|
|
970
|
-
{
|
|
971
|
-
"name": "checkedIcon",
|
|
972
|
-
"description": "选中时的图标",
|
|
973
|
-
"attribute": false,
|
|
974
|
-
"type": "GeneralIconProps"
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
"name": "unCheckedIcon",
|
|
978
|
-
"description": "非选中时的文本",
|
|
979
|
-
"attribute": false,
|
|
980
|
-
"type": "GeneralIconProps"
|
|
981
|
-
}
|
|
982
|
-
],
|
|
983
|
-
"events": [
|
|
984
|
-
{
|
|
985
|
-
"name": "switch",
|
|
986
|
-
"description": "开关改变时触发",
|
|
987
|
-
"detail": {
|
|
988
|
-
"type": "boolean"
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
],
|
|
992
|
-
"slots": [],
|
|
993
|
-
"methods": [],
|
|
994
|
-
"parts": [],
|
|
995
|
-
"description": "开关",
|
|
996
|
-
"category": "form-input-basic"
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
"name": "eo-upload-file",
|
|
1000
|
-
"properties": [
|
|
1001
|
-
{
|
|
1002
|
-
"name": "label",
|
|
1003
|
-
"description": "字段说明",
|
|
1004
|
-
"type": "string"
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
"name": "name",
|
|
1008
|
-
"description": "字段名称",
|
|
695
|
+
"name": "name",
|
|
696
|
+
"description": "字段名称",
|
|
1009
697
|
"type": "string"
|
|
1010
698
|
},
|
|
1011
699
|
{
|
|
@@ -1118,6 +806,75 @@
|
|
|
1118
806
|
"description": "上传文件",
|
|
1119
807
|
"category": "form-input-basic"
|
|
1120
808
|
},
|
|
809
|
+
{
|
|
810
|
+
"name": "eo-switch",
|
|
811
|
+
"alias": [
|
|
812
|
+
"form.general-switch"
|
|
813
|
+
],
|
|
814
|
+
"properties": [
|
|
815
|
+
{
|
|
816
|
+
"name": "name",
|
|
817
|
+
"description": "字段名称",
|
|
818
|
+
"type": "string"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"name": "label",
|
|
822
|
+
"description": "字段文本",
|
|
823
|
+
"type": "string"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"name": "value",
|
|
827
|
+
"description": "初始值",
|
|
828
|
+
"type": "boolean"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"name": "disabled",
|
|
832
|
+
"description": "是否禁用",
|
|
833
|
+
"type": "boolean"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"name": "size",
|
|
837
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
838
|
+
"type": "ComponentSize"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"name": "checkedText",
|
|
842
|
+
"description": "选中时的文本",
|
|
843
|
+
"type": "string"
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
"name": "unCheckedText",
|
|
847
|
+
"description": "非选中时的文本",
|
|
848
|
+
"type": "string"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"name": "checkedIcon",
|
|
852
|
+
"description": "选中时的图标",
|
|
853
|
+
"attribute": false,
|
|
854
|
+
"type": "GeneralIconProps"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "unCheckedIcon",
|
|
858
|
+
"description": "非选中时的文本",
|
|
859
|
+
"attribute": false,
|
|
860
|
+
"type": "GeneralIconProps"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
863
|
+
"events": [
|
|
864
|
+
{
|
|
865
|
+
"name": "switch",
|
|
866
|
+
"description": "开关改变时触发",
|
|
867
|
+
"detail": {
|
|
868
|
+
"type": "boolean"
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
],
|
|
872
|
+
"slots": [],
|
|
873
|
+
"methods": [],
|
|
874
|
+
"parts": [],
|
|
875
|
+
"description": "开关",
|
|
876
|
+
"category": "form-input-basic"
|
|
877
|
+
},
|
|
1121
878
|
{
|
|
1122
879
|
"name": "eo-auto-complete",
|
|
1123
880
|
"properties": [
|
|
@@ -1276,6 +1033,104 @@
|
|
|
1276
1033
|
"description": "时间选择器",
|
|
1277
1034
|
"category": "form-input-basic"
|
|
1278
1035
|
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "eo-textarea",
|
|
1038
|
+
"alias": [
|
|
1039
|
+
"form.general-textarea"
|
|
1040
|
+
],
|
|
1041
|
+
"properties": [
|
|
1042
|
+
{
|
|
1043
|
+
"name": "name",
|
|
1044
|
+
"description": "字段名称",
|
|
1045
|
+
"type": "string"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "label",
|
|
1049
|
+
"description": "标签文字",
|
|
1050
|
+
"type": "string"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"name": "value",
|
|
1054
|
+
"description": "值",
|
|
1055
|
+
"type": "string"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"name": "placeholder",
|
|
1059
|
+
"description": "占位说明",
|
|
1060
|
+
"type": "string"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "disabled",
|
|
1064
|
+
"description": "是否禁用",
|
|
1065
|
+
"type": "boolean"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"name": "minLength",
|
|
1069
|
+
"description": "最小长度",
|
|
1070
|
+
"type": "number"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "maxLength",
|
|
1074
|
+
"description": "最大长度",
|
|
1075
|
+
"type": "number"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "autoSize",
|
|
1079
|
+
"description": "大小自适应",
|
|
1080
|
+
"attribute": false,
|
|
1081
|
+
"type": "AutoSize"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"name": "required",
|
|
1085
|
+
"description": "是否必填",
|
|
1086
|
+
"type": "boolean"
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"name": "max",
|
|
1090
|
+
"description": "表单校验最大长度",
|
|
1091
|
+
"type": "number"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"name": "min",
|
|
1095
|
+
"description": "表单校验最小长度",
|
|
1096
|
+
"type": "number"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "message",
|
|
1100
|
+
"description": "校验信息",
|
|
1101
|
+
"attribute": false,
|
|
1102
|
+
"type": "Record<string, string>"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"name": "textareaStyle",
|
|
1106
|
+
"description": "自定义样式",
|
|
1107
|
+
"attribute": false,
|
|
1108
|
+
"type": "React.CSSProperties"
|
|
1109
|
+
}
|
|
1110
|
+
],
|
|
1111
|
+
"events": [
|
|
1112
|
+
{
|
|
1113
|
+
"name": "change",
|
|
1114
|
+
"description": "",
|
|
1115
|
+
"detail": {
|
|
1116
|
+
"description": null,
|
|
1117
|
+
"type": "string"
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
"slots": [],
|
|
1122
|
+
"methods": [
|
|
1123
|
+
{
|
|
1124
|
+
"name": "focusTextarea",
|
|
1125
|
+
"params": [],
|
|
1126
|
+
"description": "focus",
|
|
1127
|
+
"returns": {}
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
"parts": [],
|
|
1131
|
+
"description": "通用多行文本输入框构件",
|
|
1132
|
+
"category": "form-input-basic"
|
|
1133
|
+
},
|
|
1279
1134
|
{
|
|
1280
1135
|
"name": "eo-date-picker",
|
|
1281
1136
|
"properties": [
|
|
@@ -1377,82 +1232,149 @@
|
|
|
1377
1232
|
"category": "form-input-basic"
|
|
1378
1233
|
},
|
|
1379
1234
|
{
|
|
1380
|
-
"name": "eo-
|
|
1235
|
+
"name": "eo-form",
|
|
1236
|
+
"alias": [
|
|
1237
|
+
"form.general-form"
|
|
1238
|
+
],
|
|
1381
1239
|
"properties": [
|
|
1382
1240
|
{
|
|
1383
|
-
"name": "
|
|
1384
|
-
"
|
|
1385
|
-
"type": "string"
|
|
1386
|
-
},
|
|
1387
|
-
{
|
|
1388
|
-
"name": "label",
|
|
1389
|
-
"description": "字段说明",
|
|
1390
|
-
"type": "string"
|
|
1241
|
+
"name": "staticValues",
|
|
1242
|
+
"attribute": false,
|
|
1243
|
+
"type": "Record<string, unknown>"
|
|
1391
1244
|
},
|
|
1392
1245
|
{
|
|
1393
|
-
"name": "
|
|
1394
|
-
"description": "
|
|
1395
|
-
"
|
|
1246
|
+
"name": "layout",
|
|
1247
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
1248
|
+
"default": "vertical",
|
|
1249
|
+
"type": "Layout"
|
|
1396
1250
|
},
|
|
1397
1251
|
{
|
|
1398
|
-
"name": "
|
|
1399
|
-
"description": "
|
|
1400
|
-
"type": "
|
|
1252
|
+
"name": "size",
|
|
1253
|
+
"description": "表单组件尺寸",
|
|
1254
|
+
"type": "ComponentSize"
|
|
1401
1255
|
},
|
|
1402
1256
|
{
|
|
1403
|
-
"name": "
|
|
1404
|
-
"description": "
|
|
1405
|
-
"
|
|
1257
|
+
"name": "labelCol",
|
|
1258
|
+
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1259
|
+
"default": "{\n sm: {\n span: 24,\n },\n md: {\n span: 24,\n },\n lg: {\n span: 7,\n },\n xl: {\n span: 5,\n },\n xxl: {\n span: 4,\n },\n }",
|
|
1260
|
+
"attribute": false,
|
|
1261
|
+
"type": "ColProps"
|
|
1406
1262
|
},
|
|
1407
1263
|
{
|
|
1408
|
-
"name": "
|
|
1409
|
-
"description": "
|
|
1410
|
-
"
|
|
1264
|
+
"name": "wrapperCol",
|
|
1265
|
+
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1266
|
+
"default": "{\n sm: {\n span: 18,\n },\n md: {\n span: 18,\n },\n lg: {\n span: 13,\n },\n xl: {\n span: 16,\n },\n xxl: {\n span: 18,\n },\n }",
|
|
1267
|
+
"attribute": false,
|
|
1268
|
+
"type": "ColProps"
|
|
1411
1269
|
},
|
|
1412
1270
|
{
|
|
1413
|
-
"name": "
|
|
1414
|
-
"description": "设置触发器大小",
|
|
1415
|
-
"default": "middle",
|
|
1271
|
+
"name": "formStyle",
|
|
1416
1272
|
"attribute": false,
|
|
1417
|
-
"type": "
|
|
1273
|
+
"type": "React.CSSProperties"
|
|
1418
1274
|
},
|
|
1419
1275
|
{
|
|
1420
|
-
"name": "
|
|
1421
|
-
"
|
|
1422
|
-
"
|
|
1423
|
-
}
|
|
1276
|
+
"name": "textContent",
|
|
1277
|
+
"type": "string",
|
|
1278
|
+
"description": "文本内容"
|
|
1279
|
+
}
|
|
1280
|
+
],
|
|
1281
|
+
"events": [
|
|
1424
1282
|
{
|
|
1425
|
-
"name": "
|
|
1426
|
-
"description": "
|
|
1427
|
-
"
|
|
1283
|
+
"name": "values.change",
|
|
1284
|
+
"description": "表单值变更事件",
|
|
1285
|
+
"detail": {
|
|
1286
|
+
"description": null,
|
|
1287
|
+
"type": "Record<string, unknown>"
|
|
1288
|
+
}
|
|
1428
1289
|
},
|
|
1429
1290
|
{
|
|
1430
|
-
"name": "
|
|
1431
|
-
"description": "
|
|
1432
|
-
"
|
|
1433
|
-
|
|
1434
|
-
|
|
1291
|
+
"name": "validate.success",
|
|
1292
|
+
"description": "表单验证成功时触发事件",
|
|
1293
|
+
"detail": {
|
|
1294
|
+
"type": "Record<string, unknown>"
|
|
1295
|
+
}
|
|
1435
1296
|
},
|
|
1436
1297
|
{
|
|
1437
|
-
"name": "
|
|
1438
|
-
"description": "
|
|
1439
|
-
"
|
|
1440
|
-
|
|
1298
|
+
"name": "validate.error",
|
|
1299
|
+
"description": "表单验证报错时触发事件",
|
|
1300
|
+
"detail": {
|
|
1301
|
+
"type": "(MessageBody & { name: string })[]"
|
|
1302
|
+
}
|
|
1441
1303
|
}
|
|
1442
1304
|
],
|
|
1443
|
-
"
|
|
1305
|
+
"slots": [
|
|
1444
1306
|
{
|
|
1445
|
-
"name":
|
|
1446
|
-
"description": "
|
|
1447
|
-
|
|
1448
|
-
|
|
1307
|
+
"name": null,
|
|
1308
|
+
"description": "表单内容"
|
|
1309
|
+
}
|
|
1310
|
+
],
|
|
1311
|
+
"methods": [
|
|
1312
|
+
{
|
|
1313
|
+
"name": "validate",
|
|
1314
|
+
"params": [],
|
|
1315
|
+
"description": "表单校验方法",
|
|
1316
|
+
"returns": {
|
|
1317
|
+
"type": "boolean | Record<string, unknown>"
|
|
1449
1318
|
}
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"name": "setInitValue",
|
|
1322
|
+
"params": [
|
|
1323
|
+
{
|
|
1324
|
+
"name": "values",
|
|
1325
|
+
"type": "Record<string, unknown>"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "options",
|
|
1329
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
1330
|
+
}
|
|
1331
|
+
],
|
|
1332
|
+
"description": "表单设置值方法",
|
|
1333
|
+
"returns": {}
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"name": "resetFields",
|
|
1337
|
+
"params": [
|
|
1338
|
+
{
|
|
1339
|
+
"name": "name",
|
|
1340
|
+
"type": "string"
|
|
1341
|
+
}
|
|
1342
|
+
],
|
|
1343
|
+
"description": "表单重置值方法",
|
|
1344
|
+
"returns": {}
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"name": "getFieldsValue",
|
|
1348
|
+
"params": [
|
|
1349
|
+
{
|
|
1350
|
+
"name": "name",
|
|
1351
|
+
"type": "string"
|
|
1352
|
+
}
|
|
1353
|
+
],
|
|
1354
|
+
"description": "获取表单值方法",
|
|
1355
|
+
"returns": {}
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"name": "validateField",
|
|
1359
|
+
"params": [
|
|
1360
|
+
{
|
|
1361
|
+
"name": "name",
|
|
1362
|
+
"type": "string"
|
|
1363
|
+
}
|
|
1364
|
+
],
|
|
1365
|
+
"description": "校验表单字段方法",
|
|
1366
|
+
"returns": {}
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"name": "resetValidateState",
|
|
1370
|
+
"params": [],
|
|
1371
|
+
"description": "重置表单校验状态方法",
|
|
1372
|
+
"returns": {}
|
|
1450
1373
|
}
|
|
1451
1374
|
],
|
|
1452
|
-
"slots": [],
|
|
1453
|
-
"methods": [],
|
|
1454
1375
|
"parts": [],
|
|
1455
|
-
"description": "
|
|
1376
|
+
"description": "表单构件",
|
|
1377
|
+
"category": "form-input-basic"
|
|
1456
1378
|
},
|
|
1457
1379
|
{
|
|
1458
1380
|
"name": "eo-time-range-picker",
|
|
@@ -1536,6 +1458,84 @@
|
|
|
1536
1458
|
"description": "时间区间选择器",
|
|
1537
1459
|
"category": "form-input-basic"
|
|
1538
1460
|
},
|
|
1461
|
+
{
|
|
1462
|
+
"name": "eo-color-picker",
|
|
1463
|
+
"properties": [
|
|
1464
|
+
{
|
|
1465
|
+
"name": "name",
|
|
1466
|
+
"description": "字段名称",
|
|
1467
|
+
"type": "string"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"name": "label",
|
|
1471
|
+
"description": "字段说明",
|
|
1472
|
+
"type": "string"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"name": "value",
|
|
1476
|
+
"description": "值",
|
|
1477
|
+
"type": "string"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"name": "defaultValue",
|
|
1481
|
+
"description": "颜色默认的值",
|
|
1482
|
+
"type": "string | Color"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"name": "required",
|
|
1486
|
+
"description": "是否必填",
|
|
1487
|
+
"type": "boolean"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"name": "allowClear",
|
|
1491
|
+
"description": "允许清除选择的颜色",
|
|
1492
|
+
"type": "boolean"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"name": "size",
|
|
1496
|
+
"description": "设置触发器大小",
|
|
1497
|
+
"default": "middle",
|
|
1498
|
+
"attribute": false,
|
|
1499
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"name": "showText",
|
|
1503
|
+
"description": "显示颜色文本",
|
|
1504
|
+
"type": "boolean"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"name": "disabled",
|
|
1508
|
+
"description": "是否禁用",
|
|
1509
|
+
"type": "boolean"
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"name": "format",
|
|
1513
|
+
"description": "颜色格式",
|
|
1514
|
+
"default": "hex",
|
|
1515
|
+
"attribute": false,
|
|
1516
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"name": "configProps",
|
|
1520
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1521
|
+
"attribute": false,
|
|
1522
|
+
"type": "Partial<ColorPickerProps>"
|
|
1523
|
+
}
|
|
1524
|
+
],
|
|
1525
|
+
"events": [
|
|
1526
|
+
{
|
|
1527
|
+
"name": "change",
|
|
1528
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1529
|
+
"detail": {
|
|
1530
|
+
"type": "string | undefined"
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
],
|
|
1534
|
+
"slots": [],
|
|
1535
|
+
"methods": [],
|
|
1536
|
+
"parts": [],
|
|
1537
|
+
"description": "构件 `eo-color-picker`"
|
|
1538
|
+
},
|
|
1539
1539
|
{
|
|
1540
1540
|
"name": "eo-form-item",
|
|
1541
1541
|
"alias": [
|