@next-bricks/form 1.15.18 → 1.15.20

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.
@@ -4,112 +4,24 @@
4
4
  "name": "form",
5
5
  "bricks": [
6
6
  {
7
- "name": "eo-radio",
7
+ "name": "eo-textarea",
8
8
  "alias": [
9
- "form.general-radio"
9
+ "form.general-textarea"
10
10
  ],
11
11
  "properties": [
12
12
  {
13
13
  "name": "name",
14
- "description": "下拉框字段名",
14
+ "description": "字段名称",
15
15
  "type": "string"
16
16
  },
17
17
  {
18
18
  "name": "label",
19
- "description": "单选框字段说明",
19
+ "description": "标签文字",
20
20
  "type": "string"
21
21
  },
22
- {
23
- "name": "options",
24
- "description": "单选框选项表",
25
- "required": true,
26
- "attribute": false,
27
- "type": "GeneralOption[]"
28
- },
29
22
  {
30
23
  "name": "value",
31
- "description": "单选框当前选中始值",
32
- "attribute": false,
33
- "type": "any"
34
- },
35
- {
36
- "name": "required",
37
- "description": "是否必填",
38
- "type": "boolean"
39
- },
40
- {
41
- "name": "message",
42
- "description": "校验文本信息",
43
- "attribute": false,
44
- "type": "Record<string, string>"
45
- },
46
- {
47
- "name": "disabled",
48
- "description": "是否禁用",
49
- "type": "boolean"
50
- },
51
- {
52
- "name": "type",
53
- "description": "单选框样式类型",
54
- "default": "\"default\"",
55
- "type": "RadioType"
56
- },
57
- {
58
- "name": "ui",
59
- "description": "UI样式",
60
- "default": "\"default\"",
61
- "type": "UIType"
62
- },
63
- {
64
- "name": "size",
65
- "description": "大小,只对按钮样式生效",
66
- "default": "\"medium\"",
67
- "type": "ComponentSize"
68
- },
69
- {
70
- "name": "customStyle",
71
- "description": "自定义radio的外层样式",
72
- "attribute": false,
73
- "type": "React.CSSProperties"
74
- },
75
- {
76
- "name": "useBrick",
77
- "description": "自定义radio的内容",
78
- "attribute": false,
79
- "type": "UseSingleBrickConf"
80
- }
81
- ],
82
- "events": [
83
- {
84
- "name": "change",
85
- "description": "值变化事件",
86
- "detail": {
87
- "type": "GeneralComplexOption | undefined"
88
- }
89
- },
90
- {
91
- "name": "options.change",
92
- "description": "选项列表变化事件",
93
- "detail": {
94
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
95
- }
96
- }
97
- ],
98
- "slots": [],
99
- "methods": [],
100
- "parts": [],
101
- "description": "通用单选构件",
102
- "category": "form-input-basic"
103
- },
104
- {
105
- "name": "eo-select",
106
- "alias": [
107
- "form.general-select"
108
- ],
109
- "properties": [
110
- {
111
- "name": "name",
112
- "description": "字段名称",
24
+ "description": "",
113
25
  "type": "string"
114
26
  },
115
27
  {
@@ -117,136 +29,76 @@
117
29
  "description": "占位说明",
118
30
  "type": "string"
119
31
  },
120
- {
121
- "name": "label",
122
- "description": "字段文本",
123
- "type": "string"
124
- },
125
- {
126
- "name": "options",
127
- "description": "选项列表",
128
- "required": true,
129
- "attribute": false,
130
- "type": "GeneralComplexOption[]"
131
- },
132
- {
133
- "name": "value",
134
- "description": "值",
135
- "attribute": false,
136
- "type": "any"
137
- },
138
- {
139
- "name": "required",
140
- "description": "是否必填",
141
- "type": "boolean"
142
- },
143
- {
144
- "name": "message",
145
- "description": "校验文本信息",
146
- "attribute": false,
147
- "type": "Record<string, string>"
148
- },
149
32
  {
150
33
  "name": "disabled",
151
34
  "description": "是否禁用",
152
35
  "type": "boolean"
153
36
  },
154
37
  {
155
- "name": "mode",
156
- "description": "类型",
157
- "type": "\"tags\" | \"multiple\""
158
- },
159
- {
160
- "name": "tokenSeparators",
161
- "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
162
- "attribute": false,
163
- "type": "string[]"
164
- },
165
- {
166
- "name": "maxTagCount",
167
- "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
38
+ "name": "minLength",
39
+ "description": "最小长度",
168
40
  "type": "number"
169
41
  },
170
42
  {
171
- "name": "groupBy",
172
- "description": "分组字段",
173
- "type": "string"
43
+ "name": "maxLength",
44
+ "description": "最大长度",
45
+ "type": "number"
174
46
  },
175
47
  {
176
- "name": "suffix",
177
- "description": "",
48
+ "name": "autoSize",
49
+ "description": "大小自适应",
178
50
  "attribute": false,
179
- "type": "{ useBrick: UseSingleBrickConf }"
51
+ "type": "AutoSize"
180
52
  },
181
53
  {
182
- "name": "clearable",
183
- "description": "是否支持清除",
184
- "default": "true",
54
+ "name": "required",
55
+ "description": "是否必填",
185
56
  "type": "boolean"
186
57
  },
187
58
  {
188
- "name": "fields",
189
- "description": "列表指定字段作为 label 和 value",
190
- "attribute": false,
191
- "type": "{ label?: string; value?: string }"
192
- },
193
- {
194
- "name": "useBackend",
195
- "description": "后端搜索",
196
- "attribute": false,
197
- "type": "UseBackendConf"
59
+ "name": "max",
60
+ "description": "表单校验最大长度",
61
+ "type": "number"
198
62
  },
199
63
  {
200
- "name": "debounceSearchDelay",
201
- "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
64
+ "name": "min",
65
+ "description": "表单校验最小长度",
202
66
  "type": "number"
203
67
  },
204
68
  {
205
- "name": "inputStyle",
206
- "description": "输入框样式",
69
+ "name": "message",
70
+ "description": "校验信息",
207
71
  "attribute": false,
208
- "type": "React.CSSProperties"
72
+ "type": "Record<string, string>"
209
73
  },
210
74
  {
211
- "name": "dropdownHoist",
212
- "description": "下拉框是否使用固定定位防止内容被裁切",
213
- "type": "boolean"
75
+ "name": "textareaStyle",
76
+ "description": "自定义样式",
77
+ "attribute": false,
78
+ "type": "React.CSSProperties"
214
79
  }
215
80
  ],
216
81
  "events": [
217
82
  {
218
83
  "name": "change",
219
- "description": "下拉选择事件",
220
- "detail": {
221
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
222
- }
223
- },
224
- {
225
- "name": "search",
226
- "description": "下拉框search事件",
227
- "detail": {
228
- "type": "{\n value: string;\n }"
229
- }
230
- },
231
- {
232
- "name": "select.focus",
233
- "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
234
- "detail": {
235
- "type": "void"
236
- }
237
- },
238
- {
239
- "name": "options.change",
240
- "description": "选项列表变化事件",
84
+ "description": "",
241
85
  "detail": {
242
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
86
+ "description": null,
87
+ "type": "string"
243
88
  }
244
89
  }
245
90
  ],
246
91
  "slots": [],
247
- "methods": [],
92
+ "methods": [
93
+ {
94
+ "name": "focusTextarea",
95
+ "params": [],
96
+ "description": "focus",
97
+ "returns": {}
98
+ }
99
+ ],
248
100
  "parts": [],
249
- "description": "通用下拉选择构件",
101
+ "description": "通用多行文本输入框构件",
250
102
  "category": "form-input-basic"
251
103
  },
252
104
  {
@@ -395,161 +247,309 @@
395
247
  "category": "form-input-basic"
396
248
  },
397
249
  {
398
- "name": "eo-submit-buttons",
250
+ "name": "eo-select",
399
251
  "alias": [
400
- "form.submit-buttons"
252
+ "form.general-select"
401
253
  ],
402
254
  "properties": [
403
255
  {
404
- "name": "submitText",
405
- "description": "提交按钮的文字",
406
- "default": "\"提交\"",
256
+ "name": "name",
257
+ "description": "字段名称",
407
258
  "type": "string"
408
259
  },
409
260
  {
410
- "name": "cancelText",
411
- "description": "取消按钮的文字,不设置则不显示取消按钮",
261
+ "name": "placeholder",
262
+ "description": "占位说明",
412
263
  "type": "string"
413
264
  },
414
265
  {
415
- "name": "disableAfterClick",
416
- "description": "点击确定按钮后自动禁用",
417
- "type": "boolean"
266
+ "name": "label",
267
+ "description": "字段文本",
268
+ "type": "string"
418
269
  },
419
270
  {
420
- "name": "submitDisabled",
421
- "description": "禁用提交按钮",
422
- "type": "boolean"
271
+ "name": "options",
272
+ "description": "选项列表",
273
+ "required": true,
274
+ "attribute": false,
275
+ "type": "GeneralComplexOption[]"
423
276
  },
424
277
  {
425
- "name": "submitType",
426
- "description": "提交按钮类型",
427
- "type": "ButtonType"
278
+ "name": "value",
279
+ "description": "",
280
+ "attribute": false,
281
+ "type": "any"
428
282
  },
429
283
  {
430
- "name": "cancelType",
431
- "description": "取消按钮类型",
432
- "type": "ButtonType"
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": "mode",
301
+ "description": "类型",
302
+ "type": "\"tags\" | \"multiple\""
303
+ },
304
+ {
305
+ "name": "tokenSeparators",
306
+ "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
307
+ "attribute": false,
308
+ "type": "string[]"
309
+ },
310
+ {
311
+ "name": "maxTagCount",
312
+ "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
313
+ "type": "number"
314
+ },
315
+ {
316
+ "name": "groupBy",
317
+ "description": "分组字段",
318
+ "type": "string"
319
+ },
320
+ {
321
+ "name": "suffix",
322
+ "description": "",
323
+ "attribute": false,
324
+ "type": "{ useBrick: UseSingleBrickConf }"
325
+ },
326
+ {
327
+ "name": "clearable",
328
+ "description": "是否支持清除",
329
+ "default": "true",
330
+ "type": "boolean"
331
+ },
332
+ {
333
+ "name": "fields",
334
+ "description": "列表指定字段作为 label 和 value",
335
+ "attribute": false,
336
+ "type": "{ label?: string; value?: string }"
337
+ },
338
+ {
339
+ "name": "useBackend",
340
+ "description": "后端搜索",
341
+ "attribute": false,
342
+ "type": "UseBackendConf"
343
+ },
344
+ {
345
+ "name": "debounceSearchDelay",
346
+ "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
347
+ "type": "number"
348
+ },
349
+ {
350
+ "name": "inputStyle",
351
+ "description": "输入框样式",
352
+ "attribute": false,
353
+ "type": "React.CSSProperties"
354
+ },
355
+ {
356
+ "name": "dropdownHoist",
357
+ "description": "下拉框是否使用固定定位防止内容被裁切",
358
+ "type": "boolean"
433
359
  }
434
360
  ],
435
361
  "events": [
436
362
  {
437
- "name": "submit",
438
- "description": "点击提交按钮触发的事件",
363
+ "name": "change",
364
+ "description": "下拉选择事件",
439
365
  "detail": {
440
- "type": "void"
366
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
441
367
  }
442
368
  },
443
369
  {
444
- "name": "cancel",
445
- "description": "点击取消按钮触发的事件",
370
+ "name": "search",
371
+ "description": "下拉框search事件",
372
+ "detail": {
373
+ "type": "{\n value: string;\n }"
374
+ }
375
+ },
376
+ {
377
+ "name": "select.focus",
378
+ "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
446
379
  "detail": {
447
380
  "type": "void"
448
381
  }
382
+ },
383
+ {
384
+ "name": "options.change",
385
+ "description": "选项列表变化事件",
386
+ "detail": {
387
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
388
+ }
449
389
  }
450
390
  ],
451
391
  "slots": [],
452
392
  "methods": [],
453
393
  "parts": [],
454
- "description": "表单提交按钮",
394
+ "description": "通用下拉选择构件",
455
395
  "category": "form-input-basic"
456
396
  },
457
397
  {
458
- "name": "eo-textarea",
398
+ "name": "eo-radio",
459
399
  "alias": [
460
- "form.general-textarea"
400
+ "form.general-radio"
461
401
  ],
462
402
  "properties": [
463
403
  {
464
404
  "name": "name",
465
- "description": "字段名称",
405
+ "description": "下拉框字段名",
466
406
  "type": "string"
467
407
  },
468
408
  {
469
409
  "name": "label",
470
- "description": "标签文字",
410
+ "description": "单选框字段说明",
471
411
  "type": "string"
472
412
  },
473
413
  {
474
- "name": "value",
475
- "description": "",
476
- "type": "string"
414
+ "name": "options",
415
+ "description": "单选框选项表",
416
+ "required": true,
417
+ "attribute": false,
418
+ "type": "GeneralOption[]"
477
419
  },
478
420
  {
479
- "name": "placeholder",
480
- "description": "占位说明",
481
- "type": "string"
421
+ "name": "value",
422
+ "description": "单选框当前选中始值",
423
+ "attribute": false,
424
+ "type": "any"
482
425
  },
483
426
  {
484
- "name": "disabled",
485
- "description": "是否禁用",
427
+ "name": "required",
428
+ "description": "是否必填",
486
429
  "type": "boolean"
487
430
  },
488
431
  {
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": "大小自适应",
432
+ "name": "message",
433
+ "description": "校验文本信息",
501
434
  "attribute": false,
502
- "type": "AutoSize"
435
+ "type": "Record<string, string>"
503
436
  },
504
437
  {
505
- "name": "required",
506
- "description": "是否必填",
438
+ "name": "disabled",
439
+ "description": "是否禁用",
507
440
  "type": "boolean"
508
441
  },
509
442
  {
510
- "name": "max",
511
- "description": "表单校验最大长度",
512
- "type": "number"
443
+ "name": "type",
444
+ "description": "单选框样式类型",
445
+ "default": "\"default\"",
446
+ "type": "RadioType"
513
447
  },
514
448
  {
515
- "name": "min",
516
- "description": "表单校验最小长度",
517
- "type": "number"
449
+ "name": "ui",
450
+ "description": "UI样式",
451
+ "default": "\"default\"",
452
+ "type": "UIType"
518
453
  },
519
454
  {
520
- "name": "message",
521
- "description": "校验信息",
522
- "attribute": false,
523
- "type": "Record<string, string>"
455
+ "name": "size",
456
+ "description": "大小,只对按钮样式生效",
457
+ "default": "\"medium\"",
458
+ "type": "ComponentSize"
524
459
  },
525
460
  {
526
- "name": "textareaStyle",
527
- "description": "自定义样式",
461
+ "name": "customStyle",
462
+ "description": "自定义radio的外层样式",
528
463
  "attribute": false,
529
464
  "type": "React.CSSProperties"
465
+ },
466
+ {
467
+ "name": "useBrick",
468
+ "description": "自定义radio的内容",
469
+ "attribute": false,
470
+ "type": "UseSingleBrickConf"
530
471
  }
531
472
  ],
532
473
  "events": [
533
474
  {
534
475
  "name": "change",
535
- "description": "",
476
+ "description": "值变化事件",
536
477
  "detail": {
537
- "description": null,
538
- "type": "string"
478
+ "type": "GeneralComplexOption | undefined"
479
+ }
480
+ },
481
+ {
482
+ "name": "options.change",
483
+ "description": "选项列表变化事件",
484
+ "detail": {
485
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
539
486
  }
540
487
  }
541
488
  ],
542
489
  "slots": [],
543
- "methods": [
490
+ "methods": [],
491
+ "parts": [],
492
+ "description": "通用单选构件",
493
+ "category": "form-input-basic"
494
+ },
495
+ {
496
+ "name": "eo-submit-buttons",
497
+ "alias": [
498
+ "form.submit-buttons"
499
+ ],
500
+ "properties": [
544
501
  {
545
- "name": "focusTextarea",
546
- "params": [],
547
- "description": "focus",
548
- "returns": {}
502
+ "name": "submitText",
503
+ "description": "提交按钮的文字",
504
+ "default": "\"提交\"",
505
+ "type": "string"
506
+ },
507
+ {
508
+ "name": "cancelText",
509
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
510
+ "type": "string"
511
+ },
512
+ {
513
+ "name": "disableAfterClick",
514
+ "description": "点击确定按钮后自动禁用",
515
+ "type": "boolean"
516
+ },
517
+ {
518
+ "name": "submitDisabled",
519
+ "description": "禁用提交按钮",
520
+ "type": "boolean"
521
+ },
522
+ {
523
+ "name": "submitType",
524
+ "description": "提交按钮类型",
525
+ "type": "ButtonType"
526
+ },
527
+ {
528
+ "name": "cancelType",
529
+ "description": "取消按钮类型",
530
+ "type": "ButtonType"
549
531
  }
550
532
  ],
533
+ "events": [
534
+ {
535
+ "name": "submit",
536
+ "description": "点击提交按钮触发的事件",
537
+ "detail": {
538
+ "type": "void"
539
+ }
540
+ },
541
+ {
542
+ "name": "cancel",
543
+ "description": "点击取消按钮触发的事件",
544
+ "detail": {
545
+ "type": "void"
546
+ }
547
+ }
548
+ ],
549
+ "slots": [],
550
+ "methods": [],
551
551
  "parts": [],
552
- "description": "通用多行文本输入框构件",
552
+ "description": "表单提交按钮",
553
553
  "category": "form-input-basic"
554
554
  },
555
555
  {
@@ -858,9 +858,9 @@
858
858
  "category": "form-input-basic"
859
859
  },
860
860
  {
861
- "name": "eo-switch",
861
+ "name": "eo-upload-image",
862
862
  "alias": [
863
- "form.general-switch"
863
+ "form.upload-image"
864
864
  ],
865
865
  "properties": [
866
866
  {
@@ -868,102 +868,20 @@
868
868
  "description": "字段名称",
869
869
  "type": "string"
870
870
  },
871
- {
872
- "name": "label",
873
- "description": "字段文本",
874
- "type": "string"
875
- },
876
- {
877
- "name": "value",
878
- "description": "初始值",
879
- "type": "boolean"
880
- },
881
- {
882
- "name": "disabled",
883
- "description": "是否禁用",
884
- "type": "boolean"
885
- },
886
- {
887
- "name": "size",
888
- "description": "按钮大小,目前只支持small和非small两种大小。",
889
- "type": "ComponentSize"
890
- },
891
- {
892
- "name": "checkedText",
893
- "description": "选中时的文本",
894
- "type": "string"
895
- },
896
- {
897
- "name": "unCheckedText",
898
- "description": "非选中时的文本",
899
- "type": "string"
900
- },
901
- {
902
- "name": "checkedIcon",
903
- "description": "选中时的图标",
904
- "attribute": false,
905
- "type": "GeneralIconProps"
906
- },
907
- {
908
- "name": "unCheckedIcon",
909
- "description": "非选中时的文本",
910
- "attribute": false,
911
- "type": "GeneralIconProps"
912
- }
913
- ],
914
- "events": [
915
- {
916
- "name": "switch",
917
- "description": "开关改变时触发",
918
- "detail": {
919
- "type": "boolean"
920
- }
921
- }
922
- ],
923
- "slots": [],
924
- "methods": [],
925
- "parts": [],
926
- "description": "开关",
927
- "category": "form-input-basic"
928
- },
929
- {
930
- "name": "eo-upload-file",
931
- "properties": [
932
871
  {
933
872
  "name": "label",
934
873
  "description": "字段说明",
935
874
  "type": "string"
936
875
  },
937
876
  {
938
- "name": "name",
939
- "description": "字段名称",
940
- "type": "string"
941
- },
942
- {
943
- "name": "required",
944
- "description": "是否必填",
945
- "type": "boolean"
946
- },
947
- {
948
- "name": "message",
949
- "description": "校验文本信息",
950
- "attribute": false,
951
- "type": "Record<string, string>"
952
- },
953
- {
954
- "name": "value",
955
- "description": "值",
956
- "attribute": false,
957
- "type": "FileData[]"
958
- },
959
- {
960
- "name": "multiple",
961
- "description": "是否支持多选",
962
- "type": "boolean"
877
+ "name": "value",
878
+ "description": "",
879
+ "attribute": false,
880
+ "type": "ImageData[]"
963
881
  },
964
882
  {
965
- "name": "accept",
966
- "description": "接受上传的文件类型,多个之间用 `,` 连接",
883
+ "name": "bucketName",
884
+ "description": "对象存储桶名字",
967
885
  "type": "string"
968
886
  },
969
887
  {
@@ -971,82 +889,110 @@
971
889
  "description": "最大上传数量",
972
890
  "type": "number"
973
891
  },
892
+ {
893
+ "name": "multiple",
894
+ "description": "是否支持选定的多张图片",
895
+ "type": "boolean"
896
+ },
974
897
  {
975
898
  "name": "limitSize",
976
899
  "description": "上传大小限制(单位为 MB)",
977
900
  "type": "number"
978
901
  },
979
902
  {
980
- "name": "buttonText",
981
- "description": "上传按钮文本",
982
- "default": "上传",
983
- "type": "string"
984
- },
985
- {
986
- "name": "buttonType",
987
- "description": "上传按钮类型",
988
- "type": "ButtonProps[\"type\"]"
903
+ "name": "required",
904
+ "description": "是否必填",
905
+ "type": "boolean"
989
906
  },
990
907
  {
991
- "name": "buttonIcon",
992
- "description": "上传按钮类型",
993
- "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
908
+ "name": "message",
909
+ "description": "校验文本信息",
994
910
  "attribute": false,
995
- "type": "GeneralIconProps"
911
+ "type": "Record<string, string>"
912
+ }
913
+ ],
914
+ "events": [
915
+ {
916
+ "name": "change",
917
+ "description": "值变化时触发",
918
+ "detail": {
919
+ "type": "ImageData[]"
920
+ }
921
+ }
922
+ ],
923
+ "slots": [],
924
+ "methods": [],
925
+ "parts": [],
926
+ "description": "上传图片构件",
927
+ "category": "form-input-basic"
928
+ },
929
+ {
930
+ "name": "eo-switch",
931
+ "alias": [
932
+ "form.general-switch"
933
+ ],
934
+ "properties": [
935
+ {
936
+ "name": "name",
937
+ "description": "字段名称",
938
+ "type": "string"
996
939
  },
997
940
  {
998
- "name": "overMaxCountMode",
999
- "description": "超出最大上传数量时文件的保留方式",
1000
- "default": "\"replace\"",
1001
- "type": "\"ignore\" | \"replace\""
941
+ "name": "label",
942
+ "description": "字段文本",
943
+ "type": "string"
1002
944
  },
1003
945
  {
1004
- "name": "uploadDraggable",
1005
- "description": "是否可以拖拽上传",
946
+ "name": "value",
947
+ "description": "初始值",
1006
948
  "type": "boolean"
1007
949
  },
1008
950
  {
1009
- "name": "draggableUploadTip",
1010
- "description": "拖拽上传的提示信息",
1011
- "type": "string"
951
+ "name": "disabled",
952
+ "description": "是否禁用",
953
+ "type": "boolean"
1012
954
  },
1013
955
  {
1014
- "name": "autoUpload",
1015
- "description": "是否自动上传",
1016
- "default": "false",
1017
- "type": "boolean"
956
+ "name": "size",
957
+ "description": "按钮大小,目前只支持small和非small两种大小。",
958
+ "type": "ComponentSize"
1018
959
  },
1019
960
  {
1020
- "name": "url",
1021
- "description": "自动上传的地址",
961
+ "name": "checkedText",
962
+ "description": "选中时的文本",
1022
963
  "type": "string"
1023
964
  },
1024
965
  {
1025
- "name": "method",
1026
- "description": "自动上传的方法",
1027
- "default": "\"POST\"",
966
+ "name": "unCheckedText",
967
+ "description": "非选中时的文本",
1028
968
  "type": "string"
1029
969
  },
1030
970
  {
1031
- "name": "uploadName",
1032
- "description": "自动上传的文件参数名",
1033
- "default": "\"file\"",
1034
- "type": "string"
971
+ "name": "checkedIcon",
972
+ "description": "选中时的图标",
973
+ "attribute": false,
974
+ "type": "GeneralIconProps"
975
+ },
976
+ {
977
+ "name": "unCheckedIcon",
978
+ "description": "非选中时的文本",
979
+ "attribute": false,
980
+ "type": "GeneralIconProps"
1035
981
  }
1036
982
  ],
1037
983
  "events": [
1038
984
  {
1039
- "name": "change",
1040
- "description": "值变化时触发",
985
+ "name": "switch",
986
+ "description": "开关改变时触发",
1041
987
  "detail": {
1042
- "type": "FileData[]"
988
+ "type": "boolean"
1043
989
  }
1044
990
  }
1045
991
  ],
1046
992
  "slots": [],
1047
993
  "methods": [],
1048
994
  "parts": [],
1049
- "description": "上传文件",
995
+ "description": "开关",
1050
996
  "category": "form-input-basic"
1051
997
  },
1052
998
  {
@@ -1133,147 +1079,201 @@
1133
1079
  "category": "form-input-basic"
1134
1080
  },
1135
1081
  {
1136
- "name": "eo-upload-image",
1137
- "alias": [
1138
- "form.upload-image"
1139
- ],
1082
+ "name": "eo-time-picker",
1140
1083
  "properties": [
1141
1084
  {
1142
1085
  "name": "name",
1143
- "description": "字段名称",
1086
+ "description": "时间选择器字段名",
1144
1087
  "type": "string"
1145
1088
  },
1146
1089
  {
1147
1090
  "name": "label",
1148
- "description": "字段说明",
1091
+ "description": "时间选择器说明",
1149
1092
  "type": "string"
1150
1093
  },
1151
1094
  {
1152
1095
  "name": "value",
1153
- "description": "",
1154
- "attribute": false,
1155
- "type": "ImageData[]"
1096
+ "description": "时间选择器的初始值",
1097
+ "type": "string"
1156
1098
  },
1157
1099
  {
1158
- "name": "bucketName",
1159
- "description": "对象存储桶名字",
1100
+ "name": "placeholder",
1101
+ "description": "时间选择器占位说明",
1160
1102
  "type": "string"
1161
1103
  },
1162
1104
  {
1163
- "name": "maxCount",
1164
- "description": "最大上传数量",
1165
- "type": "number"
1105
+ "name": "message",
1106
+ "description": "校验文本信息",
1107
+ "attribute": false,
1108
+ "type": "Record<string, string>"
1166
1109
  },
1167
1110
  {
1168
- "name": "multiple",
1169
- "description": "是否支持选定的多张图片",
1111
+ "name": "disabled",
1112
+ "description": "是否禁用",
1170
1113
  "type": "boolean"
1171
1114
  },
1172
- {
1173
- "name": "limitSize",
1174
- "description": "上传大小限制(单位为 MB)",
1175
- "type": "number"
1176
- },
1177
1115
  {
1178
1116
  "name": "required",
1179
1117
  "description": "是否必填",
1180
1118
  "type": "boolean"
1181
1119
  },
1182
1120
  {
1183
- "name": "message",
1184
- "description": "校验文本信息",
1121
+ "name": "configProps",
1122
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1185
1123
  "attribute": false,
1186
- "type": "Record<string, string>"
1124
+ "type": "Partial<TimePickerProps>"
1187
1125
  }
1188
1126
  ],
1189
1127
  "events": [
1190
1128
  {
1191
1129
  "name": "change",
1192
- "description": "值变化时触发",
1130
+ "description": "时间变化时触发",
1193
1131
  "detail": {
1194
- "type": "ImageData[]"
1132
+ "type": "string"
1133
+ }
1134
+ },
1135
+ {
1136
+ "name": "open",
1137
+ "description": "面板打开时触发, 传出当前时间值",
1138
+ "detail": {
1139
+ "type": "string"
1140
+ }
1141
+ },
1142
+ {
1143
+ "name": "close",
1144
+ "description": "面板关闭时触发,传出当前时间值",
1145
+ "detail": {
1146
+ "type": "string"
1195
1147
  }
1196
1148
  }
1197
1149
  ],
1198
1150
  "slots": [],
1199
1151
  "methods": [],
1200
1152
  "parts": [],
1201
- "description": "上传图片构件",
1153
+ "description": "时间选择器",
1202
1154
  "category": "form-input-basic"
1203
1155
  },
1204
1156
  {
1205
- "name": "eo-time-picker",
1157
+ "name": "eo-upload-file",
1206
1158
  "properties": [
1207
1159
  {
1208
- "name": "name",
1209
- "description": "时间选择器字段名",
1160
+ "name": "label",
1161
+ "description": "字段说明",
1210
1162
  "type": "string"
1211
1163
  },
1212
1164
  {
1213
- "name": "label",
1214
- "description": "时间选择器说明",
1165
+ "name": "name",
1166
+ "description": "字段名称",
1215
1167
  "type": "string"
1216
1168
  },
1169
+ {
1170
+ "name": "required",
1171
+ "description": "是否必填",
1172
+ "type": "boolean"
1173
+ },
1174
+ {
1175
+ "name": "message",
1176
+ "description": "校验文本信息",
1177
+ "attribute": false,
1178
+ "type": "Record<string, string>"
1179
+ },
1217
1180
  {
1218
1181
  "name": "value",
1219
- "description": "时间选择器的初始值",
1182
+ "description": "",
1183
+ "attribute": false,
1184
+ "type": "FileData[]"
1185
+ },
1186
+ {
1187
+ "name": "multiple",
1188
+ "description": "是否支持多选",
1189
+ "type": "boolean"
1190
+ },
1191
+ {
1192
+ "name": "accept",
1193
+ "description": "接受上传的文件类型,多个之间用 `,` 连接",
1220
1194
  "type": "string"
1221
1195
  },
1222
1196
  {
1223
- "name": "placeholder",
1224
- "description": "时间选择器占位说明",
1197
+ "name": "maxCount",
1198
+ "description": "最大上传数量",
1199
+ "type": "number"
1200
+ },
1201
+ {
1202
+ "name": "limitSize",
1203
+ "description": "上传大小限制(单位为 MB)",
1204
+ "type": "number"
1205
+ },
1206
+ {
1207
+ "name": "buttonText",
1208
+ "description": "上传按钮文本",
1209
+ "default": "上传",
1225
1210
  "type": "string"
1226
1211
  },
1227
1212
  {
1228
- "name": "message",
1229
- "description": "校验文本信息",
1213
+ "name": "buttonType",
1214
+ "description": "上传按钮类型",
1215
+ "type": "ButtonProps[\"type\"]"
1216
+ },
1217
+ {
1218
+ "name": "buttonIcon",
1219
+ "description": "上传按钮类型",
1220
+ "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
1230
1221
  "attribute": false,
1231
- "type": "Record<string, string>"
1222
+ "type": "GeneralIconProps"
1232
1223
  },
1233
1224
  {
1234
- "name": "disabled",
1235
- "description": "是否禁用",
1225
+ "name": "overMaxCountMode",
1226
+ "description": "超出最大上传数量时文件的保留方式",
1227
+ "default": "\"replace\"",
1228
+ "type": "\"ignore\" | \"replace\""
1229
+ },
1230
+ {
1231
+ "name": "uploadDraggable",
1232
+ "description": "是否可以拖拽上传",
1233
+ "type": "boolean"
1234
+ },
1235
+ {
1236
+ "name": "draggableUploadTip",
1237
+ "description": "拖拽上传的提示信息",
1238
+ "type": "string"
1239
+ },
1240
+ {
1241
+ "name": "autoUpload",
1242
+ "description": "是否自动上传",
1243
+ "default": "false",
1236
1244
  "type": "boolean"
1237
1245
  },
1238
1246
  {
1239
- "name": "required",
1240
- "description": "是否必填",
1241
- "type": "boolean"
1247
+ "name": "url",
1248
+ "description": "自动上传的地址",
1249
+ "type": "string"
1242
1250
  },
1243
1251
  {
1244
- "name": "configProps",
1245
- "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1246
- "attribute": false,
1247
- "type": "Partial<TimePickerProps>"
1252
+ "name": "method",
1253
+ "description": "自动上传的方法",
1254
+ "default": "\"POST\"",
1255
+ "type": "string"
1256
+ },
1257
+ {
1258
+ "name": "uploadName",
1259
+ "description": "自动上传的文件参数名",
1260
+ "default": "\"file\"",
1261
+ "type": "string"
1248
1262
  }
1249
1263
  ],
1250
1264
  "events": [
1251
1265
  {
1252
1266
  "name": "change",
1253
- "description": "时间变化时触发",
1254
- "detail": {
1255
- "type": "string"
1256
- }
1257
- },
1258
- {
1259
- "name": "open",
1260
- "description": "面板打开时触发, 传出当前时间值",
1261
- "detail": {
1262
- "type": "string"
1263
- }
1264
- },
1265
- {
1266
- "name": "close",
1267
- "description": "面板关闭时触发,传出当前时间值",
1267
+ "description": "值变化时触发",
1268
1268
  "detail": {
1269
- "type": "string"
1269
+ "type": "FileData[]"
1270
1270
  }
1271
1271
  }
1272
1272
  ],
1273
1273
  "slots": [],
1274
1274
  "methods": [],
1275
1275
  "parts": [],
1276
- "description": "时间选择器",
1276
+ "description": "上传文件",
1277
1277
  "category": "form-input-basic"
1278
1278
  },
1279
1279
  {
@@ -1536,6 +1536,114 @@
1536
1536
  "parts": [],
1537
1537
  "description": "构件 `eo-color-picker`"
1538
1538
  },
1539
+ {
1540
+ "name": "eo-form-item",
1541
+ "alias": [
1542
+ "form.general-form-item"
1543
+ ],
1544
+ "properties": [
1545
+ {
1546
+ "name": "formElement",
1547
+ "attribute": false,
1548
+ "type": "Form"
1549
+ },
1550
+ {
1551
+ "name": "curElement",
1552
+ "attribute": false,
1553
+ "type": "HTMLElement"
1554
+ },
1555
+ {
1556
+ "name": "name",
1557
+ "description": "字段名称",
1558
+ "type": "string"
1559
+ },
1560
+ {
1561
+ "name": "label",
1562
+ "type": "string"
1563
+ },
1564
+ {
1565
+ "name": "pattern",
1566
+ "type": "string"
1567
+ },
1568
+ {
1569
+ "name": "message",
1570
+ "attribute": false,
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"
1584
+ },
1585
+ {
1586
+ "name": "required",
1587
+ "description": "表单项是否为必填",
1588
+ "type": "boolean"
1589
+ },
1590
+ {
1591
+ "name": "value",
1592
+ "description": "初始值",
1593
+ "type": "string"
1594
+ },
1595
+ {
1596
+ "name": "valuePropsName",
1597
+ "type": "string"
1598
+ },
1599
+ {
1600
+ "name": "layout",
1601
+ "type": "Layout"
1602
+ },
1603
+ {
1604
+ "name": "size",
1605
+ "type": "ComponentSize"
1606
+ },
1607
+ {
1608
+ "name": "trim",
1609
+ "description": "是否自动去除前后的空白字符",
1610
+ "default": "true"
1611
+ },
1612
+ {
1613
+ "name": "trigger",
1614
+ "description": "事件触发方法名",
1615
+ "type": "string"
1616
+ },
1617
+ {
1618
+ "name": "validator",
1619
+ "description": "表单项校验方法",
1620
+ "attribute": false,
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": "文本内容"
1632
+ }
1633
+ ],
1634
+ "events": [],
1635
+ "slots": [
1636
+ {
1637
+ "name": null,
1638
+ "description": "表单项内容"
1639
+ }
1640
+ ],
1641
+ "methods": [],
1642
+ "parts": [],
1643
+ "description": "通用输入框构件",
1644
+ "category": "form-input-basic",
1645
+ "insider": true
1646
+ },
1539
1647
  {
1540
1648
  "name": "eo-input",
1541
1649
  "alias": [
@@ -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": []