@next-bricks/form 1.15.20 → 1.15.21

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 (76) hide show
  1. package/dist/bricks.json +21 -21
  2. package/dist/chunks/{149.0d96a17f.js → 149.9f425d9e.js} +2 -2
  3. package/dist/chunks/{149.0d96a17f.js.map → 149.9f425d9e.js.map} +1 -1
  4. package/dist/chunks/{1889.efd28cdd.js → 1889.95e02530.js} +2 -2
  5. package/dist/chunks/1889.95e02530.js.map +1 -0
  6. package/dist/chunks/4306.c52b6739.js +2 -0
  7. package/dist/chunks/4306.c52b6739.js.map +1 -0
  8. package/dist/chunks/{5026.cbd59622.js → 5026.0c71a0de.js} +3 -3
  9. package/dist/chunks/5026.0c71a0de.js.map +1 -0
  10. package/dist/chunks/5347.585f3de2.js +3 -0
  11. package/dist/chunks/{5347.00500d5b.js.map → 5347.585f3de2.js.map} +1 -1
  12. package/dist/chunks/{7721.d5cfcbb7.js → 7721.56f06716.js} +3 -3
  13. package/dist/chunks/7721.56f06716.js.map +1 -0
  14. package/dist/chunks/9140.92a1595b.js +3 -0
  15. package/dist/chunks/9140.92a1595b.js.map +1 -0
  16. package/dist/chunks/9515.c2a64690.js +2 -0
  17. package/dist/chunks/9515.c2a64690.js.map +1 -0
  18. package/dist/chunks/{9844.c7921922.js → 9844.0e7eb437.js} +2 -2
  19. package/dist/chunks/{9844.c7921922.js.map → 9844.0e7eb437.js.map} +1 -1
  20. package/dist/chunks/eo-color-picker.5f9d5ae6.js +2 -0
  21. package/dist/chunks/{eo-color-picker.2ca173ad.js.map → eo-color-picker.5f9d5ae6.js.map} +1 -1
  22. package/dist/chunks/eo-date-picker.e89ab216.js +2 -0
  23. package/dist/chunks/{eo-date-picker.69734d54.js.map → eo-date-picker.e89ab216.js.map} +1 -1
  24. package/dist/chunks/eo-dynamic-form-item.4e8ac208.js +3 -0
  25. package/dist/chunks/{eo-dynamic-form-item.023553e6.js.map → eo-dynamic-form-item.4e8ac208.js.map} +1 -1
  26. package/dist/chunks/eo-radio.73b27079.js +3 -0
  27. package/dist/chunks/{eo-radio.d7d5c5cc.js.map → eo-radio.73b27079.js.map} +1 -1
  28. package/dist/chunks/eo-select.ae4ed137.js +3 -0
  29. package/dist/chunks/{eo-select.a3b01a0e.js.map → eo-select.ae4ed137.js.map} +1 -1
  30. package/dist/chunks/eo-time-picker.9402ab95.js +2 -0
  31. package/dist/chunks/{eo-time-picker.af83e9e7.js.map → eo-time-picker.9402ab95.js.map} +1 -1
  32. package/dist/chunks/eo-time-range-picker.586762ea.js +2 -0
  33. package/dist/chunks/{eo-time-range-picker.faa63b15.js.map → eo-time-range-picker.586762ea.js.map} +1 -1
  34. package/dist/chunks/eo-upload-file.044bd857.js +3 -0
  35. package/dist/chunks/{eo-upload-file.81312b34.js.map → eo-upload-file.044bd857.js.map} +1 -1
  36. package/dist/chunks/{eo-upload-image.cc41de20.js → eo-upload-image.fea2ce95.js} +3 -3
  37. package/dist/chunks/{eo-upload-image.cc41de20.js.map → eo-upload-image.fea2ce95.js.map} +1 -1
  38. package/dist/chunks/main.8695b116.js +2 -0
  39. package/dist/chunks/{main.7b4f5b14.js.map → main.8695b116.js.map} +1 -1
  40. package/dist/chunks/{react.4372d06b.js → react.b86c57e9.js} +2 -2
  41. package/dist/examples.json +8 -8
  42. package/dist/index.2ae50082.js +2 -0
  43. package/dist/{index.78c877f2.js.map → index.2ae50082.js.map} +1 -1
  44. package/dist/manifest.json +323 -323
  45. package/dist/types.json +433 -433
  46. package/package.json +2 -2
  47. package/dist/chunks/1889.efd28cdd.js.map +0 -1
  48. package/dist/chunks/4185.228cd688.js +0 -3
  49. package/dist/chunks/4185.228cd688.js.map +0 -1
  50. package/dist/chunks/4306.5ca13833.js +0 -2
  51. package/dist/chunks/4306.5ca13833.js.map +0 -1
  52. package/dist/chunks/5026.cbd59622.js.map +0 -1
  53. package/dist/chunks/5347.00500d5b.js +0 -3
  54. package/dist/chunks/7721.d5cfcbb7.js.map +0 -1
  55. package/dist/chunks/9515.ffbcdd4f.js +0 -2
  56. package/dist/chunks/9515.ffbcdd4f.js.map +0 -1
  57. package/dist/chunks/eo-color-picker.2ca173ad.js +0 -2
  58. package/dist/chunks/eo-date-picker.69734d54.js +0 -2
  59. package/dist/chunks/eo-dynamic-form-item.023553e6.js +0 -3
  60. package/dist/chunks/eo-radio.d7d5c5cc.js +0 -3
  61. package/dist/chunks/eo-select.a3b01a0e.js +0 -3
  62. package/dist/chunks/eo-time-picker.af83e9e7.js +0 -2
  63. package/dist/chunks/eo-time-range-picker.faa63b15.js +0 -2
  64. package/dist/chunks/eo-upload-file.81312b34.js +0 -3
  65. package/dist/chunks/main.7b4f5b14.js +0 -2
  66. package/dist/index.78c877f2.js +0 -2
  67. /package/dist/chunks/{5026.cbd59622.js.LICENSE.txt → 5026.0c71a0de.js.LICENSE.txt} +0 -0
  68. /package/dist/chunks/{5347.00500d5b.js.LICENSE.txt → 5347.585f3de2.js.LICENSE.txt} +0 -0
  69. /package/dist/chunks/{7721.d5cfcbb7.js.LICENSE.txt → 7721.56f06716.js.LICENSE.txt} +0 -0
  70. /package/dist/chunks/{4185.228cd688.js.LICENSE.txt → 9140.92a1595b.js.LICENSE.txt} +0 -0
  71. /package/dist/chunks/{eo-dynamic-form-item.023553e6.js.LICENSE.txt → eo-dynamic-form-item.4e8ac208.js.LICENSE.txt} +0 -0
  72. /package/dist/chunks/{eo-radio.d7d5c5cc.js.LICENSE.txt → eo-radio.73b27079.js.LICENSE.txt} +0 -0
  73. /package/dist/chunks/{eo-select.a3b01a0e.js.LICENSE.txt → eo-select.ae4ed137.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-upload-file.81312b34.js.LICENSE.txt → eo-upload-file.044bd857.js.LICENSE.txt} +0 -0
  75. /package/dist/chunks/{eo-upload-image.cc41de20.js.LICENSE.txt → eo-upload-image.fea2ce95.js.LICENSE.txt} +0 -0
  76. /package/dist/chunks/{react.4372d06b.js.LICENSE.txt → react.b86c57e9.js.LICENSE.txt} +0 -0
