@dhccmobile/vue3-lo-form 2.0.0 → 2.0.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/README.md +70 -70
- package/dist/vue3-lo-form.common.js +1189 -1069
- package/dist/vue3-lo-form.common.js.map +1 -1
- package/dist/vue3-lo-form.umd.js +1189 -1069
- package/dist/vue3-lo-form.umd.js.map +1 -1
- package/dist/vue3-lo-form.umd.min.js +1 -1
- package/dist/vue3-lo-form.umd.min.js.map +1 -1
- package/package.json +73 -65
- package/src/App.vue +741 -741
- package/src/components/form/DvForm.vue +642 -642
- package/src/components/form/DvFormLayout.vue +1569 -1569
- package/src/components/form/StretchText.vue +90 -90
- package/src/components/index.ts +3 -3
- package/src/constants/config/form-template.config.ts +32 -32
- package/src/constants/config/form.config.ts +4 -4
- package/src/constants/config/storage.config.ts +4 -4
- package/src/constants/encode-assets/svg.ts +11 -11
- package/src/constants/enum/builtIn-label.enum.ts +5 -5
- package/src/constants/enum/cache-type.enum.ts +7 -7
- package/src/constants/enum/control-format-type.enum.ts +9 -9
- package/src/constants/enum/dynamic-option-type.enum.ts +6 -6
- package/src/constants/enum/form-bus-attr.enum.ts +8 -8
- package/src/constants/enum/form-field-class.enum.ts +7 -7
- package/src/constants/enum/form-field-type.enum.ts +25 -25
- package/src/constants/enum/form-type.enum.ts +5 -5
- package/src/constants/enum/index.ts +19 -19
- package/src/constants/enum/lateral-arrangement.enum.ts +9 -9
- package/src/constants/enum/money-unit.enum.ts +6 -6
- package/src/constants/enum/option-type.enum.ts +5 -5
- package/src/constants/enum/submitted-type.enum.ts +32 -32
- package/src/constants/enum/support-upload-type.enum.ts +5 -5
- package/src/constants/enum/switch.enum.ts +5 -5
- package/src/constants/enum/upload-type.enum.ts +17 -17
- package/src/constants/enum/validate-rules.enum.ts +25 -25
- package/src/constants/enum/validate-status.enum.ts +8 -8
- package/src/constants/enum/vertical-arrangement.enum.ts +7 -7
- package/src/constants/enum/zoom-type.ts +6 -6
- package/src/constants/index.ts +3 -3
- package/src/core/FormApi.ts +1238 -1238
- package/src/core/index.ts +1 -1
- package/src/domain/AbstractControl.ts +6 -6
- package/src/domain/Control.ts +14 -14
- package/src/domain/CustomFormat.ts +6 -6
- package/src/domain/DesForm.ts +48 -48
- package/src/domain/DesFormControl.ts +241 -241
- package/src/domain/DesFormLayout.ts +51 -51
- package/src/domain/FieldChangeHistory.ts +9 -9
- package/src/domain/FormConfig.ts +16 -15
- package/src/domain/FormControl.ts +125 -125
- package/src/domain/FormEnum.ts +9 -9
- package/src/domain/FormGroup.ts +42 -42
- package/src/domain/FormRestfulResponse.ts +6 -6
- package/src/domain/ProvideInjectData.ts +10 -10
- package/src/domain/SysDictDetail.ts +38 -38
- package/src/domain/SysDictInfo.ts +40 -40
- package/src/domain/SysDictTreeDetail.ts +52 -52
- package/src/domain/index.ts +12 -12
- package/src/filtres/amount-capitalization.filter.ts +154 -154
- package/src/filtres/extract-options.filter.ts +53 -53
- package/src/filtres/generate-grid-column-end.filter.ts +22 -22
- package/src/filtres/generate-grid-template-columns.filter.ts +24 -24
- package/src/filtres/switch-enum-convert.filter.ts +18 -18
- package/src/filtres/zoom-multiple.filter.ts +32 -32
- package/src/index.ts +74 -73
- package/src/main.ts +17 -17
- package/src/services/api.service.ts +73 -73
- package/src/services/clean-local-forage.service.ts +58 -58
- package/src/services/date-format.service.ts +74 -74
- package/src/services/dict-local-forage.service.ts +58 -58
- package/src/services/form-bean-utils.service.ts +41 -41
- package/src/services/form-local-forage.service.ts +59 -59
- package/src/services/form-tools.service.ts +739 -739
- package/src/services/form-tree-node-convert.service.ts +240 -240
- package/src/services/form-validate.service.ts +103 -103
- package/src/services/index.ts +9 -9
- package/src/services/router.service.ts +96 -96
- package/src/services/validate-generator.service.ts +710 -710
- package/src/shims-vue.d.ts +6 -6
- package/src/store/dict.store.ts +63 -63
- package/src/store/form.store.ts +32 -32
- package/src/store/index.ts +2 -2
- package/src/styles/datePicker.scss +125 -125
- package/src/styles/index.scss +195 -195
- package/src/styles/theme1.scss +277 -277
- package/src/styles/theme2.scss +376 -376
- package/src/styles/themes.scss +9 -9
- package/src/types/vfForm.ts +11 -11
- package/types/components/index.d.ts +3 -3
- package/types/constants/config/form-template.config.d.ts +30 -30
- package/types/constants/config/form.config.d.ts +4 -4
- package/types/constants/config/storage.config.d.ts +4 -4
- package/types/constants/encode-assets/svg.d.ts +5 -5
- package/types/constants/enum/builtIn-label.enum.d.ts +7 -7
- package/types/constants/enum/cache-type.enum.d.ts +15 -15
- package/types/constants/enum/control-format-type.enum.d.ts +23 -23
- package/types/constants/enum/dynamic-option-type.enum.d.ts +11 -11
- package/types/constants/enum/form-bus-attr.enum.d.ts +19 -19
- package/types/constants/enum/form-field-class.enum.d.ts +18 -18
- package/types/constants/enum/form-field-type.enum.d.ts +111 -111
- package/types/constants/enum/form-type.enum.d.ts +11 -11
- package/types/constants/enum/index.d.ts +19 -19
- package/types/constants/enum/lateral-arrangement.enum.d.ts +23 -23
- package/types/constants/enum/money-unit.enum.d.ts +15 -15
- package/types/constants/enum/option-type.enum.d.ts +11 -11
- package/types/constants/enum/submitted-type.enum.d.ts +115 -115
- package/types/constants/enum/support-upload-type.enum.d.ts +11 -11
- package/types/constants/enum/switch.enum.d.ts +11 -11
- package/types/constants/enum/upload-type.enum.d.ts +59 -59
- package/types/constants/enum/validate-rules.enum.d.ts +2 -2
- package/types/constants/enum/validate-status.enum.d.ts +2 -2
- package/types/constants/enum/vertical-arrangement.enum.d.ts +21 -21
- package/types/constants/enum/zoom-type.d.ts +15 -15
- package/types/constants/index.d.ts +3 -3
- package/types/core/FormApi.d.ts +376 -376
- package/types/core/index.d.ts +1 -1
- package/types/domain/AbstractControl.d.ts +5 -5
- package/types/domain/Control.d.ts +13 -13
- package/types/domain/CustomFormat.d.ts +5 -5
- package/types/domain/DesForm.d.ts +32 -32
- package/types/domain/DesFormControl.d.ts +160 -160
- package/types/domain/DesFormLayout.d.ts +33 -33
- package/types/domain/FieldChangeHistory.d.ts +9 -9
- package/types/domain/FormConfig.d.ts +16 -15
- package/types/domain/FormControl.d.ts +60 -60
- package/types/domain/FormEnum.d.ts +10 -10
- package/types/domain/FormGroup.d.ts +27 -27
- package/types/domain/FormRestfulResponse.d.ts +6 -6
- package/types/domain/ProvideInjectData.d.ts +10 -10
- package/types/domain/SysDictDetail.d.ts +24 -24
- package/types/domain/SysDictInfo.d.ts +26 -26
- package/types/domain/SysDictTreeDetail.d.ts +34 -34
- package/types/domain/index.d.ts +12 -12
- package/types/filtres/amount-capitalization.filter.d.ts +7 -7
- package/types/filtres/extract-options.filter.d.ts +13 -13
- package/types/filtres/generate-grid-column-end.filter.d.ts +11 -11
- package/types/filtres/generate-grid-template-columns.filter.d.ts +11 -11
- package/types/filtres/switch-enum-convert.filter.d.ts +2 -2
- package/types/filtres/zoom-multiple.filter.d.ts +3 -3
- package/types/index.d.ts +13 -13
- package/types/main.d.ts +2 -2
- package/types/services/api.service.d.ts +25 -25
- package/types/services/clean-local-forage.service.d.ts +28 -28
- package/types/services/date-format.service.d.ts +21 -21
- package/types/services/dict-local-forage.service.d.ts +28 -28
- package/types/services/form-bean-utils.service.d.ts +23 -23
- package/types/services/form-local-forage.service.d.ts +28 -28
- package/types/services/form-tools.service.d.ts +153 -153
- package/types/services/form-tree-node-convert.service.d.ts +104 -104
- package/types/services/form-validate.service.d.ts +32 -32
- package/types/services/index.d.ts +9 -9
- package/types/services/router.service.d.ts +40 -40
- package/types/services/validate-generator.service.d.ts +154 -154
- package/types/store/dict.store.d.ts +29 -29
- package/types/store/form.store.d.ts +17 -17
- package/types/store/index.d.ts +2 -2
- package/types/types/vfForm.d.ts +10 -10
- package/.env.local.bak +0 -6
- package/.eslintrc.js +0 -28
- package/babel.config.js +0 -3
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/public/js/pinyin.ts +0 -101
- package/tsconfig.json +0 -40
- package/vue.config.js +0 -38
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { AbstractControl } from "./AbstractControl";
|
|
2
|
-
export interface ValidateResult {
|
|
3
|
-
validateStatus?: string;
|
|
4
|
-
errorMsg?: any;
|
|
5
|
-
}
|
|
6
|
-
export interface ValidateReport {
|
|
7
|
-
key: string;
|
|
8
|
-
name: string;
|
|
9
|
-
errorMsg: any;
|
|
10
|
-
controlType: string;
|
|
11
|
-
}
|
|
12
|
-
export declare type ValidateFunc = (val: any) => ValidateResult;
|
|
13
|
-
export interface Validate {
|
|
14
|
-
name: string;
|
|
15
|
-
validateFunc: ValidateFunc;
|
|
16
|
-
}
|
|
17
|
-
export declare type TextNoticeCallback = (val?: any) => string;
|
|
18
|
-
/**
|
|
19
|
-
* @description: 控件对象
|
|
20
|
-
* @author ChenRui
|
|
21
|
-
* @date 2020/12/1 15:06
|
|
22
|
-
*/
|
|
23
|
-
export declare class FormControl extends AbstractControl {
|
|
24
|
-
history: any[];
|
|
25
|
-
validates: Validate[];
|
|
26
|
-
textNoticeCallback: TextNoticeCallback | undefined;
|
|
27
|
-
constructor(formState?: any);
|
|
28
|
-
setValue(value: any): void;
|
|
29
|
-
get(path: Array<string | number> | string): AbstractControl | null;
|
|
30
|
-
/**
|
|
31
|
-
* @description: 添加校验
|
|
32
|
-
* @author ChenRui
|
|
33
|
-
* @date 2021/1/26 21:05
|
|
34
|
-
*/
|
|
35
|
-
addValidate(validate: Validate | Validate[]): void;
|
|
36
|
-
/**
|
|
37
|
-
* @description: 移除校验
|
|
38
|
-
* @author ChenRui
|
|
39
|
-
* @date 2021/1/26 21:06
|
|
40
|
-
*/
|
|
41
|
-
removeValidate(name: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* @description: 获取校验
|
|
44
|
-
* @author ChenRui
|
|
45
|
-
* @date 2021/1/30 11:47
|
|
46
|
-
*/
|
|
47
|
-
getValidate(name: string): Validate | any;
|
|
48
|
-
/**
|
|
49
|
-
* @description: 校验
|
|
50
|
-
* @author ChenRui
|
|
51
|
-
* @date 2021/1/26 21:08
|
|
52
|
-
*/
|
|
53
|
-
validate(val?: any): ValidateResult;
|
|
54
|
-
/**
|
|
55
|
-
* @description: 获取文本内容
|
|
56
|
-
* @author ChenRui
|
|
57
|
-
* @date 2021/1/29 15:56
|
|
58
|
-
*/
|
|
59
|
-
text(): string;
|
|
60
|
-
}
|
|
1
|
+
import { AbstractControl } from "./AbstractControl";
|
|
2
|
+
export interface ValidateResult {
|
|
3
|
+
validateStatus?: string;
|
|
4
|
+
errorMsg?: any;
|
|
5
|
+
}
|
|
6
|
+
export interface ValidateReport {
|
|
7
|
+
key: string;
|
|
8
|
+
name: string;
|
|
9
|
+
errorMsg: any;
|
|
10
|
+
controlType: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type ValidateFunc = (val: any) => ValidateResult;
|
|
13
|
+
export interface Validate {
|
|
14
|
+
name: string;
|
|
15
|
+
validateFunc: ValidateFunc;
|
|
16
|
+
}
|
|
17
|
+
export declare type TextNoticeCallback = (val?: any) => string;
|
|
18
|
+
/**
|
|
19
|
+
* @description: 控件对象
|
|
20
|
+
* @author ChenRui
|
|
21
|
+
* @date 2020/12/1 15:06
|
|
22
|
+
*/
|
|
23
|
+
export declare class FormControl extends AbstractControl {
|
|
24
|
+
history: any[];
|
|
25
|
+
validates: Validate[];
|
|
26
|
+
textNoticeCallback: TextNoticeCallback | undefined;
|
|
27
|
+
constructor(formState?: any);
|
|
28
|
+
setValue(value: any): void;
|
|
29
|
+
get(path: Array<string | number> | string): AbstractControl | null;
|
|
30
|
+
/**
|
|
31
|
+
* @description: 添加校验
|
|
32
|
+
* @author ChenRui
|
|
33
|
+
* @date 2021/1/26 21:05
|
|
34
|
+
*/
|
|
35
|
+
addValidate(validate: Validate | Validate[]): void;
|
|
36
|
+
/**
|
|
37
|
+
* @description: 移除校验
|
|
38
|
+
* @author ChenRui
|
|
39
|
+
* @date 2021/1/26 21:06
|
|
40
|
+
*/
|
|
41
|
+
removeValidate(name: string): void;
|
|
42
|
+
/**
|
|
43
|
+
* @description: 获取校验
|
|
44
|
+
* @author ChenRui
|
|
45
|
+
* @date 2021/1/30 11:47
|
|
46
|
+
*/
|
|
47
|
+
getValidate(name: string): Validate | any;
|
|
48
|
+
/**
|
|
49
|
+
* @description: 校验
|
|
50
|
+
* @author ChenRui
|
|
51
|
+
* @date 2021/1/26 21:08
|
|
52
|
+
*/
|
|
53
|
+
validate(val?: any): ValidateResult;
|
|
54
|
+
/**
|
|
55
|
+
* @description: 获取文本内容
|
|
56
|
+
* @author ChenRui
|
|
57
|
+
* @date 2021/1/29 15:56
|
|
58
|
+
*/
|
|
59
|
+
text(): string;
|
|
60
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
interface FormEnumItem {
|
|
2
|
-
code: any;
|
|
3
|
-
name: string;
|
|
4
|
-
icon?: string;
|
|
5
|
-
type?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface FormEnum {
|
|
8
|
-
[key: string]: FormEnumItem;
|
|
9
|
-
}
|
|
10
|
-
export {};
|
|
1
|
+
interface FormEnumItem {
|
|
2
|
+
code: any;
|
|
3
|
+
name: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FormEnum {
|
|
8
|
+
[key: string]: FormEnumItem;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { AbstractControl } from "./AbstractControl";
|
|
2
|
-
/**
|
|
3
|
-
* @description: 表单对象
|
|
4
|
-
* @author ChenRui
|
|
5
|
-
* @date 2020/12/1 15:06
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormGroup extends AbstractControl {
|
|
8
|
-
controls: {
|
|
9
|
-
[key: string]: AbstractControl;
|
|
10
|
-
};
|
|
11
|
-
constructor(controls?: {
|
|
12
|
-
[key: string]: AbstractControl;
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* @description: 添加控件
|
|
16
|
-
* @author ChenRui
|
|
17
|
-
* @date 2020/12/1 14:47
|
|
18
|
-
*/
|
|
19
|
-
addControl(name: string, control: AbstractControl): void;
|
|
20
|
-
/**
|
|
21
|
-
* @description: 移除控件
|
|
22
|
-
* @author ChenRui
|
|
23
|
-
* @date 2020/12/1 14:47
|
|
24
|
-
*/
|
|
25
|
-
removeControl(name: string): void;
|
|
26
|
-
get(path: Array<string | number> | string): AbstractControl | null;
|
|
27
|
-
}
|
|
1
|
+
import { AbstractControl } from "./AbstractControl";
|
|
2
|
+
/**
|
|
3
|
+
* @description: 表单对象
|
|
4
|
+
* @author ChenRui
|
|
5
|
+
* @date 2020/12/1 15:06
|
|
6
|
+
*/
|
|
7
|
+
export declare class FormGroup extends AbstractControl {
|
|
8
|
+
controls: {
|
|
9
|
+
[key: string]: AbstractControl;
|
|
10
|
+
};
|
|
11
|
+
constructor(controls?: {
|
|
12
|
+
[key: string]: AbstractControl;
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* @description: 添加控件
|
|
16
|
+
* @author ChenRui
|
|
17
|
+
* @date 2020/12/1 14:47
|
|
18
|
+
*/
|
|
19
|
+
addControl(name: string, control: AbstractControl): void;
|
|
20
|
+
/**
|
|
21
|
+
* @description: 移除控件
|
|
22
|
+
* @author ChenRui
|
|
23
|
+
* @date 2020/12/1 14:47
|
|
24
|
+
*/
|
|
25
|
+
removeControl(name: string): void;
|
|
26
|
+
get(path: Array<string | number> | string): AbstractControl | null;
|
|
27
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface FormRestfulResponse {
|
|
2
|
-
code?: number;
|
|
3
|
-
msg?: string;
|
|
4
|
-
data?: any;
|
|
5
|
-
meta?: any;
|
|
6
|
-
}
|
|
1
|
+
export interface FormRestfulResponse {
|
|
2
|
+
code?: number;
|
|
3
|
+
msg?: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
meta?: any;
|
|
6
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface ProvideInjectData {
|
|
2
|
-
labelSpan?: any;
|
|
3
|
-
controlSpan?: any;
|
|
4
|
-
edit?: boolean | undefined;
|
|
5
|
-
colon?: boolean;
|
|
6
|
-
metaRefresh?: any;
|
|
7
|
-
refreshCheckFeedbackFlag?: any;
|
|
8
|
-
widthCompatibleMode?: boolean;
|
|
9
|
-
formValidateStateResetMark?: any;
|
|
10
|
-
}
|
|
1
|
+
export interface ProvideInjectData {
|
|
2
|
+
labelSpan?: any;
|
|
3
|
+
controlSpan?: any;
|
|
4
|
+
edit?: boolean | undefined;
|
|
5
|
+
colon?: boolean;
|
|
6
|
+
metaRefresh?: any;
|
|
7
|
+
refreshCheckFeedbackFlag?: any;
|
|
8
|
+
widthCompatibleMode?: boolean;
|
|
9
|
+
formValidateStateResetMark?: any;
|
|
10
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export declare class SysDictDetail {
|
|
2
|
-
dataId: string;
|
|
3
|
-
dictId: string;
|
|
4
|
-
dicEntryPk: string;
|
|
5
|
-
dictCd: string;
|
|
6
|
-
dictNm: string;
|
|
7
|
-
dicKey: string;
|
|
8
|
-
dicValue: string;
|
|
9
|
-
mark: string;
|
|
10
|
-
dicEntryRank: string;
|
|
11
|
-
useState: string;
|
|
12
|
-
constructor(options?: {
|
|
13
|
-
dataId?: string;
|
|
14
|
-
dictId?: string;
|
|
15
|
-
dicEntryPk?: string;
|
|
16
|
-
dictCd?: string;
|
|
17
|
-
dictNm?: string;
|
|
18
|
-
dicKey?: string;
|
|
19
|
-
dicValue?: string;
|
|
20
|
-
mark?: string;
|
|
21
|
-
dicEntryRank?: string;
|
|
22
|
-
useState?: string;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
1
|
+
export declare class SysDictDetail {
|
|
2
|
+
dataId: string;
|
|
3
|
+
dictId: string;
|
|
4
|
+
dicEntryPk: string;
|
|
5
|
+
dictCd: string;
|
|
6
|
+
dictNm: string;
|
|
7
|
+
dicKey: string;
|
|
8
|
+
dicValue: string;
|
|
9
|
+
mark: string;
|
|
10
|
+
dicEntryRank: string;
|
|
11
|
+
useState: string;
|
|
12
|
+
constructor(options?: {
|
|
13
|
+
dataId?: string;
|
|
14
|
+
dictId?: string;
|
|
15
|
+
dicEntryPk?: string;
|
|
16
|
+
dictCd?: string;
|
|
17
|
+
dictNm?: string;
|
|
18
|
+
dicKey?: string;
|
|
19
|
+
dicValue?: string;
|
|
20
|
+
mark?: string;
|
|
21
|
+
dicEntryRank?: string;
|
|
22
|
+
useState?: string;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { SysDictDetail } from "./SysDictDetail";
|
|
2
|
-
import { SysDictTreeDetail } from "./SysDictTreeDetail";
|
|
3
|
-
export declare class SysDictInfo {
|
|
4
|
-
dictId: string;
|
|
5
|
-
tenantId: string;
|
|
6
|
-
appId: string;
|
|
7
|
-
dictCd: string;
|
|
8
|
-
dictNm: string;
|
|
9
|
-
dictTp: string;
|
|
10
|
-
useState: string;
|
|
11
|
-
mark: string;
|
|
12
|
-
comDictKeyValues: SysDictDetail[];
|
|
13
|
-
treeDictKeyValues: SysDictTreeDetail[];
|
|
14
|
-
constructor(options?: {
|
|
15
|
-
dictId?: string;
|
|
16
|
-
tenantId?: string;
|
|
17
|
-
appId?: string;
|
|
18
|
-
dictCd?: string;
|
|
19
|
-
dictNm?: string;
|
|
20
|
-
dictTp?: string;
|
|
21
|
-
useState?: string;
|
|
22
|
-
mark?: string;
|
|
23
|
-
comDictKeyValues?: SysDictDetail[];
|
|
24
|
-
treeDictKeyValues?: SysDictTreeDetail[];
|
|
25
|
-
});
|
|
26
|
-
}
|
|
1
|
+
import { SysDictDetail } from "./SysDictDetail";
|
|
2
|
+
import { SysDictTreeDetail } from "./SysDictTreeDetail";
|
|
3
|
+
export declare class SysDictInfo {
|
|
4
|
+
dictId: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
appId: string;
|
|
7
|
+
dictCd: string;
|
|
8
|
+
dictNm: string;
|
|
9
|
+
dictTp: string;
|
|
10
|
+
useState: string;
|
|
11
|
+
mark: string;
|
|
12
|
+
comDictKeyValues: SysDictDetail[];
|
|
13
|
+
treeDictKeyValues: SysDictTreeDetail[];
|
|
14
|
+
constructor(options?: {
|
|
15
|
+
dictId?: string;
|
|
16
|
+
tenantId?: string;
|
|
17
|
+
appId?: string;
|
|
18
|
+
dictCd?: string;
|
|
19
|
+
dictNm?: string;
|
|
20
|
+
dictTp?: string;
|
|
21
|
+
useState?: string;
|
|
22
|
+
mark?: string;
|
|
23
|
+
comDictKeyValues?: SysDictDetail[];
|
|
24
|
+
treeDictKeyValues?: SysDictTreeDetail[];
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export declare class SysDictTreeDetail {
|
|
2
|
-
dictId: string;
|
|
3
|
-
appId: string;
|
|
4
|
-
dicEntryPk: string;
|
|
5
|
-
dataId: string;
|
|
6
|
-
dicEntryRank: string;
|
|
7
|
-
dictCd: string;
|
|
8
|
-
dictNm: string;
|
|
9
|
-
dicKey: string;
|
|
10
|
-
dicValue: string;
|
|
11
|
-
suprDicPk: string;
|
|
12
|
-
treedictLevel: string;
|
|
13
|
-
isLeaf: string;
|
|
14
|
-
sortNo: string;
|
|
15
|
-
useState: string;
|
|
16
|
-
children: SysDictTreeDetail[];
|
|
17
|
-
constructor(options?: {
|
|
18
|
-
dictId?: string;
|
|
19
|
-
appId?: string;
|
|
20
|
-
dicEntryPk?: string;
|
|
21
|
-
dataId?: string;
|
|
22
|
-
dicEntryRank?: string;
|
|
23
|
-
dictCd?: string;
|
|
24
|
-
dictNm?: string;
|
|
25
|
-
dicKey?: string;
|
|
26
|
-
dicValue?: string;
|
|
27
|
-
suprDicPk?: string;
|
|
28
|
-
treedictLevel?: string;
|
|
29
|
-
isLeaf?: string;
|
|
30
|
-
sortNo?: string;
|
|
31
|
-
useState?: string;
|
|
32
|
-
children?: SysDictTreeDetail[];
|
|
33
|
-
});
|
|
34
|
-
}
|
|
1
|
+
export declare class SysDictTreeDetail {
|
|
2
|
+
dictId: string;
|
|
3
|
+
appId: string;
|
|
4
|
+
dicEntryPk: string;
|
|
5
|
+
dataId: string;
|
|
6
|
+
dicEntryRank: string;
|
|
7
|
+
dictCd: string;
|
|
8
|
+
dictNm: string;
|
|
9
|
+
dicKey: string;
|
|
10
|
+
dicValue: string;
|
|
11
|
+
suprDicPk: string;
|
|
12
|
+
treedictLevel: string;
|
|
13
|
+
isLeaf: string;
|
|
14
|
+
sortNo: string;
|
|
15
|
+
useState: string;
|
|
16
|
+
children: SysDictTreeDetail[];
|
|
17
|
+
constructor(options?: {
|
|
18
|
+
dictId?: string;
|
|
19
|
+
appId?: string;
|
|
20
|
+
dicEntryPk?: string;
|
|
21
|
+
dataId?: string;
|
|
22
|
+
dicEntryRank?: string;
|
|
23
|
+
dictCd?: string;
|
|
24
|
+
dictNm?: string;
|
|
25
|
+
dicKey?: string;
|
|
26
|
+
dicValue?: string;
|
|
27
|
+
suprDicPk?: string;
|
|
28
|
+
treedictLevel?: string;
|
|
29
|
+
isLeaf?: string;
|
|
30
|
+
sortNo?: string;
|
|
31
|
+
useState?: string;
|
|
32
|
+
children?: SysDictTreeDetail[];
|
|
33
|
+
});
|
|
34
|
+
}
|
package/types/domain/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * from "./DesFormControl";
|
|
2
|
-
export * from "./Control";
|
|
3
|
-
export * from "./DesForm";
|
|
4
|
-
export * from "./DesFormControl";
|
|
5
|
-
export * from "./DesFormLayout";
|
|
6
|
-
export * from "./FormConfig";
|
|
7
|
-
export * from "./FormControl";
|
|
8
|
-
export * from "./FormEnum";
|
|
9
|
-
export * from "./FormGroup";
|
|
10
|
-
export * from "./FormRestfulResponse";
|
|
11
|
-
export * from "./CustomFormat";
|
|
12
|
-
export * from "./FieldChangeHistory";
|
|
1
|
+
export * from "./DesFormControl";
|
|
2
|
+
export * from "./Control";
|
|
3
|
+
export * from "./DesForm";
|
|
4
|
+
export * from "./DesFormControl";
|
|
5
|
+
export * from "./DesFormLayout";
|
|
6
|
+
export * from "./FormConfig";
|
|
7
|
+
export * from "./FormControl";
|
|
8
|
+
export * from "./FormEnum";
|
|
9
|
+
export * from "./FormGroup";
|
|
10
|
+
export * from "./FormRestfulResponse";
|
|
11
|
+
export * from "./CustomFormat";
|
|
12
|
+
export * from "./FieldChangeHistory";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 跨列计算
|
|
3
|
-
* @author ChenRui
|
|
4
|
-
* @date 2020/12/1 19:34
|
|
5
|
-
*/
|
|
6
|
-
declare const amountCapitalization: (data: any) => any;
|
|
7
|
-
export default amountCapitalization;
|
|
1
|
+
/**
|
|
2
|
+
* @description: 跨列计算
|
|
3
|
+
* @author ChenRui
|
|
4
|
+
* @date 2020/12/1 19:34
|
|
5
|
+
*/
|
|
6
|
+
declare const amountCapitalization: (data: any) => any;
|
|
7
|
+
export default amountCapitalization;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 根据字典类型获取可选项
|
|
3
|
-
* @author ChenRui
|
|
4
|
-
* @date 2020/12/30 11:18
|
|
5
|
-
*/
|
|
6
|
-
declare const extractOptions: (controlAttr: any, ...args: any[]) => any[];
|
|
7
|
-
/**
|
|
8
|
-
* @description: 保存可选项
|
|
9
|
-
* @author ChenRui
|
|
10
|
-
* @date 2021/1/29 16:17
|
|
11
|
-
*/
|
|
12
|
-
declare const storageOptions: (controlAttr: any, data: any[]) => void;
|
|
13
|
-
export { storageOptions, extractOptions };
|
|
1
|
+
/**
|
|
2
|
+
* @description: 根据字典类型获取可选项
|
|
3
|
+
* @author ChenRui
|
|
4
|
+
* @date 2020/12/30 11:18
|
|
5
|
+
*/
|
|
6
|
+
declare const extractOptions: (controlAttr: any, ...args: any[]) => any[];
|
|
7
|
+
/**
|
|
8
|
+
* @description: 保存可选项
|
|
9
|
+
* @author ChenRui
|
|
10
|
+
* @date 2021/1/29 16:17
|
|
11
|
+
*/
|
|
12
|
+
declare const storageOptions: (controlAttr: any, data: any[]) => void;
|
|
13
|
+
export { storageOptions, extractOptions };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface Config {
|
|
2
|
-
value: number;
|
|
3
|
-
order: number;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @description: 跨列计算
|
|
7
|
-
* @author ChenRui
|
|
8
|
-
* @date 2020/12/1 19:34
|
|
9
|
-
*/
|
|
10
|
-
declare const generateGridColumnEnd: (configs: Config[]) => unknown;
|
|
11
|
-
export default generateGridColumnEnd;
|
|
1
|
+
interface Config {
|
|
2
|
+
value: number;
|
|
3
|
+
order: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @description: 跨列计算
|
|
7
|
+
* @author ChenRui
|
|
8
|
+
* @date 2020/12/1 19:34
|
|
9
|
+
*/
|
|
10
|
+
declare const generateGridColumnEnd: (configs: Config[]) => unknown;
|
|
11
|
+
export default generateGridColumnEnd;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
interface Config {
|
|
2
|
-
value: number;
|
|
3
|
-
order: number;
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* @description: 网格布局比例分配
|
|
7
|
-
* @author ChenRui
|
|
8
|
-
* @date 2020/12/1 19:32
|
|
9
|
-
*/
|
|
10
|
-
declare const generateGridTemplateColumns: (configs: Config[]) => unknown;
|
|
11
|
-
export default generateGridTemplateColumns;
|
|
1
|
+
interface Config {
|
|
2
|
+
value: number;
|
|
3
|
+
order: number;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* @description: 网格布局比例分配
|
|
7
|
+
* @author ChenRui
|
|
8
|
+
* @date 2020/12/1 19:32
|
|
9
|
+
*/
|
|
10
|
+
declare const generateGridTemplateColumns: (configs: Config[]) => unknown;
|
|
11
|
+
export default generateGridTemplateColumns;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const switchEnumConvert: (code: string, switchEnumFiled: any, attribute?: string | undefined, defaultVal?: any) => any;
|
|
2
|
-
export default switchEnumConvert;
|
|
1
|
+
declare const switchEnumConvert: (code: string, switchEnumFiled: any, attribute?: string | undefined, defaultVal?: any) => any;
|
|
2
|
+
export default switchEnumConvert;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormControl } from "@/domain/FormControl";
|
|
2
|
-
declare const zoomMultiple: (code: any, formControl: FormControl) => any;
|
|
3
|
-
export default zoomMultiple;
|
|
1
|
+
import { FormControl } from "@/domain/FormControl";
|
|
2
|
+
declare const zoomMultiple: (code: any, formControl: FormControl) => any;
|
|
3
|
+
export default zoomMultiple;
|
package/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from "./components/index";
|
|
2
|
-
export * from "./constants/index";
|
|
3
|
-
export * from "./core/index";
|
|
4
|
-
export * from "./domain/index";
|
|
5
|
-
export * from "./services/index";
|
|
6
|
-
export * from "./store/index";
|
|
7
|
-
export * from "./types/vfForm";
|
|
8
|
-
import "./styles/index.scss";
|
|
9
|
-
import "dayjs/locale/zh-cn";
|
|
10
|
-
declare const VueLoForm: {
|
|
11
|
-
install: any;
|
|
12
|
-
};
|
|
13
|
-
export default VueLoForm;
|
|
1
|
+
export * from "./components/index";
|
|
2
|
+
export * from "./constants/index";
|
|
3
|
+
export * from "./core/index";
|
|
4
|
+
export * from "./domain/index";
|
|
5
|
+
export * from "./services/index";
|
|
6
|
+
export * from "./store/index";
|
|
7
|
+
export * from "./types/vfForm";
|
|
8
|
+
import "./styles/index.scss";
|
|
9
|
+
import "dayjs/locale/zh-cn";
|
|
10
|
+
declare const VueLoForm: {
|
|
11
|
+
install: any;
|
|
12
|
+
};
|
|
13
|
+
export default VueLoForm;
|
package/types/main.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "ant-design-vue/dist/antd.css";
|
|
2
|
-
import "@dhccmobile/common-style/css/common-style.css";
|
|
1
|
+
import "ant-design-vue/dist/antd.css";
|
|
2
|
+
import "@dhccmobile/common-style/css/common-style.css";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
declare class ApiService {
|
|
2
|
-
createBasicHeaders(): {
|
|
3
|
-
"Content-Type": string;
|
|
4
|
-
Accept: string;
|
|
5
|
-
};
|
|
6
|
-
createAuthHeaders(accessToken: string, jti: string): {
|
|
7
|
-
Authorization: string;
|
|
8
|
-
"user-identity": string;
|
|
9
|
-
"Content-Type": string;
|
|
10
|
-
Accept: string;
|
|
11
|
-
};
|
|
12
|
-
fetch(path: string, query: {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}, body: any, method: string, header: any): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* @description: url请求参数组装
|
|
17
|
-
* @author ChenRui
|
|
18
|
-
* @date 2020/8/28 15:21
|
|
19
|
-
*/
|
|
20
|
-
urlQueryConvert(url: string, query: {
|
|
21
|
-
[key: string]: any;
|
|
22
|
-
}): string;
|
|
23
|
-
}
|
|
24
|
-
declare const apiService: ApiService;
|
|
25
|
-
export { apiService };
|
|
1
|
+
declare class ApiService {
|
|
2
|
+
createBasicHeaders(): {
|
|
3
|
+
"Content-Type": string;
|
|
4
|
+
Accept: string;
|
|
5
|
+
};
|
|
6
|
+
createAuthHeaders(accessToken: string, jti: string): {
|
|
7
|
+
Authorization: string;
|
|
8
|
+
"user-identity": string;
|
|
9
|
+
"Content-Type": string;
|
|
10
|
+
Accept: string;
|
|
11
|
+
};
|
|
12
|
+
fetch(path: string, query: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}, body: any, method: string, header: any): Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* @description: url请求参数组装
|
|
17
|
+
* @author ChenRui
|
|
18
|
+
* @date 2020/8/28 15:21
|
|
19
|
+
*/
|
|
20
|
+
urlQueryConvert(url: string, query: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}): string;
|
|
23
|
+
}
|
|
24
|
+
declare const apiService: ApiService;
|
|
25
|
+
export { apiService };
|