@next-bricks/form 1.21.7 → 1.21.9

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 (36) hide show
  1. package/dist/bricks.json +42 -42
  2. package/dist/chunks/9949.753e2720.js.map +1 -1
  3. package/dist/chunks/eo-checkbox.0b875e8b.js.map +1 -1
  4. package/dist/chunks/eo-color-picker.c3b11b2f.js.map +1 -1
  5. package/dist/chunks/eo-date-picker.f5894c3c.js.map +1 -1
  6. package/dist/chunks/eo-dynamic-form-item.3837c24e.js.map +1 -1
  7. package/dist/chunks/eo-icon-select.d343ca96.js.map +1 -1
  8. package/dist/chunks/eo-select.9c05c45b.js.map +1 -1
  9. package/dist/chunks/eo-submit-buttons.bccc3dbf.js.map +1 -1
  10. package/dist/chunks/eo-switch.3607f593.js.map +1 -1
  11. package/dist/chunks/eo-textarea.fbc8c190.js.map +1 -1
  12. package/dist/chunks/eo-time-picker.da156d88.js.map +1 -1
  13. package/dist/chunks/eo-time-range-picker.15864724.js.map +1 -1
  14. package/dist/chunks/eo-upload-file.8e5acc0f.js.map +1 -1
  15. package/dist/chunks/eo-upload-image.1ae9beb3.js.map +1 -1
  16. package/dist/chunks/{main.87225246.js → main.7bc729a9.js} +2 -2
  17. package/dist/chunks/{main.87225246.js.map → main.7bc729a9.js.map} +1 -1
  18. package/dist/examples.json +16 -16
  19. package/dist/{index.6bd92494.js → index.cfcc28b9.js} +2 -2
  20. package/dist/{index.6bd92494.js.map → index.cfcc28b9.js.map} +1 -1
  21. package/dist/manifest.json +716 -716
  22. package/dist/types.json +1127 -1127
  23. package/dist-types/checkbox/index.d.ts +11 -0
  24. package/dist-types/color-picker/index.d.ts +6 -0
  25. package/dist-types/date-picker/index.d.ts +8 -0
  26. package/dist-types/dynamic-form-item/index.d.ts +12 -2
  27. package/dist-types/general-switch/index.d.ts +7 -2
  28. package/dist-types/icon-select/index.d.ts +7 -1
  29. package/dist-types/select/index.d.ts +26 -0
  30. package/dist-types/submit-buttons/index.d.ts +8 -0
  31. package/dist-types/textarea/index.d.ts +6 -0
  32. package/dist-types/time-picker/index.d.ts +11 -2
  33. package/dist-types/time-range-picker/index.d.ts +6 -0
  34. package/dist-types/upload/upload-file/index.d.ts +6 -0
  35. package/dist-types/upload/upload-image/index.d.ts +6 -0
  36. package/package.json +2 -2
@@ -4,152 +4,111 @@
4
4
  "name": "form",