@@ -102,148 +102,101 @@
102
102
  "category": "form-input-basic"
103
103
  },
104
104
  {
105
- "name": "eo-form",
105
+ "name": "eo-radio",
106
106
  "alias": [
107
- "form.general-form"
107
+ "form.general-radio"
108
108
  ],
109
109
  "properties": [
110
110
  {
111
- "name": "staticValues",
112
- "attribute": false,
113
- "type": "Record<string, unknown>"
111
+ "name": "name",
112
+ "description": "下拉框字段名",
113
+ "type": "string"
114
114
  },
115
115
  {
116
- "name": "layout",
117
- "description": "布局方式(默认 vertical 布局)",
118
- "default": "vertical",
119
- "type": "Layout"
116
+ "name": "label",
117
+ "description": "单选框字段说明",
118
+ "type": "string"
120
119
  },
121
120
  {
122
- "name": "size",
123
- "description": "表单组件尺寸",
124
- "type": "ComponentSize"
121
+ "name": "options",
122
+ "description": "单选框选项表",
123
+ "required": true,
124
+ "attribute": false,
125
+ "type": "GeneralOption[]"
125
126
  },
126
127
  {
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 }",
128
+ "name": "value",
129
+ "description": "单选框当前选中始值",
130
130
  "attribute": false,
131
- "type": "ColProps"
131
+ "type": "any"
132
132
  },
133
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"
134
+ "name": "required",
135
+ "description": "是否必填",
136
+ "type": "boolean"
139
137
  },
