@next-bricks/form 1.16.0 → 1.16.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.
Files changed (32) hide show
  1. package/dist/bricks.json +33 -33
  2. package/dist/chunks/8653.d5c60d3b.js +3 -0
  3. package/dist/chunks/8653.d5c60d3b.js.map +1 -0
  4. package/dist/chunks/eo-select.0e3b0626.js +3 -0
  5. package/dist/chunks/eo-select.0e3b0626.js.map +1 -0
  6. package/dist/chunks/eo-textarea.95aa303c.js +3 -0
  7. package/dist/chunks/eo-textarea.95aa303c.js.map +1 -0
  8. package/dist/chunks/eo-time-range-picker.1a1cddcd.js +2 -0
  9. package/dist/chunks/eo-time-range-picker.1a1cddcd.js.map +1 -0
  10. package/dist/chunks/{main.3fba8d87.js → main.435bde11.js} +2 -2
  11. package/dist/chunks/{main.3fba8d87.js.map → main.435bde11.js.map} +1 -1
  12. package/dist/examples.json +12 -12
  13. package/dist/index.927290fa.js +2 -0
  14. package/dist/index.927290fa.js.map +1 -0
  15. package/dist/manifest.json +458 -452
  16. package/dist/types.json +205 -188
  17. package/dist-types/select/index.d.ts +5 -0
  18. package/package.json +2 -2
  19. package/dist/chunks/5347.2f87fd08.js +0 -3
  20. package/dist/chunks/5347.2f87fd08.js.map +0 -1
  21. package/dist/chunks/eo-select.6e142ce3.js +0 -3
  22. package/dist/chunks/eo-select.6e142ce3.js.map +0 -1
  23. package/dist/chunks/eo-textarea.66c4e981.js +0 -3
  24. package/dist/chunks/eo-textarea.66c4e981.js.map +0 -1
  25. package/dist/chunks/eo-time-range-picker.586762ea.js +0 -2
  26. package/dist/chunks/eo-time-range-picker.586762ea.js.map +0 -1
  27. package/dist/index.a43217c7.js +0 -2
  28. package/dist/index.a43217c7.js.map +0 -1
  29. package/dist-types/textarea/calculateAutoSizeStyle.d.ts +0 -1
  30. /package/dist/chunks/{5347.2f87fd08.js.LICENSE.txt → 8653.d5c60d3b.js.LICENSE.txt} +0 -0
  31. /package/dist/chunks/{eo-select.6e142ce3.js.LICENSE.txt → eo-select.0e3b0626.js.LICENSE.txt} +0 -0
  32. /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": [
@@ -207,6 +450,12 @@
207
450
  "attribute": false,
208
451
  "type": "React.CSSProperties"
209
452
  },
