@next-bricks/form 1.10.13 → 1.10.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.
@@ -188,331 +188,6 @@
188
188
  "description": "通用输入框构件",
189
189
  "category": "form-input-basic"
190
190
  },
191
- {
192
- "name": "eo-textarea",
193
- "alias": [
194
- "form.general-textarea"
195
- ],
196
- "properties": [
197
- {
198
- "name": "name",
199
- "description": "字段名称",
200
- "type": "string"
201
- },
202
- {
203
- "name": "label",
204
- "description": "标签文字",
205
- "type": "string"
206
- },
207
- {
208
- "name": "value",
209
- "description": "值",
210
- "type": "string"
211
- },
212
- {
213
- "name": "placeholder",
214
- "description": "占位说明",
215
- "type": "string"
216
- },
217
- {
218
- "name": "disabled",
219
- "description": "是否禁用",
220
- "type": "boolean"
221
- },
222
- {
223
- "name": "minLength",
224
- "description": "最小长度",
225
- "type": "number"
226
- },
227
- {
228
- "name": "maxLength",
229
- "description": "最大长度",
230
- "type": "number"
231
- },
232
- {
233
- "name": "autoSize",
234
- "description": "大小自适应",
235
- "attribute": false,
236
- "type": "AutoSize"
237
- },
238
- {
239
- "name": "required",
240
- "description": "是否必填",
241
- "type": "boolean"
242
- },
243
- {
244
- "name": "max",
245
- "description": "表单校验最大长度",
246
- "type": "number"
247
- },
248
- {
249
- "name": "min",
250
- "description": "表单校验最小长度",
251
- "type": "number"
252
- },
253
- {
254
- "name": "message",
255
- "description": "校验信息",
256
- "attribute": false,
257
- "type": "Record<string, string>"
258
- },
259
- {
260
- "name": "textareaStyle",
261
- "description": "自定义样式",
262
- "attribute": false,
263
- "type": "React.CSSProperties"
264
- }
265
- ],
266
- "events": [
267
- {
268
- "name": "change",
269
- "description": "",
270
- "detail": {
271
- "description": null,
272
- "type": "string"
273
- }
274
- }
275
- ],
276
- "slots": [],
277
- "methods": [],
278
- "parts": [],
279
- "description": "通用多行文本输入框构件",
280
- "category": "form-input-basic"
281
- },
282
- {
283
- "name": "eo-form",
284
- "alias": [
285
- "form.general-form"
286
- ],
287
- "properties": [
288
- {
289
- "name": "layout",
290
- "description": "布局方式(默认 vertical 布局)",
291
- "default": "vertical",
292
- "type": "Layout"
293
- },
294
- {
295
- "name": "size",
296
- "description": "表单组件尺寸",
297
- "type": "ComponentSize"
298
- },
299
- {
300
- "name": "labelCol",
301
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
302
- "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 }",
303
- "attribute": false,
304
- "type": "ColProps"
305
- },
306
- {
307
- "name": "wrapperCol",
308
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
309
- "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 }",
310
- "attribute": false,
311
- "type": "ColProps"
312
- },
313
- {
314
- "name": "formStyle",
315
- "attribute": false,
316
- "type": "React.CSSProperties"
317
- }
318
- ],
319
- "events": [
320
- {
321
- "name": "values.change",
322
- "description": "表单值变更事件",
323
- "detail": {
324
- "description": null,
325
- "type": "Record<string, unknown>"
326
- }
327
- },
328
- {
329
- "name": "validate.success",
330
- "description": "表单验证成功时触发事件",
331
- "detail": {
332
- "type": "Record<string, unknown>"
333
- }
334
- },
335
- {
336
- "name": "validate.error",
337
- "description": "表单验证报错时触发事件",
338
- "detail": {
339
- "type": "MessageBody[]"
340
- }
341
- }
342
- ],
343
- "slots": [
344
- {
345
- "name": null,
346
- "description": "表单内容"
347
- }
348
- ],
349
- "methods": [
350
- {
351
- "name": "validate",
352
- "params": [],
353
- "description": "表单校验方法",
354
- "returns": {
355
- "type": "boolean | Record<string, unknown>"
356
- }
357
- },
358
- {
359
- "name": "setInitValue",
360
- "params": [
361
- {
362
- "name": "values",
363
- "type": "Record<string, unknown>"
364
- },
365
- {
366
- "name": "options",
367
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
368
- }
369
- ],
370
- "description": "表单设置值方法",
371
- "returns": {}
372
- },
373
- {
374
- "name": "resetFields",
375
- "params": [
376
- {
377
- "name": "name",
378
- "type": "string"
379
- }
380
- ],
381
- "description": "表单重置值方法",
382
- "returns": {}
383
- },
384
- {
385
- "name": "getFieldsValue",
386
- "params": [
387
- {
388
- "name": "name",
389
- "type": "string"
390
- }
391
- ],
392
- "description": "获取表单值方法",
393
- "returns": {}
394
- },
395
- {
396
- "name": "validateField",
397
- "params": [
398
- {
399
- "name": "name",
400
- "type": "string"
401
- }
402
- ],
403
- "description": "校验表单字段方法",
404
- "returns": {}
405
- },
406
- {
407
- "name": "resetValidateState",
408
- "params": [],
409
- "description": "重置表单校验状态方法",
410
- "returns": {}
411
- }
412
- ],
413
- "parts": [],
414
- "description": "表单构件",
415
- "category": "form-input-basic"
416
- },
417
- {
418
- "name": "eo-form-item",
419
- "alias": [
420
- "form.general-form-item"
421
- ],
422
- "properties": [
423
- {
424
- "name": "formElement",
425
- "attribute": false,
426
- "type": "Form"
427
- },
428
- {
429
- "name": "curElement",
430
- "attribute": false,
431
- "type": "HTMLElement"
432
- },
433
- {
434
- "name": "name",
435
- "description": "字段名称",
436
- "type": "string"
437
- },
438
- {
439
- "name": "label",
440
- "type": "string"
441
- },
442
- {
443
- "name": "pattern",
444
- "type": "string"
445
- },
446
- {
447
- "name": "message",
448
- "attribute": false,
449
- "type": "Record<string, string>"
450
- },
451
- {
452
- "name": "max",
453
- "type": "number"
454
- },
455
- {
456
- "name": "min",
457
- "type": "number"
458
- },
459
- {
460
- "name": "required",
461
- "description": "表单项是否为必填",
462
- "type": "boolean"
463
- },
464
- {
465
- "name": "value",
466
- "description": "初始值",
467
- "type": "string"
468
- },
469
- {
470
- "name": "valuePropsName",
471
- "type": "string"
472
- },
473
- {
474
- "name": "layout",
475
- "type": "Layout"
476
- },
477
- {
478
- "name": "size",
479
- "type": "ComponentSize"
480
- },
481
- {
482
- "name": "trim",
483
- "description": "是否自动去除前后的空白字符",
484
- "default": "true"
485
- },
486
- {
487
- "name": "trigger",
488
- "description": "事件触发方法名",
489
- "type": "string"
490
- },
491
- {
492
- "name": "validator",
493
- "description": "表单项校验方法",
494
- "attribute": false,
495
- "type": "((value: any) => MessageBody)"
496
- },
497
- {
498
- "name": "needValidate",
499
- "description": "值变化时是否主动出发校验",
500
- "type": "boolean"
501
- }
502
- ],
503
- "events": [],
504
- "slots": [
505
- {
506
- "name": null,
507
- "description": "表单项内容"
508
- }
509
- ],
510
- "methods": [],
511
- "parts": [],
512
- "description": "通用输入框构件",
513
- "category": "form-input-basic",
514
- "insider": true
515
- },
516
191
  {
517
192
  "name": "eo-radio",
518
193
  "alias": [
@@ -711,46 +386,181 @@
711
386
  "type": "number"
712
387
  },
713
388
  {
714
- "name": "inputStyle",
715
- "description": "输入框样式",
716
- "attribute": false,
717
- "type": "React.CSSProperties"
718
- }
719
- ],
720
- "events": [
721
- {
722
- "name": "change",
723
- "description": "下拉选择事件",
724
- "detail": {
725
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
726
- }
389
+ "name": "inputStyle",
390
+ "description": "输入框样式",
391
+ "attribute": false,
392
+ "type": "React.CSSProperties"
393
+ }
394
+ ],
395
+ "events": [
396
+ {
397
+ "name": "change",
398
+ "description": "下拉选择事件",
399
+ "detail": {
400
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
401
+ }
402
+ },
403
+ {
404
+ "name": "search",
405
+ "description": "下拉框search事件",
406
+ "detail": {
407
+ "type": "{\n value: string;\n }"
408
+ }
409
+ },
410
+ {
411
+ "name": "focus",
412
+ "description": "下拉框focus事件",
413
+ "detail": {
414
+ "type": "void"
415
+ }
416
+ },
417
+ {
418
+ "name": "options.change",
419
+ "description": "选项列表变化事件",
420
+ "detail": {
421
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
422
+ }
423
+ }
424
+ ],
425
+ "slots": [],
426
+ "methods": [],
427
+ "parts": [],
428
+ "description": "通用下拉选择构件",
429
+ "category": "form-input-basic"
430
+ },
431
+ {
432
+ "name": "eo-form",
433
+ "alias": [
434
+ "form.general-form"
435
+ ],
436
+ "properties": [
437
+ {
438
+ "name": "layout",
439
+ "description": "布局方式(默认 vertical 布局)",
440
+ "default": "vertical",
441
+ "type": "Layout"
442
+ },
443
+ {
444
+ "name": "size",
445
+ "description": "表单组件尺寸",
446
+ "type": "ComponentSize"
447
+ },
448
+ {
449
+ "name": "labelCol",
450
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
451
+ "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 }",
452
+ "attribute": false,
453
+ "type": "ColProps"
454
+ },
455
+ {
456
+ "name": "wrapperCol",
457
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
458
+ "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 }",
459
+ "attribute": false,
460
+ "type": "ColProps"
461
+ },
462
+ {
463
+ "name": "formStyle",
464
+ "attribute": false,
465
+ "type": "React.CSSProperties"
466
+ }
467
+ ],
468
+ "events": [
469
+ {
470
+ "name": "values.change",
471
+ "description": "表单值变更事件",
472
+ "detail": {
473
+ "description": null,
474
+ "type": "Record<string, unknown>"
475
+ }
476
+ },
477
+ {
478
+ "name": "validate.success",
479
+ "description": "表单验证成功时触发事件",
480
+ "detail": {
481
+ "type": "Record<string, unknown>"
482
+ }
483
+ },
484
+ {
485
+ "name": "validate.error",
486
+ "description": "表单验证报错时触发事件",
487
+ "detail": {
488
+ "type": "MessageBody[]"
489
+ }
490
+ }
491
+ ],
492
+ "slots": [
493
+ {
494
+ "name": null,
495
+ "description": "表单内容"
496
+ }
497
+ ],
498
+ "methods": [
499
+ {
500
+ "name": "validate",
501
+ "params": [],
502
+ "description": "表单校验方法",
503
+ "returns": {
504
+ "type": "boolean | Record<string, unknown>"
505
+ }
506
+ },
507
+ {
508
+ "name": "setInitValue",
509
+ "params": [
510
+ {
511
+ "name": "values",
512
+ "type": "Record<string, unknown>"
513
+ },
514
+ {
515
+ "name": "options",
516
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
517
+ }
518
+ ],
519
+ "description": "表单设置值方法",
520
+ "returns": {}
521
+ },
522
+ {
523
+ "name": "resetFields",
524
+ "params": [
525
+ {
526
+ "name": "name",
527
+ "type": "string"
528
+ }
529
+ ],
530
+ "description": "表单重置值方法",
531
+ "returns": {}
727
532
  },
728
533
  {
729
- "name": "search",
730
- "description": "下拉框search事件",
731
- "detail": {
732
- "type": "{\n value: string;\n }"
733
- }
534
+ "name": "getFieldsValue",
535
+ "params": [
536
+ {
537
+ "name": "name",
538
+ "type": "string"
539
+ }
540
+ ],
541
+ "description": "获取表单值方法",
542
+ "returns": {}
734
543
  },
735
544
  {
736
- "name": "focus",
737
- "description": "下拉框focus事件",
738
- "detail": {
739
- "type": "void"
740
- }
545
+ "name": "validateField",
546
+ "params": [
547
+ {
548
+ "name": "name",
549
+ "type": "string"
550
+ }
551
+ ],
552
+ "description": "校验表单字段方法",
553
+ "returns": {}
741
554
  },
742
555
  {
743
- "name": "options.change",
744
- "description": "选项列表变化事件",
745
- "detail": {
746
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
747
- }
556
+ "name": "resetValidateState",
557
+ "params": [],
558
+ "description": "重置表单校验状态方法",
559
+ "returns": {}
748
560
  }
749
561
  ],
750
- "slots": [],
751
- "methods": [],
752
562
  "parts": [],
753
- "description": "通用下拉选择构件",
563
+ "description": "表单构件",
754
564
  "category": "form-input-basic"
755
565
  },