140
138
  {
141
- "name": "formStyle",
139
+ "name": "message",
140
+ "description": "校验文本信息",
142
141
  "attribute": false,
143
- "type": "React.CSSProperties"
142
+ "type": "Record<string, string>"
144
143
  },
145
144
  {
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
- }
145
+ "name": "disabled",
146
+ "description": "是否禁用",
147
+ "type": "boolean"
159
148
  },
160
149
  {
161
- "name": "validate.success",
162
- "description": "表单验证成功时触发事件",
163
- "detail": {
164
- "type": "Record<string, unknown>"
165
- }
150
+ "name": "type",
151
+ "description": "单选框样式类型",
152
+ "default": "\"default\"",
153
+ "type": "RadioType"
166
154
  },
167
155
  {
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
- }
156
+ "name": "ui",
157
+ "description": "UI样式",
158
+ "default": "\"default\"",
159
+ "type": "UIType"
189
160
  },
190
161
  {
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": {}
162
+ "name": "size",
163
+ "description": "大小,只对按钮样式生效",
164
+ "default": "\"medium\"",
165
+ "type": "ComponentSize"
204
166
  },
205
167
  {
206
- "name": "resetFields",
207
- "params": [
208
- {
209
- "name": "name",
210
- "type": "string"
211
- }
212
- ],
213
- "description": "表单重置值方法",
214
- "returns": {}
168
+ "name": "customStyle",
169
+ "description": "自定义radio的外层样式",
170
+ "attribute": false,
171
+ "type": "React.CSSProperties"
215
172
  },
216
173
  {
217
- "name": "getFieldsValue",
218
- "params": [
219
- {
220
- "name": "name",
221
- "type": "string"
222
- }
223
- ],
224
- "description": "获取表单值方法",
225
- "returns": {}
226
- },
174
+ "name": "useBrick",
175
+ "description": "自定义radio的内容",
176
+ "attribute": false,
177
+ "type": "UseSingleBrickConf"
178
+ }
179
+ ],
180
+ "events": [
227
181
  {
228
- "name": "validateField",
229
- "params": [
230
- {
231
- "name": "name",
232
- "type": "string"
233
- }
234
- ],
235
- "description": "校验表单字段方法",
236
- "returns": {}
182
+ "name": "change",
183
+ "description": "值变化事件",
184
+ "detail": {
185
+ "type": "GeneralComplexOption | undefined"
186
+ }
237
187
  },
238
188
  {
239
- "name": "resetValidateState",
240
- "params": [],
241
- "description": "重置表单校验状态方法",
242
- "returns": {}
189
+ "name": "options.change",
190
+ "description": "选项列表变化事件",
191
+ "detail": {
192
+ "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
193
+ }
243
194
  }
244
195
  ],
