@next-bricks/form 0.19.1 → 0.19.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 +15 -15
- package/dist/chunks/{1646.573250e0.js → 1646.fe93b9f8.js} +2 -2
- package/dist/chunks/{1646.573250e0.js.map → 1646.fe93b9f8.js.map} +1 -1
- package/dist/chunks/4717.0ab54d0a.js +2 -0
- package/dist/chunks/4717.0ab54d0a.js.map +1 -0
- package/dist/chunks/{6160.0dbe17a0.js → 6160.3e5edbd9.js} +2 -2
- package/dist/chunks/{6160.0dbe17a0.js.map → 6160.3e5edbd9.js.map} +1 -1
- package/dist/chunks/{7746.bcdaec2a.js → 7746.03d4fe7e.js} +2 -2
- package/dist/chunks/{7746.bcdaec2a.js.map → 7746.03d4fe7e.js.map} +1 -1
- package/dist/chunks/9549.760cb1d0.js +2 -0
- package/dist/chunks/9549.760cb1d0.js.map +1 -0
- package/dist/chunks/{eo-auto-complete.0af9a85e.js → eo-auto-complete.187d1ad3.js} +3 -3
- package/dist/chunks/{eo-auto-complete.0af9a85e.js.map → eo-auto-complete.187d1ad3.js.map} +1 -1
- package/dist/chunks/{eo-checkbox.f86cfe57.js → eo-checkbox.f621cb90.js} +2 -2
- package/dist/chunks/{eo-checkbox.f86cfe57.js.map → eo-checkbox.f621cb90.js.map} +1 -1
- package/dist/chunks/{eo-date-picker.de9ecf6b.js → eo-date-picker.02cf89ad.js} +2 -2
- package/dist/chunks/{eo-date-picker.de9ecf6b.js.map → eo-date-picker.02cf89ad.js.map} +1 -1
- package/dist/chunks/{eo-dynamic-form-item.b3e469be.js → eo-dynamic-form-item.5b7b57a3.js} +2 -2
- package/dist/chunks/{eo-dynamic-form-item.b3e469be.js.map → eo-dynamic-form-item.5b7b57a3.js.map} +1 -1
- package/dist/chunks/{eo-form-item.65268aa3.js → eo-form-item.ad9d5047.js} +3 -3
- package/dist/chunks/{eo-form-item.65268aa3.js.map → eo-form-item.ad9d5047.js.map} +1 -1
- package/dist/chunks/{eo-form.c4dc6923.js → eo-form.7dad74a8.js} +2 -2
- package/dist/chunks/{eo-form.c4dc6923.js.map → eo-form.7dad74a8.js.map} +1 -1
- package/dist/chunks/{eo-icon-select.bdde10e2.js → eo-icon-select.19472f72.js} +3 -3
- package/dist/chunks/{eo-icon-select.bdde10e2.js.map → eo-icon-select.19472f72.js.map} +1 -1
- package/dist/chunks/{eo-input.6c4c0bfe.js → eo-input.eb806140.js} +3 -3
- package/dist/chunks/{eo-input.6c4c0bfe.js.map → eo-input.eb806140.js.map} +1 -1
- package/dist/chunks/{eo-radio.04fdfa2e.js → eo-radio.533b5409.js} +3 -3
- package/dist/chunks/{eo-radio.04fdfa2e.js.map → eo-radio.533b5409.js.map} +1 -1
- package/dist/chunks/{eo-search.12830210.js → eo-search.f0211ce1.js} +2 -2
- package/dist/chunks/{eo-search.12830210.js.map → eo-search.f0211ce1.js.map} +1 -1
- package/dist/chunks/{eo-select.72aee37e.js → eo-select.98fd26e3.js} +3 -3
- package/dist/chunks/{eo-select.72aee37e.js.map → eo-select.98fd26e3.js.map} +1 -1
- package/dist/chunks/{eo-submit-buttons.9bc0dfa7.js → eo-submit-buttons.8a5cfbe1.js} +2 -2
- package/dist/chunks/{eo-submit-buttons.9bc0dfa7.js.map → eo-submit-buttons.8a5cfbe1.js.map} +1 -1
- package/dist/chunks/{eo-switch.226cc0c1.js → eo-switch.0382aa2c.js} +3 -3
- package/dist/chunks/{eo-switch.226cc0c1.js.map → eo-switch.0382aa2c.js.map} +1 -1
- package/dist/chunks/{eo-textarea.ab4c4c2e.js → eo-textarea.4f09d40c.js} +3 -3
- package/dist/chunks/{eo-textarea.ab4c4c2e.js.map → eo-textarea.4f09d40c.js.map} +1 -1
- package/dist/chunks/{eo-time-picker.fb3719f5.js → eo-time-picker.51da9082.js} +2 -2
- package/dist/chunks/{eo-time-picker.fb3719f5.js.map → eo-time-picker.51da9082.js.map} +1 -1
- package/dist/chunks/{eo-upload-file.e7f12837.js → eo-upload-file.2793b2de.js} +3 -3
- package/dist/chunks/{eo-upload-file.e7f12837.js.map → eo-upload-file.2793b2de.js.map} +1 -1
- package/dist/chunks/{eo-upload-image.e5823023.js → eo-upload-image.0c001c76.js} +3 -3
- package/dist/chunks/{eo-upload-image.e5823023.js.map → eo-upload-image.0c001c76.js.map} +1 -1
- package/dist/chunks/{main.214cfc34.js → main.5a10ee51.js} +2 -2
- package/dist/chunks/{main.214cfc34.js.map → main.5a10ee51.js.map} +1 -1
- package/dist/examples.json +6 -6
- package/dist/index.28e43061.js +2 -0
- package/dist/{index.4fe451c9.js.map → index.28e43061.js.map} +1 -1
- package/dist/manifest.json +337 -337
- package/dist/types.json +642 -642
- package/package.json +2 -2
- package/dist/chunks/4717.4f4beb01.js +0 -2
- package/dist/chunks/4717.4f4beb01.js.map +0 -1
- package/dist/chunks/9549.de31aced.js +0 -2
- package/dist/chunks/9549.de31aced.js.map +0 -1
- package/dist/index.4fe451c9.js +0 -2
- /package/dist/chunks/{eo-auto-complete.0af9a85e.js.LICENSE.txt → eo-auto-complete.187d1ad3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.65268aa3.js.LICENSE.txt → eo-form-item.ad9d5047.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-icon-select.bdde10e2.js.LICENSE.txt → eo-icon-select.19472f72.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-input.6c4c0bfe.js.LICENSE.txt → eo-input.eb806140.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.04fdfa2e.js.LICENSE.txt → eo-radio.533b5409.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.72aee37e.js.LICENSE.txt → eo-select.98fd26e3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-switch.226cc0c1.js.LICENSE.txt → eo-switch.0382aa2c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-textarea.ab4c4c2e.js.LICENSE.txt → eo-textarea.4f09d40c.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.e7f12837.js.LICENSE.txt → eo-upload-file.2793b2de.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.e5823023.js.LICENSE.txt → eo-upload-image.0c001c76.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -187,313 +187,6 @@
|
|
|
187
187
|
],
|
|
188
188
|
"description": "通用输入框构件"
|
|
189
189
|
},
|
|
190
|
-
{
|
|
191
|
-
"name": "eo-textarea",
|
|
192
|
-
"alias": [
|
|
193
|
-
"form.general-textarea"
|
|
194
|
-
],
|
|
195
|
-
"properties": [
|
|
196
|
-
{
|
|
197
|
-
"name": "name",
|
|
198
|
-
"description": "字段名称",
|
|
199
|
-
"type": "string"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
"name": "label",
|
|
203
|
-
"description": "标签文字",
|
|
204
|
-
"type": "string"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"name": "value",
|
|
208
|
-
"description": "值",
|
|
209
|
-
"type": "string"
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"name": "placeholder",
|
|
213
|
-
"description": "占位说明",
|
|
214
|
-
"type": "string"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"name": "disabled",
|
|
218
|
-
"description": "是否禁用",
|
|
219
|
-
"type": "boolean"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"name": "minLength",
|
|
223
|
-
"description": "最小长度",
|
|
224
|
-
"type": "number"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"name": "maxLength",
|
|
228
|
-
"description": "最大长度",
|
|
229
|
-
"type": "number"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"name": "autoSize",
|
|
233
|
-
"description": "大小自适应",
|
|
234
|
-
"attribute": false,
|
|
235
|
-
"type": "AutoSize"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "required",
|
|
239
|
-
"description": "是否必填",
|
|
240
|
-
"type": "boolean"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"name": "max",
|
|
244
|
-
"description": "表单校验最大长度",
|
|
245
|
-
"type": "number"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"name": "min",
|
|
249
|
-
"description": "表单校验最小长度",
|
|
250
|
-
"type": "number"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"name": "message",
|
|
254
|
-
"description": "校验信息",
|
|
255
|
-
"attribute": false,
|
|
256
|
-
"type": "Record<string, string>"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"name": "textareaStyle",
|
|
260
|
-
"description": "自定义样式",
|
|
261
|
-
"attribute": false,
|
|
262
|
-
"type": "React.CSSProperties"
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
"events": [
|
|
266
|
-
{
|
|
267
|
-
"name": "change",
|
|
268
|
-
"description": "",
|
|
269
|
-
"detail": {
|
|
270
|
-
"description": null,
|
|
271
|
-
"type": "string"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
],
|
|
275
|
-
"slots": [],
|
|
276
|
-
"methods": [],
|
|
277
|
-
"parts": [],
|
|
278
|
-
"description": "通用多行文本输入框构件"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"name": "eo-form",
|
|
282
|
-
"alias": [
|
|
283
|
-
"form.general-form"
|
|
284
|
-
],
|
|
285
|
-
"properties": [
|
|
286
|
-
{
|
|
287
|
-
"name": "layout",
|
|
288
|
-
"description": "布局方式",
|
|
289
|
-
"type": "Layout"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"name": "size",
|
|
293
|
-
"description": "表单组件尺寸",
|
|
294
|
-
"type": "ComponentSize"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"name": "formStyle",
|
|
298
|
-
"attribute": false,
|
|
299
|
-
"type": "React.CSSProperties"
|
|
300
|
-
}
|
|
301
|
-
],
|
|
302
|
-
"events": [
|
|
303
|
-
{
|
|
304
|
-
"name": "values.change",
|
|
305
|
-
"description": "表单值变更事件",
|
|
306
|
-
"detail": {
|
|
307
|
-
"description": null,
|
|
308
|
-
"type": "Record<string, unknown>"
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
"name": "validate.success",
|
|
313
|
-
"description": "表单验证成功时触发事件",
|
|
314
|
-
"detail": {
|
|
315
|
-
"type": "Record<string, unknown>"
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"name": "validate.error",
|
|
320
|
-
"description": "表单验证报错时触发事件",
|
|
321
|
-
"detail": {
|
|
322
|
-
"type": "MessageBody[]"
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
],
|
|
326
|
-
"slots": [
|
|
327
|
-
{
|
|
328
|
-
"name": null,
|
|
329
|
-
"description": "表单内容"
|
|
330
|
-
}
|
|
331
|
-
],
|
|
332
|
-
"methods": [
|
|
333
|
-
{
|
|
334
|
-
"name": "validate",
|
|
335
|
-
"params": [],
|
|
336
|
-
"description": "表单校验方法",
|
|
337
|
-
"returns": {
|
|
338
|
-
"type": "boolean | Record<string, unknown>"
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"name": "setInitValue",
|
|
343
|
-
"params": [
|
|
344
|
-
{
|
|
345
|
-
"name": "values",
|
|
346
|
-
"type": "Record<string, unknown>"
|
|
347
|
-
}
|
|
348
|
-
],
|
|
349
|
-
"description": "表单设置值方法",
|
|
350
|
-
"returns": {}
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
"name": "resetFields",
|
|
354
|
-
"params": [
|
|
355
|
-
{
|
|
356
|
-
"name": "name",
|
|
357
|
-
"type": "string"
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
"description": "表单重置值方法",
|
|
361
|
-
"returns": {}
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"name": "getFieldsValue",
|
|
365
|
-
"params": [
|
|
366
|
-
{
|
|
367
|
-
"name": "name",
|
|
368
|
-
"type": "string"
|
|
369
|
-
}
|
|
370
|
-
],
|
|
371
|
-
"description": "获取表单值方法",
|
|
372
|
-
"returns": {}
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"name": "validateField",
|
|
376
|
-
"params": [
|
|
377
|
-
{
|
|
378
|
-
"name": "name",
|
|
379
|
-
"type": "string"
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"description": "校验表单字段方法",
|
|
383
|
-
"returns": {}
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
"name": "resetValidateState",
|
|
387
|
-
"params": [],
|
|
388
|
-
"description": "重置表单校验状态方法",
|
|
389
|
-
"returns": {}
|
|
390
|
-
}
|
|
391
|
-
],
|
|
392
|
-
"parts": [],
|
|
393
|
-
"description": "表单构件"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"name": "eo-form-item",
|
|
397
|
-
"alias": [
|
|
398
|
-
"form.general-form-item"
|
|
399
|
-
],
|
|
400
|
-
"properties": [
|
|
401
|
-
{
|
|
402
|
-
"name": "formElement",
|
|
403
|
-
"attribute": false,
|
|
404
|
-
"type": "Form"
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"name": "curElement",
|
|
408
|
-
"attribute": false,
|
|
409
|
-
"type": "HTMLElement"
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"name": "name",
|
|
413
|
-
"description": "字段名称",
|
|
414
|
-
"type": "string"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
"name": "label",
|
|
418
|
-
"type": "string"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"name": "pattern",
|
|
422
|
-
"type": "string"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
"name": "message",
|
|
426
|
-
"attribute": false,
|
|
427
|
-
"type": "Record<string, string>"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"name": "max",
|
|
431
|
-
"type": "number"
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"name": "min",
|
|
435
|
-
"type": "number"
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"name": "required",
|
|
439
|
-
"description": "表单项是否必填",
|
|
440
|
-
"type": "boolean"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"name": "value",
|
|
444
|
-
"description": "初始值",
|
|
445
|
-
"type": "string"
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"name": "labelCol",
|
|
449
|
-
"description": "表单项 label 标签布局",
|
|
450
|
-
"type": "string"
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"name": "wrapperCol",
|
|
454
|
-
"description": "表单项控件布局",
|
|
455
|
-
"type": "string"
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"name": "valuePropsName",
|
|
459
|
-
"type": "string"
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
"name": "layout",
|
|
463
|
-
"type": "Layout"
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
"name": "size",
|
|
467
|
-
"type": "ComponentSize"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"name": "trim",
|
|
471
|
-
"description": "是否自动去除前后的空白字符",
|
|
472
|
-
"default": "true"
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
"name": "trigger",
|
|
476
|
-
"description": "事件触发方法名",
|
|
477
|
-
"type": "string"
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
"name": "validator",
|
|
481
|
-
"description": "表单项校验方法",
|
|
482
|
-
"attribute": false,
|
|
483
|
-
"type": "((value: any) => MessageBody)"
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
"name": "needValidate",
|
|
487
|
-
"description": "值变化时是否主动出发校验",
|
|
488
|
-
"type": "boolean"
|
|
489
|
-
}
|
|
490
|
-
],
|
|
491
|
-
"events": [],
|
|
492
|
-
"slots": [],
|
|
493
|
-
"methods": [],
|
|
494
|
-
"parts": [],
|
|
495
|
-
"description": "通用输入框构件"
|
|
496
|
-
},
|
|
497
190
|
{
|
|
498
191
|
"name": "eo-radio",
|
|
499
192
|
"alias": [
|
|
@@ -1374,46 +1067,136 @@
|
|
|
1374
1067
|
},
|
|
1375
1068
|
{
|
|
1376
1069
|
"name": "message",
|
|
1377
|
-
"description": "校验文本信息",
|
|
1070
|
+
"description": "校验文本信息",
|
|
1071
|
+
"attribute": false,
|
|
1072
|
+
"type": "Record<string, string>"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "disabled",
|
|
1076
|
+
"description": "是否禁用",
|
|
1077
|
+
"type": "boolean"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"name": "required",
|
|
1081
|
+
"description": "是否必填",
|
|
1082
|
+
"type": "boolean"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"name": "configProps",
|
|
1086
|
+
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1087
|
+
"attribute": false,
|
|
1088
|
+
"type": "Partial<TimePickerProps>"
|
|
1089
|
+
}
|
|
1090
|
+
],
|
|
1091
|
+
"events": [
|
|
1092
|
+
{
|
|
1093
|
+
"name": "change",
|
|
1094
|
+
"description": "时间变化时触发",
|
|
1095
|
+
"detail": {
|
|
1096
|
+
"type": "string"
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "open",
|
|
1101
|
+
"description": "面板打开时触发, 传出当前时间值",
|
|
1102
|
+
"detail": {
|
|
1103
|
+
"type": "string"
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "close",
|
|
1108
|
+
"description": "面板关闭时触发,传出当前时间值",
|
|
1109
|
+
"detail": {
|
|
1110
|
+
"type": "string"
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
],
|
|
1114
|
+
"slots": [],
|
|
1115
|
+
"methods": [],
|
|
1116
|
+
"parts": [],
|
|
1117
|
+
"description": "构件 `eo-time-picker`"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"name": "eo-textarea",
|
|
1121
|
+
"alias": [
|
|
1122
|
+
"form.general-textarea"
|
|
1123
|
+
],
|
|
1124
|
+
"properties": [
|
|
1125
|
+
{
|
|
1126
|
+
"name": "name",
|
|
1127
|
+
"description": "字段名称",
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "label",
|
|
1132
|
+
"description": "标签文字",
|
|
1133
|
+
"type": "string"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "value",
|
|
1137
|
+
"description": "值",
|
|
1138
|
+
"type": "string"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "placeholder",
|
|
1142
|
+
"description": "占位说明",
|
|
1143
|
+
"type": "string"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"name": "disabled",
|
|
1147
|
+
"description": "是否禁用",
|
|
1148
|
+
"type": "boolean"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"name": "minLength",
|
|
1152
|
+
"description": "最小长度",
|
|
1153
|
+
"type": "number"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"name": "maxLength",
|
|
1157
|
+
"description": "最大长度",
|
|
1158
|
+
"type": "number"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"name": "autoSize",
|
|
1162
|
+
"description": "大小自适应",
|
|
1163
|
+
"attribute": false,
|
|
1164
|
+
"type": "AutoSize"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"name": "required",
|
|
1168
|
+
"description": "是否必填",
|
|
1169
|
+
"type": "boolean"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"name": "max",
|
|
1173
|
+
"description": "表单校验最大长度",
|
|
1174
|
+
"type": "number"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"name": "min",
|
|
1178
|
+
"description": "表单校验最小长度",
|
|
1179
|
+
"type": "number"
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "message",
|
|
1183
|
+
"description": "校验信息",
|
|
1378
1184
|
"attribute": false,
|
|
1379
1185
|
"type": "Record<string, string>"
|
|
1380
1186
|
},
|
|
1381
1187
|
{
|
|
1382
|
-
"name": "
|
|
1383
|
-
"description": "
|
|
1384
|
-
"type": "boolean"
|
|
1385
|
-
},
|
|
1386
|
-
{
|
|
1387
|
-
"name": "required",
|
|
1388
|
-
"description": "是否必填",
|
|
1389
|
-
"type": "boolean"
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
"name": "configProps",
|
|
1393
|
-
"description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
|
|
1188
|
+
"name": "textareaStyle",
|
|
1189
|
+
"description": "自定义样式",
|
|
1394
1190
|
"attribute": false,
|
|
1395
|
-
"type": "
|
|
1191
|
+
"type": "React.CSSProperties"
|
|
1396
1192
|
}
|
|
1397
1193
|
],
|
|
1398
1194
|
"events": [
|
|
1399
1195
|
{
|
|
1400
1196
|
"name": "change",
|
|
1401
|
-
"description": "
|
|
1402
|
-
"detail": {
|
|
1403
|
-
"type": "string"
|
|
1404
|
-
}
|
|
1405
|
-
},
|
|
1406
|
-
{
|
|
1407
|
-
"name": "open",
|
|
1408
|
-
"description": "面板打开时触发, 传出当前时间值",
|
|
1409
|
-
"detail": {
|
|
1410
|
-
"type": "string"
|
|
1411
|
-
}
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
"name": "close",
|
|
1415
|
-
"description": "面板关闭时触发,传出当前时间值",
|
|
1197
|
+
"description": "",
|
|
1416
1198
|
"detail": {
|
|
1199
|
+
"description": null,
|
|
1417
1200
|
"type": "string"
|
|
1418
1201
|
}
|
|
1419
1202
|
}
|
|
@@ -1421,7 +1204,7 @@
|
|
|
1421
1204
|
"slots": [],
|
|
1422
1205
|
"methods": [],
|
|
1423
1206
|
"parts": [],
|
|
1424
|
-
"description": "
|
|
1207
|
+
"description": "通用多行文本输入框构件"
|
|
1425
1208
|
},
|
|
1426
1209
|
{
|
|
1427
1210
|
"name": "eo-date-picker",
|
|
@@ -1521,6 +1304,223 @@
|
|
|
1521
1304
|
"methods": [],
|
|
1522
1305
|
"parts": [],
|
|
1523
1306
|
"description": "构件 `eo-date-picker`"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"name": "eo-form-item",
|
|
1310
|
+
"alias": [
|
|
1311
|
+
"form.general-form-item"
|
|
1312
|
+
],
|
|
1313
|
+
"properties": [
|
|
1314
|
+
{
|
|
1315
|
+
"name": "formElement",
|
|
1316
|
+
"attribute": false,
|
|
1317
|
+
"type": "Form"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"name": "curElement",
|
|
1321
|
+
"attribute": false,
|
|
1322
|
+
"type": "HTMLElement"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"name": "name",
|
|
1326
|
+
"description": "字段名称",
|
|
1327
|
+
"type": "string"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"name": "label",
|
|
1331
|
+
"type": "string"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"name": "pattern",
|
|
1335
|
+
"type": "string"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"name": "message",
|
|
1339
|
+
"attribute": false,
|
|
1340
|
+
"type": "Record<string, string>"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"name": "max",
|
|
1344
|
+
"type": "number"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"name": "min",
|
|
1348
|
+
"type": "number"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"name": "required",
|
|
1352
|
+
"description": "表单项是否必填",
|
|
1353
|
+
"type": "boolean"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"name": "value",
|
|
1357
|
+
"description": "初始值",
|
|
1358
|
+
"type": "string"
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"name": "labelCol",
|
|
1362
|
+
"description": "表单项 label 标签布局",
|
|
1363
|
+
"type": "string"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"name": "wrapperCol",
|
|
1367
|
+
"description": "表单项控件布局",
|
|
1368
|
+
"type": "string"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "valuePropsName",
|
|
1372
|
+
"type": "string"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "layout",
|
|
1376
|
+
"type": "Layout"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "size",
|
|
1380
|
+
"type": "ComponentSize"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"name": "trim",
|
|
1384
|
+
"description": "是否自动去除前后的空白字符",
|
|
1385
|
+
"default": "true"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"name": "trigger",
|
|
1389
|
+
"description": "事件触发方法名",
|
|
1390
|
+
"type": "string"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"name": "validator",
|
|
1394
|
+
"description": "表单项校验方法",
|
|
1395
|
+
"attribute": false,
|
|
1396
|
+
"type": "((value: any) => MessageBody)"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"name": "needValidate",
|
|
1400
|
+
"description": "值变化时是否主动出发校验",
|
|
1401
|
+
"type": "boolean"
|
|
1402
|
+
}
|
|
1403
|
+
],
|
|
1404
|
+
"events": [],
|
|
1405
|
+
"slots": [],
|
|
1406
|
+
"methods": [],
|
|
1407
|
+
"parts": [],
|
|
1408
|
+
"description": "通用输入框构件"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"name": "eo-form",
|
|
1412
|
+
"alias": [
|
|
1413
|
+
"form.general-form"
|
|
1414
|
+
],
|
|
1415
|
+
"properties": [
|
|
1416
|
+
{
|
|
1417
|
+
"name": "layout",
|
|
1418
|
+
"description": "布局方式",
|
|
1419
|
+
"type": "Layout"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"name": "size",
|
|
1423
|
+
"description": "表单组件尺寸",
|
|
1424
|
+
"type": "ComponentSize"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"name": "formStyle",
|
|
1428
|
+
"attribute": false,
|
|
1429
|
+
"type": "React.CSSProperties"
|
|
1430
|
+
}
|
|
1431
|
+
],
|
|
1432
|
+
"events": [
|
|
1433
|
+
{
|
|
1434
|
+
"name": "values.change",
|
|
1435
|
+
"description": "表单值变更事件",
|
|
1436
|
+
"detail": {
|
|
1437
|
+
"description": null,
|
|
1438
|
+
"type": "Record<string, unknown>"
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
"name": "validate.success",
|
|
1443
|
+
"description": "表单验证成功时触发事件",
|
|
1444
|
+
"detail": {
|
|
1445
|
+
"type": "Record<string, unknown>"
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "validate.error",
|
|
1450
|
+
"description": "表单验证报错时触发事件",
|
|
1451
|
+
"detail": {
|
|
1452
|
+
"type": "MessageBody[]"
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
],
|
|
1456
|
+
"slots": [
|
|
1457
|
+
{
|
|
1458
|
+
"name": null,
|
|
1459
|
+
"description": "表单内容"
|
|
1460
|
+
}
|
|
1461
|
+
],
|
|
1462
|
+
"methods": [
|
|
1463
|
+
{
|
|
1464
|
+
"name": "validate",
|
|
1465
|
+
"params": [],
|
|
1466
|
+
"description": "表单校验方法",
|
|
1467
|
+
"returns": {
|
|
1468
|
+
"type": "boolean | Record<string, unknown>"
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "setInitValue",
|
|
1473
|
+
"params": [
|
|
1474
|
+
{
|
|
1475
|
+
"name": "values",
|
|
1476
|
+
"type": "Record<string, unknown>"
|
|
1477
|
+
}
|
|
1478
|
+
],
|
|
1479
|
+
"description": "表单设置值方法",
|
|
1480
|
+
"returns": {}
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"name": "resetFields",
|
|
1484
|
+
"params": [
|
|
1485
|
+
{
|
|
1486
|
+
"name": "name",
|
|
1487
|
+
"type": "string"
|
|
1488
|
+
}
|
|
1489
|
+
],
|
|
1490
|
+
"description": "表单重置值方法",
|
|
1491
|
+
"returns": {}
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"name": "getFieldsValue",
|
|
1495
|
+
"params": [
|
|
1496
|
+
{
|
|
1497
|
+
"name": "name",
|
|
1498
|
+
"type": "string"
|
|
1499
|
+
}
|
|
1500
|
+
],
|
|
1501
|
+
"description": "获取表单值方法",
|
|
1502
|
+
"returns": {}
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "validateField",
|
|
1506
|
+
"params": [
|
|
1507
|
+
{
|
|
1508
|
+
"name": "name",
|
|
1509
|
+
"type": "string"
|
|
1510
|
+
}
|
|
1511
|
+
],
|
|
1512
|
+
"description": "校验表单字段方法",
|
|
1513
|
+
"returns": {}
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"name": "resetValidateState",
|
|
1517
|
+
"params": [],
|
|
1518
|
+
"description": "重置表单校验状态方法",
|
|
1519
|
+
"returns": {}
|
|
1520
|
+
}
|
|
1521
|
+
],
|
|
1522
|
+
"parts": [],
|
|
1523
|
+
"description": "表单构件"
|
|
1524
1524
|
}
|
|
1525
1525
|
],
|
|
1526
1526
|
"providers": []
|