@next-bricks/form 1.15.8 → 1.15.10

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 (38) hide show
  1. package/dist/bricks.json +39 -39
  2. package/dist/chunks/5347.f37b5799.js +3 -0
  3. package/dist/chunks/5347.f37b5799.js.map +1 -0
  4. package/dist/chunks/{eo-date-picker.740508ba.js → eo-date-picker.79d82882.js} +2 -2
  5. package/dist/chunks/{eo-date-picker.740508ba.js.map → eo-date-picker.79d82882.js.map} +1 -1
  6. package/dist/chunks/eo-radio.3b5b1a87.js +3 -0
  7. package/dist/chunks/eo-radio.3b5b1a87.js.map +1 -0
  8. package/dist/chunks/eo-select.2cfc0a5e.js +3 -0
  9. package/dist/chunks/eo-select.2cfc0a5e.js.map +1 -0
  10. package/dist/chunks/{input.eb21f7c8.js → input.4e2e5b20.js} +3 -3
  11. package/dist/chunks/{input.eb21f7c8.js.map → input.4e2e5b20.js.map} +1 -1
  12. package/dist/chunks/main.34d81990.js +2 -0
  13. package/dist/chunks/main.34d81990.js.map +1 -0
  14. package/dist/examples.json +15 -15
  15. package/dist/index.c03af876.js +2 -0
  16. package/dist/index.c03af876.js.map +1 -0
  17. package/dist/manifest.json +534 -534
  18. package/dist/types.json +1143 -1143
  19. package/dist-types/input.d.ts +1 -1
  20. package/dist-types/radio/index.d.ts +1 -1
  21. package/dist-types/select/index.d.ts +1 -0
  22. package/package.json +2 -2
  23. package/dist/chunks/2853.13a2154a.js +0 -2
  24. package/dist/chunks/2853.13a2154a.js.map +0 -1
  25. package/dist/chunks/7138.32feb41d.js +0 -3
  26. package/dist/chunks/7138.32feb41d.js.map +0 -1
  27. package/dist/chunks/eo-radio.f7ea3494.js +0 -3
  28. package/dist/chunks/eo-radio.f7ea3494.js.map +0 -1
  29. package/dist/chunks/eo-select.a43cdd6b.js +0 -3
  30. package/dist/chunks/eo-select.a43cdd6b.js.map +0 -1
  31. package/dist/chunks/main.363d8234.js +0 -2
  32. package/dist/chunks/main.363d8234.js.map +0 -1
  33. package/dist/index.fa015fd4.js +0 -2
  34. package/dist/index.fa015fd4.js.map +0 -1
  35. /package/dist/chunks/{7138.32feb41d.js.LICENSE.txt → 5347.f37b5799.js.LICENSE.txt} +0 -0
  36. /package/dist/chunks/{eo-radio.f7ea3494.js.LICENSE.txt → eo-radio.3b5b1a87.js.LICENSE.txt} +0 -0
  37. /package/dist/chunks/{eo-select.a43cdd6b.js.LICENSE.txt → eo-select.2cfc0a5e.js.LICENSE.txt} +0 -0
  38. /package/dist/chunks/{input.eb21f7c8.js.LICENSE.txt → input.4e2e5b20.js.LICENSE.txt} +0 -0