196
+ "slots": [],
197
+ "methods": [],
245
198
  "parts": [],
246
- "description": "表单构件",
199
+ "description": "通用单选构件",
247
200
  "category": "form-input-basic"
248
201
  },
249
202
  {
@@ -395,161 +348,208 @@
395
348
  "category": "form-input-basic"
396
349
  },
397
350
  {
398
- "name": "eo-radio",
351
+ "name": "eo-submit-buttons",
399
352
  "alias": [
400
- "form.general-radio"
353
+ "form.submit-buttons"
401
354
  ],
402
355
  "properties": [
403
356
  {
404
- "name": "name",
405
- "description": "下拉框字段名",
357
+ "name": "submitText",
358
+ "description": "提交按钮的文字",
359
+ "default": "\"提交\"",
406
360
  "type": "string"
407
361
  },
408
362
  {
409
- "name": "label",
410
- "description": "单选框字段说明",
363
+ "name": "cancelText",
364
+ "description": "取消按钮的文字,不设置则不显示取消按钮",
411
365
  "type": "string"
412
366
  },
413
367
  {
414
- "name": "options",
415
- "description": "单选框选项表",
416
- "required": true,
417
- "attribute": false,
418
- "type": "GeneralOption[]"
419
- },
420
- {
421
- "name": "value",
422
- "description": "单选框当前选中始值",
423
- "attribute": false,
424
- "type": "any"
425
- },
426
- {
427
- "name": "required",
428
- "description": "是否必填",
368
+ "name": "disableAfterClick",
369
+ "description": "点击确定按钮后自动禁用",
429
370
  "type": "boolean"
430
371
  },
431
372
  {
432
- "name": "message",
433
- "description": "校验文本信息",
434
- "attribute": false,
435
- "type": "Record<string, string>"
436
- },
437
- {
438
- "name": "disabled",
439
- "description": "是否禁用",
373
+ "name": "submitDisabled",
374
+ "description": "禁用提交按钮",
440
375
  "type": "boolean"
441
376
  },
442
377
  {
443
- "name": "type",
444
- "description": "单选框样式类型",
445
- "default": "\"default\"",
446
- "type": "RadioType"
447
- },
448
- {
449
- "name": "ui",
450
- "description": "UI样式",
451
- "default": "\"default\"",
452
- "type": "UIType"
453
- },
454
- {
455
- "name": "size",
456
- "description": "大小,只对按钮样式生效",
457
- "default": "\"medium\"",
458
- "type": "ComponentSize"
459
- },
460
- {
461
- "name": "customStyle",
462
- "description": "自定义radio的外层样式",
463
- "attribute": false,
464
- "type": "React.CSSProperties"
378
+ "name": "submitType",
379
+ "description": "提交按钮类型",
380
+ "type": "ButtonType"
465
381
  },
466
382
  {
467
- "name": "useBrick",
468
- "description": "自定义radio的内容",
469
- "attribute": false,
470
- "type": "UseSingleBrickConf"
383
+ "name": "cancelType",
384
+ "description": "取消按钮类型",
385
+ "type": "ButtonType"
471
386
  }
472
387
  ],
473
388
  "events": [
474
389
  {
475
- "name": "change",
476
- "description": "值变化事件",
390
+ "name": "submit",
391
+ "description": "点击提交按钮触发的事件",
477
392
  "detail": {
478
- "type": "GeneralComplexOption | undefined"
393
+ "type": "void"
479
394
  }
480
395
  },
481
396
  {
482
- "name": "options.change",
483
- "description": "选项列表变化事件",
397
+ "name": "cancel",
398
+ "description": "点击取消按钮触发的事件",
484
399
  "detail": {
485
- "type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
400
+ "type": "void"
486
401
  }
487
402
  }
488
403
  ],
489
404
  "slots": [],
490
405
  "methods": [],
491
406
  "parts": [],
492
- "description": "通用单选构件",
407
+ "description": "表单提交按钮",
493
408
  "category": "form-input-basic"
494
409
  },