453
+ {
454
+ "name": "dropdownStyle",
455
+ "description": "下拉框样式",
456
+ "attribute": false,
457
+ "type": "React.CSSProperties"
458
+ },
210
459
  {
211
460
  "name": "dropdownHoist",
212
461
  "description": "下拉框是否使用固定定位防止内容被裁切",
@@ -233,165 +482,20 @@
233
482
  "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
234
483
  "detail": {
235
484
  "type": "void"
236
- }
237
- },
238
- {
239
- "name": "options.change",
240
- "description": "选项列表变化事件",
241
- "detail": {
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-form",
254
- "alias": [
255
- "form.general-form"
256
- ],
257
- "properties": [
258
- {
259
- "name": "staticValues",
260
- "attribute": false,
261
- "type": "Record<string, unknown>"
262
- },
263
- {
264
- "name": "layout",
265
- "description": "布局方式(默认 vertical 布局)",
266
- "default": "vertical",
267
- "type": "Layout"
268
- },
269
- {
270
- "name": "size",
271
- "description": "表单组件尺寸",
272
- "type": "ComponentSize"
273
- },
274
- {
275
- "name": "labelCol",
276
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
277
- "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 }",
278
- "attribute": false,
279
- "type": "ColProps"
280
- },
281
- {
282
- "name": "wrapperCol",
283
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
284
- "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 }",
285
- "attribute": false,
286
- "type": "ColProps"
287
- },
288
- {
289
- "name": "formStyle",
290
- "attribute": false,
291
- "type": "React.CSSProperties"
292
- },
293
- {
294
- "name": "textContent",
295
- "type": "string",
296
- "description": "文本内容"
297
- }
298
- ],
299
- "events": [
300
- {
301
- "name": "values.change",
302
- "description": "表单值变更事件",
303
- "detail": {
304
- "description": null,
305
- "type": "Record<string, unknown>"
306
- }
307
- },
308
- {
309
- "name": "validate.success",
310
- "description": "表单验证成功时触发事件",
311
- "detail": {
312
- "type": "Record<string, unknown>"
313
- }
314
- },
315
- {
316
- "name": "validate.error",
317
- "description": "表单验证报错时触发事件",
318
- "detail": {
319
- "type": "(MessageBody & { name: string })[]"
320
- }
321
- }
322
- ],
323
- "slots": [
324
- {
325
- "name": null,
326
- "description": "表单内容"
327
- }
328
- ],
329
- "methods": [
330
- {
331
- "name": "validate",
332
- "params": [],
333
- "description": "表单校验方法",
334
- "returns": {
335
- "type": "boolean | Record<string, unknown>"
336
- }
337
- },
338
- {
339
- "name": "setInitValue",
340
- "params": [
341
- {
342
- "name": "values",
343
- "type": "Record<string, unknown>"
344
- },
345
- {
346
- "name": "options",
347
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
348
- }
349
- ],
350
- "description": "表单设置值方法",
351
- "returns": {}
352
- },
353
- {
354
- "name": "resetFields",
355
- "params": [
356
- {
357
- "name": "name",
358
- "type": "string"
359
- }
360
- ],
361
- "description": "表单重置值方法",
362
- "returns": {}
363
- },
364
- {
365
- "name": "getFieldsValue",
366
- "params": [
367
- {
368
- "name": "name",
369
- "type": "string"
370
- }
371
- ],
372
- "description": "获取表单值方法",
373
- "returns": {}
374
- },
375
- {
376
- "name": "validateField",
377
- "params": [
378
- {
379
- "name": "name",
380
- "type": "string"
381
- }
382
- ],
383
- "description": "校验表单字段方法",
384
- "returns": {}
485
+ }
385
486
  },
386
487
  {
387
- "name": "resetValidateState",
388
- "params": [],
389
- "description": "重置表单校验状态方法",
390
- "returns": {}
488
+ "name": "options.change",
489
+ "description": "选项列表变化事件",
490
+ "detail": {
491
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
492
+ }
391
493
  }
392
494
  ],
495
+ "slots": [],
496
+ "methods": [],
393
497
  "parts": [],
394
- "description": "表单构件",
498
+ "description": "通用下拉选择构件",
395
499
  "category": "form-input-basic"
396
500
  },
397
501
  {
@@ -454,104 +558,6 @@
454
558
  "description": "表单提交按钮",
455
559
  "category": "form-input-basic"
456
560
  },
