@next-bricks/form 1.18.3 → 1.18.4

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.
Files changed (29) hide show
  1. package/dist/bricks.json +21 -21
  2. package/dist/chunks/{5026.cbd59622.js → 5026.244ab89f.js} +3 -3
  3. package/dist/chunks/5026.244ab89f.js.map +1 -0
  4. package/dist/chunks/845.604f544f.js +3 -0
  5. package/dist/chunks/845.604f544f.js.map +1 -0
  6. package/dist/chunks/8653.40d3dc19.js +3 -0
  7. package/dist/chunks/8653.40d3dc19.js.map +1 -0
  8. package/dist/chunks/{eo-radio.417cf227.js → eo-radio.7f02e671.js} +3 -3
  9. package/dist/chunks/eo-radio.7f02e671.js.map +1 -0
  10. package/dist/chunks/{main.8142a5fd.js → main.4aaf5ec7.js} +2 -2
  11. package/dist/chunks/{main.8142a5fd.js.map → main.4aaf5ec7.js.map} +1 -1
  12. package/dist/examples.json +9 -9
  13. package/dist/{index.1fbeb411.js → index.759bf99d.js} +2 -2
  14. package/dist/{index.1fbeb411.js.map → index.759bf99d.js.map} +1 -1
  15. package/dist/manifest.json +405 -405
  16. package/dist/types.json +1354 -1328
  17. package/dist-types/interface.d.ts +1 -0
  18. package/docs/eo-radio.md +20 -0
  19. package/package.json +2 -2
  20. package/dist/chunks/5026.cbd59622.js.map +0 -1
  21. package/dist/chunks/845.3aba1f56.js +0 -3
  22. package/dist/chunks/845.3aba1f56.js.map +0 -1
  23. package/dist/chunks/8653.4d55aa0d.js +0 -3
  24. package/dist/chunks/8653.4d55aa0d.js.map +0 -1
  25. package/dist/chunks/eo-radio.417cf227.js.map +0 -1
  26. /package/dist/chunks/{5026.cbd59622.js.LICENSE.txt → 5026.244ab89f.js.LICENSE.txt} +0 -0
  27. /package/dist/chunks/{845.3aba1f56.js.LICENSE.txt → 845.604f544f.js.LICENSE.txt} +0 -0
  28. /package/dist/chunks/{8653.4d55aa0d.js.LICENSE.txt → 8653.40d3dc19.js.LICENSE.txt} +0 -0
  29. /package/dist/chunks/{eo-radio.417cf227.js.LICENSE.txt → eo-radio.7f02e671.js.LICENSE.txt} +0 -0
@@ -3,6 +3,357 @@
3
3
  "package": "@next-bricks/form",
4
4
  "name": "form",
