@next-bricks/form 1.5.0 → 1.5.1
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 +26 -26
- package/dist/chunks/4036.c15cefd1.js +2 -0
- package/dist/chunks/4036.c15cefd1.js.map +1 -0
- package/dist/chunks/eo-textarea.d6733bd8.js +3 -0
- package/dist/chunks/eo-textarea.d6733bd8.js.map +1 -0
- package/dist/chunks/{main.62e4dc26.js → main.6be2388a.js} +2 -2
- package/dist/chunks/{main.62e4dc26.js.map → main.6be2388a.js.map} +1 -1
- package/dist/examples.json +9 -9
- package/dist/{index.361b3bf3.js → index.cb8a3748.js} +2 -2
- package/dist/{index.361b3bf3.js.map → index.cb8a3748.js.map} +1 -1
- package/dist/manifest.json +320 -320
- package/dist/types.json +775 -775
- package/package.json +2 -2
- package/dist/chunks/4036.a2a3ee17.js +0 -2
- package/dist/chunks/4036.a2a3ee17.js.map +0 -1
- package/dist/chunks/eo-textarea.c632fed0.js +0 -3
- package/dist/chunks/eo-textarea.c632fed0.js.map +0 -1
- /package/dist/chunks/{eo-textarea.c632fed0.js.LICENSE.txt → eo-textarea.d6733bd8.js.LICENSE.txt} +0 -0
package/dist/manifest.json
CHANGED
|
@@ -188,97 +188,6 @@
|
|
|
188
188
|
"description": "通用输入框构件",
|
|
189
189
|
"category": "form-input-basic"
|
|
190
190
|
},
|
|
191
|
-
{
|
|
192
|
-
"name": "eo-textarea",
|
|
193
|
-
"alias": [
|
|
194
|
-
"form.general-textarea"
|
|
195
|
-
],
|
|
196
|
-
"properties": [
|
|
197
|
-
{
|
|
198
|
-
"name": "name",
|
|
199
|
-
"description": "字段名称",
|
|
200
|
-
"type": "string"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"name": "label",
|
|
204
|
-
"description": "标签文字",
|
|
205
|
-
"type": "string"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
"name": "value",
|
|
209
|
-
"description": "值",
|
|
210
|
-
"type": "string"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "placeholder",
|
|
214
|
-
"description": "占位说明",
|
|
215
|
-
"type": "string"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "disabled",
|
|
219
|
-
"description": "是否禁用",
|
|
220
|
-
"type": "boolean"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "minLength",
|
|
224
|
-
"description": "最小长度",
|
|
225
|
-
"type": "number"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "maxLength",
|
|
229
|
-
"description": "最大长度",
|
|
230
|
-
"type": "number"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"name": "autoSize",
|
|
234
|
-
"description": "大小自适应",
|
|
235
|
-
"attribute": false,
|
|
236
|
-
"type": "AutoSize"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "required",
|
|
240
|
-
"description": "是否必填",
|
|
241
|
-
"type": "boolean"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "max",
|
|
245
|
-
"description": "表单校验最大长度",
|
|
246
|
-
"type": "number"
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
"name": "min",
|
|
250
|
-
"description": "表单校验最小长度",
|
|
251
|
-
"type": "number"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"name": "message",
|
|
255
|
-
"description": "校验信息",
|
|
256
|
-
"attribute": false,
|
|
257
|
-
"type": "Record<string, string>"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"name": "textareaStyle",
|
|
261
|
-
"description": "自定义样式",
|
|
262
|
-
"attribute": false,
|
|
263
|
-
"type": "React.CSSProperties"
|
|
264
|
-
}
|
|
265
|
-
],
|
|
266
|
-
"events": [
|
|
267
|
-
{
|
|
268
|
-
"name": "change",
|
|
269
|
-
"description": "",
|
|
270
|
-
"detail": {
|
|
271
|
-
"description": null,
|
|
272
|
-
"type": "string"
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
],
|
|
276
|
-
"slots": [],
|
|
277
|
-
"methods": [],
|
|
278
|
-
"parts": [],
|
|
279
|
-
"description": "通用多行文本输入框构件",
|
|
280
|
-
"category": "form-input-basic"
|
|
281
|
-
},
|
|
282
191
|
{
|
|
283
192
|
"name": "eo-form-item",
|
|
284
193
|
"alias": [
|
|
@@ -607,148 +516,6 @@
|
|
|
607
516
|
"description": "表单构件",
|
|
608
517
|
"category": "form-input-basic"
|
|
609
518
|
},
|
|
610
|
-
{
|
|
611
|
-
"name": "eo-select",
|
|
612
|
-
"alias": [
|
|
613
|
-
"form.general-select"
|
|
614
|
-
],
|
|
615
|
-
"properties": [
|
|
616
|
-
{
|
|
617
|
-
"name": "name",
|
|
618
|
-
"description": "字段名称",
|
|
619
|
-
"type": "string"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"name": "placeholder",
|
|
623
|
-
"description": "占位说明",
|
|
624
|
-
"type": "string"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
"name": "label",
|
|
628
|
-
"description": "字段文本",
|
|
629
|
-
"type": "string"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"name": "options",
|
|
633
|
-
"description": "选项列表",
|
|
634
|
-
"required": true,
|
|
635
|
-
"attribute": false,
|
|
636
|
-
"type": "GeneralComplexOption[]"
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
"name": "value",
|
|
640
|
-
"description": "值",
|
|
641
|
-
"attribute": false,
|
|
642
|
-
"type": "any"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
"name": "required",
|
|
646
|
-
"description": "是否必填",
|
|
647
|
-
"type": "boolean"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
"name": "message",
|
|
651
|
-
"description": "校验文本信息",
|
|
652
|
-
"attribute": false,
|
|
653
|
-
"type": "Record<string, string>"
|
|
654
|
-
},
|
|
655
|
-
{
|
|
656
|
-
"name": "disabled",
|
|
657
|
-
"description": "是否禁用",
|
|
658
|
-
"type": "boolean"
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
"name": "mode",
|
|
662
|
-
"description": "类型",
|
|
663
|
-
"type": "\"tags\" | \"multiple\""
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
"name": "tokenSeparators",
|
|
667
|
-
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
668
|
-
"attribute": false,
|
|
669
|
-
"type": "string[]"
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
"name": "maxTagCount",
|
|
673
|
-
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
674
|
-
"type": "number"
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
"name": "groupBy",
|
|
678
|
-
"description": "分组字段",
|
|
679
|
-
"type": "string"
|
|
680
|
-
},
|
|
681
|
-
{
|
|
682
|
-
"name": "suffix",
|
|
683
|
-
"description": "",
|
|
684
|
-
"attribute": false,
|
|
685
|
-
"type": "UseSingleBrickConf"
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
"name": "clearable",
|
|
689
|
-
"description": "是否支持清除",
|
|
690
|
-
"default": "true",
|
|
691
|
-
"type": "boolean"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
"name": "fields",
|
|
695
|
-
"description": "列表指定字段作为 label 和 value",
|
|
696
|
-
"attribute": false,
|
|
697
|
-
"type": "{ label?: string; value?: string }"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
"name": "useBackend",
|
|
701
|
-
"description": "后端搜索",
|
|
702
|
-
"attribute": false,
|
|
703
|
-
"type": "UseBackendConf"
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
"name": "debounceSearchDelay",
|
|
707
|
-
"type": "number"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"name": "inputStyle",
|
|
711
|
-
"description": "输入框样式",
|
|
712
|
-
"attribute": false,
|
|
713
|
-
"type": "React.CSSProperties"
|
|
714
|
-
}
|
|
715
|
-
],
|
|
716
|
-
"events": [
|
|
717
|
-
{
|
|
718
|
-
"name": "change",
|
|
719
|
-
"description": "下拉选择事件",
|
|
720
|
-
"detail": {
|
|
721
|
-
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
722
|
-
}
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
"name": "search",
|
|
726
|
-
"description": "下拉框search事件",
|
|
727
|
-
"detail": {
|
|
728
|
-
"type": "{\n value: string;\n }"
|
|
729
|
-
}
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
"name": "focus",
|
|
733
|
-
"description": "下拉框focus事件",
|
|
734
|
-
"detail": {
|
|
735
|
-
"type": "void"
|
|
736
|
-
}
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
"name": "options.change",
|
|
740
|
-
"description": "选项列表变化事件",
|
|
741
|
-
"detail": {
|
|
742
|
-
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
],
|
|
746
|
-
"slots": [],
|
|
747
|
-
"methods": [],
|
|
748
|
-
"parts": [],
|
|
749
|
-
"description": "通用下拉选择构件",
|
|
750
|
-
"category": "form-input-basic"
|
|
751
|
-
},
|
|
752
519
|
{
|
|
753
520
|
"name": "eo-submit-buttons",
|
|
754
521
|
"alias": [
|
|
@@ -901,6 +668,97 @@
|
|
|
901
668
|
"description": "表单复选框构件",
|
|
902
669
|
"category": "form-input-basic"
|
|
903
670
|
},
|
|
671
|
+
{
|
|
672
|
+
"name": "eo-textarea",
|
|
673
|
+
"alias": [
|
|
674
|
+
"form.general-textarea"
|
|
675
|
+
],
|
|
676
|
+
"properties": [
|
|
677
|
+
{
|
|
678
|
+
"name": "name",
|
|
679
|
+
"description": "字段名称",
|
|
680
|
+
"type": "string"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "label",
|
|
684
|
+
"description": "标签文字",
|
|
685
|
+
"type": "string"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "value",
|
|
689
|
+
"description": "值",
|
|
690
|
+
"type": "string"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "placeholder",
|
|
694
|
+
"description": "占位说明",
|
|
695
|
+
"type": "string"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "disabled",
|
|
699
|
+
"description": "是否禁用",
|
|
700
|
+
"type": "boolean"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"name": "minLength",
|
|
704
|
+
"description": "最小长度",
|
|
705
|
+
"type": "number"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"name": "maxLength",
|
|
709
|
+
"description": "最大长度",
|
|
710
|
+
"type": "number"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"name": "autoSize",
|
|
714
|
+
"description": "大小自适应",
|
|
715
|
+
"attribute": false,
|
|
716
|
+
"type": "AutoSize"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "required",
|
|
720
|
+
"description": "是否必填",
|
|
721
|
+
"type": "boolean"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "max",
|
|
725
|
+
"description": "表单校验最大长度",
|
|
726
|
+
"type": "number"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"name": "min",
|
|
730
|
+
"description": "表单校验最小长度",
|
|
731
|
+
"type": "number"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"name": "message",
|
|
735
|
+
"description": "校验信息",
|
|
736
|
+
"attribute": false,
|
|
737
|
+
"type": "Record<string, string>"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "textareaStyle",
|
|
741
|
+
"description": "自定义样式",
|
|
742
|
+
"attribute": false,
|
|
743
|
+
"type": "React.CSSProperties"
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
"events": [
|
|
747
|
+
{
|
|
748
|
+
"name": "change",
|
|
749
|
+
"description": "",
|
|
750
|
+
"detail": {
|
|
751
|
+
"description": null,
|
|
752
|
+
"type": "string"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
],
|
|
756
|
+
"slots": [],
|
|
757
|
+
"methods": [],
|
|
758
|
+
"parts": [],
|
|
759
|
+
"description": "通用多行文本输入框构件",
|
|
760
|
+
"category": "form-input-basic"
|
|
761
|
+
},
|
|
904
762
|
{
|
|
905
763
|
"name": "eo-dynamic-form-item",
|
|
906
764
|
"alias": [
|
|
@@ -973,85 +831,227 @@
|
|
|
973
831
|
}
|
|
974
832
|
},
|
|
975
833
|
{
|
|
976
|
-
"name": "row.add",
|
|
977
|
-
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
834
|
+
"name": "row.add",
|
|
835
|
+
"description": "增加一行时触发,detail为该行的默认值,index为该行的位置",
|
|
836
|
+
"detail": {
|
|
837
|
+
"type": "rowDataType"
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"name": "row.remove",
|
|
842
|
+
"description": "移除一行时触发,detail为该行的值,index为该行的位置",
|
|
843
|
+
"detail": {
|
|
844
|
+
"type": "rowDataType"
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
],
|
|
848
|
+
"slots": [],
|
|
849
|
+
"methods": [],
|
|
850
|
+
"parts": [],
|
|
851
|
+
"description": "动态表单",
|
|
852
|
+
"category": "form-input-basic"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "eo-search",
|
|
856
|
+
"alias": [
|
|
857
|
+
"form.general-search"
|
|
858
|
+
],
|
|
859
|
+
"properties": [
|
|
860
|
+
{
|
|
861
|
+
"name": "value",
|
|
862
|
+
"description": "搜索框的值",
|
|
863
|
+
"default": "\"\"",
|
|
864
|
+
"type": "string"
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"name": "placeholder",
|
|
868
|
+
"description": "提示语",
|
|
869
|
+
"type": "string"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "autoFocus",
|
|
873
|
+
"description": "是否自动聚焦",
|
|
874
|
+
"type": "boolean"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"name": "clearable",
|
|
878
|
+
"description": "可以点击清除图标删除内容",
|
|
879
|
+
"type": "boolean"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
"name": "trim",
|
|
883
|
+
"description": "是否剔除前后空格",
|
|
884
|
+
"type": "boolean"
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"name": "debounceTime",
|
|
888
|
+
"description": "默认延迟时间",
|
|
889
|
+
"default": "0",
|
|
890
|
+
"type": "number"
|
|
891
|
+
}
|
|
892
|
+
],
|
|
893
|
+
"events": [
|
|
894
|
+
{
|
|
895
|
+
"name": "change",
|
|
896
|
+
"description": "输入的搜索字符,输入变化时触发",
|
|
978
897
|
"detail": {
|
|
979
|
-
"type": "
|
|
898
|
+
"type": "string"
|
|
980
899
|
}
|
|
981
900
|
},
|
|
982
901
|
{
|
|
983
|
-
"name": "
|
|
984
|
-
"description": "
|
|
902
|
+
"name": "search",
|
|
903
|
+
"description": "搜索时触发",
|
|
985
904
|
"detail": {
|
|
986
|
-
"type": "
|
|
905
|
+
"type": "string"
|
|
987
906
|
}
|
|
988
907
|
}
|
|
989
908
|
],
|
|
990
909
|
"slots": [],
|
|
991
910
|
"methods": [],
|
|
992
911
|
"parts": [],
|
|
993
|
-
"description": "
|
|
912
|
+
"description": "搜索框",
|
|
994
913
|
"category": "form-input-basic"
|
|
995
914
|
},
|
|
996
915
|
{
|
|
997
|
-
"name": "eo-
|
|
916
|
+
"name": "eo-select",
|
|
998
917
|
"alias": [
|
|
999
|
-
"form.general-
|
|
918
|
+
"form.general-select"
|
|
1000
919
|
],
|
|
1001
920
|
"properties": [
|
|
1002
921
|
{
|
|
1003
|
-
"name": "
|
|
1004
|
-
"description": "
|
|
1005
|
-
"default": "\"\"",
|
|
922
|
+
"name": "name",
|
|
923
|
+
"description": "字段名称",
|
|
1006
924
|
"type": "string"
|
|
1007
925
|
},
|
|
1008
926
|
{
|
|
1009
927
|
"name": "placeholder",
|
|
1010
|
-
"description": "
|
|
928
|
+
"description": "占位说明",
|
|
1011
929
|
"type": "string"
|
|
1012
930
|
},
|
|
1013
931
|
{
|
|
1014
|
-
"name": "
|
|
1015
|
-
"description": "
|
|
932
|
+
"name": "label",
|
|
933
|
+
"description": "字段文本",
|
|
934
|
+
"type": "string"
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "options",
|
|
938
|
+
"description": "选项列表",
|
|
939
|
+
"required": true,
|
|
940
|
+
"attribute": false,
|
|
941
|
+
"type": "GeneralComplexOption[]"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"name": "value",
|
|
945
|
+
"description": "值",
|
|
946
|
+
"attribute": false,
|
|
947
|
+
"type": "any"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"name": "required",
|
|
951
|
+
"description": "是否必填",
|
|
1016
952
|
"type": "boolean"
|
|
1017
953
|
},
|
|
1018
954
|
{
|
|
1019
|
-
"name": "
|
|
1020
|
-
"description": "
|
|
955
|
+
"name": "message",
|
|
956
|
+
"description": "校验文本信息",
|
|
957
|
+
"attribute": false,
|
|
958
|
+
"type": "Record<string, string>"
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "disabled",
|
|
962
|
+
"description": "是否禁用",
|
|
1021
963
|
"type": "boolean"
|
|
1022
964
|
},
|
|
1023
965
|
{
|
|
1024
|
-
"name": "
|
|
1025
|
-
"description": "
|
|
966
|
+
"name": "mode",
|
|
967
|
+
"description": "类型",
|
|
968
|
+
"type": "\"tags\" | \"multiple\""
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "tokenSeparators",
|
|
972
|
+
"description": "自动分词的分隔符,仅在 mode=\"tags\" 时生效",
|
|
973
|
+
"attribute": false,
|
|
974
|
+
"type": "string[]"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "maxTagCount",
|
|
978
|
+
"description": "最多显示多少个 tag, 剩余的 tag 将被隐藏",
|
|
979
|
+
"type": "number"
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"name": "groupBy",
|
|
983
|
+
"description": "分组字段",
|
|
984
|
+
"type": "string"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"name": "suffix",
|
|
988
|
+
"description": "",
|
|
989
|
+
"attribute": false,
|
|
990
|
+
"type": "UseSingleBrickConf"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
"name": "clearable",
|
|
994
|
+
"description": "是否支持清除",
|
|
995
|
+
"default": "true",
|
|
1026
996
|
"type": "boolean"
|
|
1027
997
|
},
|
|
1028
998
|
{
|
|
1029
|
-
"name": "
|
|
1030
|
-
"description": "
|
|
1031
|
-
"
|
|
999
|
+
"name": "fields",
|
|
1000
|
+
"description": "列表指定字段作为 label 和 value",
|
|
1001
|
+
"attribute": false,
|
|
1002
|
+
"type": "{ label?: string; value?: string }"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"name": "useBackend",
|
|
1006
|
+
"description": "后端搜索",
|
|
1007
|
+
"attribute": false,
|
|
1008
|
+
"type": "UseBackendConf"
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"name": "debounceSearchDelay",
|
|
1032
1012
|
"type": "number"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "inputStyle",
|
|
1016
|
+
"description": "输入框样式",
|
|
1017
|
+
"attribute": false,
|
|
1018
|
+
"type": "React.CSSProperties"
|
|
1033
1019
|
}
|
|
1034
1020
|
],
|
|
1035
1021
|
"events": [
|
|
1036
1022
|
{
|
|
1037
1023
|
"name": "change",
|
|
1038
|
-
"description": "
|
|
1024
|
+
"description": "下拉选择事件",
|
|
1039
1025
|
"detail": {
|
|
1040
|
-
"type": "string"
|
|
1026
|
+
"type": "{\n value: string | string[];\n options: GeneralComplexOption[];\n }"
|
|
1041
1027
|
}
|
|
1042
1028
|
},
|
|
1043
1029
|
{
|
|
1044
1030
|
"name": "search",
|
|
1045
|
-
"description": "
|
|
1031
|
+
"description": "下拉框search事件",
|
|
1046
1032
|
"detail": {
|
|
1047
|
-
"type": "string"
|
|
1033
|
+
"type": "{\n value: string;\n }"
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "focus",
|
|
1038
|
+
"description": "下拉框focus事件",
|
|
1039
|
+
"detail": {
|
|
1040
|
+
"type": "void"
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "options.change",
|
|
1045
|
+
"description": "选项列表变化事件",
|
|
1046
|
+
"detail": {
|
|
1047
|
+
"type": "{\n options: {\n label: string;\n value: any;\n [key: string]: any;\n };\n name: string;\n }"
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
],
|
|
1051
1051
|
"slots": [],
|
|
1052
1052
|
"methods": [],
|
|
1053
1053
|
"parts": [],
|
|
1054
|
-
"description": "
|
|
1054
|
+
"description": "通用下拉选择构件",
|
|
1055
1055
|
"category": "form-input-basic"
|
|
1056
1056
|
},
|
|
1057
1057
|
{
|
|
@@ -1628,24 +1628,27 @@
|
|
|
1628
1628
|
"category": "form-input-basic"
|
|
1629
1629
|
},
|
|
1630
1630
|
{
|
|
1631
|
-
"name": "eo-
|
|
1631
|
+
"name": "eo-color-picker",
|
|
1632
1632
|
"properties": [
|
|
1633
1633
|
{
|
|
1634
1634
|
"name": "name",
|
|
1635
|
-
"description": "
|
|
1635
|
+
"description": "字段名称",
|
|
1636
1636
|
"type": "string"
|
|
1637
1637
|
},
|
|
1638
1638
|
{
|
|
1639
1639
|
"name": "label",
|
|
1640
|
-
"description": "
|
|
1640
|
+
"description": "字段说明",
|
|
1641
1641
|
"type": "string"
|
|
1642
1642
|
},
|
|
1643
1643
|
{
|
|
1644
1644
|
"name": "value",
|
|
1645
|
-
"description": "
|
|
1646
|
-
"
|
|
1647
|
-
|
|
1648
|
-
|
|
1645
|
+
"description": "值",
|
|
1646
|
+
"type": "string"
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
"name": "defaultValue",
|
|
1650
|
+
"description": "颜色默认的值",
|
|
1651
|
+
"type": "string | Color"
|
|
1649
1652
|
},
|
|
1650
1653
|
{
|
|
1651
1654
|
"name": "required",
|
|
@@ -1653,72 +1656,74 @@
|
|
|
1653
1656
|
"type": "boolean"
|
|
1654
1657
|
},
|
|
1655
1658
|
{
|
|
1656
|
-
"name": "
|
|
1657
|
-
"description": "
|
|
1659
|
+
"name": "allowClear",
|
|
1660
|
+
"description": "允许清除选择的颜色",
|
|
1661
|
+
"type": "boolean"
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
"name": "size",
|
|
1665
|
+
"description": "设置触发器大小",
|
|
1666
|
+
"default": "middle",
|
|
1658
1667
|
"attribute": false,
|
|
1659
|
-
"type": "
|
|
1668
|
+
"type": "\"small\" | \"middle\" | \"large\""
|
|
1660
1669
|
},
|
|
1661
1670
|
{
|
|
1662
|
-
"name": "
|
|
1663
|
-
"description": "
|
|
1664
|
-
"type": "
|
|
1671
|
+
"name": "showText",
|
|
1672
|
+
"description": "显示颜色文本",
|
|
1673
|
+
"type": "boolean"
|
|
1665
1674
|
},
|
|
1666
1675
|
{
|
|
1667
|
-
"name": "
|
|
1668
|
-
"description": "",
|
|
1669
|
-
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1676
|
+
"name": "disabled",
|
|
1677
|
+
"description": "是否禁用",
|
|
1670
1678
|
"type": "boolean"
|
|
1671
1679
|
},
|
|
1672
1680
|
{
|
|
1673
|
-
"name": "
|
|
1674
|
-
"description": "",
|
|
1675
|
-
"default": "
|
|
1681
|
+
"name": "format",
|
|
1682
|
+
"description": "颜色格式",
|
|
1683
|
+
"default": "hex",
|
|
1676
1684
|
"attribute": false,
|
|
1677
|
-
"type": "
|
|
1685
|
+
"type": "\"rgb\" | \"hex\" | \"hsb\""
|
|
1678
1686
|
},
|
|
1679
1687
|
{
|
|
1680
|
-
"name": "
|
|
1688
|
+
"name": "configProps",
|
|
1689
|
+
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1681
1690
|
"attribute": false,
|
|
1682
|
-
"type": "
|
|
1691
|
+
"type": "Partial<ColorPickerProps>"
|
|
1683
1692
|
}
|
|
1684
1693
|
],
|
|
1685
1694
|
"events": [
|
|
1686
1695
|
{
|
|
1687
1696
|
"name": "change",
|
|
1688
|
-
"description": "
|
|
1697
|
+
"description": "颜色变化事件, 返回值格式和`format`格式一致",
|
|
1689
1698
|
"detail": {
|
|
1690
|
-
"type": "
|
|
1699
|
+
"type": "string | undefined"
|
|
1691
1700
|
}
|
|
1692
1701
|
}
|
|
1693
1702
|
],
|
|
1694
1703
|
"slots": [],
|
|
1695
1704
|
"methods": [],
|
|
1696
1705
|
"parts": [],
|
|
1697
|
-
"description": "
|
|
1698
|
-
"category": "form-input-basic"
|
|
1706
|
+
"description": "构件 `eo-color-picker`"
|
|
1699
1707
|
},
|
|
1700
1708
|
{
|
|
1701
|
-
"name": "eo-
|
|
1709
|
+
"name": "eo-time-range-picker",
|
|
1702
1710
|
"properties": [
|
|
1703
1711
|
{
|
|
1704
1712
|
"name": "name",
|
|
1705
|
-
"description": "
|
|
1713
|
+
"description": "时间段选择器字段名",
|
|
1706
1714
|
"type": "string"
|
|
1707
1715
|
},
|
|
1708
1716
|
{
|
|
1709
1717
|
"name": "label",
|
|
1710
|
-
"description": "
|
|
1718
|
+
"description": "时间段选择器说明",
|
|
1711
1719
|
"type": "string"
|
|
1712
1720
|
},
|
|
1713
1721
|
{
|
|
1714
1722
|
"name": "value",
|
|
1715
|
-
"description": "
|
|
1716
|
-
"
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
"name": "defaultValue",
|
|
1720
|
-
"description": "颜色默认的值",
|
|
1721
|
-
"type": "string | Color"
|
|
1723
|
+
"description": "时间段选择器的初始值",
|
|
1724
|
+
"default": "{ \"startTime\": \"00:00:00\", \"endTime\": \"23:59:59\" }",
|
|
1725
|
+
"attribute": false,
|
|
1726
|
+
"type": "TimeRange"
|
|
1722
1727
|
},
|
|
1723
1728
|
{
|
|
1724
1729
|
"name": "required",
|
|
@@ -1726,54 +1731,49 @@
|
|
|
1726
1731
|
"type": "boolean"
|
|
1727
1732
|
},
|
|
1728
1733
|
{
|
|
1729
|
-
"name": "
|
|
1730
|
-
"description": "
|
|
1731
|
-
"type": "boolean"
|
|
1732
|
-
},
|
|
1733
|
-
{
|
|
1734
|
-
"name": "size",
|
|
1735
|
-
"description": "设置触发器大小",
|
|
1736
|
-
"default": "middle",
|
|
1734
|
+
"name": "rangeType",
|
|
1735
|
+
"description": "时间段类型",
|
|
1737
1736
|
"attribute": false,
|
|
1738
|
-
"type": "
|
|
1737
|
+
"type": "RangeType"
|
|
1739
1738
|
},
|
|
1740
1739
|
{
|
|
1741
|
-
"name": "
|
|
1742
|
-
"description": "
|
|
1743
|
-
"type": "
|
|
1740
|
+
"name": "selectNearDays",
|
|
1741
|
+
"description": "只有rangeType在`date` 和 `dateTime`下, 才支持只选择最近n天(当前时间向前n天)",
|
|
1742
|
+
"type": "number"
|
|
1744
1743
|
},
|
|
1745
1744
|
{
|
|
1746
|
-
"name": "
|
|
1747
|
-
"description": "
|
|
1745
|
+
"name": "emitChangeOnInit",
|
|
1746
|
+
"description": "",
|
|
1747
|
+
"default": "true\n是否在初始化完成后额外触发一次`time.range.change`, 这里因为历史原因之前默认行为就是在初始化后会触发该事件,这里为了兼容之前的行为,默认值只能设置为 true。",
|
|
1748
1748
|
"type": "boolean"
|
|
1749
1749
|
},
|
|
1750
1750
|
{
|
|
1751
|
-
"name": "
|
|
1752
|
-
"description": "
|
|
1753
|
-
"default": "
|
|
1751
|
+
"name": "presetRanges",
|
|
1752
|
+
"description": "",
|
|
1753
|
+
"default": "[]\n预设时间范围快捷选择;设置了属性selectNearDays时,属性presetRanges不生效;属性rangeType为week时,presetRanges的值只能为本周、本月、本季度、今年,属性rangeType为month、quarter、year时,以此类推",
|
|
1754
1754
|
"attribute": false,
|
|
1755
|
-
"type": "
|
|
1755
|
+
"type": "presetRangeType[]"
|
|
1756
1756
|
},
|
|
1757
1757
|
{
|
|
1758
|
-
"name": "
|
|
1759
|
-
"description": "透传 antd ColorPicker 属性 [ColorPickerProps](https://ant.design/components/color-picker-cn#api)",
|
|
1758
|
+
"name": "validator",
|
|
1760
1759
|
"attribute": false,
|
|
1761
|
-
"type": "
|
|
1760
|
+
"type": "((value: any) => MessageBody | string)"
|
|
1762
1761
|
}
|
|
1763
1762
|
],
|
|
1764
1763
|
"events": [
|
|
1765
1764
|
{
|
|
1766
1765
|
"name": "change",
|
|
1767
|
-
"description": "
|
|
1766
|
+
"description": "时间段变化时触发",
|
|
1768
1767
|
"detail": {
|
|
1769
|
-
"type": "
|
|
1768
|
+
"type": "TimeRange"
|
|
1770
1769
|
}
|
|
1771
1770
|
}
|
|
1772
1771
|
],
|
|
1773
1772
|
"slots": [],
|
|
1774
1773
|
"methods": [],
|
|
1775
1774
|
"parts": [],
|
|
1776
|
-
"description": "
|
|
1775
|
+
"description": "时间区间选择器",
|
|
1776
|
+
"category": "form-input-basic"
|
|
1777
1777
|
}
|
|
1778
1778
|
],
|
|
1779
1779
|
"providers": []
|