@next-bricks/form 1.13.1 → 1.13.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.
@@ -189,102 +189,243 @@
189
189
  "category": "form-input-basic"
190
190
  },
191
191
  {
192
- "name": "eo-radio",
192
+ "name": "eo-form",
193
193
  "alias": [
194
- "form.general-radio"
194
+ "form.general-form"
195
195
  ],
196
196
  "properties": [
197
197
  {
198
- "name": "name",
199
- "description": "下拉框字段名",
200
- "type": "string"
198
+ "name": "staticValues",
199
+ "attribute": false,
200
+ "type": "Record<string, unknown>"
201
201
  },
202
202
  {
203
- "name": "label",
204
- "description": "单选框字段说明",
205
- "type": "string"
203
+ "name": "layout",
204
+ "description": "布局方式(默认 vertical 布局)",
205
+ "default": "vertical",
206
+ "type": "Layout"
206
207
  },
207
208
  {
208
- "name": "options",
209
- "description": "单选框选项表",
210
- "required": true,
209
+ "name": "size",
210
+ "description": "表单组件尺寸",
211
+ "type": "ComponentSize"
212
+ },
213
+ {
214
+ "name": "labelCol",
215
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
216
+ "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 }",
211
217
  "attribute": false,
212
- "type": "GeneralOption[]"
218
+ "type": "ColProps"
213
219
  },
214
220
  {
215
- "name": "value",
216
- "description": "单选框当前选中始值",
221
+ "name": "wrapperCol",
222
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
223
+ "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 }",
217
224
  "attribute": false,
218
- "type": "any"
225
+ "type": "ColProps"
219
226
  },
220
227
  {
221
- "name": "required",
222
- "description": "是否必填",
223
- "type": "boolean"
228
+ "name": "formStyle",
229
+ "attribute": false,
230
+ "type": "React.CSSProperties"
231
+ }
232
+ ],
233
+ "events": [
234
+ {
235
+ "name": "values.change",
236
+ "description": "表单值变更事件",
237
+ "detail": {
238
+ "description": null,
239
+ "type": "Record<string, unknown>"
240
+ }
241
+ },
242
+ {
243
+ "name": "validate.success",
244
+ "description": "表单验证成功时触发事件",
245
+ "detail": {
246
+ "type": "Record<string, unknown>"
247
+ }
248
+ },
249
+ {
250
+ "name": "validate.error",
251
+ "description": "表单验证报错时触发事件",
252
+ "detail": {
253
+ "type": "(MessageBody & { name: string })[]"
254
+ }
255
+ }
256
+ ],
257
+ "slots": [
258
+ {
259
+ "name": null,
260
+ "description": "表单内容"
261
+ }
262
+ ],
263
+ "methods": [
264
+ {
265
+ "name": "validate",
266
+ "params": [],
267
+ "description": "表单校验方法",
268
+ "returns": {
269
+ "type": "boolean | Record<string, unknown>"
270
+ }
271
+ },
272
+ {
273
+ "name": "setInitValue",
274
+ "params": [
275
+ {
276
+ "name": "values",
277
+ "type": "Record<string, unknown>"
278
+ },
279
+ {
280
+ "name": "options",
281
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
282
+ }
283
+ ],
284
+ "description": "表单设置值方法",
285
+ "returns": {}
286
+ },
287
+ {
288
+ "name": "resetFields",
289
+ "params": [
290
+ {
291
+ "name": "name",
292
+ "type": "string"
293
+ }
294
+ ],
295
+ "description": "表单重置值方法",
296
+ "returns": {}
297
+ },
298
+ {
299
+ "name": "getFieldsValue",
300
+ "params": [
301
+ {
302
+ "name": "name",
303
+ "type": "string"
304
+ }
305
+ ],
306
+ "description": "获取表单值方法",
307
+ "returns": {}
308
+ },
309
+ {
310
+ "name": "validateField",
311
+ "params": [
312
+ {
313
+ "name": "name",
314
+ "type": "string"
315
+ }
316
+ ],
317
+ "description": "校验表单字段方法",
318
+ "returns": {}
319
+ },
320
+ {
321
+ "name": "resetValidateState",
322
+ "params": [],
323
+ "description": "重置表单校验状态方法",
324
+ "returns": {}
325
+ }
326
+ ],
327
+ "parts": [],
328
+ "description": "表单构件",
329
+ "category": "form-input-basic"
330
+ },
331
+ {
332
+ "name": "eo-form-item",
333
+ "alias": [
334
+ "form.general-form-item"
335
+ ],
336
+ "properties": [
337
+ {
338
+ "name": "formElement",
339
+ "attribute": false,
340
+ "type": "Form"
341
+ },
342
+ {
343
+ "name": "curElement",
344
+ "attribute": false,
345
+ "type": "HTMLElement"
346
+ },
347
+ {
348
+ "name": "name",
349
+ "description": "字段名称",
350
+ "type": "string"
351
+ },
352
+ {
353
+ "name": "label",
354
+ "type": "string"
355
+ },
356
+ {
357
+ "name": "pattern",
358
+ "type": "string"
224
359
  },
225
360
  {
226
361
  "name": "message",
227
- "description": "校验文本信息",
228
362
  "attribute": false,
229
363
  "type": "Record<string, string>"
230
364
  },
231
365
  {
232
- "name": "disabled",
233
- "description": "是否禁用",
366
+ "name": "max",
367
+ "type": "number"
368
+ },
369
+ {
370
+ "name": "min",
371
+ "type": "number"
372
+ },
373
+ {
374
+ "name": "required",
375
+ "description": "表单项是否为必填",
234
376
  "type": "boolean"
235
377
  },
236
378
  {
237
- "name": "type",
238
- "description": "单选框样式类型",
239
- "default": "\"default\"",
240
- "type": "RadioType"
379
+ "name": "value",
380
+ "description": "初始值",
381
+ "type": "string"
241
382
  },
242
383
  {
243
- "name": "ui",
244
- "description": "UI样式",
245
- "default": "\"default\"",
246
- "type": "UIType"
384
+ "name": "valuePropsName",
385
+ "type": "string"
386
+ },
387
+ {
388
+ "name": "layout",
389
+ "type": "Layout"
247
390
  },
248
391
  {
249
392
  "name": "size",
250
- "description": "大小,只对按钮样式生效",
251
- "default": "\"medium\"",
252
393
  "type": "ComponentSize"
253
394
  },
254
395
  {
255
- "name": "customStyle",
256
- "description": "自定义radio的外层样式",
257
- "attribute": false,
258
- "type": "React.CSSProperties"
396
+ "name": "trim",
397
+ "description": "是否自动去除前后的空白字符",
398
+ "default": "true"
259
399
  },
260
400
  {
261
- "name": "useBrick",
262
- "description": "自定义radio的内容",
401
+ "name": "trigger",
402
+ "description": "事件触发方法名",
403
+ "type": "string"
404
+ },
405
+ {
406
+ "name": "validator",
407
+ "description": "表单项校验方法",
263
408
  "attribute": false,
264
- "type": "UseSingleBrickConf"
409
+ "type": "((value: any) => MessageBody)"
410
+ },
411
+ {
412
+ "name": "needValidate",
413
+ "description": "值变化时是否主动出发校验",
414
+ "type": "boolean"
265
415
  }
266
416
  ],
267
- "events": [
268
- {
269
- "name": "change",
270
- "description": "值变化事件",
271
- "detail": {
272
- "type": "GeneralComplexOption | undefined"
273
- }
274
- },
417
+ "events": [],
418
+ "slots": [
275
419
  {
276
- "name": "options.change",
277
- "description": "选项列表变化事件",
278
- "detail": {
279
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
280
- }
420
+ "name": null,
421
+ "description": "表单项内容"
281
422
  }
282
423
  ],
283
- "slots": [],
284
424
  "methods": [],
285
425
  "parts": [],
286
- "description": "通用单选构件",
287
- "category": "form-input-basic"
426
+ "description": "通用输入框构件",
427
+ "category": "form-input-basic",
428
+ "insider": true
288
429
  },
289
430
  {
290
431
  "name": "eo-textarea",
@@ -385,63 +526,101 @@
385
526
  "category": "form-input-basic"
386
527
  },
387
528
  {
388
- "name": "eo-submit-buttons",
529
+ "name": "eo-radio",
389
530
  "alias": [
390
- "form.submit-buttons"
531
+ "form.general-radio"
391
532
  ],
392
533
  "properties": [
393
534
  {
394
- "name": "submitText",
395
- "description": "提交按钮的文字",
396
- "default": "\"提交\"",
535
+ "name": "name",
536
+ "description": "下拉框字段名",
397
537
  "type": "string"
398
538
  },
399
539
  {
400
- "name": "cancelText",
401
- "description": "取消按钮的文字,不设置则不显示取消按钮",
540
+ "name": "label",
541
+ "description": "单选框字段说明",
402
542
  "type": "string"
403
543
  },
404
544
  {
405
- "name": "disableAfterClick",
406
- "description": "点击确定按钮后自动禁用",
545
+ "name": "options",
546
+ "description": "单选框选项表",
547
+ "required": true,
548
+ "attribute": false,
549
+ "type": "GeneralOption[]"
550
+ },
551
+ {
552
+ "name": "value",
553
+ "description": "单选框当前选中始值",
554
+ "attribute": false,
555
+ "type": "any"
556
+ },
557
+ {
558
+ "name": "required",
559
+ "description": "是否必填",
407
560
  "type": "boolean"
408
561
  },
409
562
  {
410
- "name": "submitDisabled",
411
- "description": "禁用提交按钮",
563
+ "name": "message",
564
+ "description": "校验文本信息",
565
+ "attribute": false,
566
+ "type": "Record<string, string>"
567
+ },
568
+ {
569
+ "name": "disabled",
570
+ "description": "是否禁用",
412
571
  "type": "boolean"
413
572
  },
414
573
  {
415
- "name": "submitType",
416
- "description": "提交按钮类型",
417
- "type": "ButtonType"
574
+ "name": "type",
575
+ "description": "单选框样式类型",
576
+ "default": "\"default\"",
577
+ "type": "RadioType"
418
578
  },
419
579
  {
420
- "name": "cancelType",
421
- "description": "取消按钮类型",
422
- "type": "ButtonType"
580
+ "name": "ui",
581
+ "description": "UI样式",
582
+ "default": "\"default\"",
583
+ "type": "UIType"
584
+ },
585
+ {
586
+ "name": "size",
587
+ "description": "大小,只对按钮样式生效",
588
+ "default": "\"medium\"",
589
+ "type": "ComponentSize"
590
+ },
591
+ {
592
+ "name": "customStyle",
593
+ "description": "自定义radio的外层样式",
594
+ "attribute": false,
595
+ "type": "React.CSSProperties"
596
+ },
597
+ {
598
+ "name": "useBrick",
599
+ "description": "自定义radio的内容",
600
+ "attribute": false,
601
+ "type": "UseSingleBrickConf"
423
602
  }
424
603
  ],
425
604
  "events": [
426
605
  {
427
- "name": "submit",
428
- "description": "点击提交按钮触发的事件",
606
+ "name": "change",
607
+ "description": "值变化事件",
429
608
  "detail": {
430
- "type": "void"
609
+ "type": "GeneralComplexOption | undefined"
431
610
  }
432
611
  },
433
612
  {
434
- "name": "cancel",
435
- "description": "点击取消按钮触发的事件",
613
+ "name": "options.change",
614
+ "description": "选项列表变化事件",
436
615
  "detail": {
437
- "type": "void"
616
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
438
617
  }
439
618
  }
440
619
  ],
441
620
  "slots": [],
442
621
  "methods": [],
443
622
  "parts": [],
444
- "description": "表单提交按钮",
623
+ "description": "通用单选构件",
445
624
  "category": "form-input-basic"
446
625
  },
447
626
  {
@@ -587,143 +766,63 @@
587
766
  "category": "form-input-basic"
588
767
  },
589
768
  {
590
- "name": "eo-form",
769
+ "name": "eo-submit-buttons",
591
770
  "alias": [
592
- "form.general-form"
771
+ "form.submit-buttons"
593
772
  ],
594
773
  "properties": [
595
774
  {
596
- "name": "staticValues",
597
- "attribute": false,
598
- "type": "Record<string, unknown>"
775
+ "name": "submitText",
776
+ "description": "提交按钮的文字",
777
+ "default": "\"提交\"",
778
+ "type": "string"
599
779
  },
600
780
  {
601
- "name": "layout",
602
- "description": "布局方式(默认 vertical 布局)",
603
- "default": "vertical",
604
- "type": "Layout"
781
+ "name": "cancelText",
782
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
783
+ "type": "string"
605
784
  },
606
785
  {
607
- "name": "size",
608
- "description": "表单组件尺寸",
609
- "type": "ComponentSize"
786
+ "name": "disableAfterClick",
787
+ "description": "点击确定按钮后自动禁用",
788
+ "type": "boolean"
610
789
  },
611
790
  {
612
- "name": "labelCol",
613
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
614
- "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 }",
615
- "attribute": false,
616
- "type": "ColProps"
791
+ "name": "submitDisabled",
792
+ "description": "禁用提交按钮",
793
+ "type": "boolean"
617
794
  },
618
795
  {
619
- "name": "wrapperCol",
620
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
621
- "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 }",
622
- "attribute": false,
623
- "type": "ColProps"
796
+ "name": "submitType",
797
+ "description": "提交按钮类型",
798
+ "type": "ButtonType"
624
799
  },
625
800
  {
626
- "name": "formStyle",
627
- "attribute": false,
628
- "type": "React.CSSProperties"
801
+ "name": "cancelType",
802
+ "description": "取消按钮类型",
803
+ "type": "ButtonType"
629
804
  }
630
805
  ],
631
806
  "events": [
632
807
  {
633
- "name": "values.change",
634
- "description": "表单值变更事件",
635
- "detail": {
636
- "description": null,
637
- "type": "Record<string, unknown>"
638
- }
639
- },
640
- {
641
- "name": "validate.success",
642
- "description": "表单验证成功时触发事件",
808
+ "name": "submit",
809
+ "description": "点击提交按钮触发的事件",
643
810
  "detail": {
644
- "type": "Record<string, unknown>"
811
+ "type": "void"
645
812
  }
646
813
  },
647
814
  {
648
- "name": "validate.error",
649
- "description": "表单验证报错时触发事件",
815
+ "name": "cancel",
816
+ "description": "点击取消按钮触发的事件",
650
817
  "detail": {
651
- "type": "(MessageBody & { name: string })[]"
652
- }
653
- }
654
- ],
655
- "slots": [
656
- {
657
- "name": null,
658
- "description": "表单内容"
659
- }
660
- ],
661
- "methods": [
662
- {
663
- "name": "validate",
664
- "params": [],
665
- "description": "表单校验方法",
666
- "returns": {
667
- "type": "boolean | Record<string, unknown>"
818
+ "type": "void"
668
819
  }
669
- },
670
- {
671
- "name": "setInitValue",
672
- "params": [
673
- {
674
- "name": "values",
675
- "type": "Record<string, unknown>"
676
- },
677
- {
678
- "name": "options",
679
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
680
- }
681
- ],
682
- "description": "表单设置值方法",
683
- "returns": {}
684
- },
685
- {
686
- "name": "resetFields",
687
- "params": [
688
- {
689
- "name": "name",
690
- "type": "string"
691
- }
692
- ],
693
- "description": "表单重置值方法",
694
- "returns": {}
695
- },
696
- {
697
- "name": "getFieldsValue",
698
- "params": [
699
- {
700
- "name": "name",
701
- "type": "string"
702
- }
703
- ],
704
- "description": "获取表单值方法",
705
- "returns": {}
706
- },
707
- {
708
- "name": "validateField",
709
- "params": [
710
- {
711
- "name": "name",
712
- "type": "string"
713
- }
714
- ],
715
- "description": "校验表单字段方法",
716
- "returns": {}
717
- },
718
- {
719
- "name": "resetValidateState",
720
- "params": [],
721
- "description": "重置表单校验状态方法",
722
- "returns": {}
723
820
  }
724
821
  ],
822
+ "slots": [],
823
+ "methods": [],
725
824
  "parts": [],
726
- "description": "表单构件",
825
+ "description": "表单提交按钮",
727
826
  "category": "form-input-basic"
728
827
  },
729
828
  {
@@ -910,105 +1009,6 @@
910
1009
  "description": "动态表单",
911
1010
  "category": "form-input-basic"
912
1011
  },
913
- {
914
- "name": "eo-form-item",
915
- "alias": [
916
- "form.general-form-item"
917
- ],
918
- "properties": [
919
- {
920
- "name": "formElement",
921
- "attribute": false,
922
- "type": "Form"
923
- },
924
- {
925
- "name": "curElement",
926
- "attribute": false,
927
- "type": "HTMLElement"
928
- },
929
- {
930
- "name": "name",
931
- "description": "字段名称",
932
- "type": "string"
933
- },
934
- {
935
- "name": "label",
936
- "type": "string"
937
- },
938
- {
939
- "name": "pattern",
940
- "type": "string"
941
- },
942
- {
943
- "name": "message",
944
- "attribute": false,
945
- "type": "Record<string, string>"
946
- },
947
- {
948
- "name": "max",
949
- "type": "number"
950
- },
951
- {
952
- "name": "min",
953
- "type": "number"
954
- },
955
- {
956
- "name": "required",
957
- "description": "表单项是否为必填",
958
- "type": "boolean"
959
- },
960
- {
961
- "name": "value",
962
- "description": "初始值",
963
- "type": "string"
964
- },
965
- {
966
- "name": "valuePropsName",
967
- "type": "string"
968
- },
969
- {
970
- "name": "layout",
971
- "type": "Layout"
972
- },
973
- {
974
- "name": "size",
975
- "type": "ComponentSize"
976
- },
977
- {
978
- "name": "trim",
979
- "description": "是否自动去除前后的空白字符",
980
- "default": "true"
981
- },
982
- {
983
- "name": "trigger",
984
- "description": "事件触发方法名",
985
- "type": "string"
986
- },
987
- {
988
- "name": "validator",
989
- "description": "表单项校验方法",
990
- "attribute": false,
991
- "type": "((value: any) => MessageBody)"
992
- },
993
- {
994
- "name": "needValidate",
995
- "description": "值变化时是否主动出发校验",
996
- "type": "boolean"
997
- }
998
- ],
999
- "events": [],
1000
- "slots": [
1001
- {
1002
- "name": null,
1003
- "description": "表单项内容"
1004
- }
1005
- ],
1006
- "methods": [],
1007
- "parts": [],
1008
- "description": "通用输入框构件",
1009
- "category": "form-input-basic",
1010
- "insider": true
1011
- },
1012
1012
  {
1013
1013
  "name": "eo-search",
1014
1014
  "alias": [