@next-bricks/form 1.16.1 → 1.16.3

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 (34) hide show
  1. package/dist/bricks.json +19 -19
  2. package/dist/chunks/6773.fa777412.js +2 -0
  3. package/dist/chunks/6773.fa777412.js.map +1 -0
  4. package/dist/chunks/8653.6f557476.js +3 -0
  5. package/dist/chunks/8653.6f557476.js.map +1 -0
  6. package/dist/chunks/eo-select.3eb14338.js +3 -0
  7. package/dist/chunks/{eo-select.0e3b0626.js.map → eo-select.3eb14338.js.map} +1 -1
  8. package/dist/chunks/eo-textarea.95aa303c.js +3 -0
  9. package/dist/chunks/eo-textarea.95aa303c.js.map +1 -0
  10. package/dist/chunks/eo-time-range-picker.1a1cddcd.js +2 -0
  11. package/dist/chunks/eo-time-range-picker.1a1cddcd.js.map +1 -0
  12. package/dist/chunks/{main.0d760812.js → main.f5482176.js} +2 -2
  13. package/dist/chunks/{main.0d760812.js.map → main.f5482176.js.map} +1 -1
  14. package/dist/examples.json +8 -8
  15. package/dist/index.c8a00bfe.js +2 -0
  16. package/dist/index.c8a00bfe.js.map +1 -0
  17. package/dist/manifest.json +281 -281
  18. package/dist/types.json +634 -634
  19. package/package.json +2 -2
  20. package/dist/chunks/5347.33be680f.js +0 -3
  21. package/dist/chunks/5347.33be680f.js.map +0 -1
  22. package/dist/chunks/6773.ab912e2d.js +0 -2
  23. package/dist/chunks/6773.ab912e2d.js.map +0 -1
  24. package/dist/chunks/eo-select.0e3b0626.js +0 -3
  25. package/dist/chunks/eo-textarea.66c4e981.js +0 -3
  26. package/dist/chunks/eo-textarea.66c4e981.js.map +0 -1
  27. package/dist/chunks/eo-time-range-picker.586762ea.js +0 -2
  28. package/dist/chunks/eo-time-range-picker.586762ea.js.map +0 -1
  29. package/dist/index.47ef71b7.js +0 -2
  30. package/dist/index.47ef71b7.js.map +0 -1
  31. package/dist-types/textarea/calculateAutoSizeStyle.d.ts +0 -1
  32. /package/dist/chunks/{5347.33be680f.js.LICENSE.txt → 8653.6f557476.js.LICENSE.txt} +0 -0
  33. /package/dist/chunks/{eo-select.0e3b0626.js.LICENSE.txt → eo-select.3eb14338.js.LICENSE.txt} +0 -0
  34. /package/dist/chunks/{eo-textarea.66c4e981.js.LICENSE.txt → eo-textarea.95aa303c.js.LICENSE.txt} +0 -0
