@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,154 +1,154 @@
|
|
|
1
|
-
import { DesFormControl, FormControl, Validate } from "../domain";
|
|
2
|
-
interface Rule {
|
|
3
|
-
ruleType?: any;
|
|
4
|
-
ruleContent?: any;
|
|
5
|
-
describe?: any;
|
|
6
|
-
}
|
|
7
|
-
declare class ValidateGeneratorService {
|
|
8
|
-
/**
|
|
9
|
-
* @description: 填充校验规则
|
|
10
|
-
* @author ChenRui
|
|
11
|
-
* @date 2021/1/27 15:07
|
|
12
|
-
*/
|
|
13
|
-
fillCheckRule(formControl: FormControl, controlAttr: DesFormControl): void;
|
|
14
|
-
/**
|
|
15
|
-
* @description: 获取校验规则
|
|
16
|
-
* @author ChenRui
|
|
17
|
-
* @date 2021/7/19 17:55
|
|
18
|
-
*/
|
|
19
|
-
getBuiltInValidationRules(item: Rule, controlAttr: DesFormControl): Validate | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* @description: 相同的值
|
|
22
|
-
* @author ChenRui
|
|
23
|
-
* @date 2021/1/27 15:12
|
|
24
|
-
*/
|
|
25
|
-
genSameValue(item: Rule): Validate;
|
|
26
|
-
/**
|
|
27
|
-
* @description: 电子邮箱
|
|
28
|
-
* @author ChenRui
|
|
29
|
-
* @date 2021/1/27 15:15
|
|
30
|
-
*/
|
|
31
|
-
genMailBox(item: Rule): Validate;
|
|
32
|
-
/**
|
|
33
|
-
* @description: 正则匹配
|
|
34
|
-
* @author ChenRui
|
|
35
|
-
* @date 2021/1/27 15:17
|
|
36
|
-
*/
|
|
37
|
-
genRegEx(item: Rule): Validate;
|
|
38
|
-
/**
|
|
39
|
-
* @description: 最小文本长度
|
|
40
|
-
* @author ChenRui
|
|
41
|
-
* @date 2021/1/27 15:18
|
|
42
|
-
*/
|
|
43
|
-
genMinTextLength(item: Rule): Validate;
|
|
44
|
-
/**
|
|
45
|
-
* @description: 最大文本长度
|
|
46
|
-
* @author ChenRui
|
|
47
|
-
* @date 2021/1/27 15:21
|
|
48
|
-
*/
|
|
49
|
-
genMaxTextLength(item: Rule): Validate;
|
|
50
|
-
/**
|
|
51
|
-
* @description: 最小值
|
|
52
|
-
* @author ChenRui
|
|
53
|
-
* @date 2021/1/27 15:24
|
|
54
|
-
*/
|
|
55
|
-
genMinValue(item: Rule): Validate;
|
|
56
|
-
/**
|
|
57
|
-
* @description: 最大值
|
|
58
|
-
* @author ChenRui
|
|
59
|
-
* @date 2021/1/27 15:25
|
|
60
|
-
*/
|
|
61
|
-
genMaxValue(item: Rule): Validate;
|
|
62
|
-
/**
|
|
63
|
-
* @description: 指定的值
|
|
64
|
-
* @author ChenRui
|
|
65
|
-
* @date 2021/1/27 15:27
|
|
66
|
-
*/
|
|
67
|
-
genSpecifiedValue(item: Rule): Validate;
|
|
68
|
-
/**
|
|
69
|
-
* @description: 指定位数数字
|
|
70
|
-
* @author ChenRui
|
|
71
|
-
* @date 2021/1/27 15:31
|
|
72
|
-
*/
|
|
73
|
-
genSpecifiedDigitsNumber(item: Rule): Validate;
|
|
74
|
-
/**
|
|
75
|
-
* @description: 自动补位
|
|
76
|
-
* @author ChenRui
|
|
77
|
-
* @date 2021/1/27 15:59
|
|
78
|
-
*/
|
|
79
|
-
roundNumber(number: any, decimals: any): any;
|
|
80
|
-
/**
|
|
81
|
-
* @description: 日期不早于
|
|
82
|
-
* @author ChenRui
|
|
83
|
-
* @date 2021/1/27 16:06
|
|
84
|
-
*/
|
|
85
|
-
genDateNotEarlierThan(item: Rule): Validate;
|
|
86
|
-
/**
|
|
87
|
-
* @description: 日期不晚于
|
|
88
|
-
* @author ChenRui
|
|
89
|
-
* @date 2021/1/27 16:08
|
|
90
|
-
*/
|
|
91
|
-
genDateNoLaterThan(item: Rule): Validate;
|
|
92
|
-
/**
|
|
93
|
-
* @description: 指定范围的数字
|
|
94
|
-
* @author ChenRui
|
|
95
|
-
* @date 2021/1/27 16:35
|
|
96
|
-
*/
|
|
97
|
-
genSpecifiedRangeNumber(item: Rule): Validate;
|
|
98
|
-
/**
|
|
99
|
-
* @description: 手机号
|
|
100
|
-
* @author ChenRui
|
|
101
|
-
* @date 2021/1/27 16:55
|
|
102
|
-
*/
|
|
103
|
-
genPhoneNumber(item: Rule): Validate;
|
|
104
|
-
/**
|
|
105
|
-
* @description: 必填
|
|
106
|
-
* @author ChenRui
|
|
107
|
-
* @date 2021/1/27 15:28
|
|
108
|
-
*/
|
|
109
|
-
genRequired(item: Rule, controlType: string): Validate;
|
|
110
|
-
/**
|
|
111
|
-
* @description: 唯一行
|
|
112
|
-
* @author ChenRui
|
|
113
|
-
* @date 2021/1/27 17:16
|
|
114
|
-
*/
|
|
115
|
-
genLineUnique(item: Rule): Validate;
|
|
116
|
-
/**
|
|
117
|
-
* @description: 仅包含字母空格
|
|
118
|
-
* @author ChenRui
|
|
119
|
-
* @date 2021/1/27 17:21
|
|
120
|
-
*/
|
|
121
|
-
genLetterSpace(item: Rule): Validate;
|
|
122
|
-
/**
|
|
123
|
-
* @description: 数字字母下划线
|
|
124
|
-
* @author ChenRui
|
|
125
|
-
* @date 2021/1/27 17:28
|
|
126
|
-
*/
|
|
127
|
-
genAlphanumericUnderline(item: Rule): Validate;
|
|
128
|
-
/**
|
|
129
|
-
* @description: 字母数字
|
|
130
|
-
* @author ChenRui
|
|
131
|
-
* @date 2021/1/27 17:32
|
|
132
|
-
*/
|
|
133
|
-
genAlphanumeric(item: Rule): Validate;
|
|
134
|
-
/**
|
|
135
|
-
* @description: JS方法校验
|
|
136
|
-
* @author ChenRui
|
|
137
|
-
* @date 2021/1/27 17:42
|
|
138
|
-
*/
|
|
139
|
-
genJsMethodVerification(item: Rule): Validate;
|
|
140
|
-
/**
|
|
141
|
-
* @description: 后端校验
|
|
142
|
-
* @author ChenRui
|
|
143
|
-
* @date 2021/1/27 17:43
|
|
144
|
-
*/
|
|
145
|
-
genBackEndVerification(item: Rule): Validate;
|
|
146
|
-
/**
|
|
147
|
-
* @description: 座机号校验
|
|
148
|
-
* @author ChenRui
|
|
149
|
-
* @date 2021/4/14 11:40
|
|
150
|
-
*/
|
|
151
|
-
genLandlineNumber(item: Rule): Validate;
|
|
152
|
-
}
|
|
153
|
-
declare const validateGeneratorService: ValidateGeneratorService;
|
|
154
|
-
export { Rule, validateGeneratorService };
|
|
1
|
+
import { DesFormControl, FormControl, Validate } from "../domain";
|
|
2
|
+
interface Rule {
|
|
3
|
+
ruleType?: any;
|
|
4
|
+
ruleContent?: any;
|
|
5
|
+
describe?: any;
|
|
6
|
+
}
|
|
7
|
+
declare class ValidateGeneratorService {
|
|
8
|
+
/**
|
|
9
|
+
* @description: 填充校验规则
|
|
10
|
+
* @author ChenRui
|
|
11
|
+
* @date 2021/1/27 15:07
|
|
12
|
+
*/
|
|
13
|
+
fillCheckRule(formControl: FormControl, controlAttr: DesFormControl): void;
|
|
14
|
+
/**
|
|
15
|
+
* @description: 获取校验规则
|
|
16
|
+
* @author ChenRui
|
|
17
|
+
* @date 2021/7/19 17:55
|
|
18
|
+
*/
|
|
19
|
+
getBuiltInValidationRules(item: Rule, controlAttr: DesFormControl): Validate | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* @description: 相同的值
|
|
22
|
+
* @author ChenRui
|
|
23
|
+
* @date 2021/1/27 15:12
|
|
24
|
+
*/
|
|
25
|
+
genSameValue(item: Rule): Validate;
|
|
26
|
+
/**
|
|
27
|
+
* @description: 电子邮箱
|
|
28
|
+
* @author ChenRui
|
|
29
|
+
* @date 2021/1/27 15:15
|
|
30
|
+
*/
|
|
31
|
+
genMailBox(item: Rule): Validate;
|
|
32
|
+
/**
|
|
33
|
+
* @description: 正则匹配
|
|
34
|
+
* @author ChenRui
|
|
35
|
+
* @date 2021/1/27 15:17
|
|
36
|
+
*/
|
|
37
|
+
genRegEx(item: Rule): Validate;
|
|
38
|
+
/**
|
|
39
|
+
* @description: 最小文本长度
|
|
40
|
+
* @author ChenRui
|
|
41
|
+
* @date 2021/1/27 15:18
|
|
42
|
+
*/
|
|
43
|
+
genMinTextLength(item: Rule): Validate;
|
|
44
|
+
/**
|
|
45
|
+
* @description: 最大文本长度
|
|
46
|
+
* @author ChenRui
|
|
47
|
+
* @date 2021/1/27 15:21
|
|
48
|
+
*/
|
|
49
|
+
genMaxTextLength(item: Rule): Validate;
|
|
50
|
+
/**
|
|
51
|
+
* @description: 最小值
|
|
52
|
+
* @author ChenRui
|
|
53
|
+
* @date 2021/1/27 15:24
|
|
54
|
+
*/
|
|
55
|
+
genMinValue(item: Rule): Validate;
|
|
56
|
+
/**
|
|
57
|
+
* @description: 最大值
|
|
58
|
+
* @author ChenRui
|
|
59
|
+
* @date 2021/1/27 15:25
|
|
60
|
+
*/
|
|
61
|
+
genMaxValue(item: Rule): Validate;
|
|
62
|
+
/**
|
|
63
|
+
* @description: 指定的值
|
|
64
|
+
* @author ChenRui
|
|
65
|
+
* @date 2021/1/27 15:27
|
|
66
|
+
*/
|
|
67
|
+
genSpecifiedValue(item: Rule): Validate;
|
|
68
|
+
/**
|
|
69
|
+
* @description: 指定位数数字
|
|
70
|
+
* @author ChenRui
|
|
71
|
+
* @date 2021/1/27 15:31
|
|
72
|
+
*/
|
|
73
|
+
genSpecifiedDigitsNumber(item: Rule): Validate;
|
|
74
|
+
/**
|
|
75
|
+
* @description: 自动补位
|
|
76
|
+
* @author ChenRui
|
|
77
|
+
* @date 2021/1/27 15:59
|
|
78
|
+
*/
|
|
79
|
+
roundNumber(number: any, decimals: any): any;
|
|
80
|
+
/**
|
|
81
|
+
* @description: 日期不早于
|
|
82
|
+
* @author ChenRui
|
|
83
|
+
* @date 2021/1/27 16:06
|
|
84
|
+
*/
|
|
85
|
+
genDateNotEarlierThan(item: Rule): Validate;
|
|
86
|
+
/**
|
|
87
|
+
* @description: 日期不晚于
|
|
88
|
+
* @author ChenRui
|
|
89
|
+
* @date 2021/1/27 16:08
|
|
90
|
+
*/
|
|
91
|
+
genDateNoLaterThan(item: Rule): Validate;
|
|
92
|
+
/**
|
|
93
|
+
* @description: 指定范围的数字
|
|
94
|
+
* @author ChenRui
|
|
95
|
+
* @date 2021/1/27 16:35
|
|
96
|
+
*/
|
|
97
|
+
genSpecifiedRangeNumber(item: Rule): Validate;
|
|
98
|
+
/**
|
|
99
|
+
* @description: 手机号
|
|
100
|
+
* @author ChenRui
|
|
101
|
+
* @date 2021/1/27 16:55
|
|
102
|
+
*/
|
|
103
|
+
genPhoneNumber(item: Rule): Validate;
|
|
104
|
+
/**
|
|
105
|
+
* @description: 必填
|
|
106
|
+
* @author ChenRui
|
|
107
|
+
* @date 2021/1/27 15:28
|
|
108
|
+
*/
|
|
109
|
+
genRequired(item: Rule, controlType: string): Validate;
|
|
110
|
+
/**
|
|
111
|
+
* @description: 唯一行
|
|
112
|
+
* @author ChenRui
|
|
113
|
+
* @date 2021/1/27 17:16
|
|
114
|
+
*/
|
|
115
|
+
genLineUnique(item: Rule): Validate;
|
|
116
|
+
/**
|
|
117
|
+
* @description: 仅包含字母空格
|
|
118
|
+
* @author ChenRui
|
|
119
|
+
* @date 2021/1/27 17:21
|
|
120
|
+
*/
|
|
121
|
+
genLetterSpace(item: Rule): Validate;
|
|
122
|
+
/**
|
|
123
|
+
* @description: 数字字母下划线
|
|
124
|
+
* @author ChenRui
|
|
125
|
+
* @date 2021/1/27 17:28
|
|
126
|
+
*/
|
|
127
|
+
genAlphanumericUnderline(item: Rule): Validate;
|
|
128
|
+
/**
|
|
129
|
+
* @description: 字母数字
|
|
130
|
+
* @author ChenRui
|
|
131
|
+
* @date 2021/1/27 17:32
|
|
132
|
+
*/
|
|
133
|
+
genAlphanumeric(item: Rule): Validate;
|
|
134
|
+
/**
|
|
135
|
+
* @description: JS方法校验
|
|
136
|
+
* @author ChenRui
|
|
137
|
+
* @date 2021/1/27 17:42
|
|
138
|
+
*/
|
|
139
|
+
genJsMethodVerification(item: Rule): Validate;
|
|
140
|
+
/**
|
|
141
|
+
* @description: 后端校验
|
|
142
|
+
* @author ChenRui
|
|
143
|
+
* @date 2021/1/27 17:43
|
|
144
|
+
*/
|
|
145
|
+
genBackEndVerification(item: Rule): Validate;
|
|
146
|
+
/**
|
|
147
|
+
* @description: 座机号校验
|
|
148
|
+
* @author ChenRui
|
|
149
|
+
* @date 2021/4/14 11:40
|
|
150
|
+
*/
|
|
151
|
+
genLandlineNumber(item: Rule): Validate;
|
|
152
|
+
}
|
|
153
|
+
declare const validateGeneratorService: ValidateGeneratorService;
|
|
154
|
+
export { Rule, validateGeneratorService };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @description: 表单版本管理
|
|
3
|
-
* @author ChenRui
|
|
4
|
-
* @date 2020/12/30 11:17
|
|
5
|
-
*/
|
|
6
|
-
declare class DictStore {
|
|
7
|
-
private static readonly DICTS;
|
|
8
|
-
private static readonly TREE_DICTS;
|
|
9
|
-
private static readonly MAP_DICTS;
|
|
10
|
-
private static readonly MAP_TREE_DICTS;
|
|
11
|
-
private static readonly VERSION;
|
|
12
|
-
constructor();
|
|
13
|
-
/**常规字典存储*/
|
|
14
|
-
setDicts(nzTreeNodeOptions: any[]): void;
|
|
15
|
-
getDicts(): Promise<any[]>;
|
|
16
|
-
/**树形字典存储*/
|
|
17
|
-
setTreeDicts(nzTreeNodeOptions: any[]): void;
|
|
18
|
-
getTreeDicts(): Promise<any[]>;
|
|
19
|
-
/**map型常规字典存储*/
|
|
20
|
-
setMapDicts(nzTreeNodeOptions: any): void;
|
|
21
|
-
getMapDicts(): Promise<any>;
|
|
22
|
-
/**map型树形字典存储*/
|
|
23
|
-
setMapTreeDicts(nzTreeNodeOptions: any): void;
|
|
24
|
-
getMapTreeDicts(): Promise<any>;
|
|
25
|
-
setVersion(value: string): void;
|
|
26
|
-
getVersion(): Promise<any>;
|
|
27
|
-
}
|
|
28
|
-
declare const dictStore: DictStore;
|
|
29
|
-
export { dictStore };
|
|
1
|
+
/**
|
|
2
|
+
* @description: 表单版本管理
|
|
3
|
+
* @author ChenRui
|
|
4
|
+
* @date 2020/12/30 11:17
|
|
5
|
+
*/
|
|
6
|
+
declare class DictStore {
|
|
7
|
+
private static readonly DICTS;
|
|
8
|
+
private static readonly TREE_DICTS;
|
|
9
|
+
private static readonly MAP_DICTS;
|
|
10
|
+
private static readonly MAP_TREE_DICTS;
|
|
11
|
+
private static readonly VERSION;
|
|
12
|
+
constructor();
|
|
13
|
+
/**常规字典存储*/
|
|
14
|
+
setDicts(nzTreeNodeOptions: any[]): void;
|
|
15
|
+
getDicts(): Promise<any[]>;
|
|
16
|
+
/**树形字典存储*/
|
|
17
|
+
setTreeDicts(nzTreeNodeOptions: any[]): void;
|
|
18
|
+
getTreeDicts(): Promise<any[]>;
|
|
19
|
+
/**map型常规字典存储*/
|
|
20
|
+
setMapDicts(nzTreeNodeOptions: any): void;
|
|
21
|
+
getMapDicts(): Promise<any>;
|
|
22
|
+
/**map型树形字典存储*/
|
|
23
|
+
setMapTreeDicts(nzTreeNodeOptions: any): void;
|
|
24
|
+
getMapTreeDicts(): Promise<any>;
|
|
25
|
+
setVersion(value: string): void;
|
|
26
|
+
getVersion(): Promise<any>;
|
|
27
|
+
}
|
|
28
|
+
declare const dictStore: DictStore;
|
|
29
|
+
export { dictStore };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { DesForm } from "../domain/DesForm";
|
|
2
|
-
/**
|
|
3
|
-
* @description: 表单存储服务
|
|
4
|
-
* @author ChenRui
|
|
5
|
-
* @date 2020/12/30 11:17
|
|
6
|
-
*/
|
|
7
|
-
declare class FormStore {
|
|
8
|
-
private static readonly FORMS;
|
|
9
|
-
private static readonly VERSION;
|
|
10
|
-
constructor();
|
|
11
|
-
setForms(desForm: DesForm[]): void;
|
|
12
|
-
getForms(): Promise<DesForm[]>;
|
|
13
|
-
setVersion(value: string): void;
|
|
14
|
-
getVersion(): Promise<any>;
|
|
15
|
-
}
|
|
16
|
-
declare const formStore: FormStore;
|
|
17
|
-
export { formStore };
|
|
1
|
+
import { DesForm } from "../domain/DesForm";
|
|
2
|
+
/**
|
|
3
|
+
* @description: 表单存储服务
|
|
4
|
+
* @author ChenRui
|
|
5
|
+
* @date 2020/12/30 11:17
|
|
6
|
+
*/
|
|
7
|
+
declare class FormStore {
|
|
8
|
+
private static readonly FORMS;
|
|
9
|
+
private static readonly VERSION;
|
|
10
|
+
constructor();
|
|
11
|
+
setForms(desForm: DesForm[]): void;
|
|
12
|
+
getForms(): Promise<DesForm[]>;
|
|
13
|
+
setVersion(value: string): void;
|
|
14
|
+
getVersion(): Promise<any>;
|
|
15
|
+
}
|
|
16
|
+
declare const formStore: FormStore;
|
|
17
|
+
export { formStore };
|
package/types/store/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./form.store";
|
|
2
|
-
export * from "./dict.store";
|
|
1
|
+
export * from "./form.store";
|
|
2
|
+
export * from "./dict.store";
|
package/types/types/vfForm.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FormConfig } from "@/domain";
|
|
2
|
-
import { FormToolsService } from "@/services";
|
|
3
|
-
import { MathJsStatic } from "mathjs";
|
|
4
|
-
declare module "@vue/runtime-core" {
|
|
5
|
-
interface ComponentCustomProperties {
|
|
6
|
-
$qlForm: FormConfig;
|
|
7
|
-
$formToolsService: FormToolsService;
|
|
8
|
-
$mathjs: Partial<MathJsStatic>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
import { FormConfig } from "@/domain";
|
|
2
|
+
import { FormToolsService } from "@/services";
|
|
3
|
+
import { MathJsStatic } from "mathjs";
|
|
4
|
+
declare module "@vue/runtime-core" {
|
|
5
|
+
interface ComponentCustomProperties {
|
|
6
|
+
$qlForm: FormConfig;
|
|
7
|
+
$formToolsService: FormToolsService;
|
|
8
|
+
$mathjs: Partial<MathJsStatic>;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/.env.local.bak
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
node: true,
|
|
5
|
-
},
|
|
6
|
-
extends: ["plugin:vue/essential", "eslint:recommended", "@vue/typescript/recommended", "@vue/prettier", "@vue/prettier/@typescript-eslint"],
|
|
7
|
-
parserOptions: {
|
|
8
|
-
ecmaVersion: 2020,
|
|
9
|
-
},
|
|
10
|
-
rules: {
|
|
11
|
-
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
12
|
-
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
13
|
-
"prettier/prettier": [
|
|
14
|
-
"error",
|
|
15
|
-
{
|
|
16
|
-
printWidth: 400,
|
|
17
|
-
endOfLine: "auto",
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
21
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
22
|
-
"@typescript-eslint/no-explicit-any": "off",
|
|
23
|
-
"@typescript-eslint/no-this-alias": 0,
|
|
24
|
-
"@typescript-eslint/camelcase": 0,
|
|
25
|
-
"@typescript-eslint/no-var-requires": 0,
|
|
26
|
-
"vue/no-v-model-argument": "off",
|
|
27
|
-
},
|
|
28
|
-
};
|
package/babel.config.js
DELETED
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/index.html
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
7
|
-
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
|
8
|
-
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
9
|
-
</head>
|
|
10
|
-
<body>
|
|
11
|
-
<noscript>
|
|
12
|
-
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
13
|
-
</noscript>
|
|
14
|
-
<div id="app"></div>
|
|
15
|
-
<!-- built files will be auto injected -->
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|