@baosight/er4j 0.0.23 → 0.0.25
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.
|
@@ -7659,7 +7659,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<im
|
|
|
7659
7659
|
default: import('ant-design-vue/es/_util/EventInterface').MouseEventHandler;
|
|
7660
7660
|
};
|
|
7661
7661
|
onContextmenu: {
|
|
7662
|
-
|
|
7662
|
+
type: import('vue').PropType<import('ant-design-vue/es/_util/EventInterface').MouseEventHandler>;
|
|
7663
7663
|
default: import('ant-design-vue/es/_util/EventInterface').MouseEventHandler;
|
|
7664
7664
|
};
|
|
7665
7665
|
onKeydown: {
|
|
@@ -555,6 +555,12 @@ export declare namespace ER {
|
|
|
555
555
|
* @returns 驼峰命名
|
|
556
556
|
*/
|
|
557
557
|
static camelCase(str: string): string;
|
|
558
|
+
/**
|
|
559
|
+
* 验证是否为有效的正则表达式
|
|
560
|
+
* @param str 正则表达式字符串
|
|
561
|
+
* @returns 是否为有效的正则表达式,true 有效,false 无效
|
|
562
|
+
*/
|
|
563
|
+
static isValidRegex(str: string): boolean;
|
|
558
564
|
/**
|
|
559
565
|
* 加密数据
|
|
560
566
|
* @param plaintext 明文
|
|
@@ -866,11 +872,14 @@ export declare namespace ER {
|
|
|
866
872
|
/**
|
|
867
873
|
* 获取Grid的选中行[无勾选框时为当前行]EiBlock
|
|
868
874
|
* @param grid
|
|
875
|
+
* @param extendJsonData 扩展字段
|
|
869
876
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
870
877
|
* @param customJsonFunction 自定义对象转Json方法
|
|
871
878
|
* @returns EiBlock
|
|
872
879
|
*/
|
|
873
|
-
static getGridSelectRowsAsBlock(grid: any,
|
|
880
|
+
static getGridSelectRowsAsBlock(grid: any, extendJsonData?: {
|
|
881
|
+
[key: string]: any;
|
|
882
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
874
883
|
[key: string]: any;
|
|
875
884
|
}): EiBlock;
|
|
876
885
|
/**
|
|
@@ -886,11 +895,14 @@ export declare namespace ER {
|
|
|
886
895
|
/**
|
|
887
896
|
* 获取Grid的当前焦点行Json
|
|
888
897
|
* @param grid
|
|
898
|
+
* @param extendJsonData 扩展字段
|
|
889
899
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
890
900
|
* @param customJsonFunction 自定义对象转Json方法
|
|
891
901
|
* @returns json
|
|
892
902
|
*/
|
|
893
|
-
static getGridCurrentRowAsBlock(grid: any,
|
|
903
|
+
static getGridCurrentRowAsBlock(grid: any, extendJsonData?: {
|
|
904
|
+
[key: string]: any;
|
|
905
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
894
906
|
[key: string]: any;
|
|
895
907
|
}): EiBlock;
|
|
896
908
|
/**
|
|
@@ -906,11 +918,14 @@ export declare namespace ER {
|
|
|
906
918
|
/**
|
|
907
919
|
* 获取Grid的选中行的数据Json格式[必须在有勾选列的情况下]
|
|
908
920
|
* @param grid
|
|
921
|
+
* @param extendJsonData 扩展字段
|
|
909
922
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
910
923
|
* @param customJsonFunction 自定义对象转Json方法
|
|
911
924
|
* @returns Json array
|
|
912
925
|
*/
|
|
913
|
-
static getGridCheckedRowsAsBlock(grid: any,
|
|
926
|
+
static getGridCheckedRowsAsBlock(grid: any, extendJsonData?: {
|
|
927
|
+
[key: string]: any;
|
|
928
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
914
929
|
[key: string]: any;
|
|
915
930
|
}): EiBlock;
|
|
916
931
|
/**
|
|
@@ -926,11 +941,14 @@ export declare namespace ER {
|
|
|
926
941
|
/**
|
|
927
942
|
* 获取Grid筛选后选中行的数据Json格式[必须在有勾选列的情况下]
|
|
928
943
|
* @param grid
|
|
944
|
+
* @param extendJsonData 扩展字段
|
|
929
945
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
930
946
|
* @param customJsonFunction 自定义对象转Json方法
|
|
931
947
|
* @returns Json array
|
|
932
948
|
*/
|
|
933
|
-
static getGridCheckedAfterFilterRowsAsBlock(grid: any,
|
|
949
|
+
static getGridCheckedAfterFilterRowsAsBlock(grid: any, extendJsonData?: {
|
|
950
|
+
[key: string]: any;
|
|
951
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
934
952
|
[key: string]: any;
|
|
935
953
|
}): EiBlock;
|
|
936
954
|
/**
|
|
@@ -946,13 +964,17 @@ export declare namespace ER {
|
|
|
946
964
|
/**
|
|
947
965
|
* 获取Grid已删除的行Block
|
|
948
966
|
* @param grid
|
|
967
|
+
* @param extendJsonData 扩展字段
|
|
949
968
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
950
969
|
* @param customJsonFunction 自定义对象转Json方法
|
|
970
|
+
* @param blockName 块名
|
|
951
971
|
* @returns Block
|
|
952
972
|
*/
|
|
953
|
-
static getGridDeletedRowsAsBlock(grid: any,
|
|
973
|
+
static getGridDeletedRowsAsBlock(grid: any, extendJsonData?: {
|
|
954
974
|
[key: string]: any;
|
|
955
|
-
}
|
|
975
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
976
|
+
[key: string]: any;
|
|
977
|
+
}, blockName?: string): EiBlock;
|
|
956
978
|
/**
|
|
957
979
|
* 获取Grid已修改的行Json
|
|
958
980
|
* @param grid
|
|
@@ -966,13 +988,17 @@ export declare namespace ER {
|
|
|
966
988
|
/**
|
|
967
989
|
* 获取Grid已修改的行Block
|
|
968
990
|
* @param grid
|
|
991
|
+
* @param extendJsonData 扩展字段
|
|
969
992
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
970
993
|
* @param customJsonFunction 自定义对象转Json方法
|
|
994
|
+
* @param blockName 块名
|
|
971
995
|
* @returns Block
|
|
972
996
|
*/
|
|
973
|
-
static getGridModifyRowsAsBlock(grid: any,
|
|
997
|
+
static getGridModifyRowsAsBlock(grid: any, extendJsonData?: {
|
|
974
998
|
[key: string]: any;
|
|
975
|
-
}
|
|
999
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
1000
|
+
[key: string]: any;
|
|
1001
|
+
}, blockName?: string): EiBlock;
|
|
976
1002
|
/**
|
|
977
1003
|
* 获取Grid已新增的行
|
|
978
1004
|
* @param grid
|
|
@@ -986,13 +1012,17 @@ export declare namespace ER {
|
|
|
986
1012
|
/**
|
|
987
1013
|
* 获取Grid已新增的行Block
|
|
988
1014
|
* @param grid
|
|
1015
|
+
* @param extendJsonData 扩展字段
|
|
989
1016
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
990
1017
|
* @param customJsonFunction 自定义对象转Json方法
|
|
1018
|
+
* @param blockName 块名
|
|
991
1019
|
* @returns Block
|
|
992
1020
|
*/
|
|
993
|
-
static getGridCreatedRowsAsBlock(grid: any,
|
|
1021
|
+
static getGridCreatedRowsAsBlock(grid: any, extendJsonData?: {
|
|
994
1022
|
[key: string]: any;
|
|
995
|
-
}
|
|
1023
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
1024
|
+
[key: string]: any;
|
|
1025
|
+
}, blockName?: string): EiBlock;
|
|
996
1026
|
/**
|
|
997
1027
|
* 获取Grid已新增的行
|
|
998
1028
|
* @param grid
|
|
@@ -1006,13 +1036,17 @@ export declare namespace ER {
|
|
|
1006
1036
|
/**
|
|
1007
1037
|
* 获取Grid已新增的行Block
|
|
1008
1038
|
* @param grid
|
|
1039
|
+
* @param extendJsonData 扩展字段
|
|
1009
1040
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
1010
1041
|
* @param customJsonFunction 自定义对象转Json方法
|
|
1042
|
+
* @param blockName 块名
|
|
1011
1043
|
* @returns Block
|
|
1012
1044
|
*/
|
|
1013
|
-
static getGridAllRowsAsBlock(grid: any,
|
|
1045
|
+
static getGridAllRowsAsBlock(grid: any, extendJsonData?: {
|
|
1014
1046
|
[key: string]: any;
|
|
1015
|
-
}
|
|
1047
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
1048
|
+
[key: string]: any;
|
|
1049
|
+
}, blockName?: string): EiBlock;
|
|
1016
1050
|
/**
|
|
1017
1051
|
* 获取Grid的变更集并添加到EIInfo[块名分别为:{tableName}_DELETE,{tableName}_MODIFY,{tableName}_ADD]
|
|
1018
1052
|
* @param grid
|
|
@@ -1042,11 +1076,14 @@ export declare namespace ER {
|
|
|
1042
1076
|
* @param type 行类型
|
|
1043
1077
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
1044
1078
|
* @param customJsonFunction 自定义对象转Json方法
|
|
1079
|
+
* @param blockName 块名
|
|
1045
1080
|
* @returns EiBlock
|
|
1046
1081
|
*/
|
|
1047
|
-
static getGridRowsAsBlock(grid: any, type: GetGridRowsType,
|
|
1082
|
+
static getGridRowsAsBlock(grid: any, type: GetGridRowsType, extendJsonData?: {
|
|
1048
1083
|
[key: string]: any;
|
|
1049
|
-
}
|
|
1084
|
+
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
1085
|
+
[key: string]: any;
|
|
1086
|
+
}, blockName?: string): EiBlock;
|
|
1050
1087
|
/**
|
|
1051
1088
|
* 从一个GridDataRow向另一个GridDataRow复制值
|
|
1052
1089
|
* @param newDataRow
|
|
@@ -2582,7 +2619,7 @@ export declare namespace ER {
|
|
|
2582
2619
|
* @param extendJson 扩展属性
|
|
2583
2620
|
* @returns EiBlock
|
|
2584
2621
|
*/
|
|
2585
|
-
|
|
2622
|
+
getDataFromDataTableAsBlock(dataTable: DataTable | string, index?: number, extendJson?: {
|
|
2586
2623
|
[key: string]: any;
|
|
2587
2624
|
}): EiBlock;
|
|
2588
2625
|
/**
|
|
@@ -3065,9 +3102,10 @@ export declare namespace ER {
|
|
|
3065
3102
|
* 获取配置区域内所有控件的值,并以此生成EiBlock
|
|
3066
3103
|
* @param configId 配置区域代码
|
|
3067
3104
|
* @param extendJson 扩展属性
|
|
3105
|
+
* @param blockName 块名
|
|
3068
3106
|
* @returns EiBlock
|
|
3069
3107
|
*/
|
|
3070
|
-
|
|
3108
|
+
getAllControlValueAsBlock(configId: string | Array<string>, extendJson?: {
|
|
3071
3109
|
[key: string]: any;
|
|
3072
3110
|
}, blockName?: string): EiBlock;
|
|
3073
3111
|
/**
|
|
@@ -3788,13 +3826,14 @@ export declare namespace ER {
|
|
|
3788
3826
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3789
3827
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3790
3828
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3829
|
+
* @param blockName 块名
|
|
3791
3830
|
* @returns EiBlock
|
|
3792
3831
|
*/
|
|
3793
3832
|
getGridSelectRowsAsBlock(grid: any, extendJsonData?: {
|
|
3794
3833
|
[key: string]: any;
|
|
3795
3834
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3796
3835
|
[key: string]: any;
|
|
3797
|
-
}): EiBlock;
|
|
3836
|
+
}, blockName?: string): EiBlock;
|
|
3798
3837
|
/**
|
|
3799
3838
|
* 获取Grid的当前焦点行
|
|
3800
3839
|
* @param grid
|
|
@@ -3811,13 +3850,14 @@ export declare namespace ER {
|
|
|
3811
3850
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3812
3851
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3813
3852
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3853
|
+
* @param blockName 块名
|
|
3814
3854
|
* @returns EiBlock
|
|
3815
3855
|
*/
|
|
3816
3856
|
getGridCurrentRowAsBlock(grid: any, extendJsonData?: {
|
|
3817
3857
|
[key: string]: any;
|
|
3818
3858
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3819
3859
|
[key: string]: any;
|
|
3820
|
-
}): EiBlock;
|
|
3860
|
+
}, blockName?: string): EiBlock;
|
|
3821
3861
|
/**
|
|
3822
3862
|
* 获取Grid的选中行[必须在有勾选列的情况下]
|
|
3823
3863
|
* @param grid
|
|
@@ -3834,13 +3874,14 @@ export declare namespace ER {
|
|
|
3834
3874
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3835
3875
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3836
3876
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3877
|
+
* @param blockName 块名
|
|
3837
3878
|
* @returns EiBlock
|
|
3838
3879
|
*/
|
|
3839
3880
|
getGridCheckedRowsAsBlock(grid: any, extendJsonData?: {
|
|
3840
3881
|
[key: string]: any;
|
|
3841
3882
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3842
3883
|
[key: string]: any;
|
|
3843
|
-
}): EiBlock;
|
|
3884
|
+
}, blockName?: string): EiBlock;
|
|
3844
3885
|
/**
|
|
3845
3886
|
* 获取Grid筛选后的选中行[必须在有勾选列的情况下]
|
|
3846
3887
|
* @param grid
|
|
@@ -3857,13 +3898,14 @@ export declare namespace ER {
|
|
|
3857
3898
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3858
3899
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3859
3900
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3901
|
+
* @param blockName 块名
|
|
3860
3902
|
* @returns EiBlock
|
|
3861
3903
|
*/
|
|
3862
3904
|
getGridCheckedAfterFilterRowsAsBlock(grid: any, extendJsonData?: {
|
|
3863
3905
|
[key: string]: any;
|
|
3864
3906
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3865
3907
|
[key: string]: any;
|
|
3866
|
-
}): EiBlock;
|
|
3908
|
+
}, blockName?: string): EiBlock;
|
|
3867
3909
|
/**
|
|
3868
3910
|
* 获取Grid已删除的行
|
|
3869
3911
|
* @param grid
|
|
@@ -3880,13 +3922,14 @@ export declare namespace ER {
|
|
|
3880
3922
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3881
3923
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3882
3924
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3925
|
+
* @param blockName 块名
|
|
3883
3926
|
* @returns Block
|
|
3884
3927
|
*/
|
|
3885
3928
|
getGridDeletedRowsAsBlock(grid: any, extendJsonData?: {
|
|
3886
3929
|
[key: string]: any;
|
|
3887
3930
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3888
3931
|
[key: string]: any;
|
|
3889
|
-
}): EiBlock;
|
|
3932
|
+
}, blockName?: string): EiBlock;
|
|
3890
3933
|
/**
|
|
3891
3934
|
* 获取Grid已修改的行
|
|
3892
3935
|
* @param grid
|
|
@@ -3903,13 +3946,14 @@ export declare namespace ER {
|
|
|
3903
3946
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3904
3947
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3905
3948
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3949
|
+
* @param blockName 块名
|
|
3906
3950
|
* @returns EiBlock
|
|
3907
3951
|
*/
|
|
3908
3952
|
getGridModifyRowsAsBlock(grid: any, extendJsonData?: {
|
|
3909
3953
|
[key: string]: any;
|
|
3910
3954
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3911
3955
|
[key: string]: any;
|
|
3912
|
-
}): EiBlock;
|
|
3956
|
+
}, blockName?: string): EiBlock;
|
|
3913
3957
|
/**
|
|
3914
3958
|
* 获取Grid已新增的行Json
|
|
3915
3959
|
* @param grid
|
|
@@ -3926,13 +3970,14 @@ export declare namespace ER {
|
|
|
3926
3970
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3927
3971
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3928
3972
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3973
|
+
* @param blockName 块名
|
|
3929
3974
|
* @returns EiBlock
|
|
3930
3975
|
*/
|
|
3931
3976
|
getGridCreatedRowsAsBlock(grid: any, extendJsonData?: {
|
|
3932
3977
|
[key: string]: any;
|
|
3933
3978
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3934
3979
|
[key: string]: any;
|
|
3935
|
-
}): EiBlock;
|
|
3980
|
+
}, blockName?: string): EiBlock;
|
|
3936
3981
|
/**
|
|
3937
3982
|
* 获取Grid已新增的行Json
|
|
3938
3983
|
* @param grid
|
|
@@ -3949,13 +3994,14 @@ export declare namespace ER {
|
|
|
3949
3994
|
* @param extendJsonData 附加Json数据,只赋值到EiBlock的第一行数据
|
|
3950
3995
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3951
3996
|
* @param customJsonFunction 自定义对象转Json方法
|
|
3997
|
+
* @param blockName 块名
|
|
3952
3998
|
* @returns EiBlock
|
|
3953
3999
|
*/
|
|
3954
4000
|
getGridAllRowsAsBlock(grid: any, extendJsonData?: {
|
|
3955
4001
|
[key: string]: any;
|
|
3956
4002
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3957
4003
|
[key: string]: any;
|
|
3958
|
-
}): EiBlock;
|
|
4004
|
+
}, blockName?: string): EiBlock;
|
|
3959
4005
|
/**
|
|
3960
4006
|
* 获取Grid的变更集并添加到EIInfo[块名分别为:{tableName}_DELETE,{tableName}_MODIFY,{tableName}_ADD]
|
|
3961
4007
|
* @param grid grid[可传入多个grid配置代码的数组或用逗号隔开的字符串]
|
|
@@ -3987,11 +4033,11 @@ export declare namespace ER {
|
|
|
3987
4033
|
* @param onlyGridColumns 是否仅获取Grid中存在的字段
|
|
3988
4034
|
* @returns EiBlock
|
|
3989
4035
|
*/
|
|
3990
|
-
getGridRowsAsBlock(grid: any, type:
|
|
4036
|
+
getGridRowsAsBlock(grid: any, type: GetGridRowsType, extendJsonData?: {
|
|
3991
4037
|
[key: string]: any;
|
|
3992
4038
|
}, onlyGridColumns?: boolean, customJsonFunction?: (data: Model) => {
|
|
3993
4039
|
[key: string]: any;
|
|
3994
|
-
}): EiBlock;
|
|
4040
|
+
}, blockName?: string): EiBlock;
|
|
3995
4041
|
/**
|
|
3996
4042
|
* 设置工具栏Grid工具栏按钮是否可见
|
|
3997
4043
|
* @param configId Grid配置代码
|