@dhccmobile/vue3-lo-form 0.1.0

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.
Files changed (160) hide show
  1. package/.eslintrc.js +29 -0
  2. package/README.md +62 -0
  3. package/babel.config.js +3 -0
  4. package/dist/demo.html +10 -0
  5. package/dist/vue3-lo-form.common.js +119725 -0
  6. package/dist/vue3-lo-form.common.js.map +1 -0
  7. package/dist/vue3-lo-form.css +1 -0
  8. package/dist/vue3-lo-form.umd.js +119735 -0
  9. package/dist/vue3-lo-form.umd.js.map +1 -0
  10. package/dist/vue3-lo-form.umd.min.js +38 -0
  11. package/dist/vue3-lo-form.umd.min.js.map +1 -0
  12. package/package.json +61 -0
  13. package/public/favicon.ico +0 -0
  14. package/public/index.html +17 -0
  15. package/src/App.vue +715 -0
  16. package/src/components/form/DvForm.vue +586 -0
  17. package/src/components/form/DvFormLayout.vue +1568 -0
  18. package/src/components/form/StretchText.vue +77 -0
  19. package/src/components/index.ts +3 -0
  20. package/src/constants/config/form-template.config.ts +32 -0
  21. package/src/constants/config/form.config.ts +4 -0
  22. package/src/constants/config/storage.config.ts +4 -0
  23. package/src/constants/encode-assets/icons.ts +0 -0
  24. package/src/constants/encode-assets/svg.ts +9 -0
  25. package/src/constants/enum/builtIn-label.enum.ts +5 -0
  26. package/src/constants/enum/cache-type.enum.ts +7 -0
  27. package/src/constants/enum/control-format-type.enum.ts +9 -0
  28. package/src/constants/enum/dynamic-option-type.enum.ts +6 -0
  29. package/src/constants/enum/form-bus-attr.enum.ts +8 -0
  30. package/src/constants/enum/form-field-class.enum.ts +7 -0
  31. package/src/constants/enum/form-field-type.enum.ts +25 -0
  32. package/src/constants/enum/form-type.enum.ts +5 -0
  33. package/src/constants/enum/index.ts +19 -0
  34. package/src/constants/enum/lateral-arrangement.enum.ts +9 -0
  35. package/src/constants/enum/money-unit.enum.ts +6 -0
  36. package/src/constants/enum/option-type.enum.ts +5 -0
  37. package/src/constants/enum/submitted-type.enum.ts +12 -0
  38. package/src/constants/enum/support-upload-type.enum.ts +5 -0
  39. package/src/constants/enum/switch.enum.ts +5 -0
  40. package/src/constants/enum/upload-type.enum.ts +17 -0
  41. package/src/constants/enum/validate-rules.enum.ts +25 -0
  42. package/src/constants/enum/validate-status.enum.ts +8 -0
  43. package/src/constants/enum/vertical-arrangement.enum.ts +7 -0
  44. package/src/constants/enum/zoom-type.ts +6 -0
  45. package/src/constants/index.ts +3 -0
  46. package/src/core/FormApi.ts +865 -0
  47. package/src/core/index.ts +1 -0
  48. package/src/domain/AbstractControl.ts +6 -0
  49. package/src/domain/Control.ts +14 -0
  50. package/src/domain/CustomFormat.ts +6 -0
  51. package/src/domain/DesForm.ts +48 -0
  52. package/src/domain/DesFormControl.ts +223 -0
  53. package/src/domain/DesFormLayout.ts +51 -0
  54. package/src/domain/FieldChangeHistory.ts +9 -0
  55. package/src/domain/FormConfig.ts +12 -0
  56. package/src/domain/FormControl.ts +125 -0
  57. package/src/domain/FormEnum.ts +9 -0
  58. package/src/domain/FormGroup.ts +42 -0
  59. package/src/domain/FormRestfulResponse.ts +6 -0
  60. package/src/domain/ProvideInjectData.ts +9 -0
  61. package/src/domain/SysDictDetail.ts +25 -0
  62. package/src/domain/SysDictInfo.ts +31 -0
  63. package/src/domain/SysDictTreeDetail.ts +43 -0
  64. package/src/domain/index.ts +12 -0
  65. package/src/filtres/amount-capitalization.filter.ts +136 -0
  66. package/src/filtres/extract-options.filter.ts +53 -0
  67. package/src/filtres/generate-grid-column-end.filter.ts +22 -0
  68. package/src/filtres/generate-grid-template-columns.filter.ts +24 -0
  69. package/src/filtres/switch-enum-convert.filter.ts +18 -0
  70. package/src/filtres/zoom-multiple.filter.ts +32 -0
  71. package/src/index.ts +67 -0
  72. package/src/main.ts +17 -0
  73. package/src/services/api.service.ts +73 -0
  74. package/src/services/clean-local-forage.service.ts +58 -0
  75. package/src/services/dict-local-forage.service.ts +58 -0
  76. package/src/services/form-bean-utils.service.ts +41 -0
  77. package/src/services/form-local-forage.service.ts +59 -0
  78. package/src/services/form-tools.service.ts +497 -0
  79. package/src/services/form-tree-node-convert.service.ts +216 -0
  80. package/src/services/form-validate.service.ts +103 -0
  81. package/src/services/index.ts +9 -0
  82. package/src/services/router.service.ts +96 -0
  83. package/src/services/validate-generator.service.ts +710 -0
  84. package/src/shims-vue.d.ts +6 -0
  85. package/src/store/dict.store.ts +63 -0
  86. package/src/store/form.store.ts +32 -0
  87. package/src/store/index.ts +2 -0
  88. package/src/styles/index.scss +167 -0
  89. package/src/types/vfForm.ts +11 -0
  90. package/tsconfig.json +40 -0
  91. package/types/components/index.d.ts +3 -0
  92. package/types/constants/config/form-template.config.d.ts +30 -0
  93. package/types/constants/config/form.config.d.ts +4 -0
  94. package/types/constants/config/storage.config.d.ts +4 -0
  95. package/types/constants/encode-assets/icons.d.ts +0 -0
  96. package/types/constants/encode-assets/svg.d.ts +5 -0
  97. package/types/constants/enum/builtIn-label.enum.d.ts +7 -0
  98. package/types/constants/enum/cache-type.enum.d.ts +15 -0
  99. package/types/constants/enum/control-format-type.enum.d.ts +23 -0
  100. package/types/constants/enum/dynamic-option-type.enum.d.ts +11 -0
  101. package/types/constants/enum/form-bus-attr.enum.d.ts +19 -0
  102. package/types/constants/enum/form-field-class.enum.d.ts +18 -0
  103. package/types/constants/enum/form-field-type.enum.d.ts +111 -0
  104. package/types/constants/enum/form-type.enum.d.ts +11 -0
  105. package/types/constants/enum/index.d.ts +19 -0
  106. package/types/constants/enum/lateral-arrangement.enum.d.ts +23 -0
  107. package/types/constants/enum/money-unit.enum.d.ts +15 -0
  108. package/types/constants/enum/option-type.enum.d.ts +11 -0
  109. package/types/constants/enum/submitted-type.enum.d.ts +35 -0
  110. package/types/constants/enum/support-upload-type.enum.d.ts +11 -0
  111. package/types/constants/enum/switch.enum.d.ts +11 -0
  112. package/types/constants/enum/upload-type.enum.d.ts +59 -0
  113. package/types/constants/enum/validate-rules.enum.d.ts +2 -0
  114. package/types/constants/enum/validate-status.enum.d.ts +2 -0
  115. package/types/constants/enum/vertical-arrangement.enum.d.ts +21 -0
  116. package/types/constants/enum/zoom-type.d.ts +15 -0
  117. package/types/constants/index.d.ts +3 -0
  118. package/types/core/FormApi.d.ts +326 -0
  119. package/types/core/index.d.ts +1 -0
  120. package/types/domain/AbstractControl.d.ts +5 -0
  121. package/types/domain/Control.d.ts +13 -0
  122. package/types/domain/CustomFormat.d.ts +5 -0
  123. package/types/domain/DesForm.d.ts +32 -0
  124. package/types/domain/DesFormControl.d.ts +148 -0
  125. package/types/domain/DesFormLayout.d.ts +33 -0
  126. package/types/domain/FieldChangeHistory.d.ts +9 -0
  127. package/types/domain/FormConfig.d.ts +12 -0
  128. package/types/domain/FormControl.d.ts +60 -0
  129. package/types/domain/FormEnum.d.ts +10 -0
  130. package/types/domain/FormGroup.d.ts +27 -0
  131. package/types/domain/FormRestfulResponse.d.ts +6 -0
  132. package/types/domain/ProvideInjectData.d.ts +9 -0
  133. package/types/domain/SysDictDetail.d.ts +16 -0
  134. package/types/domain/SysDictInfo.d.ts +20 -0
  135. package/types/domain/SysDictTreeDetail.d.ts +28 -0
  136. package/types/domain/index.d.ts +12 -0
  137. package/types/filtres/amount-capitalization.filter.d.ts +7 -0
  138. package/types/filtres/extract-options.filter.d.ts +13 -0
  139. package/types/filtres/generate-grid-column-end.filter.d.ts +11 -0
  140. package/types/filtres/generate-grid-template-columns.filter.d.ts +11 -0
  141. package/types/filtres/switch-enum-convert.filter.d.ts +2 -0
  142. package/types/filtres/zoom-multiple.filter.d.ts +3 -0
  143. package/types/index.d.ts +12 -0
  144. package/types/main.d.ts +2 -0
  145. package/types/services/api.service.d.ts +25 -0
  146. package/types/services/clean-local-forage.service.d.ts +28 -0
  147. package/types/services/dict-local-forage.service.d.ts +28 -0
  148. package/types/services/form-bean-utils.service.d.ts +23 -0
  149. package/types/services/form-local-forage.service.d.ts +28 -0
  150. package/types/services/form-tools.service.d.ts +109 -0
  151. package/types/services/form-tree-node-convert.service.d.ts +94 -0
  152. package/types/services/form-validate.service.d.ts +32 -0
  153. package/types/services/index.d.ts +9 -0
  154. package/types/services/router.service.d.ts +40 -0
  155. package/types/services/validate-generator.service.d.ts +154 -0
  156. package/types/store/dict.store.d.ts +29 -0
  157. package/types/store/form.store.d.ts +17 -0
  158. package/types/store/index.d.ts +2 -0
  159. package/types/types/vfForm.d.ts +10 -0
  160. package/vue.config.js +29 -0
