@next-bricks/form 1.21.2 → 1.21.3
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 +24 -24
- package/dist/chunks/2537.5bbad3eb.js.map +1 -1
- package/dist/chunks/9949.c6f285e9.js.map +1 -1
- package/dist/chunks/eo-auto-complete.9d9f68a8.js.map +1 -1
- package/dist/chunks/eo-checkbox.0b875e8b.js.map +1 -1
- package/dist/chunks/eo-date-picker.f5894c3c.js.map +1 -1
- package/dist/chunks/eo-dynamic-form-item.3837c24e.js.map +1 -1
- package/dist/chunks/eo-radio.f2527bfa.js.map +1 -1
- package/dist/chunks/eo-search.206dd65e.js.map +1 -1
- package/dist/chunks/eo-select.78631f61.js.map +1 -1
- package/dist/chunks/eo-submit-buttons.bccc3dbf.js.map +1 -1
- package/dist/chunks/eo-textarea.fbc8c190.js.map +1 -1
- package/dist/chunks/eo-time-picker.da156d88.js.map +1 -1
- package/dist/chunks/eo-time-range-picker.15864724.js.map +1 -1
- package/dist/chunks/eo-upload-file.8e5acc0f.js.map +1 -1
- package/dist/chunks/eo-upload-image.1ae9beb3.js.map +1 -1
- package/dist/examples.json +11 -11
- package/dist/{index.64a9544d.js → index.388bae12.js} +2 -2
- package/dist/{index.64a9544d.js.map → index.388bae12.js.map} +1 -1
- package/dist/manifest.json +369 -369
- package/dist/types.json +2074 -2072
- package/dist-types/auto-complete/index.d.ts +1 -1
- package/dist-types/checkbox/index.d.ts +0 -2
- package/dist-types/date-picker/index.d.ts +1 -1
- package/dist-types/dynamic-form-item/index.d.ts +1 -1
- package/dist-types/input/index.d.ts +1 -1
- package/dist-types/jsx.d.ts +3 -3
- package/dist-types/radio/index.d.ts +2 -2
- package/dist-types/select/index.d.ts +1 -1
- package/dist-types/submit-buttons/index.d.ts +6 -4
- package/dist-types/textarea/index.d.ts +2 -1
- package/dist-types/time-picker/index.d.ts +1 -1
- package/dist-types/time-range-picker/index.d.ts +11 -9
- package/dist-types/upload/upload-file/index.d.ts +1 -1
- package/dist-types/upload/upload-image/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/manifest.json
CHANGED
|
@@ -3,6 +3,258 @@
|
|
|
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": "autoScrollToInvalidFields",
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "formStyle",
|
|
48
|
+
"attribute": false,
|
|
49
|
+
"type": "React.CSSProperties"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "textContent",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "文本内容"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"events": [
|
|
58
|
+
{
|
|
59
|
+
"name": "values.change",
|
|
60
|
+
"description": "表单值变更事件",
|
|
61
|
+
"detail": {
|
|
62
|
+
"description": null,
|
|
63
|
+
"type": "Record<string, unknown>"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "validate.success",
|
|
68
|
+
"description": "表单验证成功时触发事件",
|
|
69
|
+
"detail": {
|
|
70
|
+
"type": "Record<string, unknown>"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "validate.error",
|
|
75
|
+
"description": "表单验证报错时触发事件",
|
|
76
|
+
"detail": {
|
|
77
|
+
"type": "(MessageBody & { name: string })[]"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"slots": [
|
|
82
|
+
{
|
|
83
|
+
"name": null,
|
|
84
|
+
"description": "表单内容"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"methods": [
|
|
88
|
+
{
|
|
89
|
+
"name": "validate",
|
|
90
|
+
"params": [],
|
|
91
|
+
"description": "表单校验方法",
|
|
92
|
+
"returns": {
|
|
93
|
+
"type": "boolean | Record<string, unknown>"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "setInitValue",
|
|
98
|
+
"params": [
|
|
99
|
+
{
|
|
100
|
+
"name": "values",
|
|
101
|
+
"type": "Record<string, unknown>"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "options",
|
|
105
|
+
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"description": "表单设置值方法",
|
|
109
|
+
"returns": {}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "resetFields",
|
|
113
|
+
"params": [
|
|
114
|
+
{
|
|
115
|
+
"name": "name",
|
|
116
|
+
"type": "string"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"description": "表单重置值方法",
|
|
120
|
+
"returns": {}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "getFieldsValue",
|
|
124
|
+
"params": [
|
|
125
|
+
{
|
|
126
|
+
"name": "name",
|
|
127
|
+
"type": "string"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"description": "获取表单值方法",
|
|
131
|
+
"returns": {}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "validateField",
|
|
135
|
+
"params": [
|
|
136
|
+
{
|
|
137
|
+
"name": "name",
|
|
138
|
+
"type": "string"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"description": "校验表单字段方法",
|
|
142
|
+
"returns": {}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "resetValidateState",
|
|
146
|
+
"params": [],
|
|
147
|
+
"description": "重置表单校验状态方法",
|
|
148
|
+
"returns": {}
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"parts": [],
|
|
152
|
+
"description": "表单构件",
|
|
153
|
+
"category": "form-input-basic"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "eo-radio",
|
|
157
|
+
"alias": [
|
|
158
|
+
"form.general-radio"
|
|
159
|
+
],
|
|
160
|
+
"properties": [
|
|
161
|
+
{
|
|
162
|
+
"name": "name",
|
|
163
|
+
"description": "下拉框字段名",
|
|
164
|
+
"type": "string"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "label",
|
|
168
|
+
"description": "单选框字段说明",
|
|
169
|
+
"type": "string"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "options",
|
|
173
|
+
"description": "单选框选项表",
|
|
174
|
+
"required": true,
|
|
175
|
+
"attribute": false,
|
|
176
|
+
"type": "GeneralOption[]"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "value",
|
|
180
|
+
"description": "单选框当前选中始值",
|
|
181
|
+
"attribute": false,
|
|
182
|
+
"type": "any"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "required",
|
|
186
|
+
"description": "是否必填",
|
|
187
|
+
"type": "boolean"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "message",
|
|
191
|
+
"description": "校验文本信息",
|
|
192
|
+
"attribute": false,
|
|
193
|
+
"type": "Record<string, string>"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "disabled",
|
|
197
|
+
"description": "是否禁用",
|
|
198
|
+
"type": "boolean"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "type",
|
|
202
|
+
"description": "单选框样式类型",
|
|
203
|
+
"default": "\"default\"",
|
|
204
|
+
"type": "RadioType"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "ui",
|
|
208
|
+
"description": "UI样式",
|
|
209
|
+
"default": "\"default\"",
|
|
210
|
+
"type": "UIType"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "size",
|
|
214
|
+
"description": "大小,只对按钮样式生效",
|
|
215
|
+
"default": "\"medium\"",
|
|
216
|
+
"type": "ComponentSize"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "customStyle",
|
|
220
|
+
"description": "自定义radio的外层样式",
|
|
221
|
+
"attribute": false,
|
|
222
|
+
"type": "React.CSSProperties"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "useBrick",
|
|
226
|
+
"description": "自定义radio的内容",
|
|
227
|
+
"attribute": false,
|
|
228
|
+
"type": "UseSingleBrickConf"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "themeVariant",
|
|
232
|
+
"description": "主题变体",
|
|
233
|
+
"type": "\"default\" | \"elevo\""
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"events": [
|
|
237
|
+
{
|
|
238
|
+
"name": "change",
|
|
239
|
+
"description": "值变化事件",
|
|
240
|
+
"detail": {
|
|
241
|
+
"type": "GeneralComplexOption | undefined"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "options.change",
|
|
246
|
+
"description": "选项列表变化事件",
|
|
247
|
+
"detail": {
|
|
248
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"slots": [],
|
|
253
|
+
"methods": [],
|
|
254
|
+
"parts": [],
|
|
255
|
+
"description": "通用单选构件",
|
|
256
|
+
"category": "form-input-basic"
|
|
257
|
+
},
|
|
6
258
|
{
|
|
7
259
|
"name": "eo-textarea",
|
|
8
260
|
"alias": [
|
|
@@ -742,80 +994,6 @@
|
|
|
742
994
|
"description": "上传图片构件",
|
|
743
995
|
"category": "form-input-basic"
|
|
744
996
|
},
|
|
745
|
-
{
|
|
746
|
-
"name": "eo-switch",
|
|
747
|
-
"alias": [
|
|
748
|
-
"form.general-switch"
|
|
749
|
-
],
|
|
750
|
-
"properties": [
|
|
751
|
-
{
|
|
752
|
-
"name": "name",
|
|
753
|
-
"description": "字段名称",
|
|
754
|
-
"type": "string"
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
"name": "label",
|
|
758
|
-
"description": "字段文本",
|
|
759
|
-
"type": "string"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
"name": "value",
|
|
763
|
-
"description": "初始值",
|
|
764
|
-
"type": "boolean"
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
"name": "disabled",
|
|
768
|
-
"description": "是否禁用",
|
|
769
|
-
"type": "boolean"
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
"name": "size",
|
|
773
|
-
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
774
|
-
"type": "ComponentSize"
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
"name": "checkedText",
|
|
778
|
-
"description": "选中时的文本",
|
|
779
|
-
"type": "string"
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
"name": "unCheckedText",
|
|
783
|
-
"description": "非选中时的文本",
|
|
784
|
-
"type": "string"
|
|
785
|
-
},
|
|
786
|
-
{
|
|
787
|
-
"name": "checkedIcon",
|
|
788
|
-
"description": "选中时的图标",
|
|
789
|
-
"attribute": false,
|
|
790
|
-
"type": "GeneralIconProps"
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
"name": "unCheckedIcon",
|
|
794
|
-
"description": "非选中时的文本",
|
|
795
|
-
"attribute": false,
|
|
796
|
-
"type": "GeneralIconProps"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
"name": "themeVariant",
|
|
800
|
-
"description": "主题变体",
|
|
801
|
-
"type": "\"default\" | \"elevo\""
|
|
802
|
-
}
|
|
803
|
-
],
|
|
804
|
-
"events": [
|
|
805
|
-
{
|
|
806
|
-
"name": "switch",
|
|
807
|
-
"description": "开关改变时触发",
|
|
808
|
-
"detail": {
|
|
809
|
-
"type": "boolean"
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
],
|
|
813
|
-
"slots": [],
|
|
814
|
-
"methods": [],
|
|
815
|
-
"parts": [],
|
|
816
|
-
"description": "开关",
|
|
817
|
-
"category": "form-input-basic"
|
|
818
|
-
},
|
|
819
997
|
{
|
|
820
998
|
"name": "eo-upload-file",
|
|
821
999
|
"properties": [
|
|
@@ -944,6 +1122,80 @@
|
|
|
944
1122
|
"description": "上传文件",
|
|
945
1123
|
"category": "form-input-basic"
|
|
946
1124
|
},
|
|
1125
|
+
{
|
|
1126
|
+
"name": "eo-switch",
|
|
1127
|
+
"alias": [
|
|
1128
|
+
"form.general-switch"
|
|
1129
|
+
],
|
|
1130
|
+
"properties": [
|
|
1131
|
+
{
|
|
1132
|
+
"name": "name",
|
|
1133
|
+
"description": "字段名称",
|
|
1134
|
+
"type": "string"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "label",
|
|
1138
|
+
"description": "字段文本",
|
|
1139
|
+
"type": "string"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"name": "value",
|
|
1143
|
+
"description": "初始值",
|
|
1144
|
+
"type": "boolean"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "disabled",
|
|
1148
|
+
"description": "是否禁用",
|
|
1149
|
+
"type": "boolean"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"name": "size",
|
|
1153
|
+
"description": "按钮大小,目前只支持small和非small两种大小。",
|
|
1154
|
+
"type": "ComponentSize"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"name": "checkedText",
|
|
1158
|
+
"description": "选中时的文本",
|
|
1159
|
+
"type": "string"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"name": "unCheckedText",
|
|
1163
|
+
"description": "非选中时的文本",
|
|
1164
|
+
"type": "string"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"name": "checkedIcon",
|
|
1168
|
+
"description": "选中时的图标",
|
|
1169
|
+
"attribute": false,
|
|
1170
|
+
"type": "GeneralIconProps"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"name": "unCheckedIcon",
|
|
1174
|
+
"description": "非选中时的文本",
|
|
1175
|
+
"attribute": false,
|
|
1176
|
+
"type": "GeneralIconProps"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"name": "themeVariant",
|
|
1180
|
+
"description": "主题变体",
|
|
1181
|
+
"type": "\"default\" | \"elevo\""
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
"events": [
|
|
1185
|
+
{
|
|
1186
|
+
"name": "switch",
|
|
1187
|
+
"description": "开关改变时触发",
|
|
1188
|
+
"detail": {
|
|
1189
|
+
"type": "boolean"
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"slots": [],
|
|
1194
|
+
"methods": [],
|
|
1195
|
+
"parts": [],
|
|
1196
|
+
"description": "开关",
|
|
1197
|
+
"category": "form-input-basic"
|
|
1198
|
+
},
|
|
947
1199
|
{
|
|
948
1200
|
"name": "eo-auto-complete",
|
|
949
1201
|
"properties": [
|
|
@@ -1102,255 +1354,6 @@
|
|
|
1102
1354
|
"description": "时间选择器",
|
|
1103
1355
|
"category": "form-input-basic"
|
|
1104
1356
|
},
|
|
1105
|
-
{
|
|
1106
|
-
"name": "eo-form",
|
|
1107
|
-
"alias": [
|
|
1108
|
-
"form.general-form"
|
|
1109
|
-
],
|
|
1110
|
-
"properties": [
|
|
1111
|
-
{
|
|
1112
|
-
"name": "staticValues",
|
|
1113
|
-
"attribute": false,
|
|
1114
|
-
"type": "Record<string, unknown>"
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
"name": "layout",
|
|
1118
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
1119
|
-
"default": "vertical",
|
|
1120
|
-
"type": "Layout"
|
|
1121
|
-
},
|
|
1122
|
-
{
|
|
1123
|
-
"name": "size",
|
|
1124
|
-
"description": "表单组件尺寸",
|
|
1125
|
-
"type": "ComponentSize"
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
"name": "labelCol",
|
|
1129
|
-
"description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1130
|
-
"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 }",
|
|
1131
|
-
"attribute": false,
|
|
1132
|
-
"type": "ColProps"
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
"name": "wrapperCol",
|
|
1136
|
-
"description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
|
|
1137
|
-
"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 }",
|
|
1138
|
-
"attribute": false,
|
|
1139
|
-
"type": "ColProps"
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
"name": "autoScrollToInvalidFields",
|
|
1143
|
-
"type": "boolean"
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
"name": "formStyle",
|
|
1147
|
-
"attribute": false,
|
|
1148
|
-
"type": "React.CSSProperties"
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
"name": "textContent",
|
|
1152
|
-
"type": "string",
|
|
1153
|
-
"description": "文本内容"
|
|
1154
|
-
}
|
|
1155
|
-
],
|
|
1156
|
-
"events": [
|
|
1157
|
-
{
|
|
1158
|
-
"name": "values.change",
|
|
1159
|
-
"description": "表单值变更事件",
|
|
1160
|
-
"detail": {
|
|
1161
|
-
"description": null,
|
|
1162
|
-
"type": "Record<string, unknown>"
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"name": "validate.success",
|
|
1167
|
-
"description": "表单验证成功时触发事件",
|
|
1168
|
-
"detail": {
|
|
1169
|
-
"type": "Record<string, unknown>"
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
"name": "validate.error",
|
|
1174
|
-
"description": "表单验证报错时触发事件",
|
|
1175
|
-
"detail": {
|
|
1176
|
-
"type": "(MessageBody & { name: string })[]"
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
],
|
|
1180
|
-
"slots": [
|
|
1181
|
-
{
|
|
1182
|
-
"name": null,
|
|
1183
|
-
"description": "表单内容"
|
|
1184
|
-
}
|
|
1185
|
-
],
|
|
1186
|
-
"methods": [
|
|
1187
|
-
{
|
|
1188
|
-
"name": "validate",
|
|
1189
|
-
"params": [],
|
|
1190
|
-
"description": "表单校验方法",
|
|
1191
|
-
"returns": {
|
|
1192
|
-
"type": "boolean | Record<string, unknown>"
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"name": "setInitValue",
|
|
1197
|
-
"params": [
|
|
1198
|
-
{
|
|
1199
|
-
"name": "values",
|
|
1200
|
-
"type": "Record<string, unknown>"
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
"name": "options",
|
|
1204
|
-
"type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
|
|
1205
|
-
}
|
|
1206
|
-
],
|
|
1207
|
-
"description": "表单设置值方法",
|
|
1208
|
-
"returns": {}
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
"name": "resetFields",
|
|
1212
|
-
"params": [
|
|
1213
|
-
{
|
|
1214
|
-
"name": "name",
|
|
1215
|
-
"type": "string"
|
|
1216
|
-
}
|
|
1217
|
-
],
|
|
1218
|
-
"description": "表单重置值方法",
|
|
1219
|
-
"returns": {}
|
|
1220
|
-
},
|
|
1221
|
-
{
|
|
1222
|
-
"name": "getFieldsValue",
|
|
1223
|
-
"params": [
|
|
1224
|
-
{
|
|
1225
|
-
"name": "name",
|
|
1226
|
-
"type": "string"
|
|
1227
|
-
}
|
|
1228
|
-
],
|
|
1229
|
-
"description": "获取表单值方法",
|
|
1230
|
-
"returns": {}
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
"name": "validateField",
|
|
1234
|
-
"params": [
|
|
1235
|
-
{
|
|
1236
|
-
"name": "name",
|
|
1237
|
-
"type": "string"
|
|
1238
|
-
}
|
|
1239
|
-
],
|
|
1240
|
-
"description": "校验表单字段方法",
|
|
1241
|
-
"returns": {}
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
"name": "resetValidateState",
|
|
1245
|
-
"params": [],
|
|
1246
|
-
"description": "重置表单校验状态方法",
|
|
1247
|
-
"returns": {}
|
|
1248
|
-
}
|
|
1249
|
-
],
|
|
1250
|
-
"parts": [],
|
|
1251
|
-
"description": "表单构件",
|
|
1252
|
-
"category": "form-input-basic"
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
"name": "eo-date-picker",
|
|
1256
|
-
"properties": [
|
|
1257
|
-
{
|
|
1258
|
-
"name": "name",
|
|
1259
|
-
"description": "日期选择器字段名",
|
|
1260
|
-
"type": "string"
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
"name": "label",
|
|
1264
|
-
"description": "日期选择器说明",
|
|
1265
|
-
"type": "string"
|
|
1266
|
-
},
|
|
1267
|
-
{
|
|
1268
|
-
"name": "value",
|
|
1269
|
-
"description": "日期选择器的初始值",
|
|
1270
|
-
"type": "string"
|
|
1271
|
-
},
|
|
1272
|
-
{
|
|
1273
|
-
"name": "placeholder",
|
|
1274
|
-
"description": "日期选择器占位说明",
|
|
1275
|
-
"type": "string"
|
|
1276
|
-
},
|
|
1277
|
-
{
|
|
1278
|
-
"name": "message",
|
|
1279
|
-
"description": "校验文本信息",
|
|
1280
|
-
"attribute": false,
|
|
1281
|
-
"type": "Record<string, string>"
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
"name": "disabled",
|
|
1285
|
-
"description": "是否禁用",
|
|
1286
|
-
"type": "boolean"
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
"name": "required",
|
|
1290
|
-
"description": "是否必填",
|
|
1291
|
-
"type": "boolean"
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
"name": "showTime",
|
|
1295
|
-
"description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
|
|
1296
|
-
"type": "boolean"
|
|
1297
|
-
},
|
|
1298
|
-
{
|
|
1299
|
-
"name": "format",
|
|
1300
|
-
"description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
|
|
1301
|
-
"type": "string"
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
"name": "picker",
|
|
1305
|
-
"description": "设置选择器类型",
|
|
1306
|
-
"attribute": false,
|
|
1307
|
-
"type": "PickerMode"
|
|
1308
|
-
},
|
|
1309
|
-
{
|
|
1310
|
-
"name": "futureDateDisabled",
|
|
1311
|
-
"description": "不可选择未来日期,优先级高于disabledDate",
|
|
1312
|
-
"type": "boolean"
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
"name": "disabledDate",
|
|
1316
|
-
"description": "不可选择的日期",
|
|
1317
|
-
"attribute": false,
|
|
1318
|
-
"type": "DisabledDateType"
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
"name": "useFastSelectBtn",
|
|
1322
|
-
"description": "快速选项",
|
|
1323
|
-
"type": "boolean"
|
|
1324
|
-
},
|
|
1325
|
-
{
|
|
1326
|
-
"name": "inputStyle",
|
|
1327
|
-
"description": "输入框样式",
|
|
1328
|
-
"attribute": false,
|
|
1329
|
-
"type": "CSSProperties"
|
|
1330
|
-
}
|
|
1331
|
-
],
|
|
1332
|
-
"events": [
|
|
1333
|
-
{
|
|
1334
|
-
"name": "change",
|
|
1335
|
-
"description": "日期变化时触发",
|
|
1336
|
-
"detail": {
|
|
1337
|
-
"type": "string"
|
|
1338
|
-
}
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
"name": "ok",
|
|
1342
|
-
"description": "点击确定按钮触发(showTime 为 true 使用)",
|
|
1343
|
-
"detail": {
|
|
1344
|
-
"type": "string"
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
],
|
|
1348
|
-
"slots": [],
|
|
1349
|
-
"methods": [],
|
|
1350
|
-
"parts": [],
|
|
1351
|
-
"description": "日期选择器",
|
|
1352
|
-
"category": "form-input-basic"
|
|
1353
|
-
},
|
|
1354
1357
|
{
|
|
1355
1358
|
"name": "eo-time-range-picker",
|
|
1356
1359
|
"properties": [
|
|
@@ -1434,38 +1437,27 @@
|
|
|
1434
1437
|
"category": "form-input-basic"
|
|
1435
1438
|
},
|
|
1436
1439
|
{
|
|
1437
|
-
"name": "eo-
|
|
1438
|
-
"alias": [
|
|
1439
|
-
"form.general-radio"
|
|
1440
|
-
],
|
|
1440
|
+
"name": "eo-date-picker",
|
|
1441
1441
|
"properties": [
|
|
1442
1442
|
{
|
|
1443
1443
|
"name": "name",
|
|
1444
|
-
"description": "
|
|
1444
|
+
"description": "日期选择器字段名",
|
|
1445
1445
|
"type": "string"
|
|
1446
1446
|
},
|
|
1447
1447
|
{
|
|
1448
1448
|
"name": "label",
|
|
1449
|
-
"description": "
|
|
1449
|
+
"description": "日期选择器说明",
|
|
1450
1450
|
"type": "string"
|
|
1451
1451
|
},
|
|
1452
|
-
{
|
|
1453
|
-
"name": "options",
|
|
1454
|
-
"description": "单选框选项表",
|
|
1455
|
-
"required": true,
|
|
1456
|
-
"attribute": false,
|
|
1457
|
-
"type": "GeneralOption[]"
|
|
1458
|
-
},
|
|
1459
1452
|
{
|
|
1460
1453
|
"name": "value",
|
|
1461
|
-
"description": "
|
|
1462
|
-
"
|
|
1463
|
-
"type": "any"
|
|
1454
|
+
"description": "日期选择器的初始值",
|
|
1455
|
+
"type": "string"
|
|
1464
1456
|
},
|
|
1465
1457
|
{
|
|
1466
|
-
"name": "
|
|
1467
|
-
"description": "
|
|
1468
|
-
"type": "
|
|
1458
|
+
"name": "placeholder",
|
|
1459
|
+
"description": "日期选择器占位说明",
|
|
1460
|
+
"type": "string"
|
|
1469
1461
|
},
|
|
1470
1462
|
{
|
|
1471
1463
|
"name": "message",
|
|
@@ -1479,61 +1471,69 @@
|
|
|
1479
1471
|
"type": "boolean"
|
|
1480
1472
|
},
|
|
1481
1473
|
{
|
|
1482
|
-
"name": "
|
|
1483
|
-
"description": "
|
|
1484
|
-
"
|
|
1485
|
-
"type": "RadioType"
|
|
1474
|
+
"name": "required",
|
|
1475
|
+
"description": "是否必填",
|
|
1476
|
+
"type": "boolean"
|
|
1486
1477
|
},
|
|
1487
1478
|
{
|
|
1488
|
-
"name": "
|
|
1489
|
-
"description": "
|
|
1490
|
-
"
|
|
1491
|
-
"type": "UIType"
|
|
1479
|
+
"name": "showTime",
|
|
1480
|
+
"description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
|
|
1481
|
+
"type": "boolean"
|
|
1492
1482
|
},
|
|
1493
1483
|
{
|
|
1494
|
-
"name": "
|
|
1495
|
-
"description": "
|
|
1496
|
-
"
|
|
1497
|
-
"type": "ComponentSize"
|
|
1484
|
+
"name": "format",
|
|
1485
|
+
"description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
|
|
1486
|
+
"type": "string"
|
|
1498
1487
|
},
|
|
1499
1488
|
{
|
|
1500
|
-
"name": "
|
|
1501
|
-
"description": "
|
|
1489
|
+
"name": "picker",
|
|
1490
|
+
"description": "设置选择器类型",
|
|
1502
1491
|
"attribute": false,
|
|
1503
|
-
"type": "
|
|
1492
|
+
"type": "PickerMode"
|
|
1504
1493
|
},
|
|
1505
1494
|
{
|
|
1506
|
-
"name": "
|
|
1507
|
-
"description": "
|
|
1495
|
+
"name": "futureDateDisabled",
|
|
1496
|
+
"description": "不可选择未来日期,优先级高于disabledDate",
|
|
1497
|
+
"type": "boolean"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"name": "disabledDate",
|
|
1501
|
+
"description": "不可选择的日期",
|
|
1508
1502
|
"attribute": false,
|
|
1509
|
-
"type": "
|
|
1503
|
+
"type": "DisabledDateType"
|
|
1510
1504
|
},
|
|
1511
1505
|
{
|
|
1512
|
-
"name": "
|
|
1513
|
-
"description": "
|
|
1514
|
-
"type": "
|
|
1506
|
+
"name": "useFastSelectBtn",
|
|
1507
|
+
"description": "快速选项",
|
|
1508
|
+
"type": "boolean"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"name": "inputStyle",
|
|
1512
|
+
"description": "输入框样式",
|
|
1513
|
+
"attribute": false,
|
|
1514
|
+
"type": "CSSProperties"
|
|
1515
1515
|
}
|
|
1516
1516
|
],
|
|
1517
1517
|
"events": [
|
|
1518
1518
|
{
|
|
1519
1519
|
"name": "change",
|
|
1520
|
-
"description": "
|
|
1520
|
+
"description": "日期变化时触发",
|
|
1521
1521
|
"detail": {
|
|
1522
|
-
"type": "
|
|
1522
|
+
"type": "string"
|
|
1523
1523
|
}
|
|
1524
1524
|
},
|
|
1525
1525
|
{
|
|
1526
|
-
"name": "
|
|
1527
|
-
"description": "
|
|
1526
|
+
"name": "ok",
|
|
1527
|
+
"description": "点击确定按钮触发(showTime 为 true 使用)",
|
|
1528
1528
|
"detail": {
|
|
1529
|
-
"type": "
|
|
1529
|
+
"type": "string"
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
],
|
|
1533
1533
|
"slots": [],
|
|
1534
1534
|
"methods": [],
|
|
1535
1535
|
"parts": [],
|
|
1536
|
-
"description": "
|
|
1536
|
+
"description": "日期选择器",
|
|
1537
1537
|
"category": "form-input-basic"
|
|
1538
1538
|
},
|
|
1539
1539
|
{
|