756
566
  {
@@ -1058,6 +868,105 @@
1058
868
  "description": "搜索框",
1059
869
  "category": "interact-basic"
1060
870
  },
871
+ {
872
+ "name": "eo-form-item",
873
+ "alias": [
874
+ "form.general-form-item"
875
+ ],
876
+ "properties": [
877
+ {
878
+ "name": "formElement",
879
+ "attribute": false,
880
+ "type": "Form"
881
+ },
882
+ {
883
+ "name": "curElement",
884
+ "attribute": false,
885
+ "type": "HTMLElement"
886
+ },
887
+ {
888
+ "name": "name",
889
+ "description": "字段名称",
890
+ "type": "string"
891
+ },
892
+ {
893
+ "name": "label",
894
+ "type": "string"
895
+ },
896
+ {
897
+ "name": "pattern",
898
+ "type": "string"
899
+ },
900
+ {
901
+ "name": "message",
902
+ "attribute": false,
903
+ "type": "Record<string, string>"
904
+ },
905
+ {
906
+ "name": "max",
907
+ "type": "number"
908
+ },
909
+ {
910
+ "name": "min",
911
+ "type": "number"
912
+ },
913
+ {
914
+ "name": "required",
915
+ "description": "表单项是否为必填",
916
+ "type": "boolean"
917
+ },
918
+ {
919
+ "name": "value",
920
+ "description": "初始值",
921
+ "type": "string"
922
+ },
923
+ {
924
+ "name": "valuePropsName",
925
+ "type": "string"
926
+ },
927
+ {
928
+ "name": "layout",
929
+ "type": "Layout"
930
+ },
931
+ {
932
+ "name": "size",
933
+ "type": "ComponentSize"
934
+ },
935
+ {
936
+ "name": "trim",
937
+ "description": "是否自动去除前后的空白字符",
938
+ "default": "true"
939
+ },
940
+ {
941
+ "name": "trigger",
942
+ "description": "事件触发方法名",
943
+ "type": "string"
944
+ },
945
+ {
946
+ "name": "validator",
947
+ "description": "表单项校验方法",
948
+ "attribute": false,
949
+ "type": "((value: any) => MessageBody)"
950
+ },
951
+ {
952
+ "name": "needValidate",
953
+ "description": "值变化时是否主动出发校验",
954
+ "type": "boolean"
955
+ }
956
+ ],
957
+ "events": [],
958
+ "slots": [
959
+ {
960
+ "name": null,
961
+ "description": "表单项内容"
962
+ }
963
+ ],
964
+ "methods": [],
965
+ "parts": [],
966
+ "description": "通用输入框构件",
967
+ "category": "form-input-basic",
968
+ "insider": true
969
+ },
1061
970
  {
1062
971
  "name": "eo-icon-select",
1063
972
  "alias": [
@@ -1373,6 +1282,97 @@
1373
1282
  "description": "上传文件",
1374
1283
  "category": "form-input-basic"
1375
1284
  },
1285
+ {
1286
+ "name": "eo-textarea",
1287
+ "alias": [
1288
+ "form.general-textarea"
1289
+ ],
1290
+ "properties": [
1291
+ {
1292
+ "name": "name",
1293
+ "description": "字段名称",
1294
+ "type": "string"
1295
+ },
1296
+ {
1297
+ "name": "label",
1298
+ "description": "标签文字",
1299
+ "type": "string"
1300
+ },
1301
+ {
1302
+ "name": "value",
1303
+ "description": "值",
1304
+ "type": "string"
1305
+ },
1306
+ {
1307
+ "name": "placeholder",
1308
+ "description": "占位说明",
1309
+ "type": "string"
1310
+ },
1311
+ {
1312
+ "name": "disabled",
1313
+ "description": "是否禁用",
1314
+ "type": "boolean"
1315
+ },
1316
+ {
1317
+ "name": "minLength",
1318
+ "description": "最小长度",
1319
+ "type": "number"
1320
+ },
1321
+ {
1322
+ "name": "maxLength",
1323
+ "description": "最大长度",
1324
+ "type": "number"
1325
+ },
1326
+ {
1327
+ "name": "autoSize",
1328
+ "description": "大小自适应",
1329
+ "attribute": false,
1330
+ "type": "AutoSize"
1331
+ },
1332
+ {
1333
+ "name": "required",
1334
+ "description": "是否必填",
1335
+ "type": "boolean"
1336
+ },
1337
+ {
1338
+ "name": "max",
1339
+ "description": "表单校验最大长度",
1340
+ "type": "number"
1341
+ },
1342
+ {
1343
+ "name": "min",
1344
+ "description": "表单校验最小长度",
1345
+ "type": "number"
1346
+ },
1347
+ {
1348
+ "name": "message",
1349
+ "description": "校验信息",
1350
+ "attribute": false,
1351
+ "type": "Record<string, string>"
1352
+ },
1353
+ {
1354
+ "name": "textareaStyle",
1355
+ "description": "自定义样式",
1356
+ "attribute": false,
1357
+ "type": "React.CSSProperties"
1358
+ }
1359
+ ],
1360
+ "events": [
1361
+ {
1362
+ "name": "change",
1363
+ "description": "",
1364
+ "detail": {
1365
+ "description": null,
1366
+ "type": "string"
1367
+ }
1368
+ }
1369
+ ],
1370
+ "slots": [],
1371
+ "methods": [],
1372
+ "parts": [],
1373
+ "description": "通用多行文本输入框构件",
1374
+ "category": "form-input-basic"
1375
+ },
1376
1376
  {
1377
1377
  "name": "eo-auto-complete",
1378
1378
  "properties": [