5
5
  "bricks": [
6
6
  {
7
- "name": "eo-form",
7
+ "name": "eo-textarea",
8
8
  "alias": [
9
- "form.general-form"
9
+ "form.general-textarea"
10
10
  ],
11
11
  "properties": [
12
12
  {
13
- "name": "staticValues",
14
- "attribute": false,
15
- "type": "Record<string, unknown>"
13
+ "name": "name",
14
+ "description": "字段名称",
15
+ "type": "string"
16
16
  },
17
17
  {
18
- "name": "layout",
19
- "description": "布局方式(默认 vertical 布局)",
20
- "default": "vertical",
21
- "type": "Layout"
18
+ "name": "label",
19
+ "description": "标签文字",
20
+ "type": "string"
22
21
  },
23
22
  {
24
- "name": "size",
25
- "description": "表单组件尺寸",
26
- "type": "ComponentSize"
23
+ "name": "value",
24
+ "description": "",
25
+ "type": "string"
27
26
  },
28
27
  {
29
- "name": "labelCol",
30
- "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
31
- "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 }",
32
- "attribute": false,
33
- "type": "ColProps"
28
+ "name": "placeholder",
29
+ "description": "占位说明",
30
+ "type": "string"
34
31
  },
35
32
  {
36
- "name": "wrapperCol",
37
- "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
38
- "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 }",
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": "大小自适应",
39
50
  "attribute": false,
40
- "type": "ColProps"
51
+ "type": "AutoSize"
41
52
  },
42
53
  {
43
- "name": "autoScrollToInvalidFields",
54
+ "name": "required",
55
+ "description": "是否必填",
44
56
  "type": "boolean"
45
57
  },
46
58
  {
47
- "name": "formStyle",
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": "自定义样式",
48
77
  "attribute": false,
49
78
  "type": "React.CSSProperties"
50
79
  },
51
80
  {
52
- "name": "textContent",
53
- "type": "string",
54
- "description": "文本内容"
81
+ "name": "variant",
82
+ "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
83
+ "type": "\"default\" | \"muted\""
84
+ },
85
+ {
86
+ "name": "themeVariant",
87
+ "description": "主题变体",
88
+ "type": "\"default\" | \"elevo\""
55
89
  }
56
90
  ],
57
91
  "events": [
58
92
  {
59
- "name": "values.change",
60
- "description": "表单值变更事件",
93
+ "name": "change",
94
+ "description": "",
61
95
  "detail": {
62
96
  "description": null,
63
- "type": "Record<string, unknown>"
64
- }
65
- },
66
- {
67
- "name": "validate.success",
68
- "description": "表单验证成功时触发事件",
69
- "detail": {
70
- "type": "Record<string, unknown>"
71
- }
72
- },
73
- {
74
- "name": "validate.error",
75
- "description": "表单验证报错时触发事件",
76
- "detail": {
77
- "type": "(MessageBody & { name: string })[]"
97
+ "type": "string"
78
98
  }
79
99
  }
80
100
  ],
81
- "slots": [
82
- {
83
- "name": null,
84
- "description": "表单内容"
85
- }
86
- ],
101
+ "slots": [],
87
102
  "methods": [
88
103
  {
89
- "name": "validate",
90
- "params": [],
91
- "description": "表单校验方法",
92
- "returns": {
93
- "type": "boolean | Record<string, unknown>"
94
- }
95
- },
96
- {
97
- "name": "setInitValue",
98
- "params": [
99
- {
100
- "name": "values",
101
- "type": "Record<string, unknown>"
102
- },
103
- {
104
- "name": "options",
105
- "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
106
- }
107
- ],
108
- "description": "表单设置值方法",
109
- "returns": {}
110
- },
111
- {
112
- "name": "resetFields",
113
- "params": [
114
- {
115
- "name": "name",
116
- "type": "string"
117
- }
118
- ],
119
- "description": "表单重置值方法",
120
- "returns": {}
121
- },
122
- {
123
- "name": "getFieldsValue",
124
- "params": [
125
- {
126
- "name": "name",
127
- "type": "string"
128
- }
129
- ],
130
- "description": "获取表单值方法",
131
- "returns": {}
132
- },
133
- {
134
- "name": "validateField",
135
- "params": [
136
- {
137
- "name": "name",
138
- "type": "string"
139
- }
140
- ],
141
- "description": "校验表单字段方法",
142
- "returns": {}
143
- },
144
- {
145
- "name": "resetValidateState",
104
+ "name": "focusTextarea",
146
105
  "params": [],
147
- "description": "重置表单校验状态方法",
106
+ "description": "focus",
148
107
  "returns": {}
149
108
  }
150
109
  ],
151
110
  "parts": [],
152
- "description": "表单构件",
111
+ "description": "通用多行文本输入框构件",
153
112
  "category": "form-input-basic"
154
113
  },
155
114
  {
@@ -256,139 +215,122 @@
256
215
  "category": "form-input-basic"
257
216
  },
258
217
  {
259
- "name": "eo-submit-buttons",
218
+ "name": "eo-select",
260
219
  "alias": [
261
- "form.submit-buttons"
220
+ "form.general-select"
262
221
  ],
263
222
  "properties": [
264
223
  {
265
- "name": "submitText",
266
- "description": "提交按钮的文字",
267
- "default": "\"提交\"",
224
+ "name": "name",
225
+ "description": "字段名称",
268
226
  "type": "string"
269
227
  },
270
228
  {
271
- "name": "cancelText",
272
- "description": "取消按钮的文字,不设置则不显示取消按钮",
229
+ "name": "placeholder",
230
+ "description": "占位说明",
273
231
  "type": "string"
274
232
  },
275
233
  {
276
- "name": "disableAfterClick",
277
- "description": "点击确定按钮后自动禁用",
234
+ "name": "label",
235
+ "description": "字段文本",
236
+ "type": "string"
237
+ },
238
+ {
239
+ "name": "options",
240
+ "description": "选项列表",
241
+ "required": true,
242
+ "attribute": false,
243
+ "type": "GeneralComplexOption[]"
244
+ },
245
+ {
246
+ "name": "value",
247
+ "description": "值",
248
+ "attribute": false,
249
+ "type": "any"
250
+ },
251
+ {
252
+ "name": "required",
253
+ "description": "是否必填",
278
254
  "type": "boolean"
279
255
  },
280
256
  {
281
- "name": "submitDisabled",
282
- "description": "禁用提交按钮",
257
+ "name": "message",
258
+ "description": "校验文本信息",
259
+ "attribute": false,
260
+ "type": "Record<string, string>"
261
+ },
262
+ {
263
+ "name": "disabled",
264
+ "description": "是否禁用",
283
265
  "type": "boolean"
284
266
  },
285
267
  {
286
- "name": "submitType",
287
- "description": "提交按钮类型",
288
- "type": "ButtonType"
268
+ "name": "mode",
269
+ "description": "类型",
270
+ "type": "\"tags\" | \"multiple\""
289
271
  },
290
272
  {
291
- "name": "cancelType",
292
- "description": "取消按钮类型",
293
- "type": "ButtonType"
273
+ "name": "tokenSeparators",
274
+ "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
275
+ "attribute": false,
276
+ "type": "string[]"
294
277
  },
295
278
  {
296
- "name": "themeVariant",
297
- "description": "主题变体",
298
- "type": "\"default\" | \"elevo\""
299
- }
300
- ],
301
- "events": [
279
+ "name": "maxTagCount",
280
+ "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
281
+ "type": "number"
282
+ },
302
283
  {
303
- "name": "submit",
304
- "description": "点击提交按钮触发的事件",
305
- "detail": {
306
- "type": "void"
307
- }
284
+ "name": "groupBy",
285
+ "description": "分组字段",
286
+ "type": "string"
308
287
  },
309
288
  {
310
- "name": "cancel",
311
- "description": "点击取消按钮触发的事件",
312
- "detail": {
313
- "type": "void"
314
- }
315
- }
316
- ],
317
- "slots": [],
318
- "methods": [],
319
- "parts": [],
320
- "description": "表单提交按钮",
321
- "category": "form-input-basic"
322
- },
323
- {
324
- "name": "eo-checkbox",
325
- "alias": [
326
- "form.general-checkbox"
327
- ],
328
- "properties": [
329
- {
330
- "name": "name",
331
- "description": "字段名称",
332
- "type": "string"
289
+ "name": "suffix",
290
+ "description": "",
291
+ "attribute": false,
292
+ "type": "{ useBrick: UseSingleBrickConf }"
333
293
  },
334
294
  {
335
- "name": "label",
336
- "description": "字段说明",
337
- "type": "string"
295
+ "name": "clearable",
296
+ "description": "是否支持清除",
297
+ "default": "true",
298
+ "type": "boolean"
338
299
  },
339
300
  {
340
- "name": "value",
341
- "description": "",
301
+ "name": "fields",
302
+ "description": "列表指定字段作为 label 和 value",
342
303
  "attribute": false,
343
- "type": "CheckboxValueType[]"
304
+ "type": "{ label?: string; value?: string }"
344
305
  },
345
306
  {
346
- "name": "options",
347
- "description": "多选框选项表",
348
- "required": true,
349
- "default": "[]",
307
+ "name": "useBackend",
308
+ "description": "后端搜索",
350
309
  "attribute": false,
351
- "type": "CheckboxOptionType[]"
352
- },
353
- {
354
- "name": "type",
355
- "description": "类型",
356
- "default": "\"default\"",
357
- "type": "CheckboxType"
358
- },
359
- {
360
- "name": "disabled",
361
- "description": "是否禁用",
362
- "type": "boolean"
310
+ "type": "UseBackendConf"
363
311
  },
364
312
  {
365
- "name": "isCustom",
366
- "description": "是否为自定义",
367
- "default": "false",
368
- "type": "boolean"
313
+ "name": "debounceSearchDelay",
314
+ "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
315
+ "type": "number"
369
316
  },
370
317
  {
371
- "name": "required",
372
- "description": "是否必填",
373
- "type": "boolean"
318
+ "name": "inputStyle",
319
+ "description": "输入框样式",
320
+ "attribute": false,
321
+ "type": "React.CSSProperties"
374
322
  },
375
323
  {
376
- "name": "message",
377
- "description": "校验文本",
324
+ "name": "dropdownStyle",
325
+ "description": "下拉框样式",
378
326
  "attribute": false,
379
- "type": "Record<string, string>"
327
+ "type": "React.CSSProperties"
380
328
  },
381
329
  {
382
- "name": "isGroup",
383
- "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
330
+ "name": "dropdownHoist",
331
+ "description": "下拉框是否使用固定定位防止内容被裁切",
384
332
  "type": "boolean"
385
333
  },
386
- {
387
- "name": "optionGroups",
388
- "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
389
- "attribute": false,
390
- "type": "OptionGroup[]"
391
- },
392
334
  {
393
335
  "name": "themeVariant",
394
336
  "description": "主题变体",
@@ -398,334 +340,232 @@
398
340
  "events": [
399
341
  {
400
342
  "name": "change",
401
- "description": "复选框变化事件",
343
+ "description": "下拉选择事件",
402
344
  "detail": {
403
- "type": "CheckboxOptionType[]"
345
+ "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
404
346
  }
405
347
  },
406
348
  {
407
- "name": "options.change",
408
- "description": "复选框变化事件",
349
+ "name": "change.v2",
350
+ "description": "下拉选择事件 v2(仅传递选中的值)",
409
351
  "detail": {
410
- "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
352
+ "description": "选中的值",
353
+ "type": "string | string[]"
411
354
  }
412
- }
413
- ],
414
- "slots": [],
415
- "methods": [],
416
- "parts": [],
417
- "description": "表单复选框构件",
418
- "category": "form-input-basic"
419
- },
420
- {
421
- "name": "eo-dynamic-form-item",
422
- "alias": [
423
- "form.dynamic-form-item"
424
- ],
425
- "properties": [
426
- {
427
- "name": "name",
428
- "description": "字段名称",
429
- "type": "string"
430
- },
431
- {
432
- "name": "label",
433
- "description": "字段说明",
434
- "type": "string"
435
- },
436
- {
437
- "name": "required",
438
- "description": "是否必填",
439
- "type": "boolean"
440
- },
441
- {
442
- "name": "value",
443
- "description": "值",
444
- "attribute": false,
445
- "type": "DynamicFormValuesItem[]"
446
- },
447
- {
448
- "name": "message",
449
- "description": "校验文本",
450
- "attribute": false,
451
- "type": "Record<string, string>"
452
- },
453
- {
454
- "name": "hideRemoveButton",
455
- "description": "是否隐藏每一行删除的按钮",
456
- "attribute": false,
457
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
458
- },
459
- {
460
- "name": "disabledRemoveButton",
461
- "description": "是否禁止每一行删除的按钮",
462
- "attribute": false,
463
- "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
464
- },
465
- {
466
- "name": "hideAddButton",
467
- "description": "是否隐藏添加的按钮",
468
- "attribute": false,
469
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
470
355
  },
471
356
  {
472
- "name": "disabledAddButton",
473
- "description": "是否禁止添加的按钮",
474
- "attribute": false,
475
- "type": "boolean | ((value: Record<string, any>[]) => boolean)"
476
- },
477
- {
478
- "name": "useBrick",
479
- "description": "动态表单子项构件列表",
480
- "attribute": false,
481
- "type": "UseBrickConf"
482
- }
483
- ],
484
- "events": [
485
- {
486
- "name": "change",
357
+ "name": "search",
358
+ "description": "下拉框search事件",
487
359
  "detail": {
488
- "type": "DynamicFormValuesItem[]"
360
+ "type": "{\n value: string;\n }"
489
361
  }
490
362
  },
491
363
  {
492
- "name": "row.add",
493
- "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
364
+ "name": "select.focus",
365
+ "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
494
366
  "detail": {
495
- "type": "rowDataType"
367
+ "type": "void"
496
368
  }
497
369
  },
498
370
  {
499
- "name": "row.remove",
500
- "description": "移除一行时触发,detail为该行的值,index为该行的位置",
371
+ "name": "options.change",
372
+ "description": "选项列表变化事件",
501
373
  "detail": {
502
- "type": "rowDataType"
374
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
503
375
  }
504
376
  }
505
377
  ],
506
378
  "slots": [],
507
379
  "methods": [],
508
380
  "parts": [],
509
- "description": "动态表单",
381
+ "description": "通用下拉选择构件",
510
382
  "category": "form-input-basic"
511
383
  },
512
384
  {
513
- "name": "eo-search",
385
+ "name": "eo-form",
514
386
  "alias": [
515
- "form.general-search"
387
+ "form.general-form"
516
388
  ],
517
389
  "properties": [
518
390
  {
519
- "name": "value",
520
- "description": "搜索框的值",
521
- "default": "\"\"",
522
- "type": "string"
391
+ "name": "staticValues",
392
+ "attribute": false,
393
+ "type": "Record<string, unknown>"
523
394
  },
524
395
  {
525
- "name": "placeholder",
526
- "description": "提示语",
527
- "type": "string"
396
+ "name": "layout",
397
+ "description": "布局方式(默认 vertical 布局)",
398
+ "default": "vertical",
399
+ "type": "Layout"
528
400
  },
529
401
  {
530
- "name": "autoFocus",
531
- "description": "是否自动聚焦",
532
- "type": "boolean"
402
+ "name": "size",
403
+ "description": "表单组件尺寸",
404
+ "type": "ComponentSize"
533
405
  },
534
406
  {
535
- "name": "clearable",
536
- "description": "可以点击清除图标删除内容",
537
- "type": "boolean"
407
+ "name": "labelCol",
408
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
409
+ "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 }",
410
+ "attribute": false,
411
+ "type": "ColProps"
538
412
  },
539
413
  {
540
- "name": "trim",
541
- "description": "是否剔除前后空格",
542
- "type": "boolean"
414
+ "name": "wrapperCol",
415
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
416
+ "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 }",
417
+ "attribute": false,
418
+ "type": "ColProps"
543
419
  },
544
420
  {
545
- "name": "debounceTime",
546
- "description": "默认延迟时间",
547
- "default": "0",
548
- "type": "number"
421
+ "name": "autoScrollToInvalidFields",
422
+ "type": "boolean"
549
423
  },
550
424
  {
551
- "name": "inputStyle",
552
- "description": "输入框样式",
425
+ "name": "formStyle",
553
426
  "attribute": false,
554
- "type": "CSSProperties"
427
+ "type": "React.CSSProperties"
555
428
  },
556
429
  {
557
- "name": "themeVariant",
558
- "description": "主题变体",
559
- "type": "\"default\" | \"elevo\""
430
+ "name": "textContent",
431
+ "type": "string",
432
+ "description": "文本内容"
560
433
  }
561
434
  ],
562
435
  "events": [
563
436
  {
564
- "name": "change",
565
- "description": "输入的搜索字符,输入变化时触发",
437
+ "name": "values.change",
438
+ "description": "表单值变更事件",
566
439
  "detail": {
567
- "type": "string"
440
+ "description": null,
441
+ "type": "Record<string, unknown>"
568
442
  }
569
443
  },
570
444
  {
571
- "name": "search",
572
- "description": "搜索时触发",
445
+ "name": "validate.success",
446
+ "description": "表单验证成功时触发事件",
573
447
  "detail": {
574
- "type": "string"
448
+ "type": "Record<string, unknown>"
575
449
  }
576
- }
577
- ],
578
- "slots": [],
579
- "methods": [],
580
- "parts": [],
581
- "description": "搜索框",
582
- "category": "interact-basic"
583
- },
584
- {
585
- "name": "eo-textarea",
586
- "alias": [
587
- "form.general-textarea"
588
- ],
589
- "properties": [
590
- {
591
- "name": "name",
592
- "description": "字段名称",
593
- "type": "string"
594
450
  },
595
451
  {
596
- "name": "label",
597
- "description": "标签文字",
598
- "type": "string"
599
- },
600
- {
601
- "name": "value",
602
- "description": "值",
603
- "type": "string"
604
- },
605
- {
606
- "name": "placeholder",
607
- "description": "占位说明",
608
- "type": "string"
609
- },
610
- {
611
- "name": "disabled",
612
- "description": "是否禁用",
613
- "type": "boolean"
614
- },
615
- {
616
- "name": "minLength",
617
- "description": "最小长度",
618
- "type": "number"
619
- },
620
- {
621
- "name": "maxLength",
622
- "description": "最大长度",
623
- "type": "number"
624
- },
625
- {
626
- "name": "autoSize",
627
- "description": "大小自适应",
628
- "attribute": false,
629
- "type": "AutoSize"
630
- },
452
+ "name": "validate.error",
453
+ "description": "表单验证报错时触发事件",
454
+ "detail": {
455
+ "type": "(MessageBody & { name: string })[]"
456
+ }
457
+ }
458
+ ],
459
+ "slots": [
631
460
  {
632
- "name": "required",
633
- "description": "是否必填",
634
- "type": "boolean"
635
- },
461
+ "name": null,
462
+ "description": "表单内容"
463
+ }
464
+ ],
465
+ "methods": [
636
466
  {
637
- "name": "max",
638
- "description": "表单校验最大长度",
639
- "type": "number"
467
+ "name": "validate",
468
+ "params": [],
469
+ "description": "表单校验方法",
470
+ "returns": {
471
+ "type": "boolean | Record<string, unknown>"
472
+ }
640
473
  },
641
474
  {
642
- "name": "min",
643
- "description": "表单校验最小长度",
644
- "type": "number"
475
+ "name": "setInitValue",
476
+ "params": [
477
+ {
478
+ "name": "values",
479
+ "type": "Record<string, unknown>"
480
+ },
481
+ {
482
+ "name": "options",
483
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
484
+ }
485
+ ],
486
+ "description": "表单设置值方法",
487
+ "returns": {}
645
488
  },
646
489
  {
647
- "name": "message",
648
- "description": "校验信息",
649
- "attribute": false,
650
- "type": "Record<string, string>"
490
+ "name": "resetFields",
491
+ "params": [
492
+ {
493
+ "name": "name",
494
+ "type": "string"
495
+ }
496
+ ],
497
+ "description": "表单重置值方法",
498
+ "returns": {}
651
499
  },
652
500
  {
653
- "name": "textareaStyle",
654
- "description": "自定义样式",
655
- "attribute": false,
656
- "type": "React.CSSProperties"
501
+ "name": "getFieldsValue",
502
+ "params": [
503
+ {
504
+ "name": "name",
505
+ "type": "string"
506
+ }
507
+ ],
508
+ "description": "获取表单值方法",
509
+ "returns": {}
657
510
  },
658
511
  {
659
- "name": "variant",
660
- "description": "变体\n\n- muted: 在 themeVariant 为 elevo 时可用,设置时输入框没有 box-shadow",
661
- "type": "\"default\" | \"muted\""
512
+ "name": "validateField",
513
+ "params": [
514
+ {
515
+ "name": "name",
516
+ "type": "string"
517
+ }
518
+ ],
519
+ "description": "校验表单字段方法",
520
+ "returns": {}
662
521
  },
663
522
  {
664
- "name": "themeVariant",
665
- "description": "主题变体",
666
- "type": "\"default\" | \"elevo\""
667
- }
668
- ],
669
- "events": [
670
- {
671
- "name": "change",
672
- "description": "",
673
- "detail": {
674
- "description": null,
675
- "type": "string"
676
- }
677
- }
678
- ],
679
- "slots": [],
680
- "methods": [
681
- {
682
- "name": "focusTextarea",
523
+ "name": "resetValidateState",
683
524
  "params": [],
684
- "description": "focus",
525
+ "description": "重置表单校验状态方法",
685
526
  "returns": {}
686
527
  }
687
528
  ],
688
529
  "parts": [],
689
- "description": "通用多行文本输入框构件",
530
+ "description": "表单构件",
690
531
  "category": "form-input-basic"
691
532
  },