@@ -3,6 +3,249 @@
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
+ "events": [
82
+ {
83
+ "name": "change",
84
+ "description": "",
85
+ "detail": {
86
+ "description": null,
87
+ "type": "string"
88
+ }
89
+ }
90
+ ],
91
+ "slots": [],
92
+ "methods": [
93
+ {
94
+ "name": "focusTextarea",
95
+ "params": [],
96
+ "description": "focus",
97
+ "returns": {}
98
+ }
99
+ ],
100
+ "parts": [],
101
+ "description": "通用多行文本输入框构件",
102
+ "category": "form-input-basic"
103
+ },
104
+ {
105
+ "name": "eo-form",
106
+ "alias": [
107
+ "form.general-form"
108
+ ],
109
+ "properties": [
110
+ {
111
+ "name": "staticValues",
112
+ "attribute": false,
113
+ "type": "Record<string, unknown>"
114
+ },
115
+ {
116
+ "name": "layout",
117
+ "description": "布局方式(默认 vertical 布局)",
118
+ "default": "vertical",
119
+ "type": "Layout"
120
+ },
121
+ {
122
+ "name": "size",
123
+ "description": "表单组件尺寸",
124
+ "type": "ComponentSize"
125
+ },
126
+ {
127
+ "name": "labelCol",
128
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
129
+ "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 }",
130
+ "attribute": false,
131
+ "type": "ColProps"
132
+ },
133
+ {
134
+ "name": "wrapperCol",
135
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
136
+ "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 }",
137
+ "attribute": false,
138
+ "type": "ColProps"
139
+ },
140
+ {
141
+ "name": "formStyle",
142
+ "attribute": false,
143
+ "type": "React.CSSProperties"
144
+ },
145
+ {
146
+ "name": "textContent",
147
+ "type": "string",
148
+ "description": "文本内容"
149
+ }
150
+ ],
151
+ "events": [
152
+ {
153
+ "name": "values.change",
154
+ "description": "表单值变更事件",
155
+ "detail": {
156
+ "description": null,
157
+ "type": "Record<string, unknown>"
158
+ }
159
+ },
160
+ {
161
+ "name": "validate.success",
162
+ "description": "表单验证成功时触发事件",
163
+ "detail": {
164
+ "type": "Record<string, unknown>"
165
+ }
166
+ },
167
+ {
168
+ "name": "validate.error",
169
+ "description": "表单验证报错时触发事件",
170
+ "detail": {
171
+ "type": "(MessageBody & { name: string })[]"
172
+ }
173
+ }
174
+ ],
175
+ "slots": [
176
+ {
177
+ "name": null,
178
+ "description": "表单内容"
179
+ }
180
+ ],
181
+ "methods": [
182
+ {
183
+ "name": "validate",
184
+ "params": [],
185
+ "description": "表单校验方法",
186
+ "returns": {
187
+ "type": "boolean | Record<string, unknown>"
188
+ }
189
+ },
190
+ {
191
+ "name": "setInitValue",
192
+ "params": [
193
+ {
194
+ "name": "values",
195
+ "type": "Record<string, unknown>"
196
+ },
197
+ {
198
+ "name": "options",
199
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
200
+ }
201
+ ],
202
+ "description": "表单设置值方法",
203
+ "returns": {}
204
+ },
205
+ {
206
+ "name": "resetFields",
207
+ "params": [
208
+ {
209
+ "name": "name",
210
+ "type": "string"
211
+ }
212
+ ],
213
+ "description": "表单重置值方法",
214
+ "returns": {}
215
+ },
216
+ {
217
+ "name": "getFieldsValue",
218
+ "params": [
219
+ {
220
+ "name": "name",
221
+ "type": "string"
222
+ }
223
+ ],
224
+ "description": "获取表单值方法",
225
+ "returns": {}
226
+ },
227
+ {
228
+ "name": "validateField",
229
+ "params": [
230
+ {
231
+ "name": "name",
232
+ "type": "string"
233
+ }
234
+ ],
235
+ "description": "校验表单字段方法",
236
+ "returns": {}
237
+ },
238
+ {
239
+ "name": "resetValidateState",
240
+ "params": [],
241
+ "description": "重置表单校验状态方法",
242
+ "returns": {}
243
+ }
244
+ ],
245
+ "parts": [],
246
+ "description": "表单构件",
247
+ "category": "form-input-basic"
248
+ },
6
249
  {
7
250
  "name": "eo-radio",
8
251
  "alias": [
@@ -316,9 +559,9 @@
316
559
  "category": "form-input-basic"
317
560
  },
318
561
  {
319
- "name": "eo-textarea",
562
+ "name": "eo-checkbox",
320
563
  "alias": [
321
- "form.general-textarea"
564
+ "form.general-checkbox"
322
565
  ],
323
566
  "properties": [
324
567
  {
@@ -328,234 +571,83 @@
328
571
  },
329
572
  {
330
573
  "name": "label",
331
- "description": "标签文字",
574
+ "description": "字段说明",
332
575
  "type": "string"
333
576
  },
334
577
  {
335
578
  "name": "value",
336
579
  "description": "值",
337
- "type": "string"
580
+ "attribute": false,
581
+ "type": "CheckboxValueType[]"
338
582
  },
339
583
  {
340
- "name": "placeholder",
341
- "description": "占位说明",
342
- "type": "string"
343
- },
344
- {
345
- "name": "disabled",
346
- "description": "是否禁用",
347
- "type": "boolean"
584
+ "name": "options",
585
+ "description": "多选框选项表",
586
+ "required": true,
587
+ "default": "[]",
588
+ "attribute": false,
589
+ "type": "CheckboxOptionType[]"
348
590
  },
349
591
  {
350
- "name": "minLength",
351
- "description": "最小长度",
352
- "type": "number"
592
+ "name": "type",
593
+ "description": "类型",
594
+ "default": "\"default\"",
595
+ "type": "CheckboxType"
353
596
  },
354
597
  {
355
- "name": "maxLength",
356
- "description": "最大长度",
357
- "type": "number"
598
+ "name": "disabled",
599
+ "description": "是否禁用",
600
+ "type": "boolean"
358
601
  },
359
602
  {
360
- "name": "autoSize",
361
- "description": "大小自适应",
362
- "attribute": false,
363
- "type": "AutoSize"
603
+ "name": "isCustom",
604
+ "description": "是否为自定义",
605
+ "default": "false",
606
+ "type": "boolean"
364
607
  },
365
608
  {
366
609
  "name": "required",
367
610
  "description": "是否必填",
368
611
  "type": "boolean"
369
612
  },
370
- {
371
- "name": "max",
372
- "description": "表单校验最大长度",
373
- "type": "number"
374
- },
375
- {
376
- "name": "min",
377
- "description": "表单校验最小长度",
378
- "type": "number"
379
- },
380
613
  {
381
614
  "name": "message",
382
- "description": "校验信息",
615
+ "description": "校验文本",
383
616
  "attribute": false,
384
617
  "type": "Record<string, string>"
385
618
  },
386
619
  {
387
- "name": "textareaStyle",
388
- "description": "自定义样式",
389
- "attribute": false,
390
- "type": "React.CSSProperties"
391
- }
392
- ],
393
- "events": [
394
- {
395
- "name": "change",
396
- "description": "",
397
- "detail": {
398
- "description": null,
399
- "type": "string"
400
- }
401
- }
402
- ],
403
- "slots": [],
404
- "methods": [
405
- {
406
- "name": "focusTextarea",
407
- "params": [],
408
- "description": "focus",
409
- "returns": {}
410
- }
411
- ],
412
- "parts": [],
413
- "description": "通用多行文本输入框构件",
414
- "category": "form-input-basic"
415
- },
416
- {
417
- "name": "eo-form",
418
- "alias": [
419
- "form.general-form"
420
- ],
421
- "properties": [
422
- {
423
- "name": "staticValues",
424
- "attribute": false,
425
- "type": "Record<string, unknown>"
426
- },
427
- {
428
- "name": "layout",
429
- "description": "布局方式(默认 vertical 布局)",
430
- "default": "vertical",
431
- "type": "Layout"
432
- },
433
- {
434
- "name": "size",
435
- "description": "表单组件尺寸",
436
- "type": "ComponentSize"
437
- },
438
- {
439
- "name": "labelCol",
440
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
441
- "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 }",
442
- "attribute": false,
443
- "type": "ColProps"
444
- },
445
- {
446
- "name": "wrapperCol",
447
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
448
- "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 }",
449
- "attribute": false,
450
- "type": "ColProps"
620
+ "name": "isGroup",
621
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
622
+ "type": "boolean"
451
623
  },
452
624
  {
453
- "name": "formStyle",
625
+ "name": "optionGroups",
626
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
454
627
  "attribute": false,
455
- "type": "React.CSSProperties"
456
- },
457
- {
458
- "name": "textContent",
459
- "type": "string",
460
- "description": "文本内容"
628
+ "type": "OptionGroup[]"
461
629
  }
462
630
  ],
463
631
  "events": [
464
632
  {
465
- "name": "values.change",
466
- "description": "表单值变更事件",
467
- "detail": {
468
- "description": null,
469
- "type": "Record<string, unknown>"
470
- }
471
- },
472
- {
473
- "name": "validate.success",
474
- "description": "表单验证成功时触发事件",
633
+ "name": "change",
634
+ "description": "复选框变化事件",
475
635
  "detail": {
476
- "type": "Record<string, unknown>"
636
+ "type": "CheckboxOptionType[]"
477
637
  }
478
638
  },
479
639
  {
480
- "name": "validate.error",
481
- "description": "表单验证报错时触发事件",
640
+ "name": "options.change",
641
+ "description": "复选框变化事件",
482
642
  "detail": {
483
- "type": "(MessageBody & { name: string })[]"
484
- }
485
- }
486
- ],
487
- "slots": [
488
- {
489
- "name": null,
490
- "description": "表单内容"
491
- }
492
- ],
493
- "methods": [
494
- {
495
- "name": "validate",
496
- "params": [],
497
- "description": "表单校验方法",
498
- "returns": {
499
- "type": "boolean | Record<string, unknown>"
643
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
500
644
  }
501
- },
502
- {
503
- "name": "setInitValue",
504
- "params": [
505
- {
506
- "name": "values",
507
- "type": "Record<string, unknown>"
508
- },
509
- {
510
- "name": "options",
511
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
512
- }
513
- ],
514
- "description": "表单设置值方法",
515
- "returns": {}
516
- },
517
- {
518
- "name": "resetFields",
519
- "params": [
520
- {
521
- "name": "name",
522
- "type": "string"
523
- }
524
- ],
525
- "description": "表单重置值方法",
526
- "returns": {}
527
- },
528
- {
529
- "name": "getFieldsValue",
530
- "params": [
531
- {
532
- "name": "name",
533
- "type": "string"
534
- }
535
- ],
536
- "description": "获取表单值方法",
537
- "returns": {}
538
- },
539
- {
540
- "name": "validateField",
541
- "params": [
542
- {
543
- "name": "name",
544
- "type": "string"
545
- }
546
- ],
547
- "description": "校验表单字段方法",
548
- "returns": {}
549
- },
550
- {
551
- "name": "resetValidateState",
552
- "params": [],
553
- "description": "重置表单校验状态方法",
554
- "returns": {}
555
645
  }
556
646
  ],
647
+ "slots": [],
648
+ "methods": [],
557
649
  "parts": [],
558
- "description": "表单构件",
650
+ "description": "表单复选框构件",
559
651
  "category": "form-input-basic"
560
652
  },
561
653
  {
@@ -717,98 +809,6 @@
717
809
  "description": "搜索框",
718
810
  "category": "interact-basic"
719
811
  },
720
- {
721
- "name": "eo-checkbox",
722
- "alias": [
723
- "form.general-checkbox"
724
- ],
725
- "properties": [
726
- {
727
- "name": "name",
728
- "description": "字段名称",
729
- "type": "string"
730
- },
731
- {
732
- "name": "label",
733
- "description": "字段说明",
734
- "type": "string"
735
- },
736
- {
737
- "name": "value",
738
- "description": "值",
739
- "attribute": false,
740
- "type": "CheckboxValueType[]"
741
- },
742
- {
743
- "name": "options",
744
- "description": "多选框选项表",
745
- "required": true,
746
- "default": "[]",
747
- "attribute": false,
748
- "type": "CheckboxOptionType[]"
749
- },
750
- {
751
- "name": "type",
752
- "description": "类型",
753
- "default": "\"default\"",
754
- "type": "CheckboxType"
755
- },
756
- {
757
- "name": "disabled",
758
- "description": "是否禁用",
759
- "type": "boolean"
760
- },
761
- {
762
- "name": "isCustom",
763
- "description": "是否为自定义",
764
- "default": "false",
765
- "type": "boolean"
766
- },
767
- {
768
- "name": "required",
769
- "description": "是否必填",
770
- "type": "boolean"
771
- },
772
- {
773
- "name": "message",
774
- "description": "校验文本",
775
- "attribute": false,
776
- "type": "Record<string, string>"
777
- },
778
- {
779
- "name": "isGroup",
780
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
781
- "type": "boolean"
782
- },
783
- {
784
- "name": "optionGroups",
785
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
786
- "attribute": false,
787
- "type": "OptionGroup[]"
788
- }
789
- ],
790
- "events": [
791
- {
792
- "name": "change",
793
- "description": "复选框变化事件",
794
- "detail": {
795
- "type": "CheckboxOptionType[]"
796
- }
797
- },
798
- {
799
- "name": "options.change",
800
- "description": "复选框变化事件",
801
- "detail": {
802
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
803
- }
804
- }
805
- ],
806
- "slots": [],
807
- "methods": [],
808
- "parts": [],
809
- "description": "表单复选框构件",
810
- "category": "form-input-basic"
811
- },
812
812
  {
813
813
  "name": "eo-icon-select",
814
814
  "alias": [