@next-bricks/form 1.15.16 → 1.15.17

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.
@@ -3,151 +3,6 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
- {
7
- "name": "eo-form",
8
- "alias": [
9
- "form.general-form"
10
- ],
11
- "properties": [
12
- {
13
- "name": "staticValues",
14
- "attribute": false,
15
- "type": "Record<string, unknown>"
16
- },
17
- {
18
- "name": "layout",
19
- "description": "布局方式(默认 vertical 布局)",
20
- "default": "vertical",
21
- "type": "Layout"
22
- },
23
- {
24
- "name": "size",
25
- "description": "表单组件尺寸",
26
- "type": "ComponentSize"
27
- },
28
- {
29
- "name": "labelCol",
30
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
31
- "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 }",
32
- "attribute": false,
33
- "type": "ColProps"
34
- },
35
- {
36
- "name": "wrapperCol",
37
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
38
- "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 }",
39
- "attribute": false,
40
- "type": "ColProps"
41
- },
42
- {
43
- "name": "formStyle",
44
- "attribute": false,
45
- "type": "React.CSSProperties"
46
- },
47
- {
48
- "name": "textContent",
49
- "type": "string",
50
- "description": "文本内容"
51
- }
52
- ],
53
- "events": [
54
- {
55
- "name": "values.change",
56
- "description": "表单值变更事件",
57
- "detail": {
58
- "description": null,
59
- "type": "Record<string, unknown>"
60
- }
61
- },
62
- {
63
- "name": "validate.success",
64
- "description": "表单验证成功时触发事件",
65
- "detail": {
66
- "type": "Record<string, unknown>"
67
- }
68
- },
69
- {
70
- "name": "validate.error",
71
- "description": "表单验证报错时触发事件",
72
- "detail": {
73
- "type": "(MessageBody & { name: string })[]"
74
- }
75
- }
76
- ],
77
- "slots": [
78
- {
79
- "name": null,
80
- "description": "表单内容"
81
- }
82
- ],
83
- "methods": [
84
- {
85
- "name": "validate",
86
- "params": [],
87
- "description": "表单校验方法",
88
- "returns": {
89
- "type": "boolean | Record<string, unknown>"
90
- }
91
- },
92
- {
93
- "name": "setInitValue",
94
- "params": [
95
- {
96
- "name": "values",
97
- "type": "Record<string, unknown>"
98
- },
99
- {
100
- "name": "options",
101
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
102
- }
103
- ],
104
- "description": "表单设置值方法",
105
- "returns": {}
106
- },
107
- {
108
- "name": "resetFields",
109
- "params": [
110
- {
111
- "name": "name",
112
- "type": "string"
113
- }
114
- ],
115
- "description": "表单重置值方法",
116
- "returns": {}
117
- },
118
- {
119
- "name": "getFieldsValue",
120
- "params": [
121
- {
122
- "name": "name",
123
- "type": "string"
124
- }
125
- ],
126
- "description": "获取表单值方法",
127
- "returns": {}
128
- },
129
- {
130
- "name": "validateField",
131
- "params": [
132
- {
133
- "name": "name",
134
- "type": "string"
135
- }
136
- ],
137
- "description": "校验表单字段方法",
138
- "returns": {}
139
- },
140
- {
141
- "name": "resetValidateState",
142
- "params": [],
143
- "description": "重置表单校验状态方法",
144
- "returns": {}
145
- }
146
- ],
147
- "parts": [],
148
- "description": "表单构件",
149
- "category": "form-input-basic"
150
- },
151
6
  {
152
7
  "name": "eo-textarea",
153
8
  "alias": [
@@ -246,6 +101,104 @@
246
101
  "description": "通用多行文本输入框构件",
247
102
  "category": "form-input-basic"
248
103
  },
104
+ {
105
+ "name": "eo-radio",
106
+ "alias": [
107
+ "form.general-radio"
108
+ ],
109
+ "properties": [
110
+ {
111
+ "name": "name",
112
+ "description": "下拉框字段名",
113
+ "type": "string"
114
+ },
115
+ {
116
+ "name": "label",
117
+ "description": "单选框字段说明",
118
+ "type": "string"
119
+ },
120
+ {
121
+ "name": "options",
122
+ "description": "单选框选项表",
123
+ "required": true,
124
+ "attribute": false,
125
+ "type": "GeneralOption[]"
126
+ },
127
+ {
128
+ "name": "value",
129
+ "description": "单选框当前选中始值",
130
+ "attribute": false,
131
+ "type": "any"
132
+ },
133
+ {
134
+ "name": "required",
135
+ "description": "是否必填",
136
+ "type": "boolean"
137
+ },
138
+ {
139
+ "name": "message",
140
+ "description": "校验文本信息",
141
+ "attribute": false,
142
+ "type": "Record<string, string>"
143
+ },
144
+ {
145
+ "name": "disabled",
146
+ "description": "是否禁用",
147
+ "type": "boolean"
148
+ },
149
+ {
150
+ "name": "type",
151
+ "description": "单选框样式类型",
152
+ "default": "\"default\"",
153
+ "type": "RadioType"
154
+ },
155
+ {
156
+ "name": "ui",
157
+ "description": "UI样式",
158
+ "default": "\"default\"",
159
+ "type": "UIType"
160
+ },
161
+ {
162
+ "name": "size",
163
+ "description": "大小,只对按钮样式生效",
164
+ "default": "\"medium\"",
165
+ "type": "ComponentSize"
166
+ },
167
+ {
168
+ "name": "customStyle",
169
+ "description": "自定义radio的外层样式",
170
+ "attribute": false,
171
+ "type": "React.CSSProperties"
172
+ },
173
+ {
174
+ "name": "useBrick",
175
+ "description": "自定义radio的内容",
176
+ "attribute": false,
177
+ "type": "UseSingleBrickConf"
178
+ }
179
+ ],
180
+ "events": [
181
+ {
182
+ "name": "change",
183
+ "description": "值变化事件",
184
+ "detail": {
185
+ "type": "GeneralComplexOption | undefined"
186
+ }
187
+ },
188
+ {
189
+ "name": "options.change",
190
+ "description": "选项列表变化事件",
191
+ "detail": {
192
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
193
+ }
194
+ }
195
+ ],
196
+ "slots": [],
197
+ "methods": [],
198
+ "parts": [],
199
+ "description": "通用单选构件",
200
+ "category": "form-input-basic"
201
+ },
249
202
  {
250
203
  "name": "eo-select",
251
204
  "alias": [
@@ -395,161 +348,148 @@
395
348
  "category": "form-input-basic"
396
349
  },
397
350
  {
398
- "name": "eo-radio",
351
+ "name": "eo-form",
399
352
  "alias": [
400
- "form.general-radio"
353
+ "form.general-form"
401
354
  ],
402
355
  "properties": [
403
356
  {
404
- "name": "name",
405
- "description": "下拉框字段名",
406
- "type": "string"
407
- },
408
- {
409
- "name": "label",
410
- "description": "单选框字段说明",
411
- "type": "string"
412
- },
413
- {
414
- "name": "options",
415
- "description": "单选框选项表",
416
- "required": true,
357
+ "name": "staticValues",
417
358
  "attribute": false,
418
- "type": "GeneralOption[]"
359
+ "type": "Record<string, unknown>"
419
360
  },
420
361
  {
421
- "name": "value",
422
- "description": "单选框当前选中始值",
423
- "attribute": false,
424
- "type": "any"
362
+ "name": "layout",
363
+ "description": "布局方式(默认 vertical 布局)",
364
+ "default": "vertical",
365
+ "type": "Layout"
425
366
  },
426
367
  {
427
- "name": "required",
428
- "description": "是否必填",
429
- "type": "boolean"
368
+ "name": "size",
369
+ "description": "表单组件尺寸",
370
+ "type": "ComponentSize"
430
371
  },
431
372
  {
432
- "name": "message",
433
- "description": "校验文本信息",
373
+ "name": "labelCol",
374
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
375
+ "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 }",
434
376
  "attribute": false,
435
- "type": "Record<string, string>"
436
- },
437
- {
438
- "name": "disabled",
439
- "description": "是否禁用",
440
- "type": "boolean"
441
- },
442
- {
443
- "name": "type",
444
- "description": "单选框样式类型",
445
- "default": "\"default\"",
446
- "type": "RadioType"
447
- },
448
- {
449
- "name": "ui",
450
- "description": "UI样式",
451
- "default": "\"default\"",
452
- "type": "UIType"
377
+ "type": "ColProps"
453
378
  },
454
379
  {
455
- "name": "size",
456
- "description": "大小,只对按钮样式生效",
457
- "default": "\"medium\"",
458
- "type": "ComponentSize"
380
+ "name": "wrapperCol",
381
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
382
+ "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 }",
383
+ "attribute": false,
384
+ "type": "ColProps"
459
385
  },
460
386
  {
461
- "name": "customStyle",
462
- "description": "自定义radio的外层样式",
387
+ "name": "formStyle",
463
388
  "attribute": false,
464
389
  "type": "React.CSSProperties"
465
390
  },
466
391
  {
467
- "name": "useBrick",
468
- "description": "自定义radio的内容",
469
- "attribute": false,
470
- "type": "UseSingleBrickConf"
392
+ "name": "textContent",
393
+ "type": "string",
394
+ "description": "文本内容"
471
395
  }
472
396
  ],
473
397
  "events": [
474
398
  {
475
- "name": "change",
476
- "description": "值变化事件",
399
+ "name": "values.change",
400
+ "description": "表单值变更事件",
477
401
  "detail": {
478
- "type": "GeneralComplexOption | undefined"
402
+ "description": null,
403
+ "type": "Record<string, unknown>"
479
404
  }
480
405
  },
481
406
  {
482
- "name": "options.change",
483
- "description": "选项列表变化事件",
407
+ "name": "validate.success",
408
+ "description": "表单验证成功时触发事件",
484
409
  "detail": {
485
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
410
+ "type": "Record<string, unknown>"
411
+ }
412
+ },
413
+ {
414
+ "name": "validate.error",
415
+ "description": "表单验证报错时触发事件",
416
+ "detail": {
417
+ "type": "(MessageBody & { name: string })[]"
486
418
  }
487
419
  }
488
420
  ],
489
- "slots": [],
490
- "methods": [],
491
- "parts": [],
492
- "description": "通用单选构件",
493
- "category": "form-input-basic"
494
- },
495
- {
496
- "name": "eo-submit-buttons",
497
- "alias": [
498
- "form.submit-buttons"
499
- ],
500
- "properties": [
421
+ "slots": [
501
422
  {
502
- "name": "submitText",
503
- "description": "提交按钮的文字",
504
- "default": "\"提交\"",
505
- "type": "string"
506
- },
423
+ "name": null,
424
+ "description": "表单内容"
425
+ }
426
+ ],
427
+ "methods": [
507
428
  {
508
- "name": "cancelText",
509
- "description": "取消按钮的文字,不设置则不显示取消按钮",
510
- "type": "string"
429
+ "name": "validate",
430
+ "params": [],
431
+ "description": "表单校验方法",
432
+ "returns": {
433
+ "type": "boolean | Record<string, unknown>"
434
+ }
511
435
  },
512
436
  {
513
- "name": "disableAfterClick",
514
- "description": "点击确定按钮后自动禁用",
515
- "type": "boolean"
437
+ "name": "setInitValue",
438
+ "params": [
439
+ {
440
+ "name": "values",
441
+ "type": "Record<string, unknown>"
442
+ },
443
+ {
444
+ "name": "options",
445
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
446
+ }
447
+ ],
448
+ "description": "表单设置值方法",
449
+ "returns": {}
516
450
  },
517
451
  {
518
- "name": "submitDisabled",
519
- "description": "禁用提交按钮",
520
- "type": "boolean"
452
+ "name": "resetFields",
453
+ "params": [
454
+ {
455
+ "name": "name",
456
+ "type": "string"
457
+ }
458
+ ],
459
+ "description": "表单重置值方法",
460
+ "returns": {}
521
461
  },
522
462
  {
523
- "name": "submitType",
524
- "description": "提交按钮类型",
525
- "type": "ButtonType"
463
+ "name": "getFieldsValue",
464
+ "params": [
465
+ {
466
+ "name": "name",
467
+ "type": "string"
468
+ }
469
+ ],
470
+ "description": "获取表单值方法",
471
+ "returns": {}
526
472
  },
527
473
  {
528
- "name": "cancelType",
529
- "description": "取消按钮类型",
530
- "type": "ButtonType"
531
- }
532
- ],
533
- "events": [
534
- {
535
- "name": "submit",
536
- "description": "点击提交按钮触发的事件",
537
- "detail": {
538
- "type": "void"
539
- }
474
+ "name": "validateField",
475
+ "params": [
476
+ {
477
+ "name": "name",
478
+ "type": "string"
479
+ }
480
+ ],
481
+ "description": "校验表单字段方法",
482
+ "returns": {}
540
483
  },
541
484
  {
542
- "name": "cancel",
543
- "description": "点击取消按钮触发的事件",
544
- "detail": {
545
- "type": "void"
546
- }
485
+ "name": "resetValidateState",
486
+ "params": [],
487
+ "description": "重置表单校验状态方法",
488
+ "returns": {}
547
489
  }
548
490
  ],
549
- "slots": [],
550
- "methods": [],
551
491
  "parts": [],
552
- "description": "表单提交按钮",
492
+ "description": "表单构件",
553
493
  "category": "form-input-basic"
554
494
  },
555
495
  {
@@ -644,6 +584,66 @@
644
584
  "description": "表单复选框构件",
645
585
  "category": "form-input-basic"
646
586
  },
587
+ {
588
+ "name": "eo-submit-buttons",
589
+ "alias": [
590
+ "form.submit-buttons"
591
+ ],
592
+ "properties": [
593
+ {
594
+ "name": "submitText",
595
+ "description": "提交按钮的文字",
596
+ "default": "\"提交\"",
597
+ "type": "string"
598
+ },
599
+ {
600
+ "name": "cancelText",
601
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
602
+ "type": "string"
603
+ },
604
+ {
605
+ "name": "disableAfterClick",
606
+ "description": "点击确定按钮后自动禁用",
607
+ "type": "boolean"
608
+ },
609
+ {
610
+ "name": "submitDisabled",
611
+ "description": "禁用提交按钮",
612
+ "type": "boolean"
613
+ },
614
+ {
615
+ "name": "submitType",
616
+ "description": "提交按钮类型",
617
+ "type": "ButtonType"
618
+ },
619
+ {
620
+ "name": "cancelType",
621
+ "description": "取消按钮类型",
622
+ "type": "ButtonType"
623
+ }
624
+ ],
625
+ "events": [
626
+ {
627
+ "name": "submit",
628
+ "description": "点击提交按钮触发的事件",
629
+ "detail": {
630
+ "type": "void"
631
+ }
632
+ },
633
+ {
634
+ "name": "cancel",
635
+ "description": "点击取消按钮触发的事件",
636
+ "detail": {
637
+ "type": "void"
638
+ }
639
+ }
640
+ ],
641
+ "slots": [],
642
+ "methods": [],
643
+ "parts": [],
644
+ "description": "表单提交按钮",
645
+ "category": "form-input-basic"
646
+ },
647
647
  {
648
648
  "name": "eo-dynamic-form-item",
649
649
  "alias": [