457
- {
458
- "name": "eo-textarea",
459
- "alias": [
460
- "form.general-textarea"
461
- ],
462
- "properties": [
463
- {
464
- "name": "name",
465
- "description": "字段名称",
466
- "type": "string"
467
- },
468
- {
469
- "name": "label",
470
- "description": "标签文字",
471
- "type": "string"
472
- },
473
- {
474
- "name": "value",
475
- "description": "值",
476
- "type": "string"
477
- },
478
- {
479
- "name": "placeholder",
480
- "description": "占位说明",
481
- "type": "string"
482
- },
483
- {
484
- "name": "disabled",
485
- "description": "是否禁用",
486
- "type": "boolean"
487
- },
488
- {
489
- "name": "minLength",
490
- "description": "最小长度",
491
- "type": "number"
492
- },
493
- {
494
- "name": "maxLength",
495
- "description": "最大长度",
496
- "type": "number"
497
- },
498
- {
499
- "name": "autoSize",
500
- "description": "大小自适应",
501
- "attribute": false,
502
- "type": "AutoSize"
503
- },
504
- {
505
- "name": "required",
506
- "description": "是否必填",
507
- "type": "boolean"
508
- },
509
- {
510
- "name": "max",
511
- "description": "表单校验最大长度",
512
- "type": "number"
513
- },
514
- {
515
- "name": "min",
516
- "description": "表单校验最小长度",
517
- "type": "number"
518
- },
519
- {
520
- "name": "message",
521
- "description": "校验信息",
522
- "attribute": false,
523
- "type": "Record<string, string>"
524
- },
525
- {
526
- "name": "textareaStyle",
527
- "description": "自定义样式",
528
- "attribute": false,
529
- "type": "React.CSSProperties"
530
- }
531
- ],
532
- "events": [
533
- {
534
- "name": "change",
535
- "description": "",
536
- "detail": {
537
- "description": null,
538
- "type": "string"
539
- }
540
- }
541
- ],
542
- "slots": [],
543
- "methods": [
544
- {
545
- "name": "focusTextarea",
546
- "params": [],
547
- "description": "focus",
548
- "returns": {}
549
- }
550
- ],
551
- "parts": [],
552
- "description": "通用多行文本输入框构件",
553
- "category": "form-input-basic"
554
- },
555
561
  {
556
562
  "name": "eo-checkbox",
557
563
  "alias": [
@@ -804,9 +810,9 @@
804
810
  "category": "interact-basic"
805
811
  },
806
812
  {
807
- "name": "eo-upload-image",
813
+ "name": "eo-icon-select",
808
814
  "alias": [
809
- "form.upload-image"
815
+ "form.icon-select"
810
816
  ],
811
817
  "properties": [
812
818
  {
@@ -823,28 +829,13 @@
823
829
  "name": "value",
824
830
  "description": "值",
825
831
  "attribute": false,
826
- "type": "ImageData[]"
827
- },
828
- {
829
- "name": "bucketName",
830
- "description": "对象存储桶名字",
831
- "type": "string"
832
- },
833
- {
834
- "name": "maxCount",
835
- "description": "最大上传数量",
836
- "type": "number"
832
+ "type": "Icon"
837
833
  },
838
834
  {
839
- "name": "multiple",
840
- "description": "是否支持选定的多张图片",
835
+ "name": "disabled",
836
+ "description": "是否禁用",
841
837
  "type": "boolean"
842
838
  },
843
- {
844
- "name": "limitSize",
845
- "description": "上传大小限制(单位为 MB)",
846
- "type": "number"
847
- },
848
839
  {
849
840
  "name": "required",
850
841
  "description": "是否必填",
@@ -852,7 +843,7 @@
852
843
  },
853
844
  {
854
845
  "name": "message",
855
- "description": "校验文本信息",
846
+ "description": "是否必填",
856
847
  "attribute": false,
857
848
  "type": "Record<string, string>"
858
849
  }
@@ -862,20 +853,20 @@
862
853
  "name": "change",
863
854
  "description": "值变化时触发",
864
855
  "detail": {
865
- "type": "ImageData[]"
856
+ "type": "Icon | undefined"
866
857
  }
867
858
  }
868
859
  ],
869
860
  "slots": [],
870
861
  "methods": [],
871
862
  "parts": [],
872
- "description": "上传图片构件",
863
+ "description": "图标选择构件",
873
864
  "category": "form-input-basic"
874
865
  },