495
410
  {
496
- "name": "eo-submit-buttons",
411
+ "name": "eo-form",
497
412
  "alias": [
498
- "form.submit-buttons"
413
+ "form.general-form"
499
414
  ],
500
415
  "properties": [
501
416
  {
502
- "name": "submitText",
503
- "description": "提交按钮的文字",
504
- "default": "\"提交\"",
505
- "type": "string"
417
+ "name": "staticValues",
418
+ "attribute": false,
419
+ "type": "Record<string, unknown>"
506
420
  },
507
421
  {
508
- "name": "cancelText",
509
- "description": "取消按钮的文字,不设置则不显示取消按钮",
510
- "type": "string"
422
+ "name": "layout",
423
+ "description": "布局方式(默认 vertical 布局)",
424
+ "default": "vertical",
425
+ "type": "Layout"
511
426
  },
512
427
  {
513
- "name": "disableAfterClick",
514
- "description": "点击确定按钮后自动禁用",
515
- "type": "boolean"
428
+ "name": "size",
429
+ "description": "表单组件尺寸",
430
+ "type": "ComponentSize"
516
431
  },
517
432
  {
518
- "name": "submitDisabled",
519
- "description": "禁用提交按钮",
520
- "type": "boolean"
433
+ "name": "labelCol",
434
+ "description": "标签列布局样式(仅当 layout=\"horizontal\" 时有效)",
435
+ "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 }",
436
+ "attribute": false,
437
+ "type": "ColProps"
521
438
  },
522
439
  {
523
- "name": "submitType",
524
- "description": "提交按钮类型",
525
- "type": "ButtonType"
440
+ "name": "wrapperCol",
441
+ "description": "输入控件列布局样式(仅当 layout=\"horizontal\" 时有效)",
442
+ "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 }",
443
+ "attribute": false,
444
+ "type": "ColProps"
526
445
  },
527
446
  {
528
- "name": "cancelType",
529
- "description": "取消按钮类型",
530
- "type": "ButtonType"
447
+ "name": "formStyle",
448
+ "attribute": false,
449
+ "type": "React.CSSProperties"
450
+ },
451
+ {
452
+ "name": "textContent",
453
+ "type": "string",
454
+ "description": "文本内容"
531
455
  }
532
456
  ],
533
457
  "events": [
534
458
  {
535
- "name": "submit",
536
- "description": "点击提交按钮触发的事件",
459
+ "name": "values.change",
460
+ "description": "表单值变更事件",
537
461
  "detail": {
538
- "type": "void"
462
+ "description": null,
463
+ "type": "Record<string, unknown>"
539
464
  }
540
465
  },
541
466
  {
542
- "name": "cancel",
543
- "description": "点击取消按钮触发的事件",
467
+ "name": "validate.success",
468
+ "description": "表单验证成功时触发事件",
544
469
  "detail": {
545
- "type": "void"
470
+ "type": "Record<string, unknown>"
471
+ }
472
+ },
473
+ {
474
+ "name": "validate.error",
475
+ "description": "表单验证报错时触发事件",
476
+ "detail": {
477
+ "type": "(MessageBody & { name: string })[]"
478
+ }
479
+ }
480
+ ],
481
+ "slots": [
482
+ {
483
+ "name": null,
484
+ "description": "表单内容"
485
+ }
486
+ ],
487
+ "methods": [
488
+ {
489
+ "name": "validate",
490
+ "params": [],
491
+ "description": "表单校验方法",
492
+ "returns": {
493
+ "type": "boolean | Record<string, unknown>"
546
494
  }
495
+ },
496
+ {
497
+ "name": "setInitValue",
498
+ "params": [
499
+ {
500
+ "name": "values",
501
+ "type": "Record<string, unknown>"
502
+ },
503
+ {
504
+ "name": "options",
505
+ "type": "{ runInMacrotask?: boolean; runInMicrotask?: boolean }"
506
+ }
507
+ ],
508
+ "description": "表单设置值方法",
509
+ "returns": {}
510
+ },
511
+ {
512
+ "name": "resetFields",
513
+ "params": [
514
+ {
515
+ "name": "name",
516
+ "type": "string"
517
+ }
518
+ ],
519
+ "description": "表单重置值方法",
520
+ "returns": {}
521
+ },
522
+ {
523
+ "name": "getFieldsValue",
524
+ "params": [
525
+ {
526
+ "name": "name",
527
+ "type": "string"
528
+ }
529
+ ],
530
+ "description": "获取表单值方法",
531
+ "returns": {}
532
+ },
533
+ {
534
+ "name": "validateField",
535
+ "params": [
536
+ {
537
+ "name": "name",
538
+ "type": "string"
539
+ }
540
+ ],
541
+ "description": "校验表单字段方法",
542
+ "returns": {}
543
+ },
544
+ {
545
+ "name": "resetValidateState",
546
+ "params": [],
547
+ "description": "重置表单校验状态方法",
548
+ "returns": {}
547
549
  }
548
550
  ],
549
- "slots": [],
550
- "methods": [],
551
551
  "parts": [],
552
- "description": "表单提交按钮",
552
+ "description": "表单构件",
553
553
  "category": "form-input-basic"
554
554
  },
