@dhccmobile/vue3-lo-form 2.0.0 → 2.0.2
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 +77 -70
- package/dist/demo.html +1 -10
- package/dist/vue3-lo-form.common.js +8704 -6939
- package/dist/vue3-lo-form.common.js.map +1 -1
- package/dist/vue3-lo-form.css +1 -1
- package/dist/vue3-lo-form.umd.js +8715 -6949
- 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 +72 -65
- package/src/App.vue +741 -741
- package/src/components/form/DvForm.vue +642 -642
- package/src/components/form/DvFormLayout.vue +1592 -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
package/src/shims-vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
declare module '*.vue' {
|
|
3
|
-
import type { DefineComponent } from 'vue'
|
|
4
|
-
const component: DefineComponent<{}, {}, any>
|
|
5
|
-
export default component
|
|
6
|
-
}
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
declare module '*.vue' {
|
|
3
|
+
import type { DefineComponent } from 'vue'
|
|
4
|
+
const component: DefineComponent<{}, {}, any>
|
|
5
|
+
export default component
|
|
6
|
+
}
|
package/src/store/dict.store.ts
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { dictLocalForageService } from "../services/dict-local-forage.service";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description: 表单版本管理
|
|
5
|
-
* @author ChenRui
|
|
6
|
-
* @date 2020/12/30 11:17
|
|
7
|
-
*/
|
|
8
|
-
class DictStore {
|
|
9
|
-
private static readonly DICTS = "dicts_data";
|
|
10
|
-
private static readonly TREE_DICTS = "treeDicts_data";
|
|
11
|
-
private static readonly MAP_DICTS = "map_dicts_data";
|
|
12
|
-
private static readonly MAP_TREE_DICTS = "map_treeDicts_data";
|
|
13
|
-
private static readonly VERSION = "dict_version";
|
|
14
|
-
|
|
15
|
-
constructor() {}
|
|
16
|
-
|
|
17
|
-
/**常规字典存储*/
|
|
18
|
-
public setDicts(nzTreeNodeOptions: any[]) {
|
|
19
|
-
dictLocalForageService.setItem(DictStore.DICTS, nzTreeNodeOptions);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public getDicts(): Promise<any[]> {
|
|
23
|
-
return dictLocalForageService.getItem(DictStore.DICTS);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**树形字典存储*/
|
|
27
|
-
public setTreeDicts(nzTreeNodeOptions: any[]) {
|
|
28
|
-
dictLocalForageService.setItem(DictStore.TREE_DICTS, nzTreeNodeOptions);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public getTreeDicts(): Promise<any[]> {
|
|
32
|
-
return dictLocalForageService.getItem(DictStore.TREE_DICTS);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**map型常规字典存储*/
|
|
36
|
-
public setMapDicts(nzTreeNodeOptions: any) {
|
|
37
|
-
dictLocalForageService.setItem(DictStore.MAP_DICTS, nzTreeNodeOptions);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
public getMapDicts(): Promise<any> {
|
|
41
|
-
return dictLocalForageService.getItem(DictStore.MAP_DICTS);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**map型树形字典存储*/
|
|
45
|
-
public setMapTreeDicts(nzTreeNodeOptions: any) {
|
|
46
|
-
dictLocalForageService.setItem(DictStore.MAP_TREE_DICTS, nzTreeNodeOptions);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
public getMapTreeDicts(): Promise<any> {
|
|
50
|
-
return dictLocalForageService.getItem(DictStore.MAP_TREE_DICTS);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/*字典版本存储*/
|
|
54
|
-
public setVersion(value: string) {
|
|
55
|
-
dictLocalForageService.setItem(DictStore.VERSION, value);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
public getVersion(): Promise<any> {
|
|
59
|
-
return dictLocalForageService.getItem(DictStore.VERSION);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
const dictStore = new DictStore();
|
|
63
|
-
export { dictStore };
|
|
1
|
+
import { dictLocalForageService } from "../services/dict-local-forage.service";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description: 表单版本管理
|
|
5
|
+
* @author ChenRui
|
|
6
|
+
* @date 2020/12/30 11:17
|
|
7
|
+
*/
|
|
8
|
+
class DictStore {
|
|
9
|
+
private static readonly DICTS = "dicts_data";
|
|
10
|
+
private static readonly TREE_DICTS = "treeDicts_data";
|
|
11
|
+
private static readonly MAP_DICTS = "map_dicts_data";
|
|
12
|
+
private static readonly MAP_TREE_DICTS = "map_treeDicts_data";
|
|
13
|
+
private static readonly VERSION = "dict_version";
|
|
14
|
+
|
|
15
|
+
constructor() {}
|
|
16
|
+
|
|
17
|
+
/**常规字典存储*/
|
|
18
|
+
public setDicts(nzTreeNodeOptions: any[]) {
|
|
19
|
+
dictLocalForageService.setItem(DictStore.DICTS, nzTreeNodeOptions);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public getDicts(): Promise<any[]> {
|
|
23
|
+
return dictLocalForageService.getItem(DictStore.DICTS);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**树形字典存储*/
|
|
27
|
+
public setTreeDicts(nzTreeNodeOptions: any[]) {
|
|
28
|
+
dictLocalForageService.setItem(DictStore.TREE_DICTS, nzTreeNodeOptions);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
public getTreeDicts(): Promise<any[]> {
|
|
32
|
+
return dictLocalForageService.getItem(DictStore.TREE_DICTS);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**map型常规字典存储*/
|
|
36
|
+
public setMapDicts(nzTreeNodeOptions: any) {
|
|
37
|
+
dictLocalForageService.setItem(DictStore.MAP_DICTS, nzTreeNodeOptions);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public getMapDicts(): Promise<any> {
|
|
41
|
+
return dictLocalForageService.getItem(DictStore.MAP_DICTS);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**map型树形字典存储*/
|
|
45
|
+
public setMapTreeDicts(nzTreeNodeOptions: any) {
|
|
46
|
+
dictLocalForageService.setItem(DictStore.MAP_TREE_DICTS, nzTreeNodeOptions);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
public getMapTreeDicts(): Promise<any> {
|
|
50
|
+
return dictLocalForageService.getItem(DictStore.MAP_TREE_DICTS);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*字典版本存储*/
|
|
54
|
+
public setVersion(value: string) {
|
|
55
|
+
dictLocalForageService.setItem(DictStore.VERSION, value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public getVersion(): Promise<any> {
|
|
59
|
+
return dictLocalForageService.getItem(DictStore.VERSION);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
const dictStore = new DictStore();
|
|
63
|
+
export { dictStore };
|
package/src/store/form.store.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { DesForm } from "../domain/DesForm";
|
|
2
|
-
import { formLocalForageService } from "../services/form-local-forage.service";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @description: 表单存储服务
|
|
6
|
-
* @author ChenRui
|
|
7
|
-
* @date 2020/12/30 11:17
|
|
8
|
-
*/
|
|
9
|
-
class FormStore {
|
|
10
|
-
private static readonly FORMS = "forms_data";
|
|
11
|
-
private static readonly VERSION = "forms_version";
|
|
12
|
-
|
|
13
|
-
constructor() {}
|
|
14
|
-
|
|
15
|
-
public setForms(desForm: DesForm[]) {
|
|
16
|
-
formLocalForageService.setItem(FormStore.FORMS, desForm);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public getForms(): Promise<DesForm[]> {
|
|
20
|
-
return formLocalForageService.getItem(FormStore.FORMS);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
public setVersion(value: string) {
|
|
24
|
-
formLocalForageService.setItem(FormStore.VERSION, value);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public getVersion(): Promise<any> {
|
|
28
|
-
return formLocalForageService.getItem(FormStore.VERSION);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const formStore = new FormStore();
|
|
32
|
-
export { formStore };
|
|
1
|
+
import { DesForm } from "../domain/DesForm";
|
|
2
|
+
import { formLocalForageService } from "../services/form-local-forage.service";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @description: 表单存储服务
|
|
6
|
+
* @author ChenRui
|
|
7
|
+
* @date 2020/12/30 11:17
|
|
8
|
+
*/
|
|
9
|
+
class FormStore {
|
|
10
|
+
private static readonly FORMS = "forms_data";
|
|
11
|
+
private static readonly VERSION = "forms_version";
|
|
12
|
+
|
|
13
|
+
constructor() {}
|
|
14
|
+
|
|
15
|
+
public setForms(desForm: DesForm[]) {
|
|
16
|
+
formLocalForageService.setItem(FormStore.FORMS, desForm);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
public getForms(): Promise<DesForm[]> {
|
|
20
|
+
return formLocalForageService.getItem(FormStore.FORMS);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public setVersion(value: string) {
|
|
24
|
+
formLocalForageService.setItem(FormStore.VERSION, value);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public getVersion(): Promise<any> {
|
|
28
|
+
return formLocalForageService.getItem(FormStore.VERSION);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const formStore = new FormStore();
|
|
32
|
+
export { formStore };
|
package/src/store/index.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";
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
//日期展示
|
|
2
|
-
.calendar-control-style {
|
|
3
|
-
height: 46px !important;
|
|
4
|
-
width: 46px !important;
|
|
5
|
-
.date-control-style {
|
|
6
|
-
width: 100%;
|
|
7
|
-
height: 64%;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: flex-start;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
padding-top: 8px;
|
|
12
|
-
.date-style {
|
|
13
|
-
padding-top: 4px;
|
|
14
|
-
font-size: 18px;
|
|
15
|
-
width: auto;
|
|
16
|
-
line-height: 20px;
|
|
17
|
-
}
|
|
18
|
-
.eest-day-style {
|
|
19
|
-
min-width: 12px;
|
|
20
|
-
width: 12px !important;
|
|
21
|
-
height: 24px;
|
|
22
|
-
font-size: 12px;
|
|
23
|
-
transform: scale(0.8, 0.8);
|
|
24
|
-
position: relative;
|
|
25
|
-
top: -4px;
|
|
26
|
-
line-height: 16px;
|
|
27
|
-
// 节假日样式
|
|
28
|
-
.holidays-style {
|
|
29
|
-
color: #3fb5eb70;
|
|
30
|
-
}
|
|
31
|
-
// 工作日样式
|
|
32
|
-
.weekday-style {
|
|
33
|
-
color: #ff000070;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.date-type-style {
|
|
38
|
-
width: 40px;
|
|
39
|
-
min-height: 32%;
|
|
40
|
-
height: auto;
|
|
41
|
-
padding: 4% 4px 4px 4px;
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-flow: wrap;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
margin: 0 auto;
|
|
46
|
-
|
|
47
|
-
> div {
|
|
48
|
-
width: 6px;
|
|
49
|
-
height: 6px;
|
|
50
|
-
border-radius: 50%;
|
|
51
|
-
padding: 3px;
|
|
52
|
-
margin: 1px;
|
|
53
|
-
}
|
|
54
|
-
// 交易日样式
|
|
55
|
-
.trading-day-style {
|
|
56
|
-
background-color: #FFA50070;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
//图例
|
|
61
|
-
.legend {
|
|
62
|
-
width: 100%;
|
|
63
|
-
height: 100%;
|
|
64
|
-
display: flex;
|
|
65
|
-
flex-flow: wrap;
|
|
66
|
-
padding: 4px;
|
|
67
|
-
|
|
68
|
-
.day-explain-style {
|
|
69
|
-
width: auto;
|
|
70
|
-
height: 18px;
|
|
71
|
-
line-height: 18px;
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
margin: 2px 12px 2px 0;
|
|
75
|
-
// 交易日样式
|
|
76
|
-
.trading-day-icon {
|
|
77
|
-
padding: 3px;
|
|
78
|
-
background-color: #FFA500;
|
|
79
|
-
margin-right: 4px;
|
|
80
|
-
border-radius: 50%;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
::v-deep(.ant-picker-date-panel) {
|
|
85
|
-
width: auto;
|
|
86
|
-
.ant-picker-content {
|
|
87
|
-
width: auto;
|
|
88
|
-
.ant-picker-cell {
|
|
89
|
-
padding: 0 !important;
|
|
90
|
-
}
|
|
91
|
-
.ant-picker-cell-in-view {
|
|
92
|
-
.calendar-control-style {
|
|
93
|
-
.date-control-style {
|
|
94
|
-
.eest-day-style {
|
|
95
|
-
// 节假日样式
|
|
96
|
-
.holidays-style {
|
|
97
|
-
color: #3fb5eb;
|
|
98
|
-
}
|
|
99
|
-
// 工作日样式
|
|
100
|
-
.weekday-style {
|
|
101
|
-
color: #ff0000;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
// 其他节日样式
|
|
106
|
-
.date-type-style {
|
|
107
|
-
// 交易日图例样式
|
|
108
|
-
.trading-day-style {
|
|
109
|
-
background-color: #FFA500 !important;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
|
|
115
|
-
height: auto;
|
|
116
|
-
.date-control-style {
|
|
117
|
-
// 选中样式
|
|
118
|
-
.eest-day-style {
|
|
119
|
-
div {
|
|
120
|
-
color: #ffffff !important;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
1
|
+
//日期展示
|
|
2
|
+
.calendar-control-style {
|
|
3
|
+
height: 46px !important;
|
|
4
|
+
width: 46px !important;
|
|
5
|
+
.date-control-style {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 64%;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding-top: 8px;
|
|
12
|
+
.date-style {
|
|
13
|
+
padding-top: 4px;
|
|
14
|
+
font-size: 18px;
|
|
15
|
+
width: auto;
|
|
16
|
+
line-height: 20px;
|
|
17
|
+
}
|
|
18
|
+
.eest-day-style {
|
|
19
|
+
min-width: 12px;
|
|
20
|
+
width: 12px !important;
|
|
21
|
+
height: 24px;
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
transform: scale(0.8, 0.8);
|
|
24
|
+
position: relative;
|
|
25
|
+
top: -4px;
|
|
26
|
+
line-height: 16px;
|
|
27
|
+
// 节假日样式
|
|
28
|
+
.holidays-style {
|
|
29
|
+
color: #3fb5eb70;
|
|
30
|
+
}
|
|
31
|
+
// 工作日样式
|
|
32
|
+
.weekday-style {
|
|
33
|
+
color: #ff000070;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.date-type-style {
|
|
38
|
+
width: 40px;
|
|
39
|
+
min-height: 32%;
|
|
40
|
+
height: auto;
|
|
41
|
+
padding: 4% 4px 4px 4px;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-flow: wrap;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
margin: 0 auto;
|
|
46
|
+
|
|
47
|
+
> div {
|
|
48
|
+
width: 6px;
|
|
49
|
+
height: 6px;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
padding: 3px;
|
|
52
|
+
margin: 1px;
|
|
53
|
+
}
|
|
54
|
+
// 交易日样式
|
|
55
|
+
.trading-day-style {
|
|
56
|
+
background-color: #FFA50070;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//图例
|
|
61
|
+
.legend {
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-flow: wrap;
|
|
66
|
+
padding: 4px;
|
|
67
|
+
|
|
68
|
+
.day-explain-style {
|
|
69
|
+
width: auto;
|
|
70
|
+
height: 18px;
|
|
71
|
+
line-height: 18px;
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
margin: 2px 12px 2px 0;
|
|
75
|
+
// 交易日样式
|
|
76
|
+
.trading-day-icon {
|
|
77
|
+
padding: 3px;
|
|
78
|
+
background-color: #FFA500;
|
|
79
|
+
margin-right: 4px;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
::v-deep(.ant-picker-date-panel) {
|
|
85
|
+
width: auto;
|
|
86
|
+
.ant-picker-content {
|
|
87
|
+
width: auto;
|
|
88
|
+
.ant-picker-cell {
|
|
89
|
+
padding: 0 !important;
|
|
90
|
+
}
|
|
91
|
+
.ant-picker-cell-in-view {
|
|
92
|
+
.calendar-control-style {
|
|
93
|
+
.date-control-style {
|
|
94
|
+
.eest-day-style {
|
|
95
|
+
// 节假日样式
|
|
96
|
+
.holidays-style {
|
|
97
|
+
color: #3fb5eb;
|
|
98
|
+
}
|
|
99
|
+
// 工作日样式
|
|
100
|
+
.weekday-style {
|
|
101
|
+
color: #ff0000;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// 其他节日样式
|
|
106
|
+
.date-type-style {
|
|
107
|
+
// 交易日图例样式
|
|
108
|
+
.trading-day-style {
|
|
109
|
+
background-color: #FFA500 !important;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
|
|
115
|
+
height: auto;
|
|
116
|
+
.date-control-style {
|
|
117
|
+
// 选中样式
|
|
118
|
+
.eest-day-style {
|
|
119
|
+
div {
|
|
120
|
+
color: #ffffff !important;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
126
|
}
|