875
866
  {
876
- "name": "eo-icon-select",
867
+ "name": "eo-upload-image",
877
868
  "alias": [
878
- "form.icon-select"
869
+ "form.upload-image"
879
870
  ],
880
871
  "properties": [
881
872
  {
@@ -892,13 +883,28 @@
892
883
  "name": "value",
893
884
  "description": "值",
894
885
  "attribute": false,
895
- "type": "Icon"
886
+ "type": "ImageData[]"
896
887
  },
897
888
  {
898
- "name": "disabled",
899
- "description": "是否禁用",
889
+ "name": "bucketName",
890
+ "description": "对象存储桶名字",
891
+ "type": "string"
892
+ },
893
+ {
894
+ "name": "maxCount",
895
+ "description": "最大上传数量",
896
+ "type": "number"
897
+ },
898
+ {
899
+ "name": "multiple",
900
+ "description": "是否支持选定的多张图片",
900
901
  "type": "boolean"
901
902
  },
903
+ {
904
+ "name": "limitSize",
905
+ "description": "上传大小限制(单位为 MB)",
906
+ "type": "number"
907
+ },
902
908
  {
903
909
  "name": "required",
904
910
  "description": "是否必填",
@@ -906,7 +912,7 @@
906
912
  },
907
913
  {
908
914
  "name": "message",
909
- "description": "是否必填",
915
+ "description": "校验文本信息",
910
916
  "attribute": false,
911
917
  "type": "Record<string, string>"
912
918
  }
@@ -916,14 +922,14 @@
916
922
  "name": "change",
917
923
  "description": "值变化时触发",
918
924
  "detail": {
919
- "type": "Icon | undefined"
925
+ "type": "ImageData[]"
920
926
  }
921
927
  }
922
928
  ],
923
929
  "slots": [],
924
930
  "methods": [],
925
931
  "parts": [],
926
- "description": "图标选择构件",
932
+ "description": "上传图片构件",
927
933
  "category": "form-input-basic"
928
934
  },
