@next-bricks/form 1.21.15 → 1.21.16
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 +28 -28
- package/dist/chunks/9949.f1969338.js.map +1 -1
- package/dist/chunks/eo-color-picker.c8832147.js.map +1 -1
- package/dist/chunks/eo-date-picker.358e2716.js.map +1 -1
- package/dist/chunks/eo-submit-buttons.8a293f65.js.map +1 -1
- package/dist/chunks/eo-time-picker.8bd47e44.js.map +1 -1
- package/dist/examples.json +12 -12
- package/dist/{index.32e08f2f.js → index.bb721341.js} +2 -2
- package/dist/{index.32e08f2f.js.map → index.bb721341.js.map} +1 -1
- package/dist/manifest.json +355 -355
- package/dist-types/color-picker/index.d.ts +4 -2
- package/dist-types/date-picker/index.d.ts +4 -3
- package/dist-types/submit-buttons/index.d.ts +2 -2
- package/dist-types/time-picker/index.d.ts +5 -3
- package/package.json +2 -2
package/dist/manifest.json
CHANGED
|
@@ -3,111 +3,6 @@
|
|
|
3
3
|
"package": "@next-bricks/form",
|
|
4
4
|
"name": "form",
|
|
5
5
|
"bricks": [
|
|
6
|
-
{
|
|
7
|
-
"name": "eo-radio",
|
|
8
|
-
"alias": [
|
|
9
|
-
"form.general-radio"
|
|
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": "options",
|
|
24
|
-
"description": "单选框选项表",
|
|
25
|
-
"required": true,
|
|
26
|
-
"attribute": false,
|
|
27
|
-
"type": "GeneralOption[]"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "value",
|
|
31
|
-
"description": "单选框当前选中值",
|
|
32
|
-
"attribute": false,
|
|
33
|
-
"type": "any"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "required",
|
|
37
|
-
"description": "是否必填",
|
|
38
|
-
"type": "boolean"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "message",
|
|
42
|
-
"description": "校验文本信息",
|
|
43
|
-
"attribute": false,
|
|
44
|
-
"type": "Record<string, string>"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "disabled",
|
|
48
|
-
"description": "是否禁用",
|
|
49
|
-
"type": "boolean"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "type",
|
|
53
|
-
"description": "单选框样式类型",
|
|
54
|
-
"default": "\"default\"",
|
|
55
|
-
"type": "RadioType"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"name": "ui",
|
|
59
|
-
"description": "UI样式",
|
|
60
|
-
"default": "\"default\"",
|
|
61
|
-
"type": "UIType"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "size",
|
|
65
|
-
"description": "大小,只对按钮样式生效",
|
|
66
|
-
"default": "\"medium\"",
|
|
67
|
-
"type": "ComponentSize"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "customStyle",
|
|
71
|
-
"description": "自定义radio的外层样式",
|
|
72
|
-
"attribute": false,
|
|
73
|
-
"type": "React.CSSProperties"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "useBrick",
|
|
77
|
-
"description": "自定义radio的内容",
|
|
78
|
-
"attribute": false,
|
|
79
|
-
"type": "UseSingleBrickConfOrRenderFunction"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "themeVariant",
|
|
83
|
-
"description": "主题变体",
|
|
84
|
-
"type": "\"default\" | \"elevo\""
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"events": [
|
|
88
|
-
{
|
|
89
|
-
"name": "change",
|
|
90
|
-
"description": "值变化事件",
|
|
91
|
-
"detail": {
|
|
92
|
-
"description": "`GeneralComplexOption | undefined` — 当前选中项的完整选项对象",
|
|
93
|
-
"type": "GeneralComplexOption | undefined"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "options.change",
|
|
98
|
-
"description": "选项列表变化事件",
|
|
99
|
-
"detail": {
|
|
100
|
-
"description": "`{ options: { label: string; value: any; [key: string]: any }; name: string }` — 最新的选项列表及字段名",
|
|
101
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"slots": [],
|
|
106
|
-
"methods": [],
|
|
107
|
-
"parts": [],
|
|
108
|
-
"description": "通用单选构件",
|
|
109
|
-
"category": "form-input-basic"
|
|
110
|
-
},
|
|
111
6
|
{
|
|
112
7
|
"name": "eo-textarea",
|
|
113
8
|
"alias": [
|
|
@@ -386,6 +281,111 @@
|
|
|
386
281
|
"description": "表单构件",
|
|
387
282
|
"category": "form-input-basic"
|
|
388
283
|
},
|
|
284
|
+
{
|
|
285
|
+
"name": "eo-radio",
|
|
286
|
+
"alias": [
|
|
287
|
+
"form.general-radio"
|
|
288
|
+
],
|
|
289
|
+
"properties": [
|
|
290
|
+
{
|
|
291
|
+
"name": "name",
|
|
292
|
+
"description": "字段名称",
|
|
293
|
+
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "label",
|
|
297
|
+
"description": "单选框字段说明",
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "options",
|
|
302
|
+
"description": "单选框选项表",
|
|
303
|
+
"required": true,
|
|
304
|
+
"attribute": false,
|
|
305
|
+
"type": "GeneralOption[]"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "value",
|
|
309
|
+
"description": "单选框当前选中值",
|
|
310
|
+
"attribute": false,
|
|
311
|
+
"type": "any"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "required",
|
|
315
|
+
"description": "是否必填",
|
|
316
|
+
"type": "boolean"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "message",
|
|
320
|
+
"description": "校验文本信息",
|
|
321
|
+
"attribute": false,
|
|
322
|
+
"type": "Record<string, string>"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "disabled",
|
|
326
|
+
"description": "是否禁用",
|
|
327
|
+
"type": "boolean"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "type",
|
|
331
|
+
"description": "单选框样式类型",
|
|
332
|
+
"default": "\"default\"",
|
|
333
|
+
"type": "RadioType"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"name": "ui",
|
|
337
|
+
"description": "UI样式",
|
|
338
|
+
"default": "\"default\"",
|
|
339
|
+
"type": "UIType"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"name": "size",
|
|
343
|
+
"description": "大小,只对按钮样式生效",
|
|
344
|
+
"default": "\"medium\"",
|
|
345
|
+
"type": "ComponentSize"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "customStyle",
|
|
349
|
+
"description": "自定义radio的外层样式",
|
|
350
|
+
"attribute": false,
|
|
351
|
+
"type": "React.CSSProperties"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "useBrick",
|
|
355
|
+
"description": "自定义radio的内容",
|
|
356
|
+
"attribute": false,
|
|
357
|
+
"type": "UseSingleBrickConfOrRenderFunction"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "themeVariant",
|
|
361
|
+
"description": "主题变体",
|
|
362
|
+
"type": "\"default\" | \"elevo\""
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"events": [
|
|
366
|
+
{
|
|
367
|
+
"name": "change",
|
|
368
|
+
"description": "值变化事件",
|
|
369
|
+
"detail": {
|
|
370
|
+
"description": "`GeneralComplexOption | undefined` — 当前选中项的完整选项对象",
|
|
371
|
+
"type": "GeneralComplexOption | undefined"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"name": "options.change",
|
|
376
|
+
"description": "选项列表变化事件",
|
|
377
|
+
"detail": {
|
|
378
|
+
"description": "`{ options: { label: string; value: any; [key: string]: any }; name: string }` — 最新的选项列表及字段名",
|
|
379
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"slots": [],
|
|
384
|
+
"methods": [],
|
|
385
|
+
"parts": [],
|
|
386
|
+
"description": "通用单选构件",
|
|
387
|
+
"category": "form-input-basic"
|
|
388
|
+
},
|
|
389
389
|
{
|
|
390
390
|
"name": "eo-select",
|
|
391
391
|
"alias": [
|
|
@@ -721,174 +721,174 @@
|
|
|
721
721
|
"category": "form-input-basic"
|
|
722
722
|
},
|
|
723
723
|
{
|
|
724
|
-
"name": "eo-
|
|
724
|
+
"name": "eo-dynamic-form-item",
|
|
725
725
|
"alias": [
|
|
726
|
-
"form.
|
|
726
|
+
"form.dynamic-form-item"
|
|
727
727
|
],
|
|
728
728
|
"properties": [
|
|
729
729
|
{
|
|
730
|
-
"name": "
|
|
731
|
-
"description": "
|
|
732
|
-
"default": "\"\"",
|
|
730
|
+
"name": "name",
|
|
731
|
+
"description": "字段名称",
|
|
733
732
|
"type": "string"
|
|
734
733
|
},
|
|
735
734
|
{
|
|
736
|
-
"name": "
|
|
737
|
-
"description": "
|
|
735
|
+
"name": "label",
|
|
736
|
+
"description": "字段说明",
|
|
738
737
|
"type": "string"
|
|
739
738
|
},
|
|
740
739
|
{
|
|
741
|
-
"name": "
|
|
742
|
-
"description": "
|
|
740
|
+
"name": "required",
|
|
741
|
+
"description": "是否必填",
|
|
743
742
|
"type": "boolean"
|
|
744
743
|
},
|
|
745
744
|
{
|
|
746
|
-
"name": "
|
|
747
|
-
"description": "
|
|
748
|
-
"
|
|
745
|
+
"name": "value",
|
|
746
|
+
"description": "值",
|
|
747
|
+
"attribute": false,
|
|
748
|
+
"type": "DynamicFormValuesItem[]"
|
|
749
749
|
},
|
|
750
750
|
{
|
|
751
|
-
"name": "
|
|
752
|
-
"description": "
|
|
753
|
-
"
|
|
751
|
+
"name": "message",
|
|
752
|
+
"description": "校验文本",
|
|
753
|
+
"attribute": false,
|
|
754
|
+
"type": "Record<string, string>"
|
|
754
755
|
},
|
|
755
756
|
{
|
|
756
|
-
"name": "
|
|
757
|
-
"description": "
|
|
758
|
-
"
|
|
759
|
-
"type": "number"
|
|
757
|
+
"name": "hideRemoveButton",
|
|
758
|
+
"description": "是否隐藏每一行删除的按钮",
|
|
759
|
+
"attribute": false,
|
|
760
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
760
761
|
},
|
|
761
762
|
{
|
|
762
|
-
"name": "
|
|
763
|
-
"description": "
|
|
763
|
+
"name": "disabledRemoveButton",
|
|
764
|
+
"description": "是否禁止每一行删除的按钮",
|
|
764
765
|
"attribute": false,
|
|
765
|
-
"type": "
|
|
766
|
+
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
766
767
|
},
|
|
767
768
|
{
|
|
768
|
-
"name": "
|
|
769
|
-
"description": "
|
|
770
|
-
"
|
|
769
|
+
"name": "hideAddButton",
|
|
770
|
+
"description": "是否隐藏添加的按钮",
|
|
771
|
+
"attribute": false,
|
|
772
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "disabledAddButton",
|
|
776
|
+
"description": "是否禁止添加的按钮",
|
|
777
|
+
"attribute": false,
|
|
778
|
+
"type": "boolean | ((value: Record<string, any>[]) => boolean)"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"name": "useBrick",
|
|
782
|
+
"description": "动态表单子项构件列表",
|
|
783
|
+
"attribute": false,
|
|
784
|
+
"type": "UseBrickConfOrRenderFunction"
|
|
771
785
|
}
|
|
772
786
|
],
|
|
773
787
|
"events": [
|
|
774
788
|
{
|
|
775
789
|
"name": "change",
|
|
776
|
-
"description": "",
|
|
790
|
+
"description": "表单值改变时触发",
|
|
777
791
|
"detail": {
|
|
778
|
-
"description": "
|
|
779
|
-
"type": "
|
|
792
|
+
"description": "整个动态表单当前所有行的值列表",
|
|
793
|
+
"type": "DynamicFormValuesItem[]"
|
|
780
794
|
}
|
|
781
795
|
},
|
|
782
796
|
{
|
|
783
|
-
"name": "
|
|
784
|
-
"description": "",
|
|
797
|
+
"name": "row.add",
|
|
798
|
+
"description": "增加一行时触发",
|
|
785
799
|
"detail": {
|
|
786
|
-
"description": "
|
|
787
|
-
"type": "
|
|
800
|
+
"description": "{ detail: 该行的默认值, index: 该行的位置 }",
|
|
801
|
+
"type": "rowDataType"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "row.remove",
|
|
806
|
+
"description": "移除一行时触发",
|
|
807
|
+
"detail": {
|
|
808
|
+
"description": "{ detail: 该行的值, index: 该行的位置 }",
|
|
809
|
+
"type": "rowDataType"
|
|
788
810
|
}
|
|
789
811
|
}
|
|
790
812
|
],
|
|
791
813
|
"slots": [],
|
|
792
814
|
"methods": [],
|
|
793
815
|
"parts": [],
|
|
794
|
-
"description": "
|
|
795
|
-
"category": "
|
|
816
|
+
"description": "动态表单",
|
|
817
|
+
"category": "form-input-basic"
|
|
796
818
|
},
|
|
797
819
|
{
|
|
798
|
-
"name": "eo-
|
|
820
|
+
"name": "eo-search",
|
|
799
821
|
"alias": [
|
|
800
|
-
"form.
|
|
822
|
+
"form.general-search"
|
|
801
823
|
],
|
|
802
824
|
"properties": [
|
|
803
825
|
{
|
|
804
|
-
"name": "
|
|
805
|
-
"description": "
|
|
826
|
+
"name": "value",
|
|
827
|
+
"description": "搜索框的值",
|
|
828
|
+
"default": "\"\"",
|
|
806
829
|
"type": "string"
|
|
807
830
|
},
|
|
808
831
|
{
|
|
809
|
-
"name": "
|
|
810
|
-
"description": "
|
|
832
|
+
"name": "placeholder",
|
|
833
|
+
"description": "提示语",
|
|
811
834
|
"type": "string"
|
|
812
835
|
},
|
|
813
836
|
{
|
|
814
|
-
"name": "
|
|
815
|
-
"description": "
|
|
837
|
+
"name": "autoFocus",
|
|
838
|
+
"description": "是否自动聚焦",
|
|
816
839
|
"type": "boolean"
|
|
817
840
|
},
|
|
818
841
|
{
|
|
819
|
-
"name": "
|
|
820
|
-
"description": "
|
|
821
|
-
"
|
|
822
|
-
"type": "DynamicFormValuesItem[]"
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
"name": "message",
|
|
826
|
-
"description": "校验文本",
|
|
827
|
-
"attribute": false,
|
|
828
|
-
"type": "Record<string, string>"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
"name": "hideRemoveButton",
|
|
832
|
-
"description": "是否隐藏每一行删除的按钮",
|
|
833
|
-
"attribute": false,
|
|
834
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
842
|
+
"name": "clearable",
|
|
843
|
+
"description": "可以点击清除图标删除内容",
|
|
844
|
+
"type": "boolean"
|
|
835
845
|
},
|
|
836
846
|
{
|
|
837
|
-
"name": "
|
|
838
|
-
"description": "
|
|
839
|
-
"
|
|
840
|
-
"type": "boolean | ((row: Record<string, any>, index: number) => boolean)"
|
|
847
|
+
"name": "trim",
|
|
848
|
+
"description": "是否剔除前后空格",
|
|
849
|
+
"type": "boolean"
|
|
841
850
|
},
|
|
842
851
|
{
|
|
843
|
-
"name": "
|
|
844
|
-
"description": "
|
|
845
|
-
"
|
|
846
|
-
"type": "
|
|
852
|
+
"name": "debounceTime",
|
|
853
|
+
"description": "默认延迟时间",
|
|
854
|
+
"default": "0",
|
|
855
|
+
"type": "number"
|
|
847
856
|
},
|
|
848
857
|
{
|
|
849
|
-
"name": "
|
|
850
|
-
"description": "
|
|
858
|
+
"name": "inputStyle",
|
|
859
|
+
"description": "输入框样式",
|
|
851
860
|
"attribute": false,
|
|
852
|
-
"type": "
|
|
861
|
+
"type": "CSSProperties"
|
|
853
862
|
},
|
|
854
863
|
{
|
|
855
|
-
"name": "
|
|
856
|
-
"description": "
|
|
857
|
-
"
|
|
858
|
-
"type": "UseBrickConfOrRenderFunction"
|
|
864
|
+
"name": "themeVariant",
|
|
865
|
+
"description": "主题变体",
|
|
866
|
+
"type": "\"default\" | \"elevo\""
|
|
859
867
|
}
|
|
860
868
|
],
|
|
861
869
|
"events": [
|
|
862
870
|
{
|
|
863
871
|
"name": "change",
|
|
864
|
-
"description": "
|
|
865
|
-
"detail": {
|
|
866
|
-
"description": "整个动态表单当前所有行的值列表",
|
|
867
|
-
"type": "DynamicFormValuesItem[]"
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
{
|
|
871
|
-
"name": "row.add",
|
|
872
|
-
"description": "增加一行时触发",
|
|
872
|
+
"description": "",
|
|
873
873
|
"detail": {
|
|
874
|
-
"description": "
|
|
875
|
-
"type": "
|
|
874
|
+
"description": "当前输入值",
|
|
875
|
+
"type": "string"
|
|
876
876
|
}
|
|
877
877
|
},
|
|
878
878
|
{
|
|
879
|
-
"name": "
|
|
880
|
-
"description": "
|
|
879
|
+
"name": "search",
|
|
880
|
+
"description": "",
|
|
881
881
|
"detail": {
|
|
882
|
-
"description": "
|
|
883
|
-
"type": "
|
|
882
|
+
"description": "搜索关键词",
|
|
883
|
+
"type": "string"
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
],
|
|
887
887
|
"slots": [],
|
|
888
888
|
"methods": [],
|
|
889
889
|
"parts": [],
|
|
890
|
-
"description": "
|
|
891
|
-
"category": "
|
|
890
|
+
"description": "搜索框",
|
|
891
|
+
"category": "interact-basic"
|
|
892
892
|
},
|
|
893
893
|
{
|
|
894
894
|
"name": "eo-icon-select",
|
|
@@ -1105,6 +1105,96 @@
|
|
|
1105
1105
|
"description": "开关",
|
|
1106
1106
|
"category": "form-input-basic"
|
|
1107
1107
|
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "eo-auto-complete",
|
|
1110
|
+
"properties": [
|
|
1111
|
+
{
|
|
1112
|
+
"name": "name",
|
|
1113
|
+
"description": "字段名称",
|
|
1114
|
+
"type": "string"
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"name": "placeholder",
|
|
1118
|
+
"description": "占位说明",
|
|
1119
|
+
"type": "string"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"name": "label",
|
|
1123
|
+
"description": "字段文本",
|
|
1124
|
+
"type": "string"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "inputStyle",
|
|
1128
|
+
"description": "输入框样式",
|
|
1129
|
+
"attribute": false,
|
|
1130
|
+
"type": "React.CSSProperties"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"name": "disabled",
|
|
1134
|
+
"description": "是否禁用",
|
|
1135
|
+
"type": "boolean"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"name": "required",
|
|
1139
|
+
"description": "是否必填",
|
|
1140
|
+
"type": "boolean"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "value",
|
|
1144
|
+
"description": "输入框当前值",
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "options",
|
|
1149
|
+
"description": "选项列表",
|
|
1150
|
+
"required": true,
|
|
1151
|
+
"attribute": false,
|
|
1152
|
+
"type": "string[] | OptionType[]"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"name": "filterByCaption",
|
|
1156
|
+
"description": "搜索时是否根据caption过滤options",
|
|
1157
|
+
"type": "boolean"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"name": "validator",
|
|
1161
|
+
"description": "表单项校验方法",
|
|
1162
|
+
"attribute": false,
|
|
1163
|
+
"type": "((value: any) => MessageBody)"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "pattern",
|
|
1167
|
+
"description": "正则校验规则",
|
|
1168
|
+
"type": "string"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"name": "message",
|
|
1172
|
+
"description": "校验文本信息",
|
|
1173
|
+
"attribute": false,
|
|
1174
|
+
"type": "Record<string, string>"
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1177
|
+
"events": [
|
|
1178
|
+
{
|
|
1179
|
+
"name": "change",
|
|
1180
|
+
"description": "",
|
|
1181
|
+
"detail": {
|
|
1182
|
+
"description": "当前输入框的值",
|
|
1183
|
+
"type": "string"
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
],
|
|
1187
|
+
"slots": [
|
|
1188
|
+
{
|
|
1189
|
+
"name": "options-toolbar",
|
|
1190
|
+
"description": "下拉列表底部工具栏"
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"methods": [],
|
|
1194
|
+
"parts": [],
|
|
1195
|
+
"description": "带候选项的输入框",
|
|
1196
|
+
"category": "form-input-basic"
|
|
1197
|
+
},
|
|
1108
1198
|
{
|
|
1109
1199
|
"name": "eo-upload-file",
|
|
1110
1200
|
"properties": [
|
|
@@ -1234,96 +1324,6 @@
|
|
|
1234
1324
|
"description": "上传文件",
|
|
1235
1325
|
"category": "form-input-basic"
|
|
1236
1326
|
},
|
|
1237
|
-
{
|
|
1238
|
-
"name": "eo-auto-complete",
|
|
1239
|
-
"properties": [
|
|
1240
|
-
{
|
|
1241
|
-
"name": "name",
|
|
1242
|
-
"description": "字段名称",
|
|
1243
|
-
"type": "string"
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
"name": "placeholder",
|
|
1247
|
-
"description": "占位说明",
|
|
1248
|
-
"type": "string"
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
"name": "label",
|
|
1252
|
-
"description": "字段文本",
|
|
1253
|
-
"type": "string"
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
"name": "inputStyle",
|
|
1257
|
-
"description": "输入框样式",
|
|
1258
|
-
"attribute": false,
|
|
1259
|
-
"type": "React.CSSProperties"
|
|
1260
|
-
},
|
|
1261
|
-
{
|
|
1262
|
-
"name": "disabled",
|
|
1263
|
-
"description": "是否禁用",
|
|
1264
|
-
"type": "boolean"
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"name": "required",
|
|
1268
|
-
"description": "是否必填",
|
|
1269
|
-
"type": "boolean"
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"name": "value",
|
|
1273
|
-
"description": "输入框当前值",
|
|
1274
|
-
"type": "string"
|
|
1275
|
-
},
|
|
1276
|
-
{
|
|
1277
|
-
"name": "options",
|
|
1278
|
-
"description": "选项列表",
|
|
1279
|
-
"required": true,
|
|
1280
|
-
"attribute": false,
|
|
1281
|
-
"type": "string[] | OptionType[]"
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
"name": "filterByCaption",
|
|
1285
|
-
"description": "搜索时是否根据caption过滤options",
|
|
1286
|
-
"type": "boolean"
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
"name": "validator",
|
|
1290
|
-
"description": "表单项校验方法",
|
|
1291
|
-
"attribute": false,
|
|
1292
|
-
"type": "((value: any) => MessageBody)"
|
|
1293
|
-
},
|
|
1294
|
-
{
|
|
1295
|
-
"name": "pattern",
|
|
1296
|
-
"description": "正则校验规则",
|
|
1297
|
-
"type": "string"
|
|
1298
|
-
},
|
|
1299
|
-
{
|
|
1300
|
-
"name": "message",
|
|
1301
|
-
"description": "校验文本信息",
|
|
1302
|
-
"attribute": false,
|
|
1303
|
-
"type": "Record<string, string>"
|
|
1304
|
-
}
|
|
1305
|
-
],
|
|
1306
|
-
"events": [
|
|
1307
|
-
{
|
|
1308
|
-
"name": "change",
|
|
1309
|
-
"description": "",
|
|
1310
|
-
"detail": {
|
|
1311
|
-
"description": "当前输入框的值",
|
|
1312
|
-
"type": "string"
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
],
|
|
1316
|
-
"slots": [
|
|
1317
|
-
{
|
|
1318
|
-
"name": "options-toolbar",
|
|
1319
|
-
"description": "下拉列表底部工具栏"
|
|
1320
|
-
}
|
|
1321
|
-
],
|
|
1322
|
-
"methods": [],
|
|
1323
|
-
"parts": [],
|
|
1324
|
-
"description": "带候选项的输入框",
|
|
1325
|
-
"category": "form-input-basic"
|
|
1326
|
-
},
|
|
1327
1327
|
{
|
|
1328
1328
|
"name": "eo-time-picker",
|
|
1329
1329
|
"properties": [
|
|
@@ -1505,27 +1505,24 @@
|
|
|
1505
1505
|
"category": "form-input-basic"
|
|
1506
1506
|
},
|
|
1507
1507
|
{
|
|
1508
|
-
"name": "eo-
|
|
1508
|
+
"name": "eo-time-range-picker",
|
|
1509
1509
|
"properties": [
|
|
1510
1510
|
{
|
|
1511
1511
|
"name": "name",
|
|
1512
|
-
"description": "
|
|
1512
|
+
"description": "时间段选择器字段名",
|
|
1513
1513
|
"type": "string"
|
|
1514
1514
|
},
|
|
1515
1515
|
{
|
|
1516
1516
|
"name": "label",
|
|
1517
|
-
"description": "
|
|
1517
|
+
"description": "时间段选择器说明",
|
|
1518
1518
|
"type": "string"
|
|
1519
1519
|
},
|
|
1520
1520
|
{
|
|
1521
1521
|
"name": "value",
|
|
1522
|
-
"description": "
|
|
1523
|
-
"
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
"name": "defaultValue",
|
|
1527
|
-
"description": "颜色默认的值",
|
|
1528
|
-
"type": "string | Color"
|
|
1522
|
+
"description": "时间段选择器的初始值",
|
|
1523
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1524
|
+
"attribute": false,
|
|
1525
|
+
"type": "TimeRange"
|
|
1529
1526
|
},
|
|
1530
1527
|
{
|
|
1531
1528
|
"name": "required",
|
|
@@ -1533,76 +1530,86 @@
|
|
|
1533
1530
|
"type": "boolean"
|
|
1534
1531
|
},
|
|
1535
1532
|
{
|
|
1536
|
-
"name": "
|
|
1537
|
-
"description": "
|
|
1538
|
-
"
|
|
1533
|
+
"name": "rangeType",
|
|
1534
|
+
"description": "时间段类型",
|
|
1535
|
+
"attribute": false,
|
|
1536
|
+
"type": "RangeType"
|
|
1539
1537
|
},
|
|
1540
1538
|
{
|
|
1541
|
-
"name": "
|
|
1542
|
-
"description": "
|
|
1543
|
-
"default": "middle",
|
|
1539
|
+
"name": "placeholder",
|
|
1540
|
+
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1544
1541
|
"attribute": false,
|
|
1545
|
-
"type": "
|
|
1542
|
+
"type": "string | [string, string]"
|
|
1546
1543
|
},
|
|
1547
1544
|
{
|
|
1548
|
-
"name": "
|
|
1549
|
-
"description": "
|
|
1550
|
-
"
|
|
1545
|
+
"name": "inputStyle",
|
|
1546
|
+
"description": "输入框样式",
|
|
1547
|
+
"attribute": false,
|
|
1548
|
+
"type": "React.CSSProperties"
|
|
1551
1549
|
},
|
|
1552
1550
|
{
|
|
1553
|
-
"name": "
|
|
1554
|
-
"description": "
|
|
1551
|
+
"name": "selectNearDays",
|
|
1552
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1553
|
+
"type": "number"
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"name": "emitChangeOnInit",
|
|
1557
|
+
"description": "是否在初始化完成后额外触发一次 change 事件。因历史原因,默认行为就是在初始化后触发该事件,为了兼容之前的行为,默认值只能设置为 true。",
|
|
1558
|
+
"default": "true",
|
|
1555
1559
|
"type": "boolean"
|
|
1556
1560
|
},
|
|
1557
1561
|
{
|
|
1558
|
-
"name": "
|
|
1559
|
-
"description": "
|
|
1560
|
-
"default": "
|
|
1562
|
+
"name": "presetRanges",
|
|
1563
|
+
"description": "预设时间范围快捷选择。设置了 selectNearDays 时,presetRanges 不生效;rangeType 为 week 时只能选本周、本月、本季度、今年,rangeType 为 month、quarter、year 时以此类推。",
|
|
1564
|
+
"default": "[]",
|
|
1561
1565
|
"attribute": false,
|
|
1562
|
-
"type": "
|
|
1566
|
+
"type": "presetRangeType[]"
|
|
1563
1567
|
},
|
|
1564
1568
|
{
|
|
1565
|
-
"name": "
|
|
1566
|
-
"description": "
|
|
1569
|
+
"name": "validator",
|
|
1570
|
+
"description": "自定义校验函数,返回错误信息字符串或 MessageBody 对象,返回空字符串表示校验通过。",
|
|
1567
1571
|
"attribute": false,
|
|
1568
|
-
"type": "
|
|
1572
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1569
1573
|
}
|
|
1570
1574
|
],
|
|
1571
1575
|
"events": [
|
|
1572
1576
|
{
|
|
1573
1577
|
"name": "change",
|
|
1574
|
-
"description": "
|
|
1578
|
+
"description": "",
|
|
1575
1579
|
"detail": {
|
|
1576
|
-
"description": "
|
|
1577
|
-
"type": "
|
|
1580
|
+
"description": "{ startTime: 开始时间字符串, endTime: 结束时间字符串 }",
|
|
1581
|
+
"type": "TimeRange"
|
|
1578
1582
|
}
|
|
1579
1583
|
}
|
|
1580
1584
|
],
|
|
1581
1585
|
"slots": [],
|
|
1582
1586
|
"methods": [],
|
|
1583
1587
|
"parts": [],
|
|
1584
|
-
"description": "
|
|
1588
|
+
"description": "时间区间选择器",
|
|
1585
1589
|
"category": "form-input-basic"
|
|
1586
1590
|
},
|
|
1587
1591
|
{
|
|
1588
|
-
"name": "eo-
|
|
1592
|
+
"name": "eo-color-picker",
|
|
1589
1593
|
"properties": [
|
|
1590
1594
|
{
|
|
1591
1595
|
"name": "name",
|
|
1592
|
-
"description": "
|
|
1596
|
+
"description": "字段名称",
|
|
1593
1597
|
"type": "string"
|
|
1594
1598
|
},
|
|
1595
1599
|
{
|
|
1596
1600
|
"name": "label",
|
|
1597
|
-
"description": "
|
|
1601
|
+
"description": "字段说明",
|
|
1598
1602
|
"type": "string"
|
|
1599
1603
|
},
|
|
1600
1604
|
{
|
|
1601
1605
|
"name": "value",
|
|
1602
|
-
"description": "
|
|
1603
|
-
"
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
+
"description": "值",
|
|
1607
|
+
"type": "string"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"name": "defaultValue",
|
|
1611
|
+
"description": "颜色默认的值",
|
|
1612
|
+
"type": "string | Color"
|
|
1606
1613
|
},
|
|
1607
1614
|
{
|
|
1608
1615
|
"name": "required",
|
|
@@ -1610,62 +1617,55 @@
|
|
|
1610
1617
|
"type": "boolean"
|
|
1611
1618
|
},
|
|
1612
1619
|
{
|
|
1613
|
-
"name": "
|
|
1614
|
-
"description": "
|
|
1615
|
-
"
|
|
1616
|
-
"type": "RangeType"
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
"name": "placeholder",
|
|
1620
|
-
"description": "输入框提示文字,单时间段时为string,范围时间段时为[string, string]",
|
|
1621
|
-
"attribute": false,
|
|
1622
|
-
"type": "string | [string, string]"
|
|
1620
|
+
"name": "allowClear",
|
|
1621
|
+
"description": "允许清除选择的颜色",
|
|
1622
|
+
"type": "boolean"
|
|
1623
1623
|
},
|
|
1624
1624
|
{
|
|
1625
|
-
"name": "
|
|
1626
|
-
"description": "
|
|
1625
|
+
"name": "size",
|
|
1626
|
+
"description": "设置触发器大小",
|
|
1627
|
+
"default": "middle",
|
|
1627
1628
|
"attribute": false,
|
|
1628
|
-
"type": "
|
|
1629
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1629
1630
|
},
|
|
1630
1631
|
{
|
|
1631
|
-
"name": "
|
|
1632
|
-
"description": "
|
|
1633
|
-
"type": "
|
|
1632
|
+
"name": "showText",
|
|
1633
|
+
"description": "显示颜色文本",
|
|
1634
|
+
"type": "boolean"
|
|
1634
1635
|
},
|
|
1635
1636
|
{
|
|
1636
|
-
"name": "
|
|
1637
|
-
"description": "
|
|
1638
|
-
"default": "true",
|
|
1637
|
+
"name": "disabled",
|
|
1638
|
+
"description": "是否禁用",
|
|
1639
1639
|
"type": "boolean"
|
|
1640
1640
|
},
|
|
1641
1641
|
{
|
|
1642
|
-
"name": "
|
|
1643
|
-
"description": "
|
|
1644
|
-
"default": "
|
|
1642
|
+
"name": "format",
|
|
1643
|
+
"description": "颜色格式",
|
|
1644
|
+
"default": "hex",
|
|
1645
1645
|
"attribute": false,
|
|
1646
|
-
"type": "
|
|
1646
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1647
1647
|
},
|
|
1648
1648
|
{
|
|
1649
|
-
"name": "
|
|
1650
|
-
"description": "
|
|
1649
|
+
"name": "configProps",
|
|
1650
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1651
1651
|
"attribute": false,
|
|
1652
|
-
"type": "
|
|
1652
|
+
"type": "Partial<ColorPickerProps>"
|
|
1653
1653
|
}
|
|
1654
1654
|
],
|
|
1655
1655
|
"events": [
|
|
1656
1656
|
{
|
|
1657
1657
|
"name": "change",
|
|
1658
|
-
"description": "",
|
|
1658
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1659
1659
|
"detail": {
|
|
1660
|
-
"description": "
|
|
1661
|
-
"type": "
|
|
1660
|
+
"description": "选中的颜色值,格式由 format 属性决定(hex/rgb/hsb),清除时为 undefined",
|
|
1661
|
+
"type": "string | undefined"
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
1664
|
],
|
|
1665
1665
|
"slots": [],
|
|
1666
1666
|
"methods": [],
|
|
1667
1667
|
"parts": [],
|
|
1668
|
-
"description": "
|
|
1668
|
+
"description": "颜色选择器",
|
|
1669
1669
|
"category": "form-input-basic"
|
|
1670
1670
|
},
|
|
1671
1671
|
{
|