@next-bricks/form 1.9.4 → 1.9.5

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,232 +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
191
  {
418
192
  "name": "eo-form-item",
419
193
  "alias": [
@@ -513,104 +287,6 @@
513
287
  "category": "form-input-basic",
514
288
  "insider": true
515
289
  },
516
- {
517
- "name": "eo-radio",
518
- "alias": [
519
- "form.general-radio"
520
- ],
521
- "properties": [
522
- {
523
- "name": "name",
524
- "description": "下拉框字段名",
525
- "type": "string"
526
- },
527
- {
528
- "name": "label",
529
- "description": "单选框字段说明",
530
- "type": "string"
531
- },
532
- {
533
- "name": "options",
534
- "description": "单选框选项表",
535
- "required": true,
536
- "attribute": false,
537
- "type": "GeneralOption[]"
538
- },
539
- {
540
- "name": "value",
541
- "description": "单选框当前选中始值",
542
- "attribute": false,
543
- "type": "any"
544
- },
545
- {
546
- "name": "required",
547
- "description": "是否必填",
548
- "type": "boolean"
549
- },
550
- {
551
- "name": "message",
552
- "description": "校验文本信息",
553
- "attribute": false,
554
- "type": "Record<string, string>"
555
- },
556
- {
557
- "name": "disabled",
558
- "description": "是否禁用",
559
- "type": "boolean"
560
- },
561
- {
562
- "name": "type",
563
- "description": "单选框样式类型",
564
- "default": "\"default\"",
565
- "type": "RadioType"
566
- },
567
- {
568
- "name": "ui",
569
- "description": "UI样式",
570
- "default": "\"default\"",
571
- "type": "UIType"
572
- },
573
- {
574
- "name": "size",
575
- "description": "大小,只对按钮样式生效",
576
- "default": "\"medium\"",
577
- "type": "ComponentSize"
578
- },
579
- {
580
- "name": "customStyle",
581
- "description": "自定义radio的外层样式",
582
- "attribute": false,
583
- "type": "React.CSSProperties"
584
- },
585
- {
586
- "name": "useBrick",
587
- "description": "自定义radio的内容",
588
- "attribute": false,
589
- "type": "UseSingleBrickConf"
590
- }
591
- ],
592
- "events": [
593
- {
594
- "name": "change",
595
- "description": "值变化事件",
596
- "detail": {
597
- "type": "GeneralComplexOption | undefined"
598
- }
599
- },
600
- {
601
- "name": "options.change",
602
- "description": "选项列表变化事件",
603
- "detail": {
604
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
605
- }
606
- }
607
- ],
608
- "slots": [],
609
- "methods": [],
610
- "parts": [],
611
- "description": "通用单选构件",
612
- "category": "form-input-basic"
613
- },
614
290
  {
615
291
  "name": "eo-select",
616
292
  "alias": [
@@ -733,24 +409,115 @@
733
409
  }
734
410
  },
735
411
  {
736
- "name": "focus",
737
- "description": "下拉框focus事件",
738
- "detail": {
739
- "type": "void"
740
- }
741
- },
412
+ "name": "focus",
413
+ "description": "下拉框focus事件",
414
+ "detail": {
415
+ "type": "void"
416
+ }
417
+ },
418
+ {
419
+ "name": "options.change",
420
+ "description": "选项列表变化事件",
421
+ "detail": {
422
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
423
+ }
424
+ }
425
+ ],
426
+ "slots": [],
427
+ "methods": [],
428
+ "parts": [],
429
+ "description": "通用下拉选择构件",
430
+ "category": "form-input-basic"
431
+ },
432
+ {
433
+ "name": "eo-textarea",
434
+ "alias": [
435
+ "form.general-textarea"
436
+ ],
437
+ "properties": [
438
+ {
439
+ "name": "name",
440
+ "description": "字段名称",
441
+ "type": "string"
442
+ },
443
+ {
444
+ "name": "label",
445
+ "description": "标签文字",
446
+ "type": "string"
447
+ },
448
+ {
449
+ "name": "value",
450
+ "description": "值",
451
+ "type": "string"
452
+ },
453
+ {
454
+ "name": "placeholder",
455
+ "description": "占位说明",
456
+ "type": "string"
457
+ },
458
+ {
459
+ "name": "disabled",
460
+ "description": "是否禁用",
461
+ "type": "boolean"
462
+ },
463
+ {
464
+ "name": "minLength",
465
+ "description": "最小长度",
466
+ "type": "number"
467
+ },
468
+ {
469
+ "name": "maxLength",
470
+ "description": "最大长度",
471
+ "type": "number"
472
+ },
473
+ {
474
+ "name": "autoSize",
475
+ "description": "大小自适应",
476
+ "attribute": false,
477
+ "type": "AutoSize"
478
+ },
479
+ {
480
+ "name": "required",
481
+ "description": "是否必填",
482
+ "type": "boolean"
483
+ },
484
+ {
485
+ "name": "max",
486
+ "description": "表单校验最大长度",
487
+ "type": "number"
488
+ },
489
+ {
490
+ "name": "min",
491
+ "description": "表单校验最小长度",
492
+ "type": "number"
493
+ },
494
+ {
495
+ "name": "message",
496
+ "description": "校验信息",
497
+ "attribute": false,
498
+ "type": "Record<string, string>"
499
+ },
500
+ {
501
+ "name": "textareaStyle",
502
+ "description": "自定义样式",
503
+ "attribute": false,
504
+ "type": "React.CSSProperties"
505
+ }
506
+ ],
507
+ "events": [
742
508
  {
743
- "name": "options.change",
744
- "description": "选项列表变化事件",
509
+ "name": "change",
510
+ "description": "",
745
511
  "detail": {
746
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
512
+ "description": null,
513
+ "type": "string"
747
514
  }
748
515
  }
749
516
  ],
750
517
  "slots": [],
751
518
  "methods": [],
752
519
  "parts": [],
753
- "description": "通用下拉选择构件",
520
+ "description": "通用多行文本输入框构件",
754
521
  "category": "form-input-basic"
755
522
  },
