@next-bricks/form 1.15.21 → 1.16.0
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 +29 -29
- package/dist/chunks/5347.2f87fd08.js +3 -0
- package/dist/chunks/5347.2f87fd08.js.map +1 -0
- package/dist/chunks/eo-select.6e142ce3.js +3 -0
- package/dist/chunks/eo-select.6e142ce3.js.map +1 -0
- package/dist/chunks/{main.8695b116.js → main.3fba8d87.js} +2 -2
- package/dist/chunks/{main.8695b116.js.map → main.3fba8d87.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/index.a43217c7.js +2 -0
- package/dist/{index.2ae50082.js.map → index.a43217c7.js.map} +1 -1
- package/dist/manifest.json +297 -297
- package/dist/types.json +26 -0
- package/dist-types/interface.d.ts +1 -0
- package/docs/eo-select.md +21 -0
- package/package.json +2 -2
- package/dist/chunks/5347.585f3de2.js +0 -3
- package/dist/chunks/5347.585f3de2.js.map +0 -1
- package/dist/chunks/eo-select.ae4ed137.js +0 -3
- package/dist/chunks/eo-select.ae4ed137.js.map +0 -1
- package/dist/index.2ae50082.js +0 -2
- /package/dist/chunks/{5347.585f3de2.js.LICENSE.txt → 5347.2f87fd08.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-select.ae4ed137.js.LICENSE.txt → eo-select.6e142ce3.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -3,104 +3,6 @@
|
|
|
3
3
|
"package": "@next-bricks/form",
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
|
-
{
|
|
7
|
-
"name": "eo-textarea",
|
|
8
|
-
"alias": [
|
|
9
|
-
"form.general-textarea"
|
|
10
|
-
],
|
|
11
|
-
"properties": [
|
|
12
|
-
{
|
|
13
|
-
"name": "name",
|
|
14
|
-
"description": "字段名称",
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "label",
|
|
19
|
-
"description": "标签文字",
|
|
20
|
-
"type": "string"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "value",
|
|
24
|
-
"description": "值",
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"name": "placeholder",
|
|
29
|
-
"description": "占位说明",
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"name": "disabled",
|
|
34
|
-
"description": "是否禁用",
|
|
35
|
-
"type": "boolean"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "minLength",
|
|
39
|
-
"description": "最小长度",
|
|
40
|
-
"type": "number"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "maxLength",
|
|
44
|
-
"description": "最大长度",
|
|
45
|
-
"type": "number"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "autoSize",
|
|
49
|
-
"description": "大小自适应",
|
|
50
|
-
"attribute": false,
|
|
51
|
-
"type": "AutoSize"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "required",
|
|
55
|
-
"description": "是否必填",
|
|
56
|
-
"type": "boolean"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "max",
|
|
60
|
-
"description": "表单校验最大长度",
|
|
61
|
-
"type": "number"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "min",
|
|
65
|
-
"description": "表单校验最小长度",
|
|
66
|
-
"type": "number"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "message",
|
|
70
|
-
"description": "校验信息",
|
|
71
|
-
"attribute": false,
|
|
72
|
-
"type": "Record<string, string>"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "textareaStyle",
|
|
76
|
-
"description": "自定义样式",
|
|
77
|
-
"attribute": false,
|
|
78
|
-
"type": "React.CSSProperties"
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"events": [
|
|
82
|
-
{
|
|
83
|
-
"name": "change",
|
|
84
|
-
"description": "",
|
|
85
|
-
"detail": {
|
|
86
|
-
"description": null,
|
|
87
|
-
"type": "string"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"slots": [],
|
|
92
|
-
"methods": [
|
|
93
|
-
{
|
|
94
|
-
"name": "focusTextarea",
|
|
95
|
-
"params": [],
|
|
96
|
-
"description": "focus",
|
|
97
|
-
"returns": {}
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"parts": [],
|
|
101
|
-
"description": "通用多行文本输入框构件",
|
|
102
|
-
"category": "form-input-basic"
|
|
103
|
-
},
|
|
104
6
|
{
|
|
105
7
|
"name": "eo-radio",
|
|
106
8
|
"alias": [
|
|
@@ -347,66 +249,6 @@
|
|
|
347
249
|
"description": "通用下拉选择构件",
|
|
348
250
|
"category": "form-input-basic"
|
|
349
251
|
},
|
|
350
|
-
{
|
|
351
|
-
"name": "eo-submit-buttons",
|
|
352
|
-
"alias": [
|
|
353
|
-
"form.submit-buttons"
|
|
354
|
-
],
|
|
355
|
-
"properties": [
|
|
356
|
-
{
|
|
357
|
-
"name": "submitText",
|
|
358
|
-
"description": "提交按钮的文字",
|
|
359
|
-
"default": "\"提交\"",
|
|
360
|
-
"type": "string"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"name": "cancelText",
|
|
364
|
-
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
365
|
-
"type": "string"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"name": "disableAfterClick",
|
|
369
|
-
"description": "点击确定按钮后自动禁用",
|
|
370
|
-
"type": "boolean"
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
"name": "submitDisabled",
|
|
374
|
-
"description": "禁用提交按钮",
|
|
375
|
-
"type": "boolean"
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"name": "submitType",
|
|
379
|
-
"description": "提交按钮类型",
|
|
380
|
-
"type": "ButtonType"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"name": "cancelType",
|
|
384
|
-
"description": "取消按钮类型",
|
|
385
|
-
"type": "ButtonType"
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
"events": [
|
|
389
|
-
{
|
|
390
|
-
"name": "submit",
|
|
391
|
-
"description": "点击提交按钮触发的事件",
|
|
392
|
-
"detail": {
|
|
393
|
-
"type": "void"
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"name": "cancel",
|
|
398
|
-
"description": "点击取消按钮触发的事件",
|
|
399
|
-
"detail": {
|
|
400
|
-
"type": "void"
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
],
|
|
404
|
-
"slots": [],
|
|
405
|
-
"methods": [],
|
|
406
|
-
"parts": [],
|
|
407
|
-
"description": "表单提交按钮",
|
|
408
|
-
"category": "form-input-basic"
|
|
409
|
-
},
|
|
410
252
|
{
|
|
411
253
|
"name": "eo-form",
|
|
412
254
|
"alias": [
|
|
@@ -552,6 +394,164 @@
|
|
|
552
394
|
"description": "表单构件",
|
|
553
395
|
"category": "form-input-basic"
|
|
554
396
|
},
|
|
397
|
+
{
|
|
398
|
+
"name": "eo-submit-buttons",
|
|
399
|
+
"alias": [
|
|
400
|
+
"form.submit-buttons"
|
|
401
|
+
],
|
|
402
|
+
"properties": [
|
|
403
|
+
{
|
|
404
|
+
"name": "submitText",
|
|
405
|
+
"description": "提交按钮的文字",
|
|
406
|
+
"default": "\"提交\"",
|
|
407
|
+
"type": "string"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "cancelText",
|
|
411
|
+
"description": "取消按钮的文字,不设置则不显示取消按钮",
|
|
412
|
+
"type": "string"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "disableAfterClick",
|
|
416
|
+
"description": "点击确定按钮后自动禁用",
|
|
417
|
+
"type": "boolean"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "submitDisabled",
|
|
421
|
+
"description": "禁用提交按钮",
|
|
422
|
+
"type": "boolean"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"name": "submitType",
|
|
426
|
+
"description": "提交按钮类型",
|
|
427
|
+
"type": "ButtonType"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "cancelType",
|
|
431
|
+
"description": "取消按钮类型",
|
|
432
|
+
"type": "ButtonType"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"events": [
|
|
436
|
+
{
|
|
437
|
+
"name": "submit",
|
|
438
|
+
"description": "点击提交按钮触发的事件",
|
|
439
|
+
"detail": {
|
|
440
|
+
"type": "void"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "cancel",
|
|
445
|
+
"description": "点击取消按钮触发的事件",
|
|
446
|
+
"detail": {
|
|
447
|
+
"type": "void"
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"slots": [],
|
|
452
|
+
"methods": [],
|
|
453
|
+
"parts": [],
|
|
454
|
+
"description": "表单提交按钮",
|
|
455
|
+
"category": "form-input-basic"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "eo-textarea",
|
|
459
|
+
"alias": [
|
|
460
|
+
"form.general-textarea"
|
|
461
|
+
],
|
|
462
|
+
"properties": [
|
|
463
|
+
{
|
|
464
|
+
"name": "name",
|
|
465
|
+
"description": "字段名称",
|
|
466
|
+
"type": "string"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "label",
|
|
470
|
+
"description": "标签文字",
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"name": "value",
|
|
475
|
+
"description": "值",
|
|
476
|
+
"type": "string"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "placeholder",
|
|
480
|
+
"description": "占位说明",
|
|
481
|
+
"type": "string"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "disabled",
|
|
485
|
+
"description": "是否禁用",
|
|
486
|
+
"type": "boolean"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "minLength",
|
|
490
|
+
"description": "最小长度",
|
|
491
|
+
"type": "number"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "maxLength",
|
|
495
|
+
"description": "最大长度",
|
|
496
|
+
"type": "number"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"name": "autoSize",
|
|
500
|
+
"description": "大小自适应",
|
|
501
|
+
"attribute": false,
|
|
502
|
+
"type": "AutoSize"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"name": "required",
|
|
506
|
+
"description": "是否必填",
|
|
507
|
+
"type": "boolean"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "max",
|
|
511
|
+
"description": "表单校验最大长度",
|
|
512
|
+
"type": "number"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "min",
|
|
516
|
+
"description": "表单校验最小长度",
|
|
517
|
+
"type": "number"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "message",
|
|
521
|
+
"description": "校验信息",
|
|
522
|
+
"attribute": false,
|
|
523
|
+
"type": "Record<string, string>"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "textareaStyle",
|
|
527
|
+
"description": "自定义样式",
|
|
528
|
+
"attribute": false,
|
|
529
|
+
"type": "React.CSSProperties"
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"events": [
|
|
533
|
+
{
|
|
534
|
+
"name": "change",
|
|
535
|
+
"description": "",
|
|
536
|
+
"detail": {
|
|
537
|
+
"description": null,
|
|
538
|
+
"type": "string"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
],
|
|
542
|
+
"slots": [],
|
|
543
|
+
"methods": [
|
|
544
|
+
{
|
|
545
|
+
"name": "focusTextarea",
|
|
546
|
+
"params": [],
|
|
547
|
+
"description": "focus",
|
|
548
|
+
"returns": {}
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"parts": [],
|
|
552
|
+
"description": "通用多行文本输入框构件",
|
|
553
|
+
"category": "form-input-basic"
|
|
554
|
+
},
|
|
555
555
|
{
|
|
556
556
|
"name": "eo-checkbox",
|
|
557
557
|
"alias": [
|
|
@@ -804,9 +804,9 @@
|
|
|
804
804
|
"category": "interact-basic"
|
|
805
805
|
},
|
|
806
806
|
{
|
|
807
|
-
"name": "eo-
|
|
807
|
+
"name": "eo-upload-image",
|
|
808
808
|
"alias": [
|
|
809
|
-
"form.
|
|
809
|
+
"form.upload-image"
|
|
810
810
|
],
|
|
811
811
|
"properties": [
|
|
812
812
|
{
|
|
@@ -823,13 +823,28 @@
|
|
|
823
823
|
"name": "value",
|
|
824
824
|
"description": "值",
|
|
825
825
|
"attribute": false,
|
|
826
|
-
"type": "
|
|
826
|
+
"type": "ImageData[]"
|
|
827
827
|
},
|
|
828
828
|
{
|
|
829
|
-
"name": "
|
|
830
|
-
"description": "
|
|
829
|
+
"name": "bucketName",
|
|
830
|
+
"description": "对象存储桶名字",
|
|
831
|
+
"type": "string"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "maxCount",
|
|
835
|
+
"description": "最大上传数量",
|
|
836
|
+
"type": "number"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "multiple",
|
|
840
|
+
"description": "是否支持选定的多张图片",
|
|
831
841
|
"type": "boolean"
|
|
832
842
|
},
|
|
843
|
+
{
|
|
844
|
+
"name": "limitSize",
|
|
845
|
+
"description": "上传大小限制(单位为 MB)",
|
|
846
|
+
"type": "number"
|
|
847
|
+
},
|
|
833
848
|
{
|
|
834
849
|
"name": "required",
|
|
835
850
|
"description": "是否必填",
|
|
@@ -837,7 +852,7 @@
|
|
|
837
852
|
},
|
|
838
853
|
{
|
|
839
854
|
"name": "message",
|
|
840
|
-
"description": "
|
|
855
|
+
"description": "校验文本信息",
|
|
841
856
|
"attribute": false,
|
|
842
857
|
"type": "Record<string, string>"
|
|
843
858
|
}
|
|
@@ -847,20 +862,20 @@
|
|
|
847
862
|
"name": "change",
|
|
848
863
|
"description": "值变化时触发",
|
|
849
864
|
"detail": {
|
|
850
|
-
"type": "
|
|
865
|
+
"type": "ImageData[]"
|
|
851
866
|
}
|
|
852
867
|
}
|
|
853
868
|
],
|
|
854
869
|
"slots": [],
|
|
855
870
|
"methods": [],
|
|
856
871
|
"parts": [],
|
|
857
|
-
"description": "
|
|
872
|
+
"description": "上传图片构件",
|
|
858
873
|
"category": "form-input-basic"
|
|
859
874
|
},
|
|
860
875
|
{
|
|
861
|
-
"name": "eo-
|
|
876
|
+
"name": "eo-icon-select",
|
|
862
877
|
"alias": [
|
|
863
|
-
"form.
|
|
878
|
+
"form.icon-select"
|
|
864
879
|
],
|
|
865
880
|
"properties": [
|
|
866
881
|
{
|
|
@@ -877,28 +892,13 @@
|
|
|
877
892
|
"name": "value",
|
|
878
893
|
"description": "值",
|
|
879
894
|
"attribute": false,
|
|
880
|
-
"type": "
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
"name": "bucketName",
|
|
884
|
-
"description": "对象存储桶名字",
|
|
885
|
-
"type": "string"
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
"name": "maxCount",
|
|
889
|
-
"description": "最大上传数量",
|
|
890
|
-
"type": "number"
|
|
895
|
+
"type": "Icon"
|
|
891
896
|
},
|
|
892
897
|
{
|
|
893
|
-
"name": "
|
|
894
|
-
"description": "
|
|
898
|
+
"name": "disabled",
|
|
899
|
+
"description": "是否禁用",
|
|
895
900
|
"type": "boolean"
|
|
896
901
|
},
|
|
897
|
-
{
|
|
898
|
-
"name": "limitSize",
|
|
899
|
-
"description": "上传大小限制(单位为 MB)",
|
|
900
|
-
"type": "number"
|
|
901
|
-
},
|
|
902
902
|
{
|
|
903
903
|
"name": "required",
|
|
904
904
|
"description": "是否必填",
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
},
|
|
907
907
|
{
|
|
908
908
|
"name": "message",
|
|
909
|
-
"description": "
|
|
909
|
+
"description": "是否必填",
|
|
910
910
|
"attribute": false,
|
|
911
911
|
"type": "Record<string, string>"
|
|
912
912
|
}
|
|
@@ -916,14 +916,14 @@
|
|
|
916
916
|
"name": "change",
|
|
917
917
|
"description": "值变化时触发",
|
|
918
918
|
"detail": {
|
|
919
|
-
"type": "
|
|
919
|
+
"type": "Icon | undefined"
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
],
|
|
923
923
|
"slots": [],
|
|
924
924
|
"methods": [],
|
|
925
925
|
"parts": [],
|
|
926
|
-
"description": "
|
|
926
|
+
"description": "图标选择构件",
|
|
927
927
|
"category": "form-input-basic"
|
|
928
928
|
},
|
|
929
929
|
{
|
|
@@ -1536,114 +1536,6 @@
|
|
|
1536
1536
|
"parts": [],
|
|
1537
1537
|
"description": "构件 `eo-color-picker`"
|
|
1538
1538
|
},
|
|
1539
|
-
{
|
|
1540
|
-
"name": "eo-form-item",
|
|
1541
|
-
"alias": [
|
|
1542
|
-
"form.general-form-item"
|
|
1543
|
-
],
|
|
1544
|
-
"properties": [
|
|
1545
|
-
{
|
|
1546
|
-
"name": "formElement",
|
|
1547
|
-
"attribute": false,
|
|
1548
|
-
"type": "Form"
|
|
1549
|
-
},
|
|
1550
|
-
{
|
|
1551
|
-
"name": "curElement",
|
|
1552
|
-
"attribute": false,
|
|
1553
|
-
"type": "HTMLElement"
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"name": "name",
|
|
1557
|
-
"description": "字段名称",
|
|
1558
|
-
"type": "string"
|
|
1559
|
-
},
|
|
1560
|
-
{
|
|
1561
|
-
"name": "label",
|
|
1562
|
-
"type": "string"
|
|
1563
|
-
},
|
|
1564
|
-
{
|
|
1565
|
-
"name": "pattern",
|
|
1566
|
-
"type": "string"
|
|
1567
|
-
},
|
|
1568
|
-
{
|
|
1569
|
-
"name": "message",
|
|
1570
|
-
"attribute": false,
|
|
1571
|
-
"type": "Record<string, string>"
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"name": "type",
|
|
1575
|
-
"type": "string"
|
|
1576
|
-
},
|
|
1577
|
-
{
|
|
1578
|
-
"name": "max",
|
|
1579
|
-
"type": "number"
|
|
1580
|
-
},
|
|
1581
|
-
{
|
|
1582
|
-
"name": "min",
|
|
1583
|
-
"type": "number"
|
|
1584
|
-
},
|
|
1585
|
-
{
|
|
1586
|
-
"name": "required",
|
|
1587
|
-
"description": "表单项是否为必填",
|
|
1588
|
-
"type": "boolean"
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"name": "value",
|
|
1592
|
-
"description": "初始值",
|
|
1593
|
-
"type": "string"
|
|
1594
|
-
},
|
|
1595
|
-
{
|
|
1596
|
-
"name": "valuePropsName",
|
|
1597
|
-
"type": "string"
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
"name": "layout",
|
|
1601
|
-
"type": "Layout"
|
|
1602
|
-
},
|
|
1603
|
-
{
|
|
1604
|
-
"name": "size",
|
|
1605
|
-
"type": "ComponentSize"
|
|
1606
|
-
},
|
|
1607
|
-
{
|
|
1608
|
-
"name": "trim",
|
|
1609
|
-
"description": "是否自动去除前后的空白字符",
|
|
1610
|
-
"default": "true"
|
|
1611
|
-
},
|
|
1612
|
-
{
|
|
1613
|
-
"name": "trigger",
|
|
1614
|
-
"description": "事件触发方法名",
|
|
1615
|
-
"type": "string"
|
|
1616
|
-
},
|
|
1617
|
-
{
|
|
1618
|
-
"name": "validator",
|
|
1619
|
-
"description": "表单项校验方法",
|
|
1620
|
-
"attribute": false,
|
|
1621
|
-
"type": "((value: any) => MessageBody)"
|
|
1622
|
-
},
|
|
1623
|
-
{
|
|
1624
|
-
"name": "needValidate",
|
|
1625
|
-
"description": "值变化时是否主动出发校验",
|
|
1626
|
-
"type": "boolean"
|
|
1627
|
-
},
|
|
1628
|
-
{
|
|
1629
|
-
"name": "textContent",
|
|
1630
|
-
"type": "string",
|
|
1631
|
-
"description": "文本内容"
|
|
1632
|
-
}
|
|
1633
|
-
],
|
|
1634
|
-
"events": [],
|
|
1635
|
-
"slots": [
|
|
1636
|
-
{
|
|
1637
|
-
"name": null,
|
|
1638
|
-
"description": "表单项内容"
|
|
1639
|
-
}
|
|
1640
|
-
],
|
|
1641
|
-
"methods": [],
|
|
1642
|
-
"parts": [],
|
|
1643
|
-
"description": "通用输入框构件",
|
|
1644
|
-
"category": "form-input-basic",
|
|
1645
|
-
"insider": true
|
|
1646
|
-
},
|
|
1647
1539
|
{
|
|
1648
1540
|
"name": "eo-input",
|
|
1649
1541
|
"alias": [
|
|
@@ -1828,6 +1720,114 @@
|
|
|
1828
1720
|
],
|
|
1829
1721
|
"description": "通用输入框构件",
|
|
1830
1722
|
"category": "form-input-basic"
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"name": "eo-form-item",
|
|
1726
|
+
"alias": [
|
|
1727
|
+
"form.general-form-item"
|
|
1728
|
+
],
|
|
1729
|
+
"properties": [
|
|
1730
|
+
{
|
|
1731
|
+
"name": "formElement",
|
|
1732
|
+
"attribute": false,
|
|
1733
|
+
"type": "Form"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
"name": "curElement",
|
|
1737
|
+
"attribute": false,
|
|
1738
|
+
"type": "HTMLElement"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"name": "name",
|
|
1742
|
+
"description": "字段名称",
|
|
1743
|
+
"type": "string"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
"name": "label",
|
|
1747
|
+
"type": "string"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"name": "pattern",
|
|
1751
|
+
"type": "string"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
"name": "message",
|
|
1755
|
+
"attribute": false,
|
|
1756
|
+
"type": "Record<string, string>"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "type",
|
|
1760
|
+
"type": "string"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"name": "max",
|
|
1764
|
+
"type": "number"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "min",
|
|
1768
|
+
"type": "number"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"name": "required",
|
|
1772
|
+
"description": "表单项是否为必填",
|
|
1773
|
+
"type": "boolean"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"name": "value",
|
|
1777
|
+
"description": "初始值",
|
|
1778
|
+
"type": "string"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"name": "valuePropsName",
|
|
1782
|
+
"type": "string"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"name": "layout",
|
|
1786
|
+
"type": "Layout"
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"name": "size",
|
|
1790
|
+
"type": "ComponentSize"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"name": "trim",
|
|
1794
|
+
"description": "是否自动去除前后的空白字符",
|
|
1795
|
+
"default": "true"
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"name": "trigger",
|
|
1799
|
+
"description": "事件触发方法名",
|
|
1800
|
+
"type": "string"
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"name": "validator",
|
|
1804
|
+
"description": "表单项校验方法",
|
|
1805
|
+
"attribute": false,
|
|
1806
|
+
"type": "((value: any) => MessageBody)"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"name": "needValidate",
|
|
1810
|
+
"description": "值变化时是否主动出发校验",
|
|
1811
|
+
"type": "boolean"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"name": "textContent",
|
|
1815
|
+
"type": "string",
|
|
1816
|
+
"description": "文本内容"
|
|
1817
|
+
}
|
|
1818
|
+
],
|
|
1819
|
+
"events": [],
|
|
1820
|
+
"slots": [
|
|
1821
|
+
{
|
|
1822
|
+
"name": null,
|
|
1823
|
+
"description": "表单项内容"
|
|
1824
|
+
}
|
|
1825
|
+
],
|
|
1826
|
+
"methods": [],
|
|
1827
|
+
"parts": [],
|
|
1828
|
+
"description": "通用输入框构件",
|
|
1829
|
+
"category": "form-input-basic",
|
|
1830
|
+
"insider": true
|
|
1831
1831
|
}
|
|
1832
1832
|
],
|
|
1833
1833
|
"providers": []
|