929
935
  {
@@ -1329,52 +1335,130 @@
1329
1335
  "name": "picker",
1330
1336
  "description": "设置选择器类型",
1331
1337
  "attribute": false,
1332
- "type": "PickerMode"
1338
+ "type": "PickerMode"
1339
+ },
1340
+ {
1341
+ "name": "futureDateDisabled",
1342
+ "description": "不可选择未来日期,优先级高于disabledDate",
1343
+ "type": "boolean"
1344
+ },
1345
+ {
1346
+ "name": "disabledDate",
1347
+ "description": "不可选择的日期",
1348
+ "attribute": false,
1349
+ "type": "DisabledDateType"
1350
+ },
1351
+ {
1352
+ "name": "useFastSelectBtn",
1353
+ "description": "快速选项",
1354
+ "type": "boolean"
1355
+ },
1356
+ {
1357
+ "name": "inputStyle",
1358
+ "description": "输入框样式",
1359
+ "attribute": false,
1360
+ "type": "CSSProperties"
1361
+ }
1362
+ ],
1363
+ "events": [
1364
+ {
1365
+ "name": "change",
1366
+ "description": "日期变化时触发",
1367
+ "detail": {
1368
+ "type": "string"
1369
+ }
1370
+ },
1371
+ {
1372
+ "name": "ok",
1373
+ "description": "点击确定按钮触发(showTime 为 true 使用)",
1374
+ "detail": {
1375
+ "type": "string"
1376
+ }
1377
+ }
1378
+ ],
1379
+ "slots": [],
1380
+ "methods": [],
1381
+ "parts": [],
1382
+ "description": "日期选择器",
1383
+ "category": "form-input-basic"
1384
+ },
1385
+ {
1386
+ "name": "eo-color-picker",
1387
+ "properties": [
1388
+ {
1389
+ "name": "name",
1390
+ "description": "字段名称",
1391
+ "type": "string"
1392
+ },
1393
+ {
1394
+ "name": "label",
1395
+ "description": "字段说明",
1396
+ "type": "string"
1397
+ },
1398
+ {
1399
+ "name": "value",
1400
+ "description": "值",
1401
+ "type": "string"
1402
+ },
1403
+ {
1404
+ "name": "defaultValue",
1405
+ "description": "颜色默认的值",
1406
+ "type": "string | Color"
1407
+ },
1408
+ {
1409
+ "name": "required",
1410
+ "description": "是否必填",
1411
+ "type": "boolean"
1412
+ },
1413
+ {
1414
+ "name": "allowClear",
1415
+ "description": "允许清除选择的颜色",
1416
+ "type": "boolean"
1417
+ },
1418
+ {
1419
+ "name": "size",
1420
+ "description": "设置触发器大小",
1421
+ "default": "middle",
1422
+ "attribute": false,
1423
+ "type": "\"small\" | \"middle\" | \"large\""
1333
1424
  },
1334
1425
  {
1335
- "name": "futureDateDisabled",
1336
- "description": "不可选择未来日期,优先级高于disabledDate",
1426
+ "name": "showText",
1427
+ "description": "显示颜色文本",
1337
1428
  "type": "boolean"
1338
1429
  },
1339
1430
  {
1340
- "name": "disabledDate",
1341
- "description": "不可选择的日期",
1342
- "attribute": false,
1343
- "type": "DisabledDateType"
1431
+ "name": "disabled",
1432
+ "description": "是否禁用",
1433
+ "type": "boolean"
1344
1434
  },
1345
1435
  {
1346
- "name": "useFastSelectBtn",
1347
- "description": "快速选项",
1348
- "type": "boolean"
1436
+ "name": "format",
1437
+ "description": "颜色格式",
1438
+ "default": "hex",
1439
+ "attribute": false,
1440
+ "type": "\"rgb\" | \"hex\" | \"hsb\""
1349
1441
  },
1350
1442
  {
1351
- "name": "inputStyle",
1352
- "description": "输入框样式",
1443
+ "name": "configProps",
1444
+ "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1353
1445
  "attribute": false,
1354
- "type": "CSSProperties"
1446
+ "type": "Partial<ColorPickerProps>"
1355
1447
  }
1356
1448
  ],
1357
1449
  "events": [
1358
1450
  {
1359
1451
  "name": "change",
1360
- "description": "日期变化时触发",
1361
- "detail": {
1362
- "type": "string"
1363
- }
1364
- },
1365
- {
1366
- "name": "ok",
1367
- "description": "点击确定按钮触发(showTime 为 true 使用)",
1452
+ "description": "颜色变化事件, 返回值格式和`format`格式一致",
1368
1453
  "detail": {
1369
- "type": "string"
1454
+ "type": "string | undefined"
1370
1455
  }
1371
1456
  }
1372
1457
  ],
1373
1458
  "slots": [],
1374
1459
  "methods": [],
1375
1460
  "parts": [],
1376
- "description": "日期选择器",
1377
- "category": "form-input-basic"
1461
+ "description": "构件 `eo-color-picker`"
1378
1462
  },
1379
1463
  {
1380
1464
  "name": "eo-time-range-picker",
@@ -1459,8 +1543,21 @@
1459
1543
  "category": "form-input-basic"
1460
1544
  },
