@next-bricks/form 1.10.8 → 1.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +33 -33
- package/dist/chunks/{4947.9dcc3022.js → 3533.e004c608.js} +3 -3
- package/dist/chunks/3533.e004c608.js.map +1 -0
- package/dist/chunks/{4837.e47cfe9b.js → 4837.59ab16d8.js} +2 -2
- package/dist/chunks/{4837.e47cfe9b.js.map → 4837.59ab16d8.js.map} +1 -1
- package/dist/chunks/5399.9bf18611.js +2 -0
- package/dist/chunks/5399.9bf18611.js.map +1 -0
- package/dist/chunks/{7218.9e565040.js → 7218.1d36c6cf.js} +2 -2
- package/dist/chunks/{7218.9e565040.js.map → 7218.1d36c6cf.js.map} +1 -1
- package/dist/chunks/{9259.fd9cf6f6.js → 9259.a5242da6.js} +3 -3
- package/dist/chunks/9259.a5242da6.js.map +1 -0
- package/dist/chunks/{eo-checkbox.b0af3bff.js → eo-checkbox.ff46fd8d.js} +2 -2
- package/dist/chunks/{eo-checkbox.b0af3bff.js.map → eo-checkbox.ff46fd8d.js.map} +1 -1
- package/dist/chunks/{eo-color-picker.da02666d.js → eo-color-picker.35f8818b.js} +2 -2
- package/dist/chunks/{eo-color-picker.da02666d.js.map → eo-color-picker.35f8818b.js.map} +1 -1
- package/dist/chunks/{eo-date-picker.648b4e2a.js → eo-date-picker.2cd6cdd6.js} +2 -2
- package/dist/chunks/{eo-date-picker.648b4e2a.js.map → eo-date-picker.2cd6cdd6.js.map} +1 -1
- package/dist/chunks/{eo-dynamic-form-item.3c1bb6f9.js → eo-dynamic-form-item.dedbe2af.js} +3 -3
- package/dist/chunks/{eo-dynamic-form-item.3c1bb6f9.js.map → eo-dynamic-form-item.dedbe2af.js.map} +1 -1
- package/dist/chunks/{eo-form-item.2c959bc5.js → eo-form-item.2977d047.js} +3 -3
- package/dist/chunks/eo-form-item.2977d047.js.map +1 -0
- package/dist/chunks/{eo-radio.89217faa.js → eo-radio.84a15ff7.js} +3 -3
- package/dist/chunks/{eo-radio.89217faa.js.map → eo-radio.84a15ff7.js.map} +1 -1
- package/dist/chunks/{eo-select.2aab788e.js → eo-select.323299b0.js} +3 -3
- package/dist/chunks/{eo-select.2aab788e.js.map → eo-select.323299b0.js.map} +1 -1
- package/dist/chunks/{eo-time-picker.7a6711f4.js → eo-time-picker.41cdd69d.js} +2 -2
- package/dist/chunks/{eo-time-picker.7a6711f4.js.map → eo-time-picker.41cdd69d.js.map} +1 -1
- package/dist/chunks/{eo-time-range-picker.204f1841.js → eo-time-range-picker.faa033a6.js} +2 -2
- package/dist/chunks/{eo-time-range-picker.204f1841.js.map → eo-time-range-picker.faa033a6.js.map} +1 -1
- package/dist/chunks/{eo-upload-file.62373afd.js → eo-upload-file.505d655f.js} +3 -3
- package/dist/chunks/{eo-upload-file.62373afd.js.map → eo-upload-file.505d655f.js.map} +1 -1
- package/dist/chunks/{eo-upload-image.5eb96a24.js → eo-upload-image.705818de.js} +3 -3
- package/dist/chunks/{eo-upload-image.5eb96a24.js.map → eo-upload-image.705818de.js.map} +1 -1
- package/dist/chunks/main.664cfa57.js +2 -0
- package/dist/chunks/{main.b1971ad8.js.map → main.664cfa57.js.map} +1 -1
- package/dist/examples.json +11 -11
- package/dist/index.eac2691b.js +2 -0
- package/dist/index.eac2691b.js.map +1 -0
- package/dist/manifest.json +331 -331
- package/dist/types.json +220 -220
- package/dist-types/form-item/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/4947.9dcc3022.js.map +0 -1
- package/dist/chunks/5399.c9226446.js +0 -2
- package/dist/chunks/5399.c9226446.js.map +0 -1
- package/dist/chunks/9259.fd9cf6f6.js.map +0 -1
- package/dist/chunks/eo-form-item.2c959bc5.js.map +0 -1
- package/dist/chunks/main.b1971ad8.js +0 -2
- package/dist/index.ae6a0a04.js +0 -2
- package/dist/index.ae6a0a04.js.map +0 -1
- /package/dist/chunks/{4947.9dcc3022.js.LICENSE.txt → 3533.e004c608.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{9259.fd9cf6f6.js.LICENSE.txt → 9259.a5242da6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-dynamic-form-item.3c1bb6f9.js.LICENSE.txt → eo-dynamic-form-item.dedbe2af.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-form-item.2c959bc5.js.LICENSE.txt → eo-form-item.2977d047.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-radio.89217faa.js.LICENSE.txt → eo-radio.84a15ff7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.2aab788e.js.LICENSE.txt → eo-select.323299b0.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-file.62373afd.js.LICENSE.txt → eo-upload-file.505d655f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-upload-image.5eb96a24.js.LICENSE.txt → eo-upload-image.705818de.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -189,94 +189,101 @@
|
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
"name": "eo-
|
|
192
|
+
"name": "eo-radio",
|
|
193
193
|
"alias": [
|
|
194
|
-
"form.general-
|
|
194
|
+
"form.general-radio"
|
|
195
195
|
],
|
|
196
196
|
"properties": [
|
|
197
197
|
{
|
|
198
198
|
"name": "name",
|
|
199
|
-
"description": "
|
|
199
|
+
"description": "下拉框字段名",
|
|
200
200
|
"type": "string"
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "label",
|
|
204
|
-
"description": "
|
|
204
|
+
"description": "单选框字段说明",
|
|
205
205
|
"type": "string"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"name": "
|
|
209
|
-
"description": "
|
|
210
|
-
"
|
|
208
|
+
"name": "options",
|
|
209
|
+
"description": "单选框选项表",
|
|
210
|
+
"required": true,
|
|
211
|
+
"attribute": false,
|
|
212
|
+
"type": "GeneralOption[]"
|
|
211
213
|
},
|
|
212
214
|
{
|
|
213
|
-
"name": "
|
|
214
|
-
"description": "
|
|
215
|
-
"
|
|
215
|
+
"name": "value",
|
|
216
|
+
"description": "单选框当前选中始值",
|
|
217
|
+
"attribute": false,
|
|
218
|
+
"type": "any"
|
|
216
219
|
},
|
|
217
220
|
{
|
|
218
|
-
"name": "
|
|
219
|
-
"description": "
|
|
221
|
+
"name": "required",
|
|
222
|
+
"description": "是否必填",
|
|
220
223
|
"type": "boolean"
|
|
221
224
|
},
|
|
222
225
|
{
|
|
223
|
-
"name": "
|
|
224
|
-
"description": "
|
|
225
|
-
"type": "number"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "maxLength",
|
|
229
|
-
"description": "最大长度",
|
|
230
|
-
"type": "number"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"name": "autoSize",
|
|
234
|
-
"description": "大小自适应",
|
|
226
|
+
"name": "message",
|
|
227
|
+
"description": "校验文本信息",
|
|
235
228
|
"attribute": false,
|
|
236
|
-
"type": "
|
|
229
|
+
"type": "Record<string, string>"
|
|
237
230
|
},
|
|
238
231
|
{
|
|
239
|
-
"name": "
|
|
240
|
-
"description": "
|
|
232
|
+
"name": "disabled",
|
|
233
|
+
"description": "是否禁用",
|
|
241
234
|
"type": "boolean"
|
|
242
235
|
},
|
|
243
236
|
{
|
|
244
|
-
"name": "
|
|
245
|
-
"description": "
|
|
246
|
-
"
|
|
237
|
+
"name": "type",
|
|
238
|
+
"description": "单选框样式类型",
|
|
239
|
+
"default": "\"default\"",
|
|
240
|
+
"type": "RadioType"
|
|
247
241
|
},
|
|
248
242
|
{
|
|
249
|
-
"name": "
|
|
250
|
-
"description": "
|
|
251
|
-
"
|
|
243
|
+
"name": "ui",
|
|
244
|
+
"description": "UI样式",
|
|
245
|
+
"default": "\"default\"",
|
|
246
|
+
"type": "UIType"
|
|
252
247
|
},
|
|
253
248
|
{
|
|
254
|
-
"name": "
|
|
255
|
-
"description": "
|
|
256
|
-
"
|
|
257
|
-
"type": "
|
|
249
|
+
"name": "size",
|
|
250
|
+
"description": "大小,只对按钮样式生效",
|
|
251
|
+
"default": "\"medium\"",
|
|
252
|
+
"type": "ComponentSize"
|
|
258
253
|
},
|
|
259
254
|
{
|
|
260
|
-
"name": "
|
|
261
|
-
"description": "
|
|
255
|
+
"name": "customStyle",
|
|
256
|
+
"description": "自定义radio的外层样式",
|
|
262
257
|
"attribute": false,
|
|
263
258
|
"type": "React.CSSProperties"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "useBrick",
|
|
262
|
+
"description": "自定义radio的内容",
|
|
263
|
+
"attribute": false,
|
|
264
|
+
"type": "UseSingleBrickConf"
|
|
264
265
|
}
|
|
265
266
|
],
|
|
266
267
|
"events": [
|
|
267
268
|
{
|
|
268
269
|
"name": "change",
|
|
269
|
-
"description": "",
|
|
270
|
+
"description": "值变化事件",
|
|
270
271
|
"detail": {
|
|
271
|
-
"
|
|
272
|
-
|
|
272
|
+
"type": "GeneralComplexOption | undefined"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "options.change",
|
|
277
|
+
"description": "选项列表变化事件",
|
|
278
|
+
"detail": {
|
|
279
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
273
280
|
}
|
|
274
281
|
}
|
|
275
282
|
],
|
|
276
283
|
"slots": [],
|
|
277
284
|
"methods": [],
|
|
278
285
|
"parts": [],
|
|
279
|
-
"description": "
|
|
286
|
+
"description": "通用单选构件",
|
|
280
287
|
"category": "form-input-basic"
|
|
281
288
|
},
|
|
282
289
|
{
|
|
@@ -414,203 +421,6 @@
|
|
|
414
421
|
"description": "表单构件",
|
|
415
422
|
"category": "form-input-basic"
|
|
416
423
|
},
|
|
417
|
-
{
|
|
418
|
-
"name": "eo-form-item",
|
|
419
|
-
"alias": [
|
|
420
|
-
"form.general-form-item"
|
|
421
|
-
],
|
|
422
|
-
"properties": [
|
|
423
|
-
{
|
|
424
|
-
"name": "formElement",
|
|
425
|
-
"attribute": false,
|
|
426
|
-
"type": "Form"
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
"name": "curElement",
|
|
430
|
-
"attribute": false,
|
|
431
|
-
"type": "HTMLElement"
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"name": "name",
|
|
435
|
-
"description": "字段名称",
|
|
436
|
-
"type": "string"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
"name": "label",
|
|
440
|
-
"type": "string"
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"name": "pattern",
|
|
444
|
-
"type": "string"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"name": "message",
|
|
448
|
-
"attribute": false,
|
|
449
|
-
"type": "Record<string, string>"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
"name": "max",
|
|
453
|
-
"type": "number"
|
|
454
|
-
},
|
|
455
|
-
{
|
|
456
|
-
"name": "min",
|
|
457
|
-
"type": "number"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"name": "required",
|
|
461
|
-
"description": "表单项是否必填",
|
|
462
|
-
"type": "boolean"
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"name": "value",
|
|
466
|
-
"description": "初始值",
|
|
467
|
-
"type": "string"
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
"name": "valuePropsName",
|
|
471
|
-
"type": "string"
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"name": "layout",
|
|
475
|
-
"type": "Layout"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"name": "size",
|
|
479
|
-
"type": "ComponentSize"
|
|
480
|
-
},
|
|
481
|
-
{
|
|
482
|
-
"name": "trim",
|
|
483
|
-
"description": "是否自动去除前后的空白字符",
|
|
484
|
-
"default": "true"
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
"name": "trigger",
|
|
488
|
-
"description": "事件触发方法名",
|
|
489
|
-
"type": "string"
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
"name": "validator",
|
|
493
|
-
"description": "表单项校验方法",
|
|
494
|
-
"attribute": false,
|
|
495
|
-
"type": "((value: any) => MessageBody)"
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
"name": "needValidate",
|
|
499
|
-
"description": "值变化时是否主动出发校验",
|
|
500
|
-
"type": "boolean"
|
|
501
|
-
}
|
|
502
|
-
],
|
|
503
|
-
"events": [],
|
|
504
|
-
"slots": [
|
|
505
|
-
{
|
|
506
|
-
"name": null,
|
|
507
|
-
"description": "表单项内容"
|
|
508
|
-
}
|
|
509
|
-
],
|
|
510
|
-
"methods": [],
|
|
511
|
-
"parts": [],
|
|
512
|
-
"description": "通用输入框构件",
|
|
513
|
-
"category": "form-input-basic",
|
|
514
|
-
"insider": true
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
"name": "eo-radio",
|
|
518
|
-
"alias": [
|
|
519
|
-
"form.general-radio"
|
|
520
|
-
],
|
|
521
|
-
"properties": [
|
|
522
|
-
{
|
|
523
|
-
"name": "name",
|
|
524
|
-
"description": "下拉框字段名",
|
|
525
|
-
"type": "string"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
"name": "label",
|
|
529
|
-
"description": "单选框字段说明",
|
|
530
|
-
"type": "string"
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
"name": "options",
|
|
534
|
-
"description": "单选框选项表",
|
|
535
|
-
"required": true,
|
|
536
|
-
"attribute": false,
|
|
537
|
-
"type": "GeneralOption[]"
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"name": "value",
|
|
541
|
-
"description": "单选框当前选中始值",
|
|
542
|
-
"attribute": false,
|
|
543
|
-
"type": "any"
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
"name": "required",
|
|
547
|
-
"description": "是否必填",
|
|
548
|
-
"type": "boolean"
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"name": "message",
|
|
552
|
-
"description": "校验文本信息",
|
|
553
|
-
"attribute": false,
|
|
554
|
-
"type": "Record<string, string>"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"name": "disabled",
|
|
558
|
-
"description": "是否禁用",
|
|
559
|
-
"type": "boolean"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"name": "type",
|
|
563
|
-
"description": "单选框样式类型",
|
|
564
|
-
"default": "\"default\"",
|
|
565
|
-
"type": "RadioType"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"name": "ui",
|
|
569
|
-
"description": "UI样式",
|
|
570
|
-
"default": "\"default\"",
|
|
571
|
-
"type": "UIType"
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
"name": "size",
|
|
575
|
-
"description": "大小,只对按钮样式生效",
|
|
576
|
-
"default": "\"medium\"",
|
|
577
|
-
"type": "ComponentSize"
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"name": "customStyle",
|
|
581
|
-
"description": "自定义radio的外层样式",
|
|
582
|
-
"attribute": false,
|
|
583
|
-
"type": "React.CSSProperties"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"name": "useBrick",
|
|
587
|
-
"description": "自定义radio的内容",
|
|
588
|
-
"attribute": false,
|
|
589
|
-
"type": "UseSingleBrickConf"
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
"events": [
|
|
593
|
-
{
|
|
594
|
-
"name": "change",
|
|
595
|
-
"description": "值变化事件",
|
|
596
|
-
"detail": {
|
|
597
|
-
"type": "GeneralComplexOption | undefined"
|
|
598
|
-
}
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"name": "options.change",
|
|
602
|
-
"description": "选项列表变化事件",
|
|
603
|
-
"detail": {
|
|
604
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
],
|
|
608
|
-
"slots": [],
|
|
609
|
-
"methods": [],
|
|
610
|
-
"parts": [],
|
|
611
|
-
"description": "通用单选构件",
|
|
612
|
-
"category": "form-input-basic"
|
|
613
|
-
},
|
|
614
424
|
{
|
|
615
425
|
"name": "eo-select",
|
|
616
426
|
"alias": [
|
|
@@ -753,6 +563,97 @@
|
|
|
753
563
|
"description": "通用下拉选择构件",
|
|
754
564
|
"category": "form-input-basic"
|
|
755
565
|
},
|
|
566
|
+
{
|
|
567
|
+
"name": "eo-textarea",
|
|
568
|
+
"alias": [
|
|
569
|
+
"form.general-textarea"
|
|
570
|
+
],
|
|
571
|
+
"properties": [
|
|
572
|
+
{
|
|
573
|
+
"name": "name",
|
|
574
|
+
"description": "字段名称",
|
|
575
|
+
"type": "string"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "label",
|
|
579
|
+
"description": "标签文字",
|
|
580
|
+
"type": "string"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "value",
|
|
584
|
+
"description": "值",
|
|
585
|
+
"type": "string"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "placeholder",
|
|
589
|
+
"description": "占位说明",
|
|
590
|
+
"type": "string"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "disabled",
|
|
594
|
+
"description": "是否禁用",
|
|
595
|
+
"type": "boolean"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "minLength",
|
|
599
|
+
"description": "最小长度",
|
|
600
|
+
"type": "number"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "maxLength",
|
|
604
|
+
"description": "最大长度",
|
|
605
|
+
"type": "number"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "autoSize",
|
|
609
|
+
"description": "大小自适应",
|
|
610
|
+
"attribute": false,
|
|
611
|
+
"type": "AutoSize"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"name": "required",
|
|
615
|
+
"description": "是否必填",
|
|
616
|
+
"type": "boolean"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "max",
|
|
620
|
+
"description": "表单校验最大长度",
|
|
621
|
+
"type": "number"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "min",
|
|
625
|
+
"description": "表单校验最小长度",
|
|
626
|
+
"type": "number"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "message",
|
|
630
|
+
"description": "校验信息",
|
|
631
|
+
"attribute": false,
|
|
632
|
+
"type": "Record<string, string>"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "textareaStyle",
|
|
636
|
+
"description": "自定义样式",
|
|
637
|
+
"attribute": false,
|
|
638
|
+
"type": "React.CSSProperties"
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"events": [
|
|
642
|
+
{
|
|
643
|
+
"name": "change",
|
|
644
|
+
"description": "",
|
|
645
|
+
"detail": {
|
|
646
|
+
"description": null,
|
|
647
|
+
"type": "string"
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
],
|
|
651
|
+
"slots": [],
|
|
652
|
+
"methods": [],
|
|
653
|
+
"parts": [],
|
|
654
|
+
"description": "通用多行文本输入框构件",
|
|
655
|
+
"category": "form-input-basic"
|
|
656
|
+
},
|
|
756
657
|
{
|
|
757
658
|
"name": "eo-submit-buttons",
|
|
758
659
|
"alias": [
|
|
@@ -1059,9 +960,9 @@
|
|
|
1059
960
|
"category": "interact-basic"
|
|
1060
961
|
},
|
|
1061
962
|
{
|
|
1062
|
-
"name": "eo-
|
|
963
|
+
"name": "eo-upload-image",
|
|
1063
964
|
"alias": [
|
|
1064
|
-
"form.
|
|
965
|
+
"form.upload-image"
|
|
1065
966
|
],
|
|
1066
967
|
"properties": [
|
|
1067
968
|
{
|
|
@@ -1078,13 +979,28 @@
|
|
|
1078
979
|
"name": "value",
|
|
1079
980
|
"description": "值",
|
|
1080
981
|
"attribute": false,
|
|
1081
|
-
"type": "
|
|
982
|
+
"type": "ImageData[]"
|
|
1082
983
|
},
|
|
1083
984
|
{
|
|
1084
|
-
"name": "
|
|
1085
|
-
"description": "
|
|
985
|
+
"name": "bucketName",
|
|
986
|
+
"description": "对象存储桶名字",
|
|
987
|
+
"type": "string"
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "maxCount",
|
|
991
|
+
"description": "最大上传数量",
|
|
992
|
+
"type": "number"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"name": "multiple",
|
|
996
|
+
"description": "是否支持选定的多张图片",
|
|
1086
997
|
"type": "boolean"
|
|
1087
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
"name": "limitSize",
|
|
1001
|
+
"description": "上传大小限制(单位为 MB)",
|
|
1002
|
+
"type": "number"
|
|
1003
|
+
},
|
|
1088
1004
|
{
|
|
1089
1005
|
"name": "required",
|
|
1090
1006
|
"description": "是否必填",
|
|
@@ -1092,7 +1008,7 @@
|
|
|
1092
1008
|
},
|
|
1093
1009
|
{
|
|
1094
1010
|
"name": "message",
|
|
1095
|
-
"description": "
|
|
1011
|
+
"description": "校验文本信息",
|
|
1096
1012
|
"attribute": false,
|
|
1097
1013
|
"type": "Record<string, string>"
|
|
1098
1014
|
}
|
|
@@ -1102,20 +1018,20 @@
|
|
|
1102
1018
|
"name": "change",
|
|
1103
1019
|
"description": "值变化时触发",
|
|
1104
1020
|
"detail": {
|
|
1105
|
-
"type": "
|
|
1021
|
+
"type": "ImageData[]"
|
|
1106
1022
|
}
|
|
1107
1023
|
}
|
|
1108
1024
|
],
|
|
1109
1025
|
"slots": [],
|
|
1110
1026
|
"methods": [],
|
|
1111
1027
|
"parts": [],
|
|
1112
|
-
"description": "
|
|
1028
|
+
"description": "上传图片构件",
|
|
1113
1029
|
"category": "form-input-basic"
|
|
1114
1030
|
},
|
|
1115
1031
|
{
|
|
1116
|
-
"name": "eo-
|
|
1032
|
+
"name": "eo-icon-select",
|
|
1117
1033
|
"alias": [
|
|
1118
|
-
"form.
|
|
1034
|
+
"form.icon-select"
|
|
1119
1035
|
],
|
|
1120
1036
|
"properties": [
|
|
1121
1037
|
{
|
|
@@ -1132,28 +1048,13 @@
|
|
|
1132
1048
|
"name": "value",
|
|
1133
1049
|
"description": "值",
|
|
1134
1050
|
"attribute": false,
|
|
1135
|
-
"type": "
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
"name": "bucketName",
|
|
1139
|
-
"description": "对象存储桶名字",
|
|
1140
|
-
"type": "string"
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
"name": "maxCount",
|
|
1144
|
-
"description": "最大上传数量",
|
|
1145
|
-
"type": "number"
|
|
1051
|
+
"type": "Icon"
|
|
1146
1052
|
},
|
|
1147
1053
|
{
|
|
1148
|
-
"name": "
|
|
1149
|
-
"description": "
|
|
1054
|
+
"name": "disabled",
|
|
1055
|
+
"description": "是否禁用",
|
|
1150
1056
|
"type": "boolean"
|
|
1151
1057
|
},
|
|
1152
|
-
{
|
|
1153
|
-
"name": "limitSize",
|
|
1154
|
-
"description": "上传大小限制(单位为 MB)",
|
|
1155
|
-
"type": "number"
|
|
1156
|
-
},
|
|
1157
1058
|
{
|
|
1158
1059
|
"name": "required",
|
|
1159
1060
|
"description": "是否必填",
|
|
@@ -1161,7 +1062,7 @@
|
|
|
1161
1062
|
},
|
|
1162
1063
|
{
|
|
1163
1064
|
"name": "message",
|
|
1164
|
-
"description": "
|
|
1065
|
+
"description": "是否必填",
|
|
1165
1066
|
"attribute": false,
|
|
1166
1067
|
"type": "Record<string, string>"
|
|
1167
1068
|
}
|
|
@@ -1171,14 +1072,14 @@
|
|
|
1171
1072
|
"name": "change",
|
|
1172
1073
|
"description": "值变化时触发",
|
|
1173
1074
|
"detail": {
|
|
1174
|
-
"type": "
|
|
1075
|
+
"type": "Icon | undefined"
|
|
1175
1076
|
}
|
|
1176
1077
|
}
|
|
1177
1078
|
],
|
|
1178
1079
|
"slots": [],
|
|
1179
1080
|
"methods": [],
|
|
1180
1081
|
"parts": [],
|
|
1181
|
-
"description": "
|
|
1082
|
+
"description": "图标选择构件",
|
|
1182
1083
|
"category": "form-input-basic"
|
|
1183
1084
|
},
|
|
1184
1085
|
{
|
|
@@ -1373,6 +1274,105 @@
|
|
|
1373
1274
|
"description": "上传文件",
|
|
1374
1275
|
"category": "form-input-basic"
|
|
1375
1276
|
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "eo-form-item",
|
|
1279
|
+
"alias": [
|
|
1280
|
+
"form.general-form-item"
|
|
1281
|
+
],
|
|
1282
|
+
"properties": [
|
|
1283
|
+
{
|
|
1284
|
+
"name": "formElement",
|
|
1285
|
+
"attribute": false,
|
|
1286
|
+
"type": "Form"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"name": "curElement",
|
|
1290
|
+
"attribute": false,
|
|
1291
|
+
"type": "HTMLElement"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"name": "name",
|
|
1295
|
+
"description": "字段名称",
|
|
1296
|
+
"type": "string"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"name": "label",
|
|
1300
|
+
"type": "string"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "pattern",
|
|
1304
|
+
"type": "string"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "message",
|
|
1308
|
+
"attribute": false,
|
|
1309
|
+
"type": "Record<string, string>"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "max",
|
|
1313
|
+
"type": "number"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"name": "min",
|
|
1317
|
+
"type": "number"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"name": "required",
|
|
1321
|
+
"description": "表单项是否为必填",
|
|
1322
|
+
"type": "boolean"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"name": "value",
|
|
1326
|
+
"description": "初始值",
|
|
1327
|
+
"type": "string"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"name": "valuePropsName",
|
|
1331
|
+
"type": "string"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"name": "layout",
|
|
1335
|
+
"type": "Layout"
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"name": "size",
|
|
1339
|
+
"type": "ComponentSize"
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"name": "trim",
|
|
1343
|
+
"description": "是否自动去除前后的空白字符",
|
|
1344
|
+
"default": "true"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"name": "trigger",
|
|
1348
|
+
"description": "事件触发方法名",
|
|
1349
|
+
"type": "string"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "validator",
|
|
1353
|
+
"description": "表单项校验方法",
|
|
1354
|
+
"attribute": false,
|
|
1355
|
+
"type": "((value: any) => MessageBody)"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
"name": "needValidate",
|
|
1359
|
+
"description": "值变化时是否主动出发校验",
|
|
1360
|
+
"type": "boolean"
|
|
1361
|
+
}
|
|
1362
|
+
],
|
|
1363
|
+
"events": [],
|
|
1364
|
+
"slots": [
|
|
1365
|
+
{
|
|
1366
|
+
"name": null,
|
|
1367
|
+
"description": "表单项内容"
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"methods": [],
|
|
1371
|
+
"parts": [],
|
|
1372
|
+
"description": "通用输入框构件",
|
|
1373
|
+
"category": "form-input-basic",
|
|
1374
|
+
"insider": true
|
|
1375
|
+
},
|
|
1376
1376
|
{
|
|
1377
1377
|
"name": "eo-auto-complete",
|
|
1378
1378
|
"properties": [
|
|
@@ -1632,24 +1632,27 @@
|
|
|
1632
1632
|
"category": "form-input-basic"
|
|
1633
1633
|
},
|
|
1634
1634
|
{
|
|
1635
|
-
"name": "eo-
|
|
1635
|
+
"name": "eo-color-picker",
|
|
1636
1636
|
"properties": [
|
|
1637
1637
|
{
|
|
1638
1638
|
"name": "name",
|
|
1639
|
-
"description": "
|
|
1639
|
+
"description": "字段名称",
|
|
1640
1640
|
"type": "string"
|
|
1641
1641
|
},
|
|
1642
1642
|
{
|
|
1643
1643
|
"name": "label",
|
|
1644
|
-
"description": "
|
|
1644
|
+
"description": "字段说明",
|
|
1645
1645
|
"type": "string"
|
|
1646
1646
|
},
|
|
1647
1647
|
{
|
|
1648
1648
|
"name": "value",
|
|
1649
|
-
"description": "
|
|
1650
|
-
"
|
|
1651
|
-
|
|
1652
|
-
|
|
1649
|
+
"description": "值",
|
|
1650
|
+
"type": "string"
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"name": "defaultValue",
|
|
1654
|
+
"description": "颜色默认的值",
|
|
1655
|
+
"type": "string | Color"
|
|
1653
1656
|
},
|
|
1654
1657
|
{
|
|
1655
1658
|
"name": "required",
|
|
@@ -1657,72 +1660,74 @@
|
|
|
1657
1660
|
"type": "boolean"
|
|
1658
1661
|
},
|
|
1659
1662
|
{
|
|
1660
|
-
"name": "
|
|
1661
|
-
"description": "
|
|
1663
|
+
"name": "allowClear",
|
|
1664
|
+
"description": "允许清除选择的颜色",
|
|
1665
|
+
"type": "boolean"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"name": "size",
|
|
1669
|
+
"description": "设置触发器大小",
|
|
1670
|
+
"default": "middle",
|
|
1662
1671
|
"attribute": false,
|
|
1663
|
-
"type": "
|
|
1672
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1664
1673
|
},
|
|
1665
1674
|
{
|
|
1666
|
-
"name": "
|
|
1667
|
-
"description": "
|
|
1668
|
-
"type": "
|
|
1675
|
+
"name": "showText",
|
|
1676
|
+
"description": "显示颜色文本",
|
|
1677
|
+
"type": "boolean"
|
|
1669
1678
|
},
|
|
1670
1679
|
{
|
|
1671
|
-
"name": "
|
|
1672
|
-
"description": "",
|
|
1673
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1680
|
+
"name": "disabled",
|
|
1681
|
+
"description": "是否禁用",
|
|
1674
1682
|
"type": "boolean"
|
|
1675
1683
|
},
|
|
1676
1684
|
{
|
|
1677
|
-
"name": "
|
|
1678
|
-
"description": "",
|
|
1679
|
-
"default": "
|
|
1685
|
+
"name": "format",
|
|
1686
|
+
"description": "颜色格式",
|
|
1687
|
+
"default": "hex",
|
|
1680
1688
|
"attribute": false,
|
|
1681
|
-
"type": "
|
|
1689
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1682
1690
|
},
|
|
1683
1691
|
{
|
|
1684
|
-
"name": "
|
|
1692
|
+
"name": "configProps",
|
|
1693
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1685
1694
|
"attribute": false,
|
|
1686
|
-
"type": "
|
|
1695
|
+
"type": "Partial<ColorPickerProps>"
|
|
1687
1696
|
}
|
|
1688
1697
|
],
|
|
1689
1698
|
"events": [
|
|
1690
1699
|
{
|
|
1691
1700
|
"name": "change",
|
|
1692
|
-
"description": "
|
|
1701
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1693
1702
|
"detail": {
|
|
1694
|
-
"type": "
|
|
1703
|
+
"type": "string | undefined"
|
|
1695
1704
|
}
|
|
1696
1705
|
}
|
|
1697
1706
|
],
|
|
1698
1707
|
"slots": [],
|
|
1699
1708
|
"methods": [],
|
|
1700
1709
|
"parts": [],
|
|
1701
|
-
"description": "
|
|
1702
|
-
"category": "form-input-basic"
|
|
1710
|
+
"description": "构件 `eo-color-picker`"
|
|
1703
1711
|
},
|
|
1704
1712
|
{
|
|
1705
|
-
"name": "eo-
|
|
1713
|
+
"name": "eo-time-range-picker",
|
|
1706
1714
|
"properties": [
|
|
1707
1715
|
{
|
|
1708
1716
|
"name": "name",
|
|
1709
|
-
"description": "
|
|
1717
|
+
"description": "时间段选择器字段名",
|
|
1710
1718
|
"type": "string"
|
|
1711
1719
|
},
|
|
1712
1720
|
{
|
|
1713
1721
|
"name": "label",
|
|
1714
|
-
"description": "
|
|
1722
|
+
"description": "时间段选择器说明",
|
|
1715
1723
|
"type": "string"
|
|
1716
1724
|
},
|
|
1717
1725
|
{
|
|
1718
1726
|
"name": "value",
|
|
1719
|
-
"description": "
|
|
1720
|
-
"
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
"name": "defaultValue",
|
|
1724
|
-
"description": "颜色默认的值",
|
|
1725
|
-
"type": "string | Color"
|
|
1727
|
+
"description": "时间段选择器的初始值",
|
|
1728
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1729
|
+
"attribute": false,
|
|
1730
|
+
"type": "TimeRange"
|
|
1726
1731
|
},
|
|
1727
1732
|
{
|
|
1728
1733
|
"name": "required",
|
|
@@ -1730,54 +1735,49 @@
|
|
|
1730
1735
|
"type": "boolean"
|
|
1731
1736
|
},
|
|
1732
1737
|
{
|
|
1733
|
-
"name": "
|
|
1734
|
-
"description": "
|
|
1735
|
-
"type": "boolean"
|
|
1736
|
-
},
|
|
1737
|
-
{
|
|
1738
|
-
"name": "size",
|
|
1739
|
-
"description": "设置触发器大小",
|
|
1740
|
-
"default": "middle",
|
|
1738
|
+
"name": "rangeType",
|
|
1739
|
+
"description": "时间段类型",
|
|
1741
1740
|
"attribute": false,
|
|
1742
|
-
"type": "
|
|
1741
|
+
"type": "RangeType"
|
|
1743
1742
|
},
|
|
1744
1743
|
{
|
|
1745
|
-
"name": "
|
|
1746
|
-
"description": "
|
|
1747
|
-
"type": "
|
|
1744
|
+
"name": "selectNearDays",
|
|
1745
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1746
|
+
"type": "number"
|
|
1748
1747
|
},
|
|
1749
1748
|
{
|
|
1750
|
-
"name": "
|
|
1751
|
-
"description": "
|
|
1749
|
+
"name": "emitChangeOnInit",
|
|
1750
|
+
"description": "",
|
|
1751
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1752
1752
|
"type": "boolean"
|
|
1753
1753
|
},
|
|
1754
1754
|
{
|
|
1755
|
-
"name": "
|
|
1756
|
-
"description": "
|
|
1757
|
-
"default": "
|
|
1755
|
+
"name": "presetRanges",
|
|
1756
|
+
"description": "",
|
|
1757
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1758
1758
|
"attribute": false,
|
|
1759
|
-
"type": "
|
|
1759
|
+
"type": "presetRangeType[]"
|
|
1760
1760
|
},
|
|
1761
1761
|
{
|
|
1762
|
-
"name": "
|
|
1763
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1762
|
+
"name": "validator",
|
|
1764
1763
|
"attribute": false,
|
|
1765
|
-
"type": "
|
|
1764
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1766
1765
|
}
|
|
1767
1766
|
],
|
|
1768
1767
|
"events": [
|
|
1769
1768
|
{
|
|
1770
1769
|
"name": "change",
|
|
1771
|
-
"description": "
|
|
1770
|
+
"description": "时间段变化时触发",
|
|
1772
1771
|
"detail": {
|
|
1773
|
-
"type": "
|
|
1772
|
+
"type": "TimeRange"
|
|
1774
1773
|
}
|
|
1775
1774
|
}
|
|
1776
1775
|
],
|
|
1777
1776
|
"slots": [],
|
|
1778
1777
|
"methods": [],
|
|
1779
1778
|
"parts": [],
|
|
1780
|
-
"description": "
|
|
1779
|
+
"description": "时间区间选择器",
|
|
1780
|
+
"category": "form-input-basic"
|
|
1781
1781
|
}
|
|
1782
1782
|
],
|
|
1783
1783
|
"providers": []
|