@next-bricks/form 1.21.1 → 1.21.2

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.
@@ -111,258 +111,6 @@
111
111
  "description": "通用多行文本输入框构件",
112
112
  "category": "form-input-basic"
113
113
  },
114
- {
115
- "name": "eo-form",
116
- "alias": [
117
- "form.general-form"
118
- ],
119
- "properties": [
120
- {
121
- "name": "staticValues",
122
- "attribute": false,
123
- "type": "Record<string, unknown>"
124
- },
125
- {
126
- "name": "layout",
127
- "description": "布局方式(默认 vertical 布局)",
128
- "default": "vertical",
129
- "type": "Layout"
130
- },
131
- {
132
- "name": "size",
133
- "description": "表单组件尺寸",
134
- "type": "ComponentSize"
135
- },
136
- {
137
- "name": "labelCol",
138
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
139
- "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 }",
140
- "attribute": false,
141
- "type": "ColProps"
142
- },
143
- {
144
- "name": "wrapperCol",
145
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
146
- "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 }",
147
- "attribute": false,
148
- "type": "ColProps"
149
- },
150
- {
151
- "name": "autoScrollToInvalidFields",
152
- "type": "boolean"
153
- },
154
- {
155
- "name": "formStyle",
156
- "attribute": false,
157
- "type": "React.CSSProperties"
158
- },
159
- {
160
- "name": "textContent",
161
- "type": "string",
162
- "description": "文本内容"
163
- }
164
- ],
165
- "events": [
166
- {
167
- "name": "values.change",
168
- "description": "表单值变更事件",
169
- "detail": {
170
- "description": null,
171
- "type": "Record<string, unknown>"
172
- }
173
- },
174
- {
175
- "name": "validate.success",
176
- "description": "表单验证成功时触发事件",
177
- "detail": {
178
- "type": "Record<string, unknown>"
179
- }
180
- },
181
- {
182
- "name": "validate.error",
183
- "description": "表单验证报错时触发事件",
184
- "detail": {
185
- "type": "(MessageBody & { name: string })[]"
186
- }
187
- }
188
- ],
189
- "slots": [
190
- {
191
- "name": null,
192
- "description": "表单内容"
193
- }
194
- ],
195
- "methods": [
196
- {
197
- "name": "validate",
198
- "params": [],
199
- "description": "表单校验方法",
200
- "returns": {
201
- "type": "boolean | Record<string, unknown>"
202
- }
203
- },
204
- {
205
- "name": "setInitValue",
206
- "params": [
207
- {
208
- "name": "values",
209
- "type": "Record<string, unknown>"
210
- },
211
- {
212
- "name": "options",
213
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
214
- }
215
- ],
216
- "description": "表单设置值方法",
217
- "returns": {}
218
- },
219
- {
220
- "name": "resetFields",
221
- "params": [
222
- {
223
- "name": "name",
224
- "type": "string"
225
- }
226
- ],
227
- "description": "表单重置值方法",
228
- "returns": {}
229
- },
230
- {
231
- "name": "getFieldsValue",
232
- "params": [
233
- {
234
- "name": "name",
235
- "type": "string"
236
- }
237
- ],
238
- "description": "获取表单值方法",
239
- "returns": {}
240
- },
241
- {
242
- "name": "validateField",
243
- "params": [
244
- {
245
- "name": "name",
246
- "type": "string"
247
- }
248
- ],
249
- "description": "校验表单字段方法",
250
- "returns": {}
251
- },
252
- {
253
- "name": "resetValidateState",
254
- "params": [],
255
- "description": "重置表单校验状态方法",
256
- "returns": {}
257
- }
258
- ],
259
- "parts": [],
260
- "description": "表单构件",
261
- "category": "form-input-basic"
262
- },
263
- {
264
- "name": "eo-radio",
265
- "alias": [
266
- "form.general-radio"
267
- ],
268
- "properties": [
269
- {
270
- "name": "name",
271
- "description": "下拉框字段名",
272
- "type": "string"
273
- },
274
- {
275
- "name": "label",
276
- "description": "单选框字段说明",
277
- "type": "string"
278
- },
279
- {
280
- "name": "options",
281
- "description": "单选框选项表",
282
- "required": true,
283
- "attribute": false,
284
- "type": "GeneralOption[]"
285
- },
286
- {
287
- "name": "value",
288
- "description": "单选框当前选中始值",
289
- "attribute": false,
290
- "type": "any"
291
- },
292
- {
293
- "name": "required",
294
- "description": "是否必填",
295
- "type": "boolean"
296
- },
297
- {
298
- "name": "message",
299
- "description": "校验文本信息",
300
- "attribute": false,
301
- "type": "Record<string, string>"
302
- },
303
- {
304
- "name": "disabled",
305
- "description": "是否禁用",
306
- "type": "boolean"
307
- },
308
- {
309
- "name": "type",
310
- "description": "单选框样式类型",
311
- "default": "\"default\"",
312
- "type": "RadioType"
313
- },
314
- {
315
- "name": "ui",
316
- "description": "UI样式",
317
- "default": "\"default\"",
318
- "type": "UIType"
319
- },
320
- {
321
- "name": "size",
322
- "description": "大小,只对按钮样式生效",
323
- "default": "\"medium\"",
324
- "type": "ComponentSize"
325
- },
326
- {
327
- "name": "customStyle",
328
- "description": "自定义radio的外层样式",
329
- "attribute": false,
330
- "type": "React.CSSProperties"
331
- },
332
- {
333
- "name": "useBrick",
334
- "description": "自定义radio的内容",
335
- "attribute": false,
336
- "type": "UseSingleBrickConf"
337
- },
338
- {
339
- "name": "themeVariant",
340
- "description": "主题变体",
341
- "type": "\"default\" | \"elevo\""
342
- }
343
- ],
344
- "events": [
345
- {
346
- "name": "change",
347
- "description": "值变化事件",
348
- "detail": {
349
- "type": "GeneralComplexOption | undefined"
350
- }
351
- },
352
- {
353
- "name": "options.change",
354
- "description": "选项列表变化事件",
355
- "detail": {
356
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
357
- }
358
- }
359
- ],
360
- "slots": [],
361
- "methods": [],
362
- "parts": [],
363
- "description": "通用单选构件",
364
- "category": "form-input-basic"
365
- },
366
114
  {
367
115
  "name": "eo-select",
368
116
  "alias": [
@@ -1354,6 +1102,155 @@
1354
1102
  "description": "时间选择器",
1355
1103
  "category": "form-input-basic"
1356
1104
  },
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
+ },
1357
1254
  {
1358
1255
  "name": "eo-date-picker",
1359
1256
  "properties": [
@@ -1536,6 +1433,109 @@
1536
1433
  "description": "时间区间选择器",
1537
1434
  "category": "form-input-basic"
1538
1435
  },
1436
+ {
1437
+ "name": "eo-radio",
1438
+ "alias": [
1439
+ "form.general-radio"
1440
+ ],
1441
+ "properties": [
1442
+ {
1443
+ "name": "name",
1444
+ "description": "下拉框字段名",
1445
+ "type": "string"
1446
+ },
1447
+ {
1448
+ "name": "label",
1449
+ "description": "单选框字段说明",
1450
+ "type": "string"
1451
+ },
1452
+ {
1453
+ "name": "options",
1454
+ "description": "单选框选项表",
1455
+ "required": true,
1456
+ "attribute": false,
1457
+ "type": "GeneralOption[]"
1458
+ },
1459
+ {
1460
+ "name": "value",
1461
+ "description": "单选框当前选中始值",
1462
+ "attribute": false,
1463
+ "type": "any"
1464
+ },
1465
+ {
1466
+ "name": "required",
1467
+ "description": "是否必填",
1468
+ "type": "boolean"
1469
+ },
1470
+ {
1471
+ "name": "message",
1472
+ "description": "校验文本信息",
1473
+ "attribute": false,
1474
+ "type": "Record<string, string>"
1475
+ },
1476
+ {
1477
+ "name": "disabled",
1478
+ "description": "是否禁用",
1479
+ "type": "boolean"
1480
+ },
1481
+ {
1482
+ "name": "type",
1483
+ "description": "单选框样式类型",
1484
+ "default": "\"default\"",
1485
+ "type": "RadioType"
1486
+ },
1487
+ {
1488
+ "name": "ui",
1489
+ "description": "UI样式",
1490
+ "default": "\"default\"",
1491
+ "type": "UIType"
1492
+ },
1493
+ {
1494
+ "name": "size",
1495
+ "description": "大小,只对按钮样式生效",
1496
+ "default": "\"medium\"",
1497
+ "type": "ComponentSize"
1498
+ },
1499
+ {
1500
+ "name": "customStyle",
1501
+ "description": "自定义radio的外层样式",
1502
+ "attribute": false,
1503
+ "type": "React.CSSProperties"
1504
+ },
1505
+ {
1506
+ "name": "useBrick",
1507
+ "description": "自定义radio的内容",
1508
+ "attribute": false,
1509
+ "type": "UseSingleBrickConf"
1510
+ },
1511
+ {
1512
+ "name": "themeVariant",
1513
+ "description": "主题变体",
1514
+ "type": "\"default\" | \"elevo\""
1515
+ }
1516
+ ],
1517
+ "events": [
1518
+ {
1519
+ "name": "change",
1520
+ "description": "值变化事件",
1521
+ "detail": {
1522
+ "type": "GeneralComplexOption | undefined"
1523
+ }
1524
+ },
1525
+ {
1526
+ "name": "options.change",
1527
+ "description": "选项列表变化事件",
1528
+ "detail": {
1529
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1530
+ }
1531
+ }
1532
+ ],
1533
+ "slots": [],
1534
+ "methods": [],
1535
+ "parts": [],
1536
+ "description": "通用单选构件",
1537
+ "category": "form-input-basic"
1538
+ },
1539
1539
  {
1540
1540
  "name": "eo-color-picker",
1541
1541
  "properties": [