555
555
  {
@@ -995,6 +995,129 @@
995
995
  "description": "开关",
996
996
  "category": "form-input-basic"
997
997
  },
998
+ {
999
+ "name": "eo-upload-file",
1000
+ "properties": [
1001
+ {
1002
+ "name": "label",
1003
+ "description": "字段说明",
1004
+ "type": "string"
1005
+ },
1006
+ {
1007
+ "name": "name",
1008
+ "description": "字段名称",
1009
+ "type": "string"
1010
+ },
1011
+ {
1012
+ "name": "required",
1013
+ "description": "是否必填",
1014
+ "type": "boolean"
1015
+ },
1016
+ {
1017
+ "name": "message",
1018
+ "description": "校验文本信息",
1019
+ "attribute": false,
1020
+ "type": "Record<string, string>"
1021
+ },
1022
+ {
1023
+ "name": "value",
1024
+ "description": "值",
1025
+ "attribute": false,
1026
+ "type": "FileData[]"
1027
+ },
1028
+ {
1029
+ "name": "multiple",
1030
+ "description": "是否支持多选",
1031
+ "type": "boolean"
1032
+ },
1033
+ {
1034
+ "name": "accept",
1035
+ "description": "接受上传的文件类型,多个之间用 `,` 连接",
1036
+ "type": "string"
1037
+ },
1038
+ {
1039
+ "name": "maxCount",
1040
+ "description": "最大上传数量",
1041
+ "type": "number"
1042
+ },
1043
+ {
1044
+ "name": "limitSize",
1045
+ "description": "上传大小限制(单位为 MB)",
1046
+ "type": "number"
1047
+ },
1048
+ {
1049
+ "name": "buttonText",
1050
+ "description": "上传按钮文本",
1051
+ "default": "上传",
1052
+ "type": "string"
1053
+ },
1054
+ {
1055
+ "name": "buttonType",
1056
+ "description": "上传按钮类型",
1057
+ "type": "ButtonProps[\"type\"]"
1058
+ },
1059
+ {
1060
+ "name": "buttonIcon",
1061
+ "description": "上传按钮类型",
1062
+ "default": "{\n lib: \"antd\",\n icon: \"upload\",\n theme: \"outlined\",\n }",
1063
+ "attribute": false,
1064
+ "type": "GeneralIconProps"
1065
+ },
1066
+ {
1067
+ "name": "overMaxCountMode",
1068
+ "description": "超出最大上传数量时文件的保留方式",
1069
+ "default": "\"replace\"",
1070
+ "type": "\"ignore\" | \"replace\""
1071
+ },
1072
+ {
1073
+ "name": "uploadDraggable",
1074
+ "description": "是否可以拖拽上传",
1075
+ "type": "boolean"
1076
+ },
1077
+ {
1078
+ "name": "draggableUploadTip",
1079
+ "description": "拖拽上传的提示信息",
1080
+ "type": "string"
1081
+ },
1082
+ {
1083
+ "name": "autoUpload",
1084
+ "description": "是否自动上传",
1085
+ "default": "false",
1086
+ "type": "boolean"
1087
+ },
1088
+ {
1089
+ "name": "url",
1090
+ "description": "自动上传的地址",
1091
+ "type": "string"
1092
+ },
1093
+ {
1094
+ "name": "method",
1095
+ "description": "自动上传的方法",
1096
+ "default": "\"POST\"",
1097
+ "type": "string"
1098
+ },
1099
+ {
1100
+ "name": "uploadName",
1101
+ "description": "自动上传的文件参数名",
1102
+ "default": "\"file\"",
1103
+ "type": "string"
1104
+ }
1105
+ ],
1106
+ "events": [
1107
+ {
1108
+ "name": "change",
1109
+ "description": "值变化时触发",
1110
+ "detail": {
1111
+ "type": "FileData[]"
1112
+ }
1113
+ }
1114
+ ],
1115
+ "slots": [],
1116
+ "methods": [],
1117
+ "parts": [],
1118
+ "description": "上传文件",
1119
+ "category": "form-input-basic"
1120
+ },
998
1121
  {
999
1122
  "name": "eo-auto-complete",
1000
1123
  "properties": [
@@ -1153,129 +1276,6 @@
1153
1276
  "description": "时间选择器",
1154
1277
  "category": "form-input-basic"
1155
1278
  },
1156
- {
1157
- "name": "eo-upload-file",
1158
- "properties": [
1159
- {
1160
- "name": "label",
1161
- "description": "字段说明",
1162
- "type": "string"
1163
- },
1164
- {
1165
- "name": "name",
1166
- "description": "字段名称",
1167
- "type": "string"
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
- },
1180
- {
1181
- "name": "value",
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": "接受上传的文件类型,多个之间用 `,` 连接",
1194
- "type": "string"
1195
- },
1196
- {
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": "上传",
1210
- "type": "string"
1211
- },
1212
- {
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 }",
1221
- "attribute": false,
1222
- "type": "GeneralIconProps"
1223
- },
1224
- {
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",
1244
- "type": "boolean"
1245
- },
1246
- {
1247
- "name": "url",
1248
- "description": "自动上传的地址",
1249
- "type": "string"
1250
- },
1251
- {
1252
- "name": "method",
1253
- "description": "自动上传的方法",
1254
- "default": "\"POST\"",
1255
- "type": "string"
1256
- },
1257
- {
1258
- "name": "uploadName",
1259
- "description": "自动上传的文件参数名",
1260
- "default": "\"file\"",
1261
- "type": "string"
1262
- }
1263
- ],
1264
- "events": [
1265
- {
1266
- "name": "change",
1267
- "description": "值变化时触发",
1268
- "detail": {
1269
- "type": "FileData[]"
1270
- }
1271
- }
1272
- ],
1273
- "slots": [],
1274
- "methods": [],
1275
- "parts": [],
1276
- "description": "上传文件",
1277
- "category": "form-input-basic"
1278
- },
1279
1279
  {
1280
1280
  "name": "eo-date-picker",
1281
1281
  "properties": [