@next-bricks/form 1.21.8 → 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.
- package/dist/bricks.json +21 -21
- package/dist/chunks/9949.753e2720.js.map +1 -1
- package/dist/chunks/eo-time-picker.da156d88.js.map +1 -1
- package/dist/examples.json +10 -10
- package/dist/{index.b71d6b2b.js → index.cfcc28b9.js} +2 -2
- package/dist/{index.b71d6b2b.js.map → index.cfcc28b9.js.map} +1 -1
- package/dist/manifest.json +336 -336
- package/dist-types/time-picker/index.d.ts +3 -4
- package/package.json +2 -2
package/dist/manifest.json
CHANGED
|
@@ -3,155 +3,6 @@
|
|
|
3
3
|
"package": "@next-bricks/form",
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
|
-
{
|
|
7
|
-
"name": "eo-form",
|
|
8
|
-
"alias": [
|
|
9
|
-
"form.general-form"
|
|
10
|
-
],
|
|
11
|
-
"properties": [
|
|
12
|
-
{
|
|
13
|
-
"name": "staticValues",
|
|
14
|
-
"attribute": false,
|
|
15
|
-
"type": "Record<string, unknown>"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "layout",
|
|
19
|
-
"description": "布局方式(默认 vertical 布局)",
|
|
20
|
-
"default": "vertical",
|
|
21
|
-
"type": "Layout"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "size",
|
|
25
|
-
"description": "表单组件尺寸",
|
|
26
|
-
"type": "ComponentSize"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
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"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
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 }",
|
|
39
|
-
"attribute": false,
|
|
40
|
-
"type": "ColProps"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"name": "autoScrollToInvalidFields",
|
|
44
|
-
"type": "boolean"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "formStyle",
|
|
48
|
-
"attribute": false,
|
|
49
|
-
"type": "React.CSSProperties"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "textContent",
|
|
53
|
-
"type": "string",
|
|
54
|
-
"description": "文本内容"
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
"events": [
|
|
58
|
-
{
|
|
59
|
-
"name": "values.change",
|
|
60
|
-
"description": "表单值变更事件",
|
|
61
|
-
"detail": {
|
|
62
|
-
"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 })[]"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
"slots": [
|
|
82
|
-
{
|
|
83
|
-
"name": null,
|
|
84
|
-
"description": "表单内容"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"methods": [
|
|
88
|
-
{
|
|
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",
|
|
146
|
-
"params": [],
|
|
147
|
-
"description": "重置表单校验状态方法",
|
|
148
|
-
"returns": {}
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"parts": [],
|
|
152
|
-
"description": "表单构件",
|
|
153
|
-
"category": "form-input-basic"
|
|
154
|
-
},
|
|
155
6
|
{
|
|
156
7
|
"name": "eo-textarea",
|
|
157
8
|
"alias": [
|
|
@@ -531,100 +382,152 @@
|
|
|
531
382
|
"category": "form-input-basic"
|
|
532
383
|
},
|
|
533
384
|
{
|
|
534
|
-
"name": "eo-
|
|
385
|
+
"name": "eo-form",
|
|
535
386
|
"alias": [
|
|
536
|
-
"form.general-
|
|
387
|
+
"form.general-form"
|
|
537
388
|
],
|
|
538
389
|
"properties": [
|
|
539
390
|
{
|
|
540
|
-
"name": "
|
|
541
|
-
"description": "字段名称",
|
|
542
|
-
"type": "string"
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"name": "label",
|
|
546
|
-
"description": "字段说明",
|
|
547
|
-
"type": "string"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"name": "value",
|
|
551
|
-
"description": "值",
|
|
552
|
-
"attribute": false,
|
|
553
|
-
"type": "CheckboxValueType[]"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"name": "options",
|
|
557
|
-
"description": "多选框选项表",
|
|
558
|
-
"required": true,
|
|
559
|
-
"default": "[]",
|
|
391
|
+
"name": "staticValues",
|
|
560
392
|
"attribute": false,
|
|
561
|
-
"type": "
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"name": "type",
|
|
565
|
-
"description": "类型",
|
|
566
|
-
"default": "\"default\"",
|
|
567
|
-
"type": "CheckboxType"
|
|
393
|
+
"type": "Record<string, unknown>"
|
|
568
394
|
},
|
|
569
395
|
{
|
|
570
|
-
"name": "
|
|
571
|
-
"description": "
|
|
572
|
-
"
|
|
396
|
+
"name": "layout",
|
|
397
|
+
"description": "布局方式(默认 vertical 布局)",
|
|
398
|
+
"default": "vertical",
|
|
399
|
+
"type": "Layout"
|
|
573
400
|
},
|
|
574
401
|
{
|
|
575
|
-
"name": "
|
|
576
|
-
"description": "
|
|
577
|
-
"
|
|
578
|
-
"type": "boolean"
|
|
402
|
+
"name": "size",
|
|
403
|
+
"description": "表单组件尺寸",
|
|
404
|
+
"type": "ComponentSize"
|
|
579
405
|
},
|
|
580
406
|
{
|
|
581
|
-
"name": "
|
|
582
|
-
"description": "
|
|
583
|
-
"
|
|
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"
|
|
584
412
|
},
|
|
585
413
|
{
|
|
586
|
-
"name": "
|
|
587
|
-
"description": "
|
|
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 }",
|
|
588
417
|
"attribute": false,
|
|
589
|
-
"type": "
|
|
418
|
+
"type": "ColProps"
|
|
590
419
|
},
|
|
591
420
|
{
|
|
592
|
-
"name": "
|
|
593
|
-
"description": "是否为复选框,为true时,则可设置分组数据 optionGroups",
|
|
421
|
+
"name": "autoScrollToInvalidFields",
|
|
594
422
|
"type": "boolean"
|
|
595
423
|
},
|
|
596
424
|
{
|
|
597
|
-
"name": "
|
|
598
|
-
"description": "多选框选项分组数据,需要设置 isGroup 为 true 才生效",
|
|
425
|
+
"name": "formStyle",
|
|
599
426
|
"attribute": false,
|
|
600
|
-
"type": "
|
|
427
|
+
"type": "React.CSSProperties"
|
|
601
428
|
},
|
|
602
429
|
{
|
|
603
|
-
"name": "
|
|
604
|
-
"
|
|
605
|
-
"
|
|
430
|
+
"name": "textContent",
|
|
431
|
+
"type": "string",
|
|
432
|
+
"description": "文本内容"
|
|
606
433
|
}
|
|
607
434
|
],
|
|
608
435
|
"events": [
|
|
609
436
|
{
|
|
610
|
-
"name": "change",
|
|
611
|
-
"description": "
|
|
437
|
+
"name": "values.change",
|
|
438
|
+
"description": "表单值变更事件",
|
|
612
439
|
"detail": {
|
|
613
|
-
"
|
|
440
|
+
"description": null,
|
|
441
|
+
"type": "Record<string, unknown>"
|
|
614
442
|
}
|
|
615
443
|
},
|
|
616
444
|
{
|
|
617
|
-
"name": "
|
|
618
|
-
"description": "
|
|
445
|
+
"name": "validate.success",
|
|
446
|
+
"description": "表单验证成功时触发事件",
|
|
619
447
|
"detail": {
|
|
620
|
-
"type": "
|
|
448
|
+
"type": "Record<string, unknown>"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"name": "validate.error",
|
|
453
|
+
"description": "表单验证报错时触发事件",
|
|
454
|
+
"detail": {
|
|
455
|
+
"type": "(MessageBody & { name: string })[]"
|
|
621
456
|
}
|
|
622
457
|
}
|
|
623
458
|
],
|
|
624
|
-
"slots": [
|
|
625
|
-
|
|
459
|
+
"slots": [
|
|
460
|
+
{
|
|
461
|
+
"name": null,
|
|
462
|
+
"description": "表单内容"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"methods": [
|
|
466
|
+
{
|
|
467
|
+
"name": "validate",
|
|
468
|
+
"params": [],
|
|
469
|
+
"description": "表单校验方法",
|
|
470
|
+
"returns": {
|
|
471
|
+
"type": "boolean | Record<string, unknown>"
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
{
|
|
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": {}
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "resetFields",
|
|
491
|
+
"params": [
|
|
492
|
+
{
|
|
493
|
+
"name": "name",
|
|
494
|
+
"type": "string"
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
"description": "表单重置值方法",
|
|
498
|
+
"returns": {}
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "getFieldsValue",
|
|
502
|
+
"params": [
|
|
503
|
+
{
|
|
504
|
+
"name": "name",
|
|
505
|
+
"type": "string"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
"description": "获取表单值方法",
|
|
509
|
+
"returns": {}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "validateField",
|
|
513
|
+
"params": [
|
|
514
|
+
{
|
|
515
|
+
"name": "name",
|
|
516
|
+
"type": "string"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"description": "校验表单字段方法",
|
|
520
|
+
"returns": {}
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "resetValidateState",
|
|
524
|
+
"params": [],
|
|
525
|
+
"description": "重置表单校验状态方法",
|
|
526
|
+
"returns": {}
|
|
527
|
+
}
|
|
528
|
+
],
|
|
626
529
|
"parts": [],
|
|
627
|
-
"description": "
|
|
530
|
+
"description": "表单构件",
|
|
628
531
|
"category": "form-input-basic"
|
|
629
532
|
},
|
|
630
533
|
{
|
|
@@ -689,7 +592,104 @@
|
|
|
689
592
|
"slots": [],
|
|
690
593
|
"methods": [],
|
|
691
594
|
"parts": [],
|
|
692
|
-
"description": "表单提交按钮",
|
|
595
|
+
"description": "表单提交按钮",
|
|
596
|
+
"category": "form-input-basic"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"name": "eo-checkbox",
|
|
600
|
+
"alias": [
|
|
601
|
+
"form.general-checkbox"
|
|
602
|
+
],
|
|
603
|
+
"properties": [
|
|
604
|
+
{
|
|
605
|
+
"name": "name",
|
|
606
|
+
"description": "字段名称",
|
|
607
|
+
"type": "string"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "label",
|
|
611
|
+
"description": "字段说明",
|
|
612
|
+
"type": "string"
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"name": "value",
|
|
616
|
+
"description": "值",
|
|
617
|
+
"attribute": false,
|
|
618
|
+
"type": "CheckboxValueType[]"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"name": "options",
|
|
622
|
+
"description": "多选框选项表",
|
|
623
|
+
"required": true,
|
|
624
|
+
"default": "[]",
|
|
625
|
+
"attribute": false,
|
|
626
|
+
"type": "CheckboxOptionType[]"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "type",
|
|
630
|
+
"description": "类型",
|
|
631
|
+
"default": "\"default\"",
|
|
632
|
+
"type": "CheckboxType"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"name": "disabled",
|
|
636
|
+
"description": "是否禁用",
|
|
637
|
+
"type": "boolean"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"name": "isCustom",
|
|
641
|
+
"description": "是否为自定义",
|
|
642
|
+
"default": "false",
|
|
643
|
+
"type": "boolean"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "required",
|
|
647
|
+
"description": "是否必填",
|
|
648
|
+
"type": "boolean"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "message",
|
|
652
|
+
"description": "校验文本",
|
|
653
|
+
"attribute": false,
|
|
654
|
+
"type": "Record<string, string>"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
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[]"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "themeVariant",
|
|
669
|
+
"description": "主题变体",
|
|
670
|
+
"type": "\"default\" | \"elevo\""
|
|
671
|
+
}
|
|
672
|
+
],
|
|
673
|
+
"events": [
|
|
674
|
+
{
|
|
675
|
+
"name": "change",
|
|
676
|
+
"description": "复选框变化事件",
|
|
677
|
+
"detail": {
|
|
678
|
+
"type": "CheckboxOptionType[]"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
"name": "options.change",
|
|
683
|
+
"description": "复选框变化事件",
|
|
684
|
+
"detail": {
|
|
685
|
+
"type": "{\n options: CheckboxOptionType[];\n name: string;\n }"
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"slots": [],
|
|
690
|
+
"methods": [],
|
|
691
|
+
"parts": [],
|
|
692
|
+
"description": "表单复选框构件",
|
|
693
693
|
"category": "form-input-basic"
|
|
694
694
|
},
|
|
695
695
|
{
|
|
@@ -1068,6 +1068,89 @@
|
|
|
1068
1068
|
"description": "上传图片构件",
|
|
1069
1069
|
"category": "form-input-basic"
|
|
1070
1070
|
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "eo-auto-complete",
|
|
1073
|
+
"properties": [
|
|
1074
|
+
{
|
|
1075
|
+
"name": "name",
|
|
1076
|
+
"description": "字段名称",
|
|
1077
|
+
"type": "string"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"name": "placeholder",
|
|
1081
|
+
"description": "占位说明",
|
|
1082
|
+
"type": "string"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"name": "label",
|
|
1086
|
+
"description": "字段文本",
|
|
1087
|
+
"type": "string"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"name": "inputStyle",
|
|
1091
|
+
"description": "输入框样式",
|
|
1092
|
+
"attribute": false,
|
|
1093
|
+
"type": "React.CSSProperties"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"name": "disabled",
|
|
1097
|
+
"description": "是否禁用",
|
|
1098
|
+
"type": "boolean"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"name": "required",
|
|
1102
|
+
"description": "是否必填",
|
|
1103
|
+
"type": "boolean"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"name": "value",
|
|
1107
|
+
"type": "string"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"name": "options",
|
|
1111
|
+
"description": "选项列表",
|
|
1112
|
+
"required": true,
|
|
1113
|
+
"attribute": false,
|
|
1114
|
+
"type": "string[] | OptionType[]"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "filterByCaption",
|
|
1118
|
+
"description": "搜索时是否根据caption过滤options",
|
|
1119
|
+
"type": "boolean"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"name": "validator",
|
|
1123
|
+
"description": "表单项校验方法",
|
|
1124
|
+
"attribute": false,
|
|
1125
|
+
"type": "((value: any) => MessageBody)"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "pattern",
|
|
1129
|
+
"description": "正则校验规则",
|
|
1130
|
+
"type": "string"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"name": "message",
|
|
1134
|
+
"description": "校验文本信息",
|
|
1135
|
+
"attribute": false,
|
|
1136
|
+
"type": "Record<string, string>"
|
|
1137
|
+
}
|
|
1138
|
+
],
|
|
1139
|
+
"events": [
|
|
1140
|
+
{
|
|
1141
|
+
"name": "change",
|
|
1142
|
+
"description": "值改变事件",
|
|
1143
|
+
"detail": {
|
|
1144
|
+
"type": "string"
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
],
|
|
1148
|
+
"slots": [],
|
|
1149
|
+
"methods": [],
|
|
1150
|
+
"parts": [],
|
|
1151
|
+
"description": "带候选项的输入框",
|
|
1152
|
+
"category": "form-input-basic"
|
|
1153
|
+
},
|
|
1071
1154
|
{
|
|
1072
1155
|
"name": "eo-upload-file",
|
|
1073
1156
|
"properties": [
|
|
@@ -1197,28 +1280,33 @@
|
|
|
1197
1280
|
"category": "form-input-basic"
|
|
1198
1281
|
},
|
|
1199
1282
|
{
|
|
1200
|
-
"name": "eo-
|
|
1283
|
+
"name": "eo-date-picker",
|
|
1201
1284
|
"properties": [
|
|
1202
1285
|
{
|
|
1203
1286
|
"name": "name",
|
|
1204
|
-
"description": "
|
|
1287
|
+
"description": "日期选择器字段名",
|
|
1205
1288
|
"type": "string"
|
|
1206
1289
|
},
|
|
1207
1290
|
{
|
|
1208
|
-
"name": "
|
|
1209
|
-
"description": "
|
|
1291
|
+
"name": "label",
|
|
1292
|
+
"description": "日期选择器说明",
|
|
1210
1293
|
"type": "string"
|
|
1211
1294
|
},
|
|
1212
1295
|
{
|
|
1213
|
-
"name": "
|
|
1214
|
-
"description": "
|
|
1296
|
+
"name": "value",
|
|
1297
|
+
"description": "日期选择器的初始值",
|
|
1215
1298
|
"type": "string"
|
|
1216
1299
|
},
|
|
1217
1300
|
{
|
|
1218
|
-
"name": "
|
|
1219
|
-
"description": "
|
|
1301
|
+
"name": "placeholder",
|
|
1302
|
+
"description": "日期选择器占位说明",
|
|
1303
|
+
"type": "string"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "message",
|
|
1307
|
+
"description": "校验文本信息",
|
|
1220
1308
|
"attribute": false,
|
|
1221
|
-
"type": "
|
|
1309
|
+
"type": "Record<string, string>"
|
|
1222
1310
|
},
|
|
1223
1311
|
{
|
|
1224
1312
|
"name": "disabled",
|
|
@@ -1231,43 +1319,55 @@
|
|
|
1231
1319
|
"type": "boolean"
|
|
1232
1320
|
},
|
|
1233
1321
|
{
|
|
1234
|
-
"name": "
|
|
1322
|
+
"name": "showTime",
|
|
1323
|
+
"description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
|
|
1324
|
+
"type": "boolean"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "format",
|
|
1328
|
+
"description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
|
|
1235
1329
|
"type": "string"
|
|
1236
1330
|
},
|
|
1237
1331
|
{
|
|
1238
|
-
"name": "
|
|
1239
|
-
"description": "
|
|
1240
|
-
"required": true,
|
|
1332
|
+
"name": "picker",
|
|
1333
|
+
"description": "设置选择器类型",
|
|
1241
1334
|
"attribute": false,
|
|
1242
|
-
"type": "
|
|
1335
|
+
"type": "PickerMode"
|
|
1243
1336
|
},
|
|
1244
1337
|
{
|
|
1245
|
-
"name": "
|
|
1246
|
-
"description": "
|
|
1338
|
+
"name": "futureDateDisabled",
|
|
1339
|
+
"description": "不可选择未来日期,优先级高于disabledDate",
|
|
1247
1340
|
"type": "boolean"
|
|
1248
1341
|
},
|
|
1249
1342
|
{
|
|
1250
|
-
"name": "
|
|
1251
|
-
"description": "
|
|
1343
|
+
"name": "disabledDate",
|
|
1344
|
+
"description": "不可选择的日期",
|
|
1252
1345
|
"attribute": false,
|
|
1253
|
-
"type": "
|
|
1346
|
+
"type": "DisabledDateType"
|
|
1254
1347
|
},
|
|
1255
1348
|
{
|
|
1256
|
-
"name": "
|
|
1257
|
-
"description": "
|
|
1258
|
-
"type": "
|
|
1349
|
+
"name": "useFastSelectBtn",
|
|
1350
|
+
"description": "快速选项",
|
|
1351
|
+
"type": "boolean"
|
|
1259
1352
|
},
|
|
1260
1353
|
{
|
|
1261
|
-
"name": "
|
|
1262
|
-
"description": "
|
|
1354
|
+
"name": "inputStyle",
|
|
1355
|
+
"description": "输入框样式",
|
|
1263
1356
|
"attribute": false,
|
|
1264
|
-
"type": "
|
|
1357
|
+
"type": "CSSProperties"
|
|
1265
1358
|
}
|
|
1266
1359
|
],
|
|
1267
1360
|
"events": [
|
|
1268
1361
|
{
|
|
1269
1362
|
"name": "change",
|
|
1270
|
-
"description": "
|
|
1363
|
+
"description": "日期变化时触发",
|
|
1364
|
+
"detail": {
|
|
1365
|
+
"type": "string"
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"name": "ok",
|
|
1370
|
+
"description": "点击确定按钮触发(showTime 为 true 使用)",
|
|
1271
1371
|
"detail": {
|
|
1272
1372
|
"type": "string"
|
|
1273
1373
|
}
|
|
@@ -1276,7 +1376,7 @@
|
|
|
1276
1376
|
"slots": [],
|
|
1277
1377
|
"methods": [],
|
|
1278
1378
|
"parts": [],
|
|
1279
|
-
"description": "
|
|
1379
|
+
"description": "日期选择器",
|
|
1280
1380
|
"category": "form-input-basic"
|
|
1281
1381
|
},
|
|
1282
1382
|
{
|
|
@@ -1354,106 +1454,6 @@
|
|
|
1354
1454
|
"description": "时间选择器",
|
|
1355
1455
|
"category": "form-input-basic"
|
|
1356
1456
|
},
|
|
1357
|
-
{
|
|
1358
|
-
"name": "eo-date-picker",
|
|
1359
|
-
"properties": [
|
|
1360
|
-
{
|
|
1361
|
-
"name": "name",
|
|
1362
|
-
"description": "日期选择器字段名",
|
|
1363
|
-
"type": "string"
|
|
1364
|
-
},
|
|
1365
|
-
{
|
|
1366
|
-
"name": "label",
|
|
1367
|
-
"description": "日期选择器说明",
|
|
1368
|
-
"type": "string"
|
|
1369
|
-
},
|
|
1370
|
-
{
|
|
1371
|
-
"name": "value",
|
|
1372
|
-
"description": "日期选择器的初始值",
|
|
1373
|
-
"type": "string"
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
"name": "placeholder",
|
|
1377
|
-
"description": "日期选择器占位说明",
|
|
1378
|
-
"type": "string"
|
|
1379
|
-
},
|
|
1380
|
-
{
|
|
1381
|
-
"name": "message",
|
|
1382
|
-
"description": "校验文本信息",
|
|
1383
|
-
"attribute": false,
|
|
1384
|
-
"type": "Record<string, string>"
|
|
1385
|
-
},
|
|
1386
|
-
{
|
|
1387
|
-
"name": "disabled",
|
|
1388
|
-
"description": "是否禁用",
|
|
1389
|
-
"type": "boolean"
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
"name": "required",
|
|
1393
|
-
"description": "是否必填",
|
|
1394
|
-
"type": "boolean"
|
|
1395
|
-
},
|
|
1396
|
-
{
|
|
1397
|
-
"name": "showTime",
|
|
1398
|
-
"description": "是否显示时间, 当设为 `true` 时, 请同时设置 `format` 为 `YYYY-MM-DD HH:mm:ss` 使其也显示具体时,分,秒 的时间",
|
|
1399
|
-
"type": "boolean"
|
|
1400
|
-
},
|
|
1401
|
-
{
|
|
1402
|
-
"name": "format",
|
|
1403
|
-
"description": "显示预览的格式,具体配置参考 [dayjs](https://day.js.org/docs/zh-CN/display/format#%E6%94%AF%E6%8C%81%E7%9A%84%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8D%A0%E4%BD%8D%E7%AC%A6%E5%88%97%E8%A1%A8),注意,这里并非是定义给后台的数据格式,给后台的数据格式定义请参考 `general-form` 构件的 [valueTypes](developers/brick-book/brick/forms.general-form) 属性",
|
|
1404
|
-
"type": "string"
|
|
1405
|
-
},
|
|
1406
|
-
{
|
|
1407
|
-
"name": "picker",
|
|
1408
|
-
"description": "设置选择器类型",
|
|
1409
|
-
"attribute": false,
|
|
1410
|
-
"type": "PickerMode"
|
|
1411
|
-
},
|
|
1412
|
-
{
|
|
1413
|
-
"name": "futureDateDisabled",
|
|
1414
|
-
"description": "不可选择未来日期,优先级高于disabledDate",
|
|
1415
|
-
"type": "boolean"
|
|
1416
|
-
},
|
|
1417
|
-
{
|
|
1418
|
-
"name": "disabledDate",
|
|
1419
|
-
"description": "不可选择的日期",
|
|
1420
|
-
"attribute": false,
|
|
1421
|
-
"type": "DisabledDateType"
|
|
1422
|
-
},
|
|
1423
|
-
{
|
|
1424
|
-
"name": "useFastSelectBtn",
|
|
1425
|
-
"description": "快速选项",
|
|
1426
|
-
"type": "boolean"
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
"name": "inputStyle",
|
|
1430
|
-
"description": "输入框样式",
|
|
1431
|
-
"attribute": false,
|
|
1432
|
-
"type": "CSSProperties"
|
|
1433
|
-
}
|
|
1434
|
-
],
|
|
1435
|
-
"events": [
|
|
1436
|
-
{
|
|
1437
|
-
"name": "change",
|
|
1438
|
-
"description": "日期变化时触发",
|
|
1439
|
-
"detail": {
|
|
1440
|
-
"type": "string"
|
|
1441
|
-
}
|
|
1442
|
-
},
|
|
1443
|
-
{
|
|
1444
|
-
"name": "ok",
|
|
1445
|
-
"description": "点击确定按钮触发(showTime 为 true 使用)",
|
|
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": [
|