756
523
  {
@@ -905,6 +672,141 @@
905
672
  "description": "表单复选框构件",
906
673
  "category": "form-input-basic"
907
674
  },
675
+ {
676
+ "name": "eo-form",
677
+ "alias": [
678
+ "form.general-form"
679
+ ],
680
+ "properties": [
681
+ {
682
+ "name": "layout",
683
+ "description": "布局方式(默认 vertical 布局)",
684
+ "default": "vertical",
685
+ "type": "Layout"
686
+ },
687
+ {
688
+ "name": "size",
689
+ "description": "表单组件尺寸",
690
+ "type": "ComponentSize"
691
+ },
692
+ {
693
+ "name": "labelCol",
694
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
695
+ "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 }",
696
+ "attribute": false,
697
+ "type": "ColProps"
698
+ },
699
+ {
700
+ "name": "wrapperCol",
701
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
702
+ "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 }",
703
+ "attribute": false,
704
+ "type": "ColProps"
705
+ },
706
+ {
707
+ "name": "formStyle",
708
+ "attribute": false,
709
+ "type": "React.CSSProperties"
710
+ }
711
+ ],
712
+ "events": [
713
+ {
714
+ "name": "values.change",
715
+ "description": "表单值变更事件",
716
+ "detail": {
717
+ "description": null,
718
+ "type": "Record<string, unknown>"
719
+ }
720
+ },
721
+ {
722
+ "name": "validate.success",
723
+ "description": "表单验证成功时触发事件",
724
+ "detail": {
725
+ "type": "Record<string, unknown>"
726
+ }
727
+ },
728
+ {
729
+ "name": "validate.error",
730
+ "description": "表单验证报错时触发事件",
731
+ "detail": {
732
+ "type": "MessageBody[]"
733
+ }
734
+ }
735
+ ],
736
+ "slots": [
737
+ {
738
+ "name": null,
739
+ "description": "表单内容"
740
+ }
741
+ ],
742
+ "methods": [
743
+ {
744
+ "name": "validate",
745
+ "params": [],
746
+ "description": "表单校验方法",
747
+ "returns": {
748
+ "type": "boolean | Record<string, unknown>"
749
+ }
750
+ },
751
+ {
752
+ "name": "setInitValue",
753
+ "params": [
754
+ {
755
+ "name": "values",
756
+ "type": "Record<string, unknown>"
757
+ },
758
+ {
759
+ "name": "options",
760
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
761
+ }
762
+ ],
763
+ "description": "表单设置值方法",
764
+ "returns": {}
765
+ },
766
+ {
767
+ "name": "resetFields",
768
+ "params": [
769
+ {
770
+ "name": "name",
771
+ "type": "string"
772
+ }
773
+ ],
774
+ "description": "表单重置值方法",
775
+ "returns": {}
776
+ },
777
+ {
778
+ "name": "getFieldsValue",
779
+ "params": [
780
+ {
781
+ "name": "name",
782
+ "type": "string"
783
+ }
784
+ ],
785
+ "description": "获取表单值方法",
786
+ "returns": {}
787
+ },
788
+ {
789
+ "name": "validateField",
790
+ "params": [
791
+ {
792
+ "name": "name",
793
+ "type": "string"
794
+ }
795
+ ],
796
+ "description": "校验表单字段方法",
797
+ "returns": {}
798
+ },
799
+ {
800
+ "name": "resetValidateState",
801
+ "params": [],
802
+ "description": "重置表单校验状态方法",
803
+ "returns": {}
804
+ }
805
+ ],
806
+ "parts": [],
807
+ "description": "表单构件",
808
+ "category": "form-input-basic"
809
+ },
908
810
  {
909
811
  "name": "eo-dynamic-form-item",
910
812
  "alias": [
@@ -1112,6 +1014,104 @@
1112
1014
  "description": "图标选择构件",
1113
1015
  "category": "form-input-basic"
1114
1016
  },
1017
+ {
1018
+ "name": "eo-radio",
1019
+ "alias": [
1020
+ "form.general-radio"
1021
+ ],
1022
+ "properties": [
1023
+ {
1024
+ "name": "name",
1025
+ "description": "下拉框字段名",
1026
+ "type": "string"
1027
+ },
1028
+ {
1029
+ "name": "label",
1030
+ "description": "单选框字段说明",
1031
+ "type": "string"
1032
+ },
1033
+ {
1034
+ "name": "options",
1035
+ "description": "单选框选项表",
1036
+ "required": true,
1037
+ "attribute": false,
1038
+ "type": "GeneralOption[]"
1039
+ },
1040
+ {
1041
+ "name": "value",
1042
+ "description": "单选框当前选中始值",
1043
+ "attribute": false,
1044
+ "type": "any"
1045
+ },
1046
+ {
1047
+ "name": "required",
1048
+ "description": "是否必填",
1049
+ "type": "boolean"
1050
+ },
1051
+ {
1052
+ "name": "message",
1053
+ "description": "校验文本信息",
1054
+ "attribute": false,
1055
+ "type": "Record<string, string>"
1056
+ },
1057
+ {
1058
+ "name": "disabled",
1059
+ "description": "是否禁用",
1060
+ "type": "boolean"
1061
+ },
1062
+ {
1063
+ "name": "type",
1064
+ "description": "单选框样式类型",
1065
+ "default": "\"default\"",
1066
+ "type": "RadioType"
1067
+ },
1068
+ {
1069
+ "name": "ui",
1070
+ "description": "UI样式",
1071
+ "default": "\"default\"",
1072
+ "type": "UIType"
1073
+ },
1074
+ {
1075
+ "name": "size",
1076
+ "description": "大小,只对按钮样式生效",
1077
+ "default": "\"medium\"",
1078
+ "type": "ComponentSize"
1079
+ },
1080
+ {
1081
+ "name": "customStyle",
1082
+ "description": "自定义radio的外层样式",
1083
+ "attribute": false,
1084
+ "type": "React.CSSProperties"
1085
+ },
1086
+ {
1087
+ "name": "useBrick",
1088
+ "description": "自定义radio的内容",
1089
+ "attribute": false,
1090
+ "type": "UseSingleBrickConf"
1091
+ }
1092
+ ],
1093
+ "events": [
1094
+ {
1095
+ "name": "change",
1096
+ "description": "值变化事件",
1097
+ "detail": {
1098
+ "type": "GeneralComplexOption | undefined"
1099
+ }
1100
+ },
1101
+ {
1102
+ "name": "options.change",
1103
+ "description": "选项列表变化事件",
1104
+ "detail": {
1105
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1106
+ }
1107
+ }
1108
+ ],
1109
+ "slots": [],
1110
+ "methods": [],
1111
+ "parts": [],
1112
+ "description": "通用单选构件",
1113
+ "category": "form-input-basic"
1114
+ },
1115
1115
  {
1116
1116
  "name": "eo-upload-image",
1117
1117
  "alias": [