692
533
  {
693
- "name": "eo-icon-select",
534
+ "name": "eo-submit-buttons",
694
535
  "alias": [
695
- "form.icon-select"
536
+ "form.submit-buttons"
696
537
  ],
697
538
  "properties": [
698
539
  {
699
- "name": "name",
700
- "description": "字段名称",
540
+ "name": "submitText",
541
+ "description": "提交按钮的文字",
542
+ "default": "\"提交\"",
701
543
  "type": "string"
702
544
  },
703
545
  {
704
- "name": "label",
705
- "description": "字段说明",
546
+ "name": "cancelText",
547
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
706
548
  "type": "string"
707
549
  },
708
550
  {
709
- "name": "value",
710
- "description": "",
711
- "attribute": false,
712
- "type": "Icon"
551
+ "name": "disableAfterClick",
552
+ "description": "点击确定按钮后自动禁用",
553
+ "type": "boolean"
713
554
  },
714
555
  {
715
- "name": "disabled",
716
- "description": "是否禁用",
556
+ "name": "submitDisabled",
557
+ "description": "禁用提交按钮",
717
558
  "type": "boolean"
718
559
  },
719
560
  {
720
- "name": "required",
721
- "description": "是否必填",
722
- "type": "boolean"
561
+ "name": "submitType",
562
+ "description": "提交按钮类型",
563
+ "type": "ButtonType"
723
564
  },
724
565
  {
725
- "name": "message",
726
- "description": "是否必填",
727
- "attribute": false,
728
- "type": "Record<string, string>"
566
+ "name": "cancelType",
567
+ "description": "取消按钮类型",
568
+ "type": "ButtonType"
729
569
  },
730
570
  {
731
571
  "name": "themeVariant",
@@ -735,23 +575,30 @@
735
575
  ],
736
576
  "events": [
737
577
  {
738
- "name": "change",
739
- "description": "值变化时触发",
578
+ "name": "submit",
579
+ "description": "点击提交按钮触发的事件",
740
580
  "detail": {
741
- "type": "Icon | undefined"
581
+ "type": "void"
582
+ }
583
+ },
584
+ {
585
+ "name": "cancel",
586
+ "description": "点击取消按钮触发的事件",
587
+ "detail": {
588
+ "type": "void"
742
589
  }
743
590
  }
744
591
  ],
745
592
  "slots": [],
746
593
  "methods": [],
747
594
  "parts": [],
748
- "description": "图标选择构件",
595
+ "description": "表单提交按钮",
749
596
  "category": "form-input-basic"
750
597
  },
751
598
  {
752
- "name": "eo-upload-image",
599
+ "name": "eo-checkbox",
753
600
  "alias": [
754
- "form.upload-image"
601
+ "form.general-checkbox"
755
602
  ],
756
603
  "properties": [
757
604
  {
@@ -768,27 +615,32 @@
768
615
  "name": "value",
769
616
  "description": "值",
770
617
  "attribute": false,
771
- "type": "ImageData[]"
618
+ "type": "CheckboxValueType[]"
772
619
  },
773
620
  {
774
- "name": "bucketName",
775
- "description": "对象存储桶名字",
776
- "type": "string"
621
+ "name": "options",
622
+ "description": "多选框选项表",
623
+ "required": true,
624
+ "default": "[]",
625
+ "attribute": false,
626
+ "type": "CheckboxOptionType[]"
777
627
  },
778
628
  {
779
- "name": "maxCount",
780
- "description": "最大上传数量",
781
- "type": "number"
629
+ "name": "type",
630
+ "description": "类型",
631
+ "default": "\"default\"",
632
+ "type": "CheckboxType"
782
633
  },
783
634
  {
784
- "name": "multiple",
785
- "description": "是否支持选定的多张图片",
635
+ "name": "disabled",
636
+ "description": "是否禁用",
786
637
  "type": "boolean"
787
638
  },
788
639
  {
789
- "name": "limitSize",
790
- "description": "上传大小限制(单位为 MB)",
791
- "type": "number"
640
+ "name": "isCustom",
641
+ "description": "是否为自定义",
642
+ "default": "false",
643
+ "type": "boolean"
792
644
  },
793
645
  {
794
646
  "name": "required",
@@ -797,14 +649,20 @@
797
649
  },
798
650
  {
799
651
  "name": "message",
800
- "description": "校验文本信息",
652
+ "description": "校验文本",
801
653
  "attribute": false,
802
654
  "type": "Record<string, string>"
803
655
  },
804
656
  {
805
- "name": "variant",
806
- "description": "变体",
807
- "type": "\"default\" | \"avatar\""
657
+ "name": "isGroup",
658
+ "description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
659
+ "type": "boolean"
660
+ },
661
+ {
662
+ "name": "optionGroups",
663
+ "description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
664
+ "attribute": false,
665
+ "type": "OptionGroup[]"
808
666
  },
809
667
  {
810
668
  "name": "themeVariant",
@@ -815,22 +673,29 @@
815
673
  "events": [
816
674
  {
817
675
  "name": "change",
818
- "description": "值变化时触发",
676
+ "description": "复选框变化事件",
819
677
  "detail": {
820
- "type": "ImageData[]"
678
+ "type": "CheckboxOptionType[]"
679
+ }
680
+ },
681
+ {
682
+ "name": "options.change",
683
+ "description": "复选框变化事件",
684
+ "detail": {
685
+ "type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
821
686
  }
822
687
  }
823
688
  ],
824
689
  "slots": [],
825
690
  "methods": [],
826
691
  "parts": [],
827
- "description": "上传图片构件",
692
+ "description": "表单复选框构件",
828
693
  "category": "form-input-basic"
829
694
  },
830
695
  {
831
- "name": "eo-switch",
696
+ "name": "eo-dynamic-form-item",
832
697
  "alias": [
833
- "form.general-switch"
698
+ "form.dynamic-form-item"
834
699
  ],
835
700
  "properties": [
836
701
  {
@@ -840,173 +705,128 @@
840
705
  },
841
706
  {
842
707
  "name": "label",
843
- "description": "字段文本",
708
+ "description": "字段说明",
844
709
  "type": "string"
845
710
  },
846
711
  {
847
- "name": "value",
848
- "description": "初始值",
712
+ "name": "required",
713
+ "description": "是否必填",
849
714
  "type": "boolean"
850
715
  },
851
716
  {
852
- "name": "disabled",
853
- "description": "是否禁用",
854
- "type": "boolean"
717
+ "name": "value",
718
+ "description": "",
719
+ "attribute": false,
720
+ "type": "DynamicFormValuesItem[]"
855
721
  },
856
722
  {
857
- "name": "size",
858
- "description": "按钮大小,目前只支持small和非small两种大小。",
859
- "type": "ComponentSize"
723
+ "name": "message",
724
+ "description": "校验文本",
725
+ "attribute": false,
726
+ "type": "Record<string, string>"
860
727
  },
861
728
  {
862
- "name": "checkedText",
863
- "description": "选中时的文本",
864
- "type": "string"
729
+ "name": "hideRemoveButton",
730
+ "description": "是否隐藏每一行删除的按钮",
731
+ "attribute": false,
732
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
865
733
  },
866
734
  {
867
- "name": "unCheckedText",
868
- "description": "非选中时的文本",
869
- "type": "string"
735
+ "name": "disabledRemoveButton",
736
+ "description": "是否禁止每一行删除的按钮",
737
+ "attribute": false,
738
+ "type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
870
739
  },
871
740
  {
872
- "name": "checkedIcon",
873
- "description": "选中时的图标",
741
+ "name": "hideAddButton",
742
+ "description": "是否隐藏添加的按钮",
874
743
  "attribute": false,
875
- "type": "GeneralIconProps"
744
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
876
745
  },
877
746
  {
878
- "name": "unCheckedIcon",
879
- "description": "非选中时的文本",
747
+ "name": "disabledAddButton",
748
+ "description": "是否禁止添加的按钮",
880
749
  "attribute": false,
881
- "type": "GeneralIconProps"
750
+ "type": "boolean | ((value: Record<string, any>[]) => boolean)"
882
751
  },
883
752
  {
884
- "name": "themeVariant",
885
- "description": "主题变体",
886
- "type": "\"default\" | \"elevo\""
753
+ "name": "useBrick",
754
+ "description": "动态表单子项构件列表",
755
+ "attribute": false,
756
+ "type": "UseBrickConf"
887
757
  }
888
758
  ],
889
759
  "events": [
890
760
  {
891
- "name": "switch",
892
- "description": "开关改变时触发",
761
+ "name": "change",
893
762
  "detail": {
894
- "type": "boolean"
763
+ "type": "DynamicFormValuesItem[]"
764
+ }
765
+ },
766
+ {
767
+ "name": "row.add",
768
+ "description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
769
+ "detail": {
770
+ "type": "rowDataType"
771
+ }
772
+ },
773
+ {
774
+ "name": "row.remove",
775
+ "description": "移除一行时触发,detail为该行的值,index为该行的位置",
776
+ "detail": {
777
+ "type": "rowDataType"
895
778
  }
896
779
  }
897
780
  ],
898
781
  "slots": [],
899
782
  "methods": [],
900
783
  "parts": [],
901
- "description": "开关",
784
+ "description": "动态表单",
902
785
  "category": "form-input-basic"
903
786
  },
904
- {
905
- "name": "eo-upload-file",
906
- "properties": [
907
- {
908
- "name": "label",
909
- "description": "字段说明",
910
- "type": "string"
911
- },
912
- {
913
- "name": "name",
914
- "description": "字段名称",
915
- "type": "string"
916
- },
917
- {
918
- "name": "required",
919
- "description": "是否必填",
920
- "type": "boolean"
921
- },
922
- {
923
- "name": "message",
924
- "description": "校验文本信息",
925
- "attribute": false,
926
- "type": "Record<string, string>"
927
- },
928
- {
929
- "name": "value",
930
- "description": "值",
931
- "attribute": false,
932
- "type": "FileData[]"
933
- },
934
- {
935
- "name": "multiple",
936
- "description": "是否支持多选",
937
- "type": "boolean"
938
- },
939
- {
940
- "name": "accept",
941
- "description": "接受上传的文件类型,多个之间用 `,` 连接",
942
- "type": "string"
943
- },
944
- {
945
- "name": "maxCount",
946
- "description": "最大上传数量",
947
- "type": "number"
948
- },
949
- {
950
- "name": "limitSize",
951
- "description": "上传大小限制(单位为 MB)",
952
- "type": "number"
953
- },
954
- {
955
- "name": "buttonText",
956
- "description": "上传按钮文本",
957
- "default": "上传",
958
- "type": "string"
959
- },
960
- {
961
- "name": "buttonType",
962
- "description": "上传按钮类型",
963
- "type": "ButtonProps[\"type\"]"
964
- },
787
+ {
788
+ "name": "eo-search",
789
+ "alias": [
790
+ "form.general-search"
791
+ ],
792
+ "properties": [
965
793
  {
966
- "name": "buttonIcon",
967
- "description": "上传按钮类型",
968
- "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
969
- "attribute": false,
970
- "type": "GeneralIconProps"
794
+ "name": "value",
795
+ "description": "搜索框的值",
796
+ "default": "\"\"",
797
+ "type": "string"
971
798
  },
972
799
  {
973
- "name": "overMaxCountMode",
974
- "description": "超出最大上传数量时文件的保留方式",
975
- "default": "\"replace\"",
976
- "type": "\"ignore\" | \"replace\""
800
+ "name": "placeholder",
801
+ "description": "提示语",
802
+ "type": "string"
977
803
  },
978
804
  {
979
- "name": "uploadDraggable",
980
- "description": "是否可以拖拽上传",
805
+ "name": "autoFocus",
806
+ "description": "是否自动聚焦",
981
807
  "type": "boolean"
982
808
  },
983
809
  {
984
- "name": "draggableUploadTip",
985
- "description": "拖拽上传的提示信息",
986
- "type": "string"
987
- },
988
- {
989
- "name": "autoUpload",
990
- "description": "是否自动上传",
991
- "default": "false",
810
+ "name": "clearable",
811
+ "description": "可以点击清除图标删除内容",
992
812
  "type": "boolean"
993
813
  },
994
814
  {
995
- "name": "url",
996
- "description": "自动上传的地址",
997
- "type": "string"
815
+ "name": "trim",
816
+ "description": "是否剔除前后空格",
817
+ "type": "boolean"
998
818
  },
999
819
  {
1000
- "name": "method",
1001
- "description": "自动上传的方法",
1002
- "default": "\"POST\"",
1003
- "type": "string"
820
+ "name": "debounceTime",
821
+ "description": "默认延迟时间",
822
+ "default": "0",
823
+ "type": "number"
1004
824
  },
1005
825
  {
1006
- "name": "uploadName",
1007
- "description": "自动上传的文件参数名",
1008
- "default": "\"file\"",
1009
- "type": "string"
826
+ "name": "inputStyle",
827
+ "description": "输入框样式",
828
+ "attribute": false,
829
+ "type": "CSSProperties"
1010
830
  },
1011
831
  {
1012
832
  "name": "themeVariant",
@@ -1017,46 +837,46 @@
1017
837
  "events": [
1018
838
  {
1019
839
  "name": "change",
1020
- "description": "值变化时触发",
840
+ "description": "输入的搜索字符,输入变化时触发",
1021
841
  "detail": {
1022
- "type": "FileData[]"
842
+ "type": "string"
843
+ }
844
+ },
845
+ {
846
+ "name": "search",
847
+ "description": "搜索时触发",
848
+ "detail": {
849
+ "type": "string"
1023
850
  }
1024
851
  }
1025
852
  ],
1026
853
  "slots": [],
1027
854
  "methods": [],
1028
855
  "parts": [],
1029
- "description": "上传文件",
1030
- "category": "form-input-basic"
856
+ "description": "搜索框",
857
+ "category": "interact-basic"
1031
858
  },
1032
859
  {
1033
- "name": "eo-time-picker",
860
+ "name": "eo-icon-select",
861
+ "alias": [
862
+ "form.icon-select"
863
+ ],
1034
864
  "properties": [
1035
865
  {
1036
866
  "name": "name",
1037
- "description": "时间选择器字段名",
867
+ "description": "字段名称",
1038
868
  "type": "string"
1039
869
  },
1040
870
  {
1041
871
  "name": "label",
1042
- "description": "时间选择器说明",
872
+ "description": "字段说明",
1043
873
  "type": "string"
1044
874
  },
1045
875
  {
1046
876
  "name": "value",
1047
- "description": "时间选择器的初始值",
1048
- "type": "string"
1049
- },
1050
- {
1051
- "name": "placeholder",
1052
- "description": "时间选择器占位说明",
1053
- "type": "string"
1054
- },
1055
- {
1056
- "name": "message",
1057
- "description": "校验文本信息",
877
+ "description": "",
1058
878
  "attribute": false,
1059
- "type": "Record<string, string>"
879
+ "type": "Icon"
1060
880
  },
1061
881
  {
1062
882
  "name": "disabled",
@@ -1069,45 +889,36 @@
1069
889
  "type": "boolean"
1070
890
  },
1071
891
  {
1072
- "name": "configProps",
1073
- "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
892
+ "name": "message",
893
+ "description": "是否必填",
1074
894
  "attribute": false,
1075
- "type": "Partial<TimePickerProps>"
895
+ "type": "Record<string, string>"
896
+ },
897
+ {
898
+ "name": "themeVariant",
899
+ "description": "主题变体",
900
+ "type": "\"default\" | \"elevo\""
1076
901
  }
1077
902
  ],
1078
903
  "events": [
1079
904
  {
1080
905
  "name": "change",
1081
- "description": "时间变化时触发",
1082
- "detail": {
1083
- "type": "string"
1084
- }
1085
- },
1086
- {
1087
- "name": "open",
1088
- "description": "面板打开时触发, 传出当前时间值",
1089
- "detail": {
1090
- "type": "string"
1091
- }
1092
- },
1093
- {
1094
- "name": "close",
1095
- "description": "面板关闭时触发,传出当前时间值",
906
+ "description": "值变化时触发",
1096
907
  "detail": {
1097
- "type": "string"
908
+ "type": "Icon | undefined"
1098
909
  }
1099
910
  }
1100
911
  ],
1101
912
  "slots": [],
1102
913
  "methods": [],
1103
914
  "parts": [],
1104
- "description": "时间选择器",
915
+ "description": "图标选择构件",
1105
916
  "category": "form-input-basic"
1106
917
  },
1107
918
  {
1108
- "name": "eo-select",
919
+ "name": "eo-switch",
1109
920
  "alias": [
1110
- "form.general-select"
921
+ "form.general-switch"
1111
922
  ],
1112
923
  "properties": [
1113
924
  {
@@ -1115,111 +926,126 @@
1115
926
  "description": "字段名称",
1116
927
  "type": "string"
1117
928
  },
1118
- {
1119
- "name": "placeholder",
1120
- "description": "占位说明",
1121
- "type": "string"
1122
- },
1123
929
  {
1124
930
  "name": "label",
1125
931
  "description": "字段文本",
1126
932
  "type": "string"
1127
933
  },
1128
- {
1129
- "name": "options",
1130
- "description": "选项列表",
1131
- "required": true,
1132
- "attribute": false,
1133
- "type": "GeneralComplexOption[]"
1134
- },
1135
934
  {
1136
935
  "name": "value",
1137
- "description": "",
1138
- "attribute": false,
1139
- "type": "any"
1140
- },
1141
- {
1142
- "name": "required",
1143
- "description": "是否必填",
936
+ "description": "初始值",
1144
937
  "type": "boolean"
1145
938
  },
1146
- {
1147
- "name": "message",
1148
- "description": "校验文本信息",
1149
- "attribute": false,
1150
- "type": "Record<string, string>"
1151
- },
1152
939
  {
1153
940
  "name": "disabled",
1154
941
  "description": "是否禁用",
1155
942
  "type": "boolean"
1156
943
  },
1157
944
  {
1158
- "name": "mode",
1159
- "description": "类型",
1160
- "type": "\"tags\" | \"multiple\""
945
+ "name": "size",
946
+ "description": "按钮大小,目前只支持small和非small两种大小。",
947
+ "type": "ComponentSize"
1161
948
  },
1162
949
  {
1163
- "name": "tokenSeparators",
1164
- "description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
1165
- "attribute": false,
1166
- "type": "string[]"
950
+ "name": "checkedText",
951
+ "description": "选中时的文本",
952
+ "type": "string"
1167
953
  },
1168
954
  {
1169
- "name": "maxTagCount",
1170
- "description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
1171
- "type": "number"
955
+ "name": "unCheckedText",
956
+ "description": "非选中时的文本",
957
+ "type": "string"
1172
958
  },
1173
959
  {
1174
- "name": "groupBy",
1175
- "description": "分组字段",
1176
- "type": "string"
960
+ "name": "checkedIcon",
961
+ "description": "选中时的图标",
962
+ "attribute": false,
963
+ "type": "GeneralIconProps"
1177
964
  },
1178
965
  {
1179
- "name": "suffix",
1180
- "description": "",
966
+ "name": "unCheckedIcon",
967
+ "description": "非选中时的文本",
1181
968
  "attribute": false,
1182
- "type": "{ useBrick: UseSingleBrickConf }"
969
+ "type": "GeneralIconProps"
1183
970
  },
1184
971
  {
1185
- "name": "clearable",
1186
- "description": "是否支持清除",
1187
- "default": "true",
1188
- "type": "boolean"
972
+ "name": "themeVariant",
973
+ "description": "主题变体",
974
+ "type": "\"default\" | \"elevo\""
975
+ }
976
+ ],
977
+ "events": [
978
+ {
979
+ "name": "switch",
980
+ "description": "开关改变时触发",
981
+ "detail": {
982
+ "type": "boolean"
983
+ }
984
+ }
985
+ ],
986
+ "slots": [],
987
+ "methods": [],
988
+ "parts": [],
989
+ "description": "开关",
990
+ "category": "form-input-basic"
991
+ },
992
+ {
993
+ "name": "eo-upload-image",
994
+ "alias": [
995
+ "form.upload-image"
996
+ ],
997
+ "properties": [
998
+ {
999
+ "name": "name",
1000
+ "description": "字段名称",
1001
+ "type": "string"
1189
1002
  },
1190
1003
  {
1191
- "name": "fields",
1192
- "description": "列表指定字段作为 label 和 value",
1193
- "attribute": false,
1194
- "type": "{ label?: string; value?: string }"
1004
+ "name": "label",
1005
+ "description": "字段说明",
1006
+ "type": "string"
1195
1007
  },
1196
1008
  {
1197
- "name": "useBackend",
1198
- "description": "后端搜索",
1009
+ "name": "value",
1010
+ "description": "",
1199
1011
  "attribute": false,
1200
- "type": "UseBackendConf"
1012
+ "type": "ImageData[]"
1201
1013
  },
1202
1014
  {
1203
- "name": "debounceSearchDelay",
1204
- "description": "设置时,同时对 useBackend 和 search 事件进行防抖。\n未设置时,useBackend 有默认的 300ms 防抖。",
1015
+ "name": "bucketName",
1016
+ "description": "对象存储桶名字",
1017
+ "type": "string"
1018
+ },
1019
+ {
1020
+ "name": "maxCount",
1021
+ "description": "最大上传数量",
1205
1022
  "type": "number"
1206
1023
  },
1207
1024
  {
1208
- "name": "inputStyle",
1209
- "description": "输入框样式",
1210
- "attribute": false,
1211
- "type": "React.CSSProperties"
1025
+ "name": "multiple",
1026
+ "description": "是否支持选定的多张图片",
1027
+ "type": "boolean"
1028
+ },
1029
+ {
1030
+ "name": "limitSize",
1031
+ "description": "上传大小限制(单位为 MB)",
1032
+ "type": "number"
1212
1033
  },
1213
1034
  {
1214
- "name": "dropdownStyle",
1215
- "description": "下拉框样式",
1035
+ "name": "required",
1036
+ "description": "是否必填",
1037
+ "type": "boolean"
1038
+ },
1039
+ {
1040
+ "name": "message",
1041
+ "description": "校验文本信息",
1216
1042
  "attribute": false,
1217
- "type": "React.CSSProperties"
1043
+ "type": "Record<string, string>"
1218
1044
  },
1219
1045
  {
1220
- "name": "dropdownHoist",
1221
- "description": "下拉框是否使用固定定位防止内容被裁切",
1222
- "type": "boolean"
1046
+ "name": "variant",
1047
+ "description": "变体",
1048
+ "type": "\"default\" | \"avatar\""
1223
1049
  },
1224
1050
  {
1225
1051
  "name": "themeVariant",
@@ -1230,45 +1056,16 @@
1230
1056
  "events": [
1231
1057
  {
1232
1058
  "name": "change",
1233
- "description": "下拉选择事件",
1234
- "detail": {
1235
- "type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
1236
- }
1237
- },
1238
- {
1239
- "name": "change.v2",
1240
- "description": "下拉选择事件 v2(仅传递选中的值)",
1241
- "detail": {
1242
- "description": "选中的值",
1243
- "type": "string | string[]"
1244
- }
1245
- },
1246
- {
1247
- "name": "search",
1248
- "description": "下拉框search事件",
1249
- "detail": {
1250
- "type": "{\n value: string;\n }"
1251
- }
1252
- },
1253
- {
1254
- "name": "select.focus",
1255
- "description": "下拉框focus事件\n\n注:之前事件类型为 \"focus\",这和原生事件冲突,可能导致多次触发,现改为 \"select.focus\"",
1256
- "detail": {
1257
- "type": "void"
1258
- }
1259
- },
1260
- {
1261
- "name": "options.change",
1262
- "description": "选项列表变化事件",
1059
+ "description": "值变化时触发",
1263
1060
  "detail": {
1264
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
1061
+ "type": "ImageData[]"
1265
1062
  }
1266
1063
  }
1267
1064
  ],
1268
1065
  "slots": [],
1269
1066
  "methods": [],
1270
1067
  "parts": [],
1271
- "description": "通用下拉选择构件",
1068
+ "description": "上传图片构件",
1272
1069
  "category": "form-input-basic"
1273
1070
  },
1274
1071
  {
@@ -1354,6 +1151,134 @@
1354
1151
  "description": "带候选项的输入框",
1355
1152
  "category": "form-input-basic"
1356
1153
  },
1154
+ {
1155
+ "name": "eo-upload-file",
1156
+ "properties": [
1157
+ {
1158
+ "name": "label",
1159
+ "description": "字段说明",
1160
+ "type": "string"
1161
+ },
1162
+ {
1163
+ "name": "name",
1164
+ "description": "字段名称",
1165
+ "type": "string"
1166
+ },
1167
+ {
1168
+ "name": "required",
1169
+ "description": "是否必填",
1170
+ "type": "boolean"
1171
+ },
1172
+ {
1173
+ "name": "message",
1174
+ "description": "校验文本信息",
1175
+ "attribute": false,
1176
+ "type": "Record<string, string>"
1177
+ },
1178
+ {
1179
+ "name": "value",
1180
+ "description": "值",
1181
+ "attribute": false,
1182
+ "type": "FileData[]"
1183
+ },
1184
+ {
1185
+ "name": "multiple",
1186
+ "description": "是否支持多选",
1187
+ "type": "boolean"
1188
+ },
1189
+ {
1190
+ "name": "accept",
1191
+ "description": "接受上传的文件类型,多个之间用 `,` 连接",
1192
+ "type": "string"
1193
+ },
1194
+ {
1195
+ "name": "maxCount",
1196
+ "description": "最大上传数量",
1197
+ "type": "number"
1198
+ },
1199
+ {
1200
+ "name": "limitSize",
1201
+ "description": "上传大小限制(单位为 MB)",
1202
+ "type": "number"
1203
+ },
1204
+ {
1205
+ "name": "buttonText",
1206
+ "description": "上传按钮文本",
1207
+ "default": "上传",
1208
+ "type": "string"
1209
+ },
1210
+ {
1211
+ "name": "buttonType",
1212
+ "description": "上传按钮类型",
1213
+ "type": "ButtonProps[\"type\"]"
1214
+ },
1215
+ {
1216
+ "name": "buttonIcon",
1217
+ "description": "上传按钮类型",
1218
+ "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
1219
+ "attribute": false,
1220
+ "type": "GeneralIconProps"
1221
+ },
1222
+ {
1223
+ "name": "overMaxCountMode",
1224
+ "description": "超出最大上传数量时文件的保留方式",
1225
+ "default": "\"replace\"",
1226
+ "type": "\"ignore\" | \"replace\""
1227
+ },
1228
+ {
1229
+ "name": "uploadDraggable",
1230
+ "description": "是否可以拖拽上传",
1231
+ "type": "boolean"
1232
+ },
1233
+ {
1234
+ "name": "draggableUploadTip",
1235
+ "description": "拖拽上传的提示信息",
1236
+ "type": "string"
1237
+ },
1238
+ {
1239
+ "name": "autoUpload",
1240
+ "description": "是否自动上传",
1241
+ "default": "false",
1242
+ "type": "boolean"
1243
+ },
1244
+ {
1245
+ "name": "url",
1246
+ "description": "自动上传的地址",
1247
+ "type": "string"
1248
+ },
1249
+ {
1250
+ "name": "method",
1251
+ "description": "自动上传的方法",
1252
+ "default": "\"POST\"",
1253
+ "type": "string"
1254
+ },
1255
+ {
1256
+ "name": "uploadName",
1257
+ "description": "自动上传的文件参数名",
1258
+ "default": "\"file\"",
1259
+ "type": "string"
1260
+ },
1261
+ {
1262
+ "name": "themeVariant",
1263
+ "description": "主题变体",
1264
+ "type": "\"default\" | \"elevo\""
1265
+ }
1266
+ ],
1267
+ "events": [
1268
+ {
1269
+ "name": "change",
1270
+ "description": "值变化时触发",
1271
+ "detail": {
1272
+ "type": "FileData[]"
1273
+ }
1274
+ }
1275
+ ],
1276
+ "slots": [],
1277
+ "methods": [],
1278
+ "parts": [],
1279
+ "description": "上传文件",
1280
+ "category": "form-input-basic"
1281
+ },
1357
1282
  {
1358
1283
  "name": "eo-date-picker",
1359
1284
  "properties": [
@@ -1454,6 +1379,81 @@
1454
1379
  "description": "日期选择器",
1455
1380
  "category": "form-input-basic"
1456
1381
  },
1382
+ {
1383
+ "name": "eo-time-picker",
1384
+ "properties": [
1385
+ {
1386
+ "name": "name",
1387
+ "description": "时间选择器字段名",
1388
+ "type": "string"
1389
+ },
1390
+ {
1391
+ "name": "label",
1392
+ "description": "时间选择器说明",
1393
+ "type": "string"
1394
+ },
1395
+ {
1396
+ "name": "value",
1397
+ "description": "时间选择器的初始值",
1398
+ "type": "string"
1399
+ },
1400
+ {
1401
+ "name": "placeholder",
1402
+ "description": "时间选择器占位说明",
1403
+ "type": "string"
1404
+ },
1405
+ {
1406
+ "name": "message",
1407
+ "description": "校验文本信息",
1408
+ "attribute": false,
1409
+ "type": "Record<string, string>"
1410
+ },
1411
+ {
1412
+ "name": "disabled",
1413
+ "description": "是否禁用",
1414
+ "type": "boolean"
1415
+ },
1416
+ {
1417
+ "name": "required",
1418
+ "description": "是否必填",
1419
+ "type": "boolean"
1420
+ },
1421
+ {
1422
+ "name": "configProps",
1423
+ "description": "透传 antd timePicker 属性 [timePickerProps](https://ant.design/components/time-picker-cn)",
1424
+ "attribute": false,
1425
+ "type": "Partial<TimePickerProps>"
1426
+ }
1427
+ ],
1428
+ "events": [
1429
+ {
1430
+ "name": "change",
1431
+ "description": "时间变化时触发",
1432
+ "detail": {
1433
+ "type": "string"
1434
+ }
1435
+ },
1436
+ {
1437
+ "name": "open",
1438
+ "description": "面板打开时触发, 传出当前时间值",
1439
+ "detail": {
1440
+ "type": "string"
1441
+ }
1442
+ },
1443
+ {
1444
+ "name": "close",
1445
+ "description": "面板关闭时触发,传出当前时间值",
1446
+ "detail": {
1447
+ "type": "string"
1448
+ }
1449
+ }
1450
+ ],
1451
+ "slots": [],
1452
+ "methods": [],
1453
+ "parts": [],
1454
+ "description": "时间选择器",
1455
+ "category": "form-input-basic"
1456
+ },
1457
1457
  {
1458
1458
  "name": "eo-time-range-picker",
1459
1459
  "properties": [