5
5
  "bricks": [
6
+ {
7
+ "name": "eo-textarea",
8
+ "alias": [
9
+ "form.general-textarea"
10
+ ],
11
+ "properties": [
12
+ {
13
+ "name": "name",
14
+ "description": "字段名称",
15
+ "type": "string"
16
+ },
17
+ {
18
+ "name": "label",
19
+ "description": "标签文字",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "value",
24
+ "description": "值",
25
+ "type": "string"
26
+ },
27
+ {
28
+ "name": "placeholder",
29
+ "description": "占位说明",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "name": "disabled",
34
+ "description": "是否禁用",
35
+ "type": "boolean"
36
+ },
37
+ {
38
+ "name": "minLength",
39
+ "description": "最小长度",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "maxLength",
44
+ "description": "最大长度",
45
+ "type": "number"
46
+ },
47
+ {
48
+ "name": "autoSize",
49
+ "description": "大小自适应",
50
+ "attribute": false,
51
+ "type": "AutoSize"
52
+ },
53
+ {
54
+ "name": "required",
55
+ "description": "是否必填",
56
+ "type": "boolean"
57
+ },
58
+ {
59
+ "name": "max",
60
+ "description": "表单校验最大长度",
61
+ "type": "number"
62
+ },
63
+ {
64
+ "name": "min",
65
+ "description": "表单校验最小长度",
66
+ "type": "number"
67
+ },
68
+ {
69
+ "name": "message",
70
+ "description": "校验信息",
71
+ "attribute": false,
72
+ "type": "Record<string, string>"
73
+ },
74
+ {
75
+ "name": "textareaStyle",
76
+ "description": "自定义样式",
77
+ "attribute": false,
78
+ "type": "React.CSSProperties"
79
+ },
80
+ {
81
+ "name": "themeVariant",
82
+ "description": "主题变体",
83
+ "type": "\"default\" | \"elevo\""
84
+ }
85
+ ],
86
+ "events": [
87
+ {
88
+ "name": "change",
89
+ "description": "",
90
+ "detail": {
91
+ "description": null,
92
+ "type": "string"
93
+ }
94
+ }
95
+ ],
96
+ "slots": [],
97
+ "methods": [
98
+ {
99
+ "name": "focusTextarea",
100
+ "params": [],
101
+ "description": "focus",
102
+ "returns": {}
103
+ }
104
+ ],
105
+ "parts": [],
106
+ "description": "通用多行文本输入框构件",
107
+ "category": "form-input-basic"
108
+ },
109
+ {
110
+ "name": "eo-form",
111
+ "alias": [
112
+ "form.general-form"
113
+ ],
114
+ "properties": [
115
+ {
116
+ "name": "staticValues",
117
+ "attribute": false,
118
+ "type": "Record<string, unknown>"
119
+ },
120
+ {
121
+ "name": "layout",
122
+ "description": "布局方式(默认 vertical 布局)",
123
+ "default": "vertical",
124
+ "type": "Layout"
125
+ },
126
+ {
127
+ "name": "size",
128
+ "description": "表单组件尺寸",
129
+ "type": "ComponentSize"
130
+ },
131
+ {
132
+ "name": "labelCol",
133
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
134
+ "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 }",
135
+ "attribute": false,
136
+ "type": "ColProps"
137
+ },
138
+ {
139
+ "name": "wrapperCol",
140
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
141
+ "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 }",
142
+ "attribute": false,
143
+ "type": "ColProps"
144
+ },
145
+ {
146
+ "name": "formStyle",
147
+ "attribute": false,
148
+ "type": "React.CSSProperties"
149
+ },
150
+ {
151
+ "name": "textContent",
152
+ "type": "string",
153
+ "description": "文本内容"
154
+ }
155
+ ],
156
+ "events": [
157
+ {
158
+ "name": "values.change",
159
+ "description": "表单值变更事件",
160
+ "detail": {
161
+ "description": null,
162
+ "type": "Record<string, unknown>"
163
+ }
164
+ },
165
+ {
166
+ "name": "validate.success",
167
+ "description": "表单验证成功时触发事件",
168
+ "detail": {
169
+ "type": "Record<string, unknown>"
170
+ }
171
+ },
172
+ {
173
+ "name": "validate.error",
174
+ "description": "表单验证报错时触发事件",
175
+ "detail": {
176
+ "type": "(MessageBody & { name: string })[]"
177
+ }
178
+ }
179
+ ],
180
+ "slots": [
181
+ {
182
+ "name": null,
183
+ "description": "表单内容"
184
+ }
185
+ ],
186
+ "methods": [
187
+ {
188
+ "name": "validate",
189
+ "params": [],
190
+ "description": "表单校验方法",
191
+ "returns": {
192
+ "type": "boolean | Record<string, unknown>"
193
+ }
194
+ },
195
+ {
196
+ "name": "setInitValue",
197
+ "params": [
198
+ {
199
+ "name": "values",
200
+ "type": "Record<string, unknown>"
201
+ },
202
+ {
203
+ "name": "options",
204
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
205
+ }
206
+ ],
207
+ "description": "表单设置值方法",
208
+ "returns": {}
209
+ },
210
+ {
211
+ "name": "resetFields",
212
+ "params": [
213
+ {
214
+ "name": "name",
215
+ "type": "string"
216
+ }
217
+ ],
218
+ "description": "表单重置值方法",
219
+ "returns": {}
220
+ },
221
+ {
222
+ "name": "getFieldsValue",
223
+ "params": [
224
+ {
225
+ "name": "name",
226
+ "type": "string"
227
+ }
228
+ ],
229
+ "description": "获取表单值方法",
230
+ "returns": {}
231
+ },
232
+ {
233
+ "name": "validateField",
234
+ "params": [
235
+ {
236
+ "name": "name",
237
+ "type": "string"
238
+ }
239
+ ],
240
+ "description": "校验表单字段方法",
241
+ "returns": {}
242
+ },
243
+ {
244
+ "name": "resetValidateState",
245
+ "params": [],
246
+ "description": "重置表单校验状态方法",
247
+ "returns": {}
248
+ }
249
+ ],
250
+ "parts": [],
251
+ "description": "表单构件",
252
+ "category": "form-input-basic"
253
+ },
254
+ {
255
+ "name": "eo-radio",
256
+ "alias": [
257
+ "form.general-radio"
258
+ ],
259
+ "properties": [
260
+ {
261
+ "name": "name",
262
+ "description": "下拉框字段名",
263
+ "type": "string"
264
+ },
265
+ {
266
+ "name": "label",
267
+ "description": "单选框字段说明",
268
+ "type": "string"
269
+ },
270
+ {
271
+ "name": "options",
272
+ "description": "单选框选项表",
273
+ "required": true,
274
+ "attribute": false,
275
+ "type": "GeneralOption[]"
276
+ },
277
+ {
278
+ "name": "value",
279
+ "description": "单选框当前选中始值",
280
+ "attribute": false,
281
+ "type": "any"
282
+ },
283
+ {
284
+ "name": "required",
285
+ "description": "是否必填",
286
+ "type": "boolean"
287
+ },
288
+ {
289
+ "name": "message",
290
+ "description": "校验文本信息",
291
+ "attribute": false,
292
+ "type": "Record<string, string>"
293
+ },
294
+ {
295
+ "name": "disabled",
296
+ "description": "是否禁用",
297
+ "type": "boolean"
298
+ },
299
+ {
300
+ "name": "type",
301
+ "description": "单选框样式类型",
302
+ "default": "\"default\"",
303
+ "type": "RadioType"
304
+ },
305
+ {
306
+ "name": "ui",
307
+ "description": "UI样式",
308
+ "default": "\"default\"",
309
+ "type": "UIType"
310
+ },
311
+ {
312
+ "name": "size",
313
+ "description": "大小,只对按钮样式生效",
314
+ "default": "\"medium\"",
315
+ "type": "ComponentSize"
316
+ },
317
+ {
318
+ "name": "customStyle",
319
+ "description": "自定义radio的外层样式",
320
+ "attribute": false,
321
+ "type": "React.CSSProperties"
322
+ },
323
+ {
324
+ "name": "useBrick",
325
+ "description": "自定义radio的内容",
326
+ "attribute": false,
327
+ "type": "UseSingleBrickConf"
328
+ },
329
+ {
330
+ "name": "themeVariant",
331
+ "description": "主题变体",
332
+ "type": "\"default\" | \"elevo\""
333
+ }
334
+ ],
335
+ "events": [
336
+ {
337
+ "name": "change",
338
+ "description": "值变化事件",
339
+ "detail": {
340
+ "type": "GeneralComplexOption | undefined"
341
+ }
342
+ },
343
+ {
344
+ "name": "options.change",
345
+ "description": "选项列表变化事件",
346
+ "detail": {
347
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
348
+ }
349
+ }
350
+ ],
351
+ "slots": [],
352
+ "methods": [],
353
+ "parts": [],
354
+ "description": "通用单选构件",
355
+ "category": "form-input-basic"
356
+ },
6
357
  {
7
358
  "name": "eo-select",
8
359
  "alias": [
@@ -202,209 +553,10 @@
202
553
  "description": "提交按钮类型",
203
554
  "type": "ButtonType"
204
555
  },
205
- {
206
- "name": "cancelType",
207
- "description": "取消按钮类型",
208
- "type": "ButtonType"
209
- },
210
- {
211
- "name": "themeVariant",
212
- "description": "主题变体",
213
- "type": "\"default\" | \"elevo\""
214
- }
215
- ],
216
- "events": [
217
- {
218
- "name": "submit",
219
- "description": "点击提交按钮触发的事件",
220
- "detail": {
221
- "type": "void"
222
- }
223
- },
224
- {
225
- "name": "cancel",
226
- "description": "点击取消按钮触发的事件",
227
- "detail": {
228
- "type": "void"
229
- }
230
- }
231
- ],
232
- "slots": [],
233
- "methods": [],
234
- "parts": [],
235
- "description": "表单提交按钮",
236
- "category": "form-input-basic"
237
- },
238
- {
239
- "name": "eo-checkbox",
240
- "alias": [
241
- "form.general-checkbox"
242
- ],
243
- "properties": [
244
- {
245
- "name": "name",
246
- "description": "字段名称",
247
- "type": "string"
248
- },
249
- {
250
- "name": "label",
251
- "description": "字段说明",
252
- "type": "string"
253
- },
254
- {
255
- "name": "value",
256
- "description": "值",
257
- "attribute": false,
258
- "type": "CheckboxValueType[]"
259
- },
260
- {
261
- "name": "options",
262
- "description": "多选框选项表",
263
- "required": true,
264
- "default": "[]",
265
- "attribute": false,
266
- "type": "CheckboxOptionType[]"
267
- },
268
- {
269
- "name": "type",
270
- "description": "类型",
271
- "default": "\"default\"",
272
- "type": "CheckboxType"
273
- },
274
- {
275
- "name": "disabled",
276
- "description": "是否禁用",
277
- "type": "boolean"
278
- },
279
- {
280
- "name": "isCustom",
281
- "description": "是否为自定义",
282
- "default": "false",
283
- "type": "boolean"
284
- },
285
- {
286
- "name": "required",
287
- "description": "是否必填",
288
- "type": "boolean"
289
- },
290
- {
291
- "name": "message",
292
- "description": "校验文本",
293
- "attribute": false,
294
- "type": "Record<string, string>"
295
- },
296
- {
297
- "name": "isGroup",
298
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
299
- "type": "boolean"
300
- },
301
- {
302
- "name": "optionGroups",
303
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
304
- "attribute": false,
305
- "type": "OptionGroup[]"
306
- },
307
- {
308
- "name": "themeVariant",
309
- "description": "主题变体",
310
- "type": "\"default\" | \"elevo\""
311
- }
312
- ],
313
- "events": [
314
- {
315
- "name": "change",
316
- "description": "复选框变化事件",
317
- "detail": {
318
- "type": "CheckboxOptionType[]"
319
- }
320
- },
321
- {
322
- "name": "options.change",
323
- "description": "复选框变化事件",
324
- "detail": {
325
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
326
- }
327
- }
328
- ],
329
- "slots": [],
330
- "methods": [],
331
- "parts": [],
332
- "description": "表单复选框构件",
333
- "category": "form-input-basic"
334
- },
335
- {
336
- "name": "eo-textarea",
337
- "alias": [
338
- "form.general-textarea"
339
- ],
340
- "properties": [
341
- {
342
- "name": "name",
343
- "description": "字段名称",
344
- "type": "string"
345
- },
346
- {
347
- "name": "label",
348
- "description": "标签文字",
349
- "type": "string"
350
- },
351
- {
352
- "name": "value",
353
- "description": "值",
354
- "type": "string"
355
- },
356
- {
357
- "name": "placeholder",
358
- "description": "占位说明",
359
- "type": "string"
360
- },
361
- {
362
- "name": "disabled",
363
- "description": "是否禁用",
364
- "type": "boolean"
365
- },
366
- {
367
- "name": "minLength",
368
- "description": "最小长度",
369
- "type": "number"
370
- },
371
- {
372
- "name": "maxLength",
373
- "description": "最大长度",
374
- "type": "number"
375
- },
376
- {
377
- "name": "autoSize",
378
- "description": "大小自适应",
379
- "attribute": false,
380
- "type": "AutoSize"
381
- },
382
- {
383
- "name": "required",
384
- "description": "是否必填",
385
- "type": "boolean"
386
- },
387
- {
388
- "name": "max",
389
- "description": "表单校验最大长度",
390
- "type": "number"
391
- },
392
- {
393
- "name": "min",
394
- "description": "表单校验最小长度",
395
- "type": "number"
396
- },
397
- {
398
- "name": "message",
399
- "description": "校验信息",
400
- "attribute": false,
401
- "type": "Record<string, string>"
402
- },
403
- {
404
- "name": "textareaStyle",
405
- "description": "自定义样式",
406
- "attribute": false,
407
- "type": "React.CSSProperties"
556
+ {
557
+ "name": "cancelType",
558
+ "description": "取消按钮类型",
559
+ "type": "ButtonType"
408
560
  },
409
561
  {
410
562
  "name": "themeVariant",
@@ -414,66 +566,61 @@
414
566
  ],
415
567
  "events": [
416
568
  {
417
- "name": "change",
418
- "description": "",
569
+ "name": "submit",
570
+ "description": "点击提交按钮触发的事件",
419
571
  "detail": {
420
- "description": null,
421
- "type": "string"
572
+ "type": "void"
422
573
  }
423
- }
424
- ],
425
- "slots": [],
426
- "methods": [
574
+ },
427
575
  {
428
- "name": "focusTextarea",
429
- "params": [],
430
- "description": "focus",
431
- "returns": {}
576
+ "name": "cancel",
577
+ "description": "点击取消按钮触发的事件",
578
+ "detail": {
579
+ "type": "void"
580
+ }
432
581
  }
433
582
  ],
583
+ "slots": [],
584
+ "methods": [],
434
585
  "parts": [],
435
- "description": "通用多行文本输入框构件",
586
+ "description": "表单提交按钮",
436
587
  "category": "form-input-basic"
437
588
  },
438
589
  {
439
- "name": "eo-radio",
590
+ "name": "eo-checkbox",
440
591
  "alias": [
441
- "form.general-radio"
592
+ "form.general-checkbox"
442
593
  ],
443
594
  "properties": [
444
595
  {
445
596
  "name": "name",
446
- "description": "下拉框字段名",
597
+ "description": "字段名称",
447
598
  "type": "string"
448
599
  },
449
600
  {
450
601
  "name": "label",
451
- "description": "单选框字段说明",
602
+ "description": "字段说明",
452
603
  "type": "string"
453
604
  },
454
- {
455
- "name": "options",
456
- "description": "单选框选项表",
457
- "required": true,
458
- "attribute": false,
459
- "type": "GeneralOption[]"
460
- },
461
605
  {
462
606
  "name": "value",
463
- "description": "单选框当前选中始值",
607
+ "description": "",
464
608
  "attribute": false,
465
- "type": "any"
609
+ "type": "CheckboxValueType[]"
466
610
  },
467
611
  {
468
- "name": "required",
469
- "description": "是否必填",
470
- "type": "boolean"
612
+ "name": "options",
613
+ "description": "多选框选项表",
614
+ "required": true,
615
+ "default": "[]",
616
+ "attribute": false,
617
+ "type": "CheckboxOptionType[]"
471
618
  },
472
619
  {
473
- "name": "message",
474
- "description": "校验文本信息",
475
- "attribute": false,
476
- "type": "Record<string, string>"
620
+ "name": "type",
621
+ "description": "类型",
622
+ "default": "\"default\"",
623
+ "type": "CheckboxType"
477
624
  },
478
625
  {
479
626
  "name": "disabled",
@@ -481,34 +628,32 @@
481
628
  "type": "boolean"
482
629
  },
483
630
  {
484
- "name": "type",
485
- "description": "单选框样式类型",
486
- "default": "\"default\"",
487
- "type": "RadioType"
631
+ "name": "isCustom",
632
+ "description": "是否为自定义",
633
+ "default": "false",
634
+ "type": "boolean"
488
635
  },
489
636
  {
490
- "name": "ui",
491
- "description": "UI样式",
492
- "default": "\"default\"",
493
- "type": "UIType"
637
+ "name": "required",
638
+ "description": "是否必填",
639
+ "type": "boolean"
494
640
  },
495
641
  {
496
- "name": "size",
497
- "description": "大小,只对按钮样式生效",
498
- "default": "\"medium\"",
499
- "type": "ComponentSize"
642
+ "name": "message",
643
+ "description": "校验文本",
644
+ "attribute": false,
645
+ "type": "Record<string, string>"
500
646
  },
501
647
  {
502
- "name": "customStyle",
503
- "description": "自定义radio的外层样式",
504
- "attribute": false,
505
- "type": "React.CSSProperties"
648
+ "name": "isGroup",
649
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
650
+ "type": "boolean"
506
651
  },
507
652
  {
508
- "name": "useBrick",
509
- "description": "自定义radio的内容",
653
+ "name": "optionGroups",
654
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
510
655
  "attribute": false,
511
- "type": "UseSingleBrickConf"
656
+ "type": "OptionGroup[]"
512
657
  },
513
658
  {
514
659
  "name": "themeVariant",
@@ -519,23 +664,23 @@
519
664
  "events": [
520
665
  {
521
666
  "name": "change",
522
- "description": "值变化事件",
667
+ "description": "复选框变化事件",
523
668
  "detail": {
524
- "type": "GeneralComplexOption | undefined"
669
+ "type": "CheckboxOptionType[]"
525
670
  }
526
671
  },
527
672
  {
528
673
  "name": "options.change",
529
- "description": "选项列表变化事件",
674
+ "description": "复选框变化事件",
530
675
  "detail": {
531
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
676
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
532
677
  }
533
678
  }
534
679
  ],
535
680
  "slots": [],
536
681
  "methods": [],
537
682
  "parts": [],
538
- "description": "通用单选构件",
683
+ "description": "表单复选框构件",
539
684
  "category": "form-input-basic"
540
685
  },
541
686
  {
@@ -702,151 +847,6 @@
702
847
  "description": "搜索框",
703
848
  "category": "interact-basic"
704
849
  },
705
- {
706
- "name": "eo-form",
707
- "alias": [
708
- "form.general-form"
709
- ],
710
- "properties": [
711
- {
712
- "name": "staticValues",
713
- "attribute": false,
714
- "type": "Record<string, unknown>"
715
- },
716
- {
717
- "name": "layout",
718
- "description": "布局方式(默认 vertical 布局)",
719
- "default": "vertical",
720
- "type": "Layout"
721
- },
722
- {
723
- "name": "size",
724
- "description": "表单组件尺寸",
725
- "type": "ComponentSize"
726
- },
727
- {
728
- "name": "labelCol",
729
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
730
- "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 }",
731
- "attribute": false,
732
- "type": "ColProps"
733
- },
734
- {
735
- "name": "wrapperCol",
736
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
737
- "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 }",
738
- "attribute": false,
739
- "type": "ColProps"
740
- },
741
- {
742
- "name": "formStyle",
743
- "attribute": false,
744
- "type": "React.CSSProperties"
745
- },
746
- {
747
- "name": "textContent",
748
- "type": "string",
749
- "description": "文本内容"
750
- }
751
- ],
752
- "events": [
753
- {
754
- "name": "values.change",
755
- "description": "表单值变更事件",
756
- "detail": {
757
- "description": null,
758
- "type": "Record<string, unknown>"
759
- }
760
- },
761
- {
762
- "name": "validate.success",
763
- "description": "表单验证成功时触发事件",
764
- "detail": {
765
- "type": "Record<string, unknown>"
766
- }
767
- },
768
- {
769
- "name": "validate.error",
770
- "description": "表单验证报错时触发事件",
771
- "detail": {
772
- "type": "(MessageBody & { name: string })[]"
773
- }
774
- }
775
- ],
776
- "slots": [
777
- {
778
- "name": null,
779
- "description": "表单内容"
780
- }
781
- ],
782
- "methods": [
783
- {
784
- "name": "validate",
785
- "params": [],
786
- "description": "表单校验方法",
787
- "returns": {
788
- "type": "boolean | Record<string, unknown>"
789
- }
790
- },
791
- {
792
- "name": "setInitValue",
793
- "params": [
794
- {
795
- "name": "values",
796
- "type": "Record<string, unknown>"
797
- },
798
- {
799
- "name": "options",
800
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
801
- }
802
- ],
803
- "description": "表单设置值方法",
804
- "returns": {}
805
- },
806
- {
807
- "name": "resetFields",
808
- "params": [
809
- {
810
- "name": "name",
811
- "type": "string"
812
- }
813
- ],
814
- "description": "表单重置值方法",
815
- "returns": {}
816
- },
817
- {
818
- "name": "getFieldsValue",
819
- "params": [
820
- {
821
- "name": "name",
822
- "type": "string"
823
- }
824
- ],
825
- "description": "获取表单值方法",
826
- "returns": {}
827
- },
828
- {
829
- "name": "validateField",
830
- "params": [
831
- {
832
- "name": "name",
833
- "type": "string"
834
- }
835
- ],
836
- "description": "校验表单字段方法",
837
- "returns": {}
838
- },
839
- {
840
- "name": "resetValidateState",
841
- "params": [],
842
- "description": "重置表单校验状态方法",
843
- "returns": {}
844
- }
845
- ],
846
- "parts": [],
847
- "description": "表单构件",
848
- "category": "form-input-basic"
849
- },
850
850
  {
851
851
  "name": "eo-icon-select",
852
852
  "alias": [