@@ -3,249 +3,6 @@
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
- },
249
6
  {
250
7
  "name": "eo-radio",
251
8
  "alias": [
@@ -482,14 +239,74 @@
482
239
  "name": "options.change",
483
240
  "description": "选项列表变化事件",
484
241
  "detail": {
485
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
242
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
243
+ }
244
+ }
245
+ ],
246
+ "slots": [],
247
+ "methods": [],
248
+ "parts": [],
249
+ "description": "通用下拉选择构件",
250
+ "category": "form-input-basic"
251
+ },
252
+ {
253
+ "name": "eo-submit-buttons",
254
+ "alias": [
255
+ "form.submit-buttons"
256
+ ],
257
+ "properties": [
258
+ {
259
+ "name": "submitText",
260
+ "description": "提交按钮的文字",
261
+ "default": "\"提交\"",
262
+ "type": "string"
263
+ },
264
+ {
265
+ "name": "cancelText",
266
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
267
+ "type": "string"
268
+ },
269
+ {
270
+ "name": "disableAfterClick",
271
+ "description": "点击确定按钮后自动禁用",
272
+ "type": "boolean"
273
+ },
274
+ {
275
+ "name": "submitDisabled",
276
+ "description": "禁用提交按钮",
277
+ "type": "boolean"
278
+ },
279
+ {
280
+ "name": "submitType",
281
+ "description": "提交按钮类型",
282
+ "type": "ButtonType"
283
+ },
284
+ {
285
+ "name": "cancelType",
286
+ "description": "取消按钮类型",
287
+ "type": "ButtonType"
288
+ }
289
+ ],
290
+ "events": [
291
+ {
292
+ "name": "submit",
293
+ "description": "点击提交按钮触发的事件",
294
+ "detail": {
295
+ "type": "void"
296
+ }
297
+ },
298
+ {
299
+ "name": "cancel",
300
+ "description": "点击取消按钮触发的事件",
301
+ "detail": {
302
+ "type": "void"
486
303
  }
487
304
  }
488
305
  ],
489
306
  "slots": [],
490
307
  "methods": [],
491
308
  "parts": [],
492
- "description": "通用下拉选择构件",
309
+ "description": "表单提交按钮",
493
310
  "category": "form-input-basic"
494
311
  },