@@ -0,0 +1,148 @@
1
+ export declare class DesFormControl {
2
+ formFieldId: string;
3
+ formId: string;
4
+ layoutId: string;
5
+ boundProperty: string;
6
+ extendBoundPropertyOne: string;
7
+ extendBoundPropertyTwo: string;
8
+ formFieldDescribe: string;
9
+ controlType: string;
10
+ tableFieldOrder: number | undefined;
11
+ fieldDefaultValue: any;
12
+ titleWidth: string;
13
+ isBoldTitle: string | boolean;
14
+ isHideTitle: string | boolean;
15
+ titleColor: string;
16
+ placeholder: string;
17
+ tips: string;
18
+ isNotEdit: string | boolean;
19
+ bindingPrefix: string;
20
+ bindingSuffix: string;
21
+ builtInFrontLabel: string;
22
+ builtInPostLabel: string;
23
+ isHideControl: string | boolean;
24
+ controlWidth: string;
25
+ isPasswordBox: string | boolean;
26
+ initRowHeight: number | undefined;
27
+ isFixedRowHeight: string | boolean;
28
+ formatType: string;
29
+ minValue: number | undefined;
30
+ maxValue: number | undefined;
31
+ step: number | undefined;
32
+ decimalPlaces: number | undefined;
33
+ thousandthPercentileFormat: string | boolean;
34
+ unit: string;
35
+ moneyUnit: string;
36
+ defineOptionalUnits: string;
37
+ defineOptionalUnitsDefault: string;
38
+ zoomType: string;
39
+ zoomMultiple: number | undefined;
40
+ isShowCapitalization: string | boolean;
41
+ isLineFeedDisplay: string | boolean;
42
+ isOptionType: string | boolean;
43
+ optionConfig: any;
44
+ dynamicOptionType: string;
45
+ generalDictionary: string;
46
+ generalDictionaryOptions: any;
47
+ treeShape: string;
48
+ treeShapeOptions: any;
49
+ disableNonLeafNodes: string | boolean;
50
+ dateFormat: string;
51
+ timeFormat: string;
52
+ isSupportMultiple: string | boolean;
53
+ maxUploadNumber: number | undefined;
54
+ limitSize: number | undefined;
55
+ supportUploadType: string;
56
+ customUploadType: any;
57
+ extendUploadType: string;
58
+ attachmentExtendProperties: string;
59
+ isMultipleChoice: string | boolean;
60
+ isSearchable: string | boolean;
61
+ canAddEntry: string | boolean;
62
+ isClearButton: string | boolean;
63
+ hiddenDropdown: string | boolean;
64
+ onOpeningValue: string;
65
+ whenClosedValue: string;
66
+ onOpeningText: string;
67
+ whenClosedText: string;
68
+ customFieldName: string;
69
+ textFold: string | boolean;
70
+ enableAutoComplete: string | boolean;
71
+ autoCompleteOptions: any[];
72
+ verificationRules: any;
73
+ busAttr: any;
74
+ constructor(options?: {
75
+ formFieldId?: string;
76
+ formId?: string;
77
+ layoutId?: string;
78
+ boundProperty?: string;
79
+ extendBoundPropertyOne?: string;
80
+ extendBoundPropertyTwo?: string;
81
+ formFieldDescribe?: string;
82
+ controlType?: string;
83
+ tableFieldOrder?: number;
84
+ fieldDefaultValue?: any;
85
+ titleWidth?: string;
86
+ isBoldTitle?: string;
87
+ isHideTitle?: string;
88
+ titleColor?: string;
89
+ placeholder?: string;
90
+ tips?: string;
91
+ isNotEdit?: string;
92
+ bindingPrefix?: string;
93
+ bindingSuffix?: string;
94
+ builtInFrontLabel?: string;
95
+ builtInPostLabel?: string;
96
+ isHideControl?: string;
97
+ controlWidth?: string;
98
+ isPasswordBox?: string;
99
+ initRowHeight?: number;
100
+ isFixedRowHeight?: string;
101
+ formatType?: string;
102
+ minValue?: number;
103
+ maxValue?: number;
104
+ step?: number;
105
+ decimalPlaces?: number;
106
+ thousandthPercentileFormat?: string;
107
+ unit?: string;
108
+ moneyUnit?: string;
109
+ defineOptionalUnits?: string;
110
+ defineOptionalUnitsDefault?: string;
111
+ zoomType?: string;
112
+ zoomMultiple?: number;
113
+ isShowCapitalization?: string;
114
+ isLineFeedDisplay?: string;
115
+ isOptionType?: string;
116
+ optionConfig?: any;
117
+ dynamicOptionType?: string;
118
+ generalDictionary?: string;
119
+ generalDictionaryOptions?: any;
120
+ treeShape?: string;
121
+ treeShapeOptions?: any;
122
+ disableNonLeafNodes?: string | boolean;
123
+ dateFormat?: string;
124
+ timeFormat?: string;
125
+ isSupportMultiple?: string;
126
+ maxUploadNumber?: number;
127
+ limitSize?: number;
128
+ supportUploadType?: string;
129
+ customUploadType?: any;
130
+ extendUploadType?: string;
131
+ attachmentExtendProperties?: string;
132
+ isMultipleChoice?: string;
133
+ isSearchable?: string;
134
+ canAddEntry?: string;
135
+ isClearButton?: string;
136
+ hiddenDropdown?: string;
137
+ onOpeningValue?: string;
138
+ whenClosedValue?: string;
139
+ onOpeningText?: string;
140
+ whenClosedText?: string;
141
+ customFieldName?: string;
142
+ textFold?: string;
143
+ enableAutoComplete?: string;
144
+ autoCompleteOptions?: any[];
145
+ verificationRules?: any;
146
+ busAttr?: any;
147
+ });
148
+ }
@@ -0,0 +1,33 @@
1
+ import { DesFormControl } from "./DesFormControl";
2
+ export declare class DesFormLayout {
3
+ layoutId: string;
4
+ formId: string;
5
+ parentLayoutId: string;
6
+ layoutName: string;
7
+ layoutType: string;
8
+ gridSpace: number | undefined;
9
+ gridColumnConfig: any;
10
+ gridLateralArrangement: string;
11
+ gridVerticalArrangement: string;
12
+ layoutOrder: number | undefined;
13
+ labelSpan: string;
14
+ controlSpan: string;
15
+ desFormControls: DesFormControl[];
16
+ subDesFormLayout: DesFormLayout[];
17
+ constructor(options?: {
18
+ layoutId?: string;
19
+ formId?: string;
20
+ parentLayoutId?: string;
21
+ layoutName?: string;
22
+ layoutType?: string;
23
+ gridSpace?: number;
24
+ gridColumnConfig?: any;
25
+ gridLateralArrangement?: string;
26
+ gridVerticalArrangement?: string;
27
+ layoutOrder?: number;
28
+ labelSpan?: string;
29
+ controlSpan?: string;
30
+ desFormControls?: DesFormControl[];
31
+ subDesFormLayout?: DesFormLayout[];
32
+ });
33
+ }
@@ -0,0 +1,9 @@
1
+ export interface FieldChangeHistory {
2
+ [key: string]: FieldChangeHistoryItem[];
3
+ }
4
+ export interface FieldChangeHistoryItem {
5
+ time: string;
6
+ before: string;
7
+ after: string;
8
+ author: string;
9
+ }
@@ -0,0 +1,12 @@
1
+ export declare type LoadMode = "static" | "dynamic";
2
+ export interface FormConfig {
3
+ url?: string;
4
+ dictUrl?: string;
5
+ dictRestLoadMode?: string;
6
+ dictRestLoadBody?: any;
7
+ dictRestLoadHeaders?: any;
8
+ dictRestLoadOnlyBody?: boolean;
9
+ loadMode?: LoadMode;
10
+ appId?: string;
11
+ onlySimpleLoadConfig?: boolean;
12
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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 {};
@@ -0,0 +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
+ }
@@ -0,0 +1,6 @@
1
+ export interface FormRestfulResponse {
2
+ code?: number;
3
+ msg?: string;
4
+ data?: any;
5
+ meta?: any;
6
+ }
@@ -0,0 +1,9 @@
1
+ export interface ProvideInjectData {
2
+ labelSpan?: any;
3
+ controlSpan?: any;
4
+ edit?: boolean | undefined;
5
+ metaRefresh?: any;
6
+ refreshCheckFeedbackFlag?: any;
7
+ widthCompatibleMode?: boolean;
8
+ formValidateStateResetMark?: any;
9
+ }
@@ -0,0 +1,16 @@
1
+ export declare class SysDictDetail {
2
+ dicDetailId: string;
3
+ dictId: string;
4
+ dictField: string;
5
+ dictName: string;
6
+ dictKey: string;
7
+ dictValue: string;
8
+ constructor(options?: {
9
+ dicDetailId?: string;
10
+ dictId?: string;
11
+ dictField?: string;
12
+ dictName?: string;
13
+ dictKey?: string;
14
+ dictValue?: string;
15
+ });
16
+ }
@@ -0,0 +1,20 @@
1
+ import { SysDictDetail } from "./SysDictDetail";
2
+ import { SysDictTreeDetail } from "./SysDictTreeDetail";
3
+ export declare class SysDictInfo {
4
+ dictId: string;
5
+ appId: string;
6
+ dictField: string;
7
+ dictName: string;
8
+ dictType: string;
9
+ sysDictDetails: SysDictDetail[];
10
+ sysDictTreeDetails: SysDictTreeDetail[];
11
+ constructor(options?: {
12
+ dictId?: string;
13
+ appId?: string;
14
+ dictField?: string;
15
+ dictName?: string;
16
+ dictType?: string;
17
+ sysDictDetails?: SysDictDetail[];
18
+ sysDictTreeDetails?: SysDictTreeDetail[];
19
+ });
20
+ }
@@ -0,0 +1,28 @@
1
+ export declare class SysDictTreeDetail {
2
+ treedictId: string;
3
+ dictId: string;
4
+ appId: string;
5
+ treedictField: string;
6
+ treedictName: string;
7
+ treedictKey: string;
8
+ treedictValue: string;
9
+ treedictFid: string;
10
+ treedictLevel: string;
11
+ isLeaf: string;
12
+ sortNo: string;
13
+ subSysDictTreeDetail: SysDictTreeDetail[];
14
+ constructor(options?: {
15
+ treedictId?: string;
16
+ dictId?: string;
17
+ appId?: string;
18
+ treedictField?: string;
19
+ treedictName?: string;
20
+ treedictKey?: string;
21
+ treedictValue?: string;
22
+ treedictFid?: string;
23
+ treedictLevel?: string;
24
+ isLeaf?: string;
25
+ sortNo?: string;
26
+ subSysDictTreeDetail?: SysDictTreeDetail[];
27
+ });
28
+ }
@@ -0,0 +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";
@@ -0,0 +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;
@@ -0,0 +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 };
@@ -0,0 +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;
@@ -0,0 +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;
@@ -0,0 +1,2 @@
1
+ declare const switchEnumConvert: (code: string, switchEnumFiled: any, attribute?: string | undefined, defaultVal?: any) => any;
2
+ export default switchEnumConvert;
@@ -0,0 +1,3 @@
1
+ import { FormControl } from "@/domain/FormControl";
2
+ declare const zoomMultiple: (code: any, formControl: FormControl) => any;
3
+ export default zoomMultiple;
@@ -0,0 +1,12 @@
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
+ declare const VueLoForm: {
10
+ install: any;
11
+ };
12
+ export default VueLoForm;
@@ -0,0 +1,2 @@
1
+ import "ant-design-vue/dist/antd.css";
2
+ import "@dhccmobile/common-style/css/common-style.css";
@@ -0,0 +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 };
@@ -0,0 +1,28 @@
1
+ import { FormConfig } from "../domain/FormConfig";
2
+ declare class CleanLocalForageService {
3
+ localForage: any;
4
+ config: any;
5
+ get formConfig(): Partial<FormConfig>;
6
+ constructor();
7
+ init(): void;
8
+ /**
9
+ * @description: 设值
10
+ * @author ChenRui
11
+ * @date 2021/3/12 16:31
12
+ */
13
+ setItem(key: string, value: any): any;
14
+ /**
15
+ * @description: 取值
16
+ * @author ChenRui
17
+ * @date 2021/3/12 16:31
18
+ */
19
+ getItem(key: string): Promise<any>;
20
+ /**
21
+ * @description: 删除实例
22
+ * @author ChenRui
23
+ * @date 2021/6/22 11:08
24
+ */
25
+ dropInstance(): void;
26
+ }
27
+ declare const cleanLocalForageService: CleanLocalForageService;
28
+ export { CleanLocalForageService, cleanLocalForageService };
@@ -0,0 +1,28 @@
1
+ import { FormConfig } from "../domain/FormConfig";
2
+ declare class DictLocalForageService {
3
+ localForage: any;
4
+ config: any;
5
+ get formConfig(): Partial<FormConfig>;
6
+ constructor();
7
+ init(): void;
8
+ /**
9
+ * @description: 设值
10
+ * @author ChenRui
11
+ * @date 2021/3/12 16:31
12
+ */
13
+ setItem(key: string, value: any): any;
14
+ /**
15
+ * @description: 取值
16
+ * @author ChenRui
17
+ * @date 2021/3/12 16:31
18
+ */
19
+ getItem(key: string): Promise<any>;
20
+ /**
21
+ * @description: 删除实例
22
+ * @author ChenRui
23
+ * @date 2021/6/22 11:08
24
+ */
25
+ dropInstance(): void;
26
+ }
27
+ declare const dictLocalForageService: DictLocalForageService;
28
+ export { DictLocalForageService, dictLocalForageService };
@@ -0,0 +1,23 @@
1
+ declare class FormBeanUtilsService {
2
+ constructor();
3
+ /**
4
+ * @description: 对象拷贝
5
+ * @author ChenRui
6
+ * @date 2020/8/29 19:54
7
+ */
8
+ copy(obj: any): any;
9
+ /**
10
+ * @description: 字符串转对象
11
+ * @author ChenRui
12
+ * @date 2020/8/29 19:54
13
+ */
14
+ parse(str: string | null): any;
15
+ /**
16
+ * @description: 对象转字符串
17
+ * @author ChenRui
18
+ * @date 2020/8/29 19:54
19
+ */
20
+ stringify(obj: any): string;
21
+ }
22
+ declare const formBeanUtilsService: FormBeanUtilsService;
23
+ export { formBeanUtilsService };
@@ -0,0 +1,28 @@
1
+ import { FormConfig } from "../domain/FormConfig";
2
+ declare class FormLocalForageService {
3
+ localForage: any;
4
+ config: any;
5
+ get formConfig(): Partial<FormConfig>;
6
+ constructor();
7
+ init(): void;
8
+ /**
9
+ * @description: 设值
10
+ * @author ChenRui
11
+ * @date 2021/3/12 16:31
12
+ */
13
+ setItem(key: string, value: any): any;
14
+ /**
15
+ * @description: 取值
16
+ * @author ChenRui
17
+ * @date 2021/3/12 16:31
18
+ */
19
+ getItem(key: string): Promise<any>;
20
+ /**
21
+ * @description: 删除实例
22
+ * @author ChenRui
23
+ * @date 2021/6/22 11:08
24
+ */
25
+ dropInstance(): void;
26
+ }
27
+ declare const formLocalForageService: FormLocalForageService;
28
+ export { FormLocalForageService, formLocalForageService };