1461
1545
  {
1462
- "name": "eo-color-picker",
1546
+ "name": "eo-form-item",
1547
+ "alias": [
1548
+ "form.general-form-item"
1549
+ ],
1463
1550
  "properties": [
1551
+ {
1552
+ "name": "formElement",
1553
+ "attribute": false,
1554
+ "type": "Form"
1555
+ },
1556
+ {
1557
+ "name": "curElement",
1558
+ "attribute": false,
1559
+ "type": "HTMLElement"
1560
+ },
1464
1561
  {
1465
1562
  "name": "name",
1466
1563
  "description": "字段名称",
@@ -1468,73 +1565,90 @@
1468
1565
  },
1469
1566
  {
1470
1567
  "name": "label",
1471
- "description": "字段说明",
1472
1568
  "type": "string"
1473
1569
  },
1474
1570
  {
1475
- "name": "value",
1476
- "description": "值",
1571
+ "name": "pattern",
1477
1572
  "type": "string"
1478
1573
  },
1479
1574
  {
1480
- "name": "defaultValue",
1481
- "description": "颜色默认的值",
1482
- "type": "string | Color"
1575
+ "name": "message",
1576
+ "attribute": false,
1577
+ "type": "Record<string, string>"
1578
+ },
1579
+ {
1580
+ "name": "type",
1581
+ "type": "string"
1582
+ },
1583
+ {
1584
+ "name": "max",
1585
+ "type": "number"
1586
+ },
1587
+ {
1588
+ "name": "min",
1589
+ "type": "number"
1483
1590
  },
1484
1591
  {
1485
1592
  "name": "required",
1486
- "description": "是否必填",
1593
+ "description": "表单项是否为必填",
1487
1594
  "type": "boolean"
1488
1595
  },
1489
1596
  {
1490
- "name": "allowClear",
1491
- "description": "允许清除选择的颜色",
1492
- "type": "boolean"
1597
+ "name": "value",
1598
+ "description": "初始值",
1599
+ "type": "string"
1600
+ },
1601
+ {
1602
+ "name": "valuePropsName",
1603
+ "type": "string"
1604
+ },
1605
+ {
1606
+ "name": "layout",
1607
+ "type": "Layout"
1493
1608
  },
1494
1609
  {
1495
1610
  "name": "size",
1496
- "description": "设置触发器大小",
1497
- "default": "middle",
1498
- "attribute": false,
1499
- "type": "\"small\" | \"middle\" | \"large\""
1611
+ "type": "ComponentSize"
1500
1612
  },
1501
1613
  {
1502
- "name": "showText",
1503
- "description": "显示颜色文本",
1504
- "type": "boolean"
1614
+ "name": "trim",
1615
+ "description": "是否自动去除前后的空白字符",
1616
+ "default": "true"
1505
1617
  },
1506
1618
  {
1507
- "name": "disabled",
1508
- "description": "是否禁用",
1509
- "type": "boolean"
1619
+ "name": "trigger",
1620
+ "description": "事件触发方法名",
1621
+ "type": "string"
1510
1622
  },
1511
1623
  {
1512
- "name": "format",
1513
- "description": "颜色格式",
1514
- "default": "hex",
1624
+ "name": "validator",
1625
+ "description": "表单项校验方法",
1515
1626
  "attribute": false,
1516
- "type": "\"rgb\" | \"hex\" | \"hsb\""
1627
+ "type": "((value: any) => MessageBody)"
1517
1628
  },
1518
1629
  {
1519
- "name": "configProps",
1520
- "description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
1521
- "attribute": false,
1522
- "type": "Partial<ColorPickerProps>"
1630
+ "name": "needValidate",
1631
+ "description": "值变化时是否主动出发校验",
1632
+ "type": "boolean"
1633
+ },
1634
+ {
1635
+ "name": "textContent",
1636
+ "type": "string",
1637
+ "description": "文本内容"
1523
1638
  }
1524
1639
  ],
1525
- "events": [
1640
+ "events": [],
1641
+ "slots": [
1526
1642
  {
1527
- "name": "change",
1528
- "description": "颜色变化事件, 返回值格式和`format`格式一致",
1529
- "detail": {
1530
- "type": "string | undefined"
1531
- }
1643
+ "name": null,
1644
+ "description": "表单项内容"
1532
1645
  }
1533
1646
  ],
1534
- "slots": [],
1535
1647
  "methods": [],
1536
1648
  "parts": [],
1537
- "description": "构件 `eo-color-picker`"
1649
+ "description": "通用输入框构件",
1650
+ "category": "form-input-basic",
1651
+ "insider": true
1538
1652
  },
1539
1653
  {
1540
1654
  "name": "eo-input",
@@ -1720,114 +1834,6 @@
1720
1834
  ],
1721
1835
  "description": "通用输入框构件",
1722
1836
  "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
1837
  }
1832
1838
  ],
1833
1839
  "providers": []