495
312
  {
@@ -584,66 +401,6 @@
584
401
  "description": "表单复选框构件",
585
402
  "category": "form-input-basic"
586
403
  },
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
404
  {
648
405
  "name": "eo-dynamic-form-item",
649
406
  "alias": [
@@ -736,6 +493,151 @@
736
493
  "description": "动态表单",
737
494
  "category": "form-input-basic"
738
495
  },
496
+ {
497
+ "name": "eo-form",
498
+ "alias": [
499
+ "form.general-form"
500
+ ],
501
+ "properties": [
502
+ {
503
+ "name": "staticValues",
504
+ "attribute": false,
505
+ "type": "Record<string, unknown>"
506
+ },
507
+ {
508
+ "name": "layout",
509
+ "description": "布局方式(默认 vertical 布局)",
510
+ "default": "vertical",
511
+ "type": "Layout"
512
+ },
513
+ {
514
+ "name": "size",
515
+ "description": "表单组件尺寸",
516
+ "type": "ComponentSize"
517
+ },
518
+ {
519
+ "name": "labelCol",
520
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
521
+ "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 }",
522
+ "attribute": false,
523
+ "type": "ColProps"
524
+ },
525
+ {
526
+ "name": "wrapperCol",
527
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
528
+ "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 }",
529
+ "attribute": false,
530
+ "type": "ColProps"
531
+ },
532
+ {
533
+ "name": "formStyle",
534
+ "attribute": false,
535
+ "type": "React.CSSProperties"
536
+ },
537
+ {
538
+ "name": "textContent",
539
+ "type": "string",
540
+ "description": "文本内容"
541
+ }
542
+ ],
543
+ "events": [
544
+ {
545
+ "name": "values.change",
546
+ "description": "表单值变更事件",
547
+ "detail": {
548
+ "description": null,
549
+ "type": "Record<string, unknown>"
550
+ }
551
+ },
552
+ {
553
+ "name": "validate.success",
554
+ "description": "表单验证成功时触发事件",
555
+ "detail": {
556
+ "type": "Record<string, unknown>"
557
+ }
558
+ },
559
+ {
560
+ "name": "validate.error",
561
+ "description": "表单验证报错时触发事件",
562
+ "detail": {
563
+ "type": "(MessageBody & { name: string })[]"
564
+ }
565
+ }
566
+ ],
567
+ "slots": [
568
+ {
569
+ "name": null,
570
+ "description": "表单内容"
571
+ }
572
+ ],
573
+ "methods": [
574
+ {
575
+ "name": "validate",
576
+ "params": [],
577
+ "description": "表单校验方法",
578
+ "returns": {
579
+ "type": "boolean | Record<string, unknown>"
580
+ }
581
+ },
582
+ {
583
+ "name": "setInitValue",
584
+ "params": [
585
+ {
586
+ "name": "values",
587
+ "type": "Record<string, unknown>"
588
+ },
589
+ {
590
+ "name": "options",
591
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
592
+ }
593
+ ],
594
+ "description": "表单设置值方法",
595
+ "returns": {}
596
+ },
597
+ {
598
+ "name": "resetFields",
599
+ "params": [
600
+ {
601
+ "name": "name",
602
+ "type": "string"
603
+ }
604
+ ],
605
+ "description": "表单重置值方法",
606
+ "returns": {}
607
+ },
608
+ {
609
+ "name": "getFieldsValue",
610
+ "params": [
611
+ {
612
+ "name": "name",
613
+ "type": "string"
614
+ }
615
+ ],
616
+ "description": "获取表单值方法",
617
+ "returns": {}
618
+ },
619
+ {
620
+ "name": "validateField",
621
+ "params": [
622
+ {
623
+ "name": "name",
624
+ "type": "string"
625
+ }
626
+ ],
627
+ "description": "校验表单字段方法",
628
+ "returns": {}
629
+ },
630
+ {
631
+ "name": "resetValidateState",
632
+ "params": [],
633
+ "description": "重置表单校验状态方法",
634
+ "returns": {}
635
+ }
636
+ ],
637
+ "parts": [],
638
+ "description": "表单构件",
639
+ "category": "form-input-basic"
640
+ },
739
641
  {
740
642
  "name": "eo-search",
741
643
  "alias": [
@@ -858,9 +760,9 @@
858
760
  "category": "form-input-basic"
859
761
  },
860
762
  {
861
- "name": "eo-upload-image",
763
+ "name": "eo-switch",
862
764
  "alias": [
863
- "form.upload-image"
765
+ "form.general-switch"
864
766
  ],
865
767
  "properties": [
866
768
  {
@@ -870,66 +772,66 @@
870
772
  },
871
773
  {
872
774
  "name": "label",
873
- "description": "字段说明",
775
+ "description": "字段文本",
874
776
  "type": "string"
875
777
  },
876
778
  {
877
779
  "name": "value",
878
- "description": "",
879
- "attribute": false,
880
- "type": "ImageData[]"
780
+ "description": "初始值",
781
+ "type": "boolean"
881
782
  },
882
783
  {
883
- "name": "bucketName",
884
- "description": "对象存储桶名字",
885
- "type": "string"
784
+ "name": "disabled",
785
+ "description": "是否禁用",
786
+ "type": "boolean"
886
787
  },
887
788
  {
888
- "name": "maxCount",
889
- "description": "最大上传数量",
890
- "type": "number"
789
+ "name": "size",
790
+ "description": "按钮大小,目前只支持small和非small两种大小。",
791
+ "type": "ComponentSize"
891
792
  },
892
793
  {
893
- "name": "multiple",
894
- "description": "是否支持选定的多张图片",
895
- "type": "boolean"
794
+ "name": "checkedText",
795
+ "description": "选中时的文本",
796
+ "type": "string"
896
797
  },
897
798
  {
898
- "name": "limitSize",
899
- "description": "上传大小限制(单位为 MB)",
900
- "type": "number"
799
+ "name": "unCheckedText",
800
+ "description": "非选中时的文本",
801
+ "type": "string"
901
802
  },
902
803
  {
903
- "name": "required",
904
- "description": "是否必填",
905
- "type": "boolean"
804
+ "name": "checkedIcon",
805
+ "description": "选中时的图标",
806
+ "attribute": false,
807
+ "type": "GeneralIconProps"
906
808
  },
907
809
  {
908
- "name": "message",
909
- "description": "校验文本信息",
810
+ "name": "unCheckedIcon",
811
+ "description": "非选中时的文本",
910
812
  "attribute": false,
911
- "type": "Record<string, string>"
813
+ "type": "GeneralIconProps"
912
814
  }
913
815
  ],
914
816
  "events": [
915
817
  {
916
- "name": "change",
917
- "description": "值变化时触发",
818
+ "name": "switch",
819
+ "description": "开关改变时触发",
918
820
  "detail": {
919
- "type": "ImageData[]"
821
+ "type": "boolean"
920
822
  }
921
823
  }
922
824
  ],
923
825
  "slots": [],
924
826
  "methods": [],
925
827
  "parts": [],
926
- "description": "上传图片构件",
828
+ "description": "开关",
927
829
  "category": "form-input-basic"
928
830
  },
929
831
  {
930
- "name": "eo-switch",
832
+ "name": "eo-upload-image",
931
833
  "alias": [
932
- "form.general-switch"
834
+ "form.upload-image"
933
835
  ],
934
836
  "properties": [
935
837
  {
@@ -939,60 +841,60 @@
939
841
  },
940
842
  {
941
843
  "name": "label",
942
- "description": "字段文本",
844
+ "description": "字段说明",
943
845
  "type": "string"
944
846
  },
945
847
  {
946
848
  "name": "value",
947
- "description": "初始值",
948
- "type": "boolean"
849
+ "description": "",
850
+ "attribute": false,
851
+ "type": "ImageData[]"
949
852
  },
950
853
  {
951
- "name": "disabled",
952
- "description": "是否禁用",
953
- "type": "boolean"
854
+ "name": "bucketName",
855
+ "description": "对象存储桶名字",
856
+ "type": "string"
954
857
  },
955
858
  {
956
- "name": "size",
957
- "description": "按钮大小,目前只支持small和非small两种大小。",
958
- "type": "ComponentSize"
859
+ "name": "maxCount",
860
+ "description": "最大上传数量",
861
+ "type": "number"
959
862
  },
960
863
  {
961
- "name": "checkedText",
962
- "description": "选中时的文本",
963
- "type": "string"
864
+ "name": "multiple",
865
+ "description": "是否支持选定的多张图片",
866
+ "type": "boolean"
964
867
  },
965
868
  {
966
- "name": "unCheckedText",
967
- "description": "非选中时的文本",
968
- "type": "string"
869
+ "name": "limitSize",
870
+ "description": "上传大小限制(单位为 MB)",
871
+ "type": "number"
969
872
  },
970
873
  {
971
- "name": "checkedIcon",
972
- "description": "选中时的图标",
973
- "attribute": false,
974
- "type": "GeneralIconProps"
874
+ "name": "required",
875
+ "description": "是否必填",
876
+ "type": "boolean"
975
877
  },
976
878
  {
977
- "name": "unCheckedIcon",
978
- "description": "非选中时的文本",
879
+ "name": "message",
880
+ "description": "校验文本信息",
979
881
  "attribute": false,
980
- "type": "GeneralIconProps"
882
+ "type": "Record<string, string>"
981
883
  }
982
884
  ],
983
885
  "events": [
984
886
  {
985
- "name": "switch",
986
- "description": "开关改变时触发",
887
+ "name": "change",
888
+ "description": "值变化时触发",
987
889
  "detail": {
988
- "type": "boolean"
890
+ "type": "ImageData[]"
989
891
  }
990
892
  }
991
893
  ],
992
894
  "slots": [],
993
895
  "methods": [],
994
896
  "parts": [],
995
- "description": "开关",
897
+ "description": "上传图片构件",
996
898
  "category": "form-input-basic"
997
899
  },
998
900
  {
@@ -1201,6 +1103,104 @@
1201
1103
  "description": "带候选项的输入框",
1202
1104
  "category": "form-input-basic"
1203
1105
  },
1106
+ {
1107
+ "name": "eo-textarea",
1108
+ "alias": [
1109
+ "form.general-textarea"
1110
+ ],
1111
+ "properties": [
1112
+ {
1113
+ "name": "name",
1114
+ "description": "字段名称",
1115
+ "type": "string"
1116
+ },
1117
+ {
1118
+ "name": "label",
1119
+ "description": "标签文字",
1120
+ "type": "string"
1121
+ },
1122
+ {
1123
+ "name": "value",
1124
+ "description": "值",
1125
+ "type": "string"
1126
+ },
1127
+ {
1128
+ "name": "placeholder",
1129
+ "description": "占位说明",
1130
+ "type": "string"
1131
+ },
1132
+ {
1133
+ "name": "disabled",
1134
+ "description": "是否禁用",
1135
+ "type": "boolean"
1136
+ },
1137
+ {
1138
+ "name": "minLength",
1139
+ "description": "最小长度",
1140
+ "type": "number"
1141
+ },
1142
+ {
1143
+ "name": "maxLength",
1144
+ "description": "最大长度",
1145
+ "type": "number"
1146
+ },
1147
+ {
1148
+ "name": "autoSize",
1149
+ "description": "大小自适应",
1150
+ "attribute": false,
1151
+ "type": "AutoSize"
1152
+ },
1153
+ {
1154
+ "name": "required",
1155
+ "description": "是否必填",
1156
+ "type": "boolean"
1157
+ },
1158
+ {
1159
+ "name": "max",
1160
+ "description": "表单校验最大长度",
1161
+ "type": "number"
1162
+ },
1163
+ {
1164
+ "name": "min",
1165
+ "description": "表单校验最小长度",
1166
+ "type": "number"
1167
+ },
1168
+ {
1169
+ "name": "message",
1170
+ "description": "校验信息",
1171
+ "attribute": false,
1172
+ "type": "Record<string, string>"
1173
+ },
1174
+ {
1175
+ "name": "textareaStyle",
1176
+ "description": "自定义样式",
1177
+ "attribute": false,
1178
+ "type": "React.CSSProperties"
1179
+ }
1180
+ ],
1181
+ "events": [
1182
+ {
1183
+ "name": "change",
1184
+ "description": "",
1185
+ "detail": {
1186
+ "description": null,
1187
+ "type": "string"
1188
+ }
1189
+ }
1190
+ ],
1191
+ "slots": [],
1192
+ "methods": [
1193
+ {
1194
+ "name": "focusTextarea",
1195
+ "params": [],
1196
+ "description": "focus",
1197
+ "returns": {}
1198
+ }
1199
+ ],
1200
+ "parts": [],
1201
+ "description": "通用多行文本输入框构件",
1202
+ "category": "form-input-basic"
1203
+ },
1204
1204
  {
1205
1205
  "name": "eo-time-picker",
1206
1206
  "properties": [
@@ -1332,48 +1332,130 @@
1332
1332
  "type": "PickerMode"
1333
1333
  },
1334
1334
  {
1335
- "name": "futureDateDisabled",
1336
- "description": "不可选择未来日期,优先级高于disabledDate",
1335
+ "name": "futureDateDisabled",
1336
+ "description": "不可选择未来日期,优先级高于disabledDate",
1337
+ "type": "boolean"
1338
+ },
1339
+ {
1340
+ "name": "disabledDate",
1341
+ "description": "不可选择的日期",
1342
+ "attribute": false,
1343
+ "type": "DisabledDateType"
1344
+ },
1345
+ {
1346
+ "name": "useFastSelectBtn",
1347
+ "description": "快速选项",
1348
+ "type": "boolean"
1349
+ },
1350
+ {
1351
+ "name": "inputStyle",
1352
+ "description": "输入框样式",
1353
+ "attribute": false,
1354
+ "type": "CSSProperties"
1355
+ }
1356
+ ],
1357
+ "events": [
1358
+ {
1359
+ "name": "change",
1360
+ "description": "日期变化时触发",
1361
+ "detail": {
1362
+ "type": "string"
1363
+ }
1364
+ },
1365
+ {
1366
+ "name": "ok",
1367
+ "description": "点击确定按钮触发(showTime 为 true 使用)",
1368
+ "detail": {
1369
+ "type": "string"
1370
+ }
1371
+ }
1372
+ ],
1373
+ "slots": [],
1374
+ "methods": [],
1375
+ "parts": [],
1376
+ "description": "日期选择器",
1377
+ "category": "form-input-basic"
1378
+ },
1379
+ {
1380
+ "name": "eo-time-range-picker",
1381
+ "properties": [
1382
+ {
1383
+ "name": "name",
1384
+ "description": "时间段选择器字段名",
1385
+ "type": "string"
1386
+ },
1387
+ {
1388
+ "name": "label",
1389
+ "description": "时间段选择器说明",
1390
+ "type": "string"
1391
+ },
1392
+ {
1393
+ "name": "value",
1394
+ "description": "时间段选择器的初始值",
1395
+ "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1396
+ "attribute": false,
1397
+ "type": "TimeRange"
1398
+ },
1399
+ {
1400
+ "name": "required",
1401
+ "description": "是否必填",
1402
+ "type": "boolean"
1403
+ },
1404
+ {
1405
+ "name": "rangeType",
1406
+ "description": "时间段类型",
1407
+ "attribute": false,
1408
+ "type": "RangeType"
1409
+ },
1410
+ {
1411
+ "name": "placeholder",
1412
+ "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1413
+ "attribute": false,
1414
+ "type": "string | [string, string]"
1415
+ },
1416
+ {
1417
+ "name": "inputStyle",
1418
+ "description": "输入框样式",
1419
+ "attribute": false,
1420
+ "type": "React.CSSProperties"
1421
+ },
1422
+ {
1423
+ "name": "selectNearDays",
1424
+ "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1425
+ "type": "number"
1426
+ },
1427
+ {
1428
+ "name": "emitChangeOnInit",
1429
+ "description": "",
1430
+ "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1337
1431
  "type": "boolean"
1338
1432
  },
1339
1433
  {
1340
- "name": "disabledDate",
1341
- "description": "不可选择的日期",
1434
+ "name": "presetRanges",
1435
+ "description": "",
1436
+ "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1342
1437
  "attribute": false,
1343
- "type": "DisabledDateType"
1344
- },
1345
- {
1346
- "name": "useFastSelectBtn",
1347
- "description": "快速选项",
1348
- "type": "boolean"
1438
+ "type": "presetRangeType[]"
1349
1439
  },
1350
1440
  {
1351
- "name": "inputStyle",
1352
- "description": "输入框样式",
1441
+ "name": "validator",
1353
1442
  "attribute": false,
1354
- "type": "CSSProperties"
1443
+ "type": "((value: any) => MessageBody | string)"
1355
1444
  }
1356
1445
  ],
1357
1446
  "events": [
1358
1447
  {
1359
1448
  "name": "change",
1360
- "description": "日期变化时触发",
1361
- "detail": {
1362
- "type": "string"
1363
- }
1364
- },
1365
- {
1366
- "name": "ok",
1367
- "description": "点击确定按钮触发(showTime 为 true 使用)",
1449
+ "description": "时间段变化时触发",
1368
1450
  "detail": {
1369
- "type": "string"
1451
+ "type": "TimeRange"
1370
1452
  }
1371
1453
  }
1372
1454
  ],
1373
1455
  "slots": [],
1374
1456
  "methods": [],
1375
1457
  "parts": [],
1376
- "description": "日期选择器",
1458
+ "description": "时间区间选择器",
1377
1459
  "category": "form-input-basic"
1378
1460
  },
1379
1461
  {
@@ -1455,86 +1537,112 @@
1455
1537
  "description": "构件 `eo-color-picker`"
1456
1538
  },
1457
1539
  {
1458
- "name": "eo-time-range-picker",
1540
+ "name": "eo-form-item",
1541
+ "alias": [
1542
+ "form.general-form-item"
1543
+ ],
1459
1544
  "properties": [
1545
+ {
1546
+ "name": "formElement",
1547
+ "attribute": false,
1548
+ "type": "Form"
1549
+ },
1550
+ {
1551
+ "name": "curElement",
1552
+ "attribute": false,
1553
+ "type": "HTMLElement"
1554
+ },
1460
1555
  {
1461
1556
  "name": "name",
1462
- "description": "时间段选择器字段名",
1557
+ "description": "字段名称",
1463
1558
  "type": "string"
1464
1559
  },
1465
1560
  {
1466
1561
  "name": "label",
1467
- "description": "时间段选择器说明",
1468
1562
  "type": "string"
1469
1563
  },
1470
1564
  {
1471
- "name": "value",
1472
- "description": "时间段选择器的初始值",
1473
- "default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
1565
+ "name": "pattern",
1566
+ "type": "string"
1567
+ },
1568
+ {
1569
+ "name": "message",
1474
1570
  "attribute": false,
1475
- "type": "TimeRange"
1571
+ "type": "Record<string, string>"
1572
+ },
1573
+ {
1574
+ "name": "type",
1575
+ "type": "string"
1576
+ },
1577
+ {
1578
+ "name": "max",
1579
+ "type": "number"
1580
+ },
1581
+ {
1582
+ "name": "min",
1583
+ "type": "number"
1476
1584
  },
1477
1585
  {
1478
1586
  "name": "required",
1479
- "description": "是否必填",
1587
+ "description": "表单项是否为必填",
1480
1588
  "type": "boolean"
1481
1589
  },
1482
1590
  {
1483
- "name": "rangeType",
1484
- "description": "时间段类型",
1485
- "attribute": false,
1486
- "type": "RangeType"
1591
+ "name": "value",
1592
+ "description": "初始值",
1593
+ "type": "string"
1487
1594
  },
1488
1595
  {
1489
- "name": "placeholder",
1490
- "description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
1491
- "attribute": false,
1492
- "type": "string | [string, string]"
1596
+ "name": "valuePropsName",
1597
+ "type": "string"
1493
1598
  },
1494
1599
  {
1495
- "name": "inputStyle",
1496
- "description": "输入框样式",
1497
- "attribute": false,
1498
- "type": "React.CSSProperties"
1600
+ "name": "layout",
1601
+ "type": "Layout"
1499
1602
  },
1500
1603
  {
1501
- "name": "selectNearDays",
1502
- "description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
1503
- "type": "number"
1604
+ "name": "size",
1605
+ "type": "ComponentSize"
1504
1606
  },
1505
1607
  {
1506
- "name": "emitChangeOnInit",
1507
- "description": "",
1508
- "default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
1509
- "type": "boolean"
1608
+ "name": "trim",
1609
+ "description": "是否自动去除前后的空白字符",
1610
+ "default": "true"
1510
1611
  },
1511
1612
  {
1512
- "name": "presetRanges",
1513
- "description": "",
1514
- "default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
1515
- "attribute": false,
1516
- "type": "presetRangeType[]"
1613
+ "name": "trigger",
1614
+ "description": "事件触发方法名",
1615
+ "type": "string"
1517
1616
  },
1518
1617
  {
1519
1618
  "name": "validator",
1619
+ "description": "表单项校验方法",
1520
1620
  "attribute": false,
1521
- "type": "((value: any) => MessageBody | string)"
1621
+ "type": "((value: any) => MessageBody)"
1622
+ },
1623
+ {
1624
+ "name": "needValidate",
1625
+ "description": "值变化时是否主动出发校验",
1626
+ "type": "boolean"
1627
+ },
1628
+ {
1629
+ "name": "textContent",
1630
+ "type": "string",
1631
+ "description": "文本内容"
1522
1632
  }
1523
1633
  ],
1524
- "events": [
1634
+ "events": [],
1635
+ "slots": [
1525
1636
  {
1526
- "name": "change",
1527
- "description": "时间段变化时触发",
1528
- "detail": {
1529
- "type": "TimeRange"
1530
- }
1637
+ "name": null,
1638
+ "description": "表单项内容"
1531
1639
  }
1532
1640
  ],
1533
- "slots": [],
1534
1641
  "methods": [],
1535
1642
  "parts": [],
1536
- "description": "时间区间选择器",
1537
- "category": "form-input-basic"
1643
+ "description": "通用输入框构件",
1644
+ "category": "form-input-basic",
1645
+ "insider": true
1538
1646
  },
1539
1647
  {
1540
1648
  "name": "eo-input",
@@ -1720,114 +1828,6 @@
1720
1828
  ],
1721
1829
  "description": "通用输入框构件",
1722
1830
  "category": "form-input-basic"
1723
- },
1724
- {
1725
- "name": "eo-form-item",
1726
- "alias": [
1727
- "form.general-form-item"
1728
- ],
1729
- "properties": [
1730
- {
1731
- "name": "formElement",
1732
- "attribute": false,
1733
- "type": "Form"
1734
- },
1735
- {
1736
- "name": "curElement",
1737
- "attribute": false,
1738
- "type": "HTMLElement"
1739
- },
1740
- {
1741
- "name": "name",
1742
- "description": "字段名称",
1743
- "type": "string"
1744
- },
1745
- {
1746
- "name": "label",
1747
- "type": "string"
1748
- },
1749
- {
1750
- "name": "pattern",
1751
- "type": "string"
1752
- },
1753
- {
1754
- "name": "message",
1755
- "attribute": false,
1756
- "type": "Record<string, string>"
1757
- },
1758
- {
1759
- "name": "type",
1760
- "type": "string"
1761
- },
1762
- {
1763
- "name": "max",
1764
- "type": "number"
1765
- },
1766
- {
1767
- "name": "min",
1768
- "type": "number"
1769
- },
1770
- {
1771
- "name": "required",
1772
- "description": "表单项是否为必填",
1773
- "type": "boolean"
1774
- },
1775
- {
1776
- "name": "value",
1777
- "description": "初始值",
1778
- "type": "string"
1779
- },
1780
- {
1781
- "name": "valuePropsName",
1782
- "type": "string"
1783
- },
1784
- {
1785
- "name": "layout",
1786
- "type": "Layout"
1787
- },
1788
- {
1789
- "name": "size",
1790
- "type": "ComponentSize"
1791
- },
1792
- {
1793
- "name": "trim",
1794
- "description": "是否自动去除前后的空白字符",
1795
- "default": "true"
1796
- },
1797
- {
1798
- "name": "trigger",
1799
- "description": "事件触发方法名",
1800
- "type": "string"
1801
- },
1802
- {
1803
- "name": "validator",
1804
- "description": "表单项校验方法",
1805
- "attribute": false,
1806
- "type": "((value: any) => MessageBody)"
1807
- },
1808
- {
1809
- "name": "needValidate",
1810
- "description": "值变化时是否主动出发校验",
1811
- "type": "boolean"
1812
- },
1813
- {
1814
- "name": "textContent",
1815
- "type": "string",
1816
- "description": "文本内容"
1817
- }
1818
- ],
1819
- "events": [],
1820
- "slots": [
1821
- {
1822
- "name": null,
1823
- "description": "表单项内容"
1824
- }
1825
- ],
1826
- "methods": [],
1827
- "parts": [],
1828
- "description": "通用输入框构件",
1829
- "category": "form-input-basic",
1830
- "insider": true
1831
1831
  }
1832
1832
  ],
1833
1833
  "providers": []