@zgfe/modules-settings 2.1.0-zhongyuan-set.1 → 2.1.0-zhongyuan-set.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 +33 -33
- package/es/components/card/index.less +87 -87
- package/es/components/importMetaDialog/styles/index.less +115 -115
- package/es/components/pageLoading/index.less +7 -7
- package/es/components/picCircleSelect/bak/index copy 2.tsx.bak +92 -92
- package/es/components/picCircleSelect/bak/index copy 3.tsx.bak +58 -58
- package/es/components/picCircleSelect/bak/index copy 4.tsx.bak +66 -66
- package/es/components/picCircleSelect/bak/index copy 5.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy 6.tsx.bak +116 -116
- package/es/components/picCircleSelect/bak/index copy.tsx.bak +41 -41
- package/es/components/picCircleSelect/bak/index.tsx.bak +48 -48
- package/es/components/picCircleSelect/bak/index1.tsx.bak +46 -46
- package/es/components/picCircleSelect/bak/index2.tsx.bak +104 -104
- package/es/components/picCircleSelect/index.less +37 -37
- package/es/components/processCanvas/styles/customNode.less +149 -149
- package/es/components/processCanvas/styles/index.less +34 -34
- package/es/components/settingTabs/index.less +51 -51
- package/es/constants/icons/demo.css +539 -539
- package/es/constants/icons/demo_index.html +9871 -9871
- package/es/constants/icons/iconfont.css +1699 -1699
- package/es/constants/icons/iconfont.json +2956 -2956
- package/es/global.d.ts +4 -4
- package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
- package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
- package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
- package/es/modules/companySetting/appList/index.less +126 -126
- package/es/modules/companySetting/application/index.less +144 -144
- package/es/modules/companySetting/business/index.less +92 -92
- package/es/modules/companySetting/cost/index.less +38 -38
- package/es/modules/companySetting/department/index.less +157 -157
- package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
- package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
- package/es/modules/companySetting/edit/styles/authModule.less +82 -82
- package/es/modules/companySetting/edit/styles/user.less +54 -54
- package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
- package/es/modules/companySetting/index.less +90 -90
- package/es/modules/companySetting/info/index.less +42 -42
- package/es/modules/companySetting/mainPart/images/img2.svg +12 -12
- package/es/modules/companySetting/mainPart/index.less +239 -239
- package/es/modules/companySetting/operationLog/index.less +33 -33
- package/es/modules/companySetting/role/index.less +296 -296
- package/es/modules/companySetting/role/setDataRangeDialog/index.less +37 -37
- package/es/modules/companySetting/style/common.less +79 -79
- package/es/modules/companySetting/style/reset.less +117 -117
- package/es/modules/companySetting/user/index.less +363 -363
- package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
- package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
- package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
- package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
- package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
- package/es/modules/companySetting/wechatBinding/index.less +58 -58
- package/es/modules/createDemand/styles/index.less +403 -403
- package/es/modules/createDemand_bf/styles/index.less +222 -222
- package/es/modules/createProcess/components/index.less +52 -52
- package/es/modules/createProcess/index.less +114 -114
- package/es/modules/createProcess/title/index.less +53 -53
- package/es/modules/dealDemand/styles/index.less +265 -265
- package/es/modules/demandManage/styles/index.less +155 -155
- package/es/modules/getPassword/index.less +122 -122
- package/es/modules/messageList/index.less +81 -81
- package/es/modules/personalSetting/securityLog/index.less +11 -11
- package/es/modules/personalSetting/styles/unbinding.less +73 -73
- package/es/modules/pointMap/ImportModal/styles/index.less +91 -91
- package/es/modules/pointMap/createMetaDrawer.js +9 -7
- package/es/modules/pointMap/editTxt/index.less +55 -55
- package/es/modules/pointMap/styles/index.less +165 -165
- package/es/modules/pointMap/styles/pageInfo.less +439 -439
- package/es/modules/systemSetting/approvalmanage/approvalStrategy/index.less +14 -14
- package/es/modules/systemSetting/approvalmanage/index.less +5 -5
- package/es/modules/systemSetting/approvalmanage/processManage/index.less +39 -39
- package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -48
- package/es/modules/systemSetting/dictionaryItem/eventTagManagement/css/index.less +32 -32
- package/es/modules/systemSetting/index.css +161 -161
- package/es/modules/systemSetting/index.less +169 -169
- package/es/modules/systemSetting/notice/configItem/index.less +21 -21
- package/es/modules/systemSetting/notice/edit/index.less +26 -26
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
# @zgfe/modules-settings
|
|
2
|
-
|
|
3
|
-
## Getting Started
|
|
4
|
-
|
|
5
|
-
Install dependencies,
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
$ npm i
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Start the dev server,
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
$ npm start
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Build documentation,
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
$ npm run docs:build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Run test,
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
$ npm test
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Build library via `father`,
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
$ npm run build
|
|
33
|
-
```
|
|
1
|
+
# @zgfe/modules-settings
|
|
2
|
+
|
|
3
|
+
## Getting Started
|
|
4
|
+
|
|
5
|
+
Install dependencies,
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
$ npm i
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Start the dev server,
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
$ npm start
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Build documentation,
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
$ npm run docs:build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Run test,
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
$ npm test
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Build library via `father`,
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
$ npm run build
|
|
33
|
+
```
|
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
@import '../../constants/icons/iconfont.css';
|
|
2
|
-
|
|
3
|
-
.settings-card {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
gap: 16px;
|
|
7
|
-
align-items: flex-start;
|
|
8
|
-
// min-width: 368px;
|
|
9
|
-
// max-width: 368px;
|
|
10
|
-
height: 114px;
|
|
11
|
-
padding: 16px;
|
|
12
|
-
background-color: #fafafb;
|
|
13
|
-
border: 1px solid #f2f3f4;
|
|
14
|
-
border-radius: 8px;
|
|
15
|
-
|
|
16
|
-
&-header {
|
|
17
|
-
display: flex;
|
|
18
|
-
justify-content: space-between;
|
|
19
|
-
width: 100%;
|
|
20
|
-
line-height: 22px;
|
|
21
|
-
|
|
22
|
-
&-title {
|
|
23
|
-
display: flex;
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
color: var(--io-N-, #021429);
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
font-family: 'PingFang SC';
|
|
30
|
-
font-style: normal;
|
|
31
|
-
|
|
32
|
-
div {
|
|
33
|
-
width: 100%;
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
white-space: nowrap;
|
|
36
|
-
text-align: left;
|
|
37
|
-
text-overflow: ellipsis;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ant-tag {
|
|
42
|
-
flex: 0;
|
|
43
|
-
height: 24px;
|
|
44
|
-
margin: 0 8px;
|
|
45
|
-
padding: 1px 8px;
|
|
46
|
-
color: var(--io-i-, #165dff);
|
|
47
|
-
font-weight: 400;
|
|
48
|
-
font-family: 'PingFang SC';
|
|
49
|
-
background: var(--io-i1-, #e8efff);
|
|
50
|
-
border-radius: 2px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&-btnNodes {
|
|
55
|
-
display: flex;
|
|
56
|
-
gap: 16px;
|
|
57
|
-
color: var(--io-N4-, #9aa1a9);
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&-content {
|
|
63
|
-
width: 100%;
|
|
64
|
-
color: var(--io-N6-, #67727f);
|
|
65
|
-
&-item {
|
|
66
|
-
&-platform {
|
|
67
|
-
display: block;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&-empty {
|
|
73
|
-
display: flex;
|
|
74
|
-
align-items: center;
|
|
75
|
-
justify-content: center;
|
|
76
|
-
padding: 31px 0;
|
|
77
|
-
color: var(--io-i-, #165dff);
|
|
78
|
-
line-height: 1;
|
|
79
|
-
background: none;
|
|
80
|
-
cursor: pointer;
|
|
81
|
-
|
|
82
|
-
.bsicon {
|
|
83
|
-
color: var(--io-i-, #165dff);
|
|
84
|
-
font-size: 24px !important;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
@import '../../constants/icons/iconfont.css';
|
|
2
|
+
|
|
3
|
+
.settings-card {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 16px;
|
|
7
|
+
align-items: flex-start;
|
|
8
|
+
// min-width: 368px;
|
|
9
|
+
// max-width: 368px;
|
|
10
|
+
height: 114px;
|
|
11
|
+
padding: 16px;
|
|
12
|
+
background-color: #fafafb;
|
|
13
|
+
border: 1px solid #f2f3f4;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
|
|
16
|
+
&-header {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
width: 100%;
|
|
20
|
+
line-height: 22px;
|
|
21
|
+
|
|
22
|
+
&-title {
|
|
23
|
+
display: flex;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
color: var(--io-N-, #021429);
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
font-family: 'PingFang SC';
|
|
30
|
+
font-style: normal;
|
|
31
|
+
|
|
32
|
+
div {
|
|
33
|
+
width: 100%;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
text-align: left;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ant-tag {
|
|
42
|
+
flex: 0;
|
|
43
|
+
height: 24px;
|
|
44
|
+
margin: 0 8px;
|
|
45
|
+
padding: 1px 8px;
|
|
46
|
+
color: var(--io-i-, #165dff);
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
font-family: 'PingFang SC';
|
|
49
|
+
background: var(--io-i1-, #e8efff);
|
|
50
|
+
border-radius: 2px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-btnNodes {
|
|
55
|
+
display: flex;
|
|
56
|
+
gap: 16px;
|
|
57
|
+
color: var(--io-N4-, #9aa1a9);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-content {
|
|
63
|
+
width: 100%;
|
|
64
|
+
color: var(--io-N6-, #67727f);
|
|
65
|
+
&-item {
|
|
66
|
+
&-platform {
|
|
67
|
+
display: block;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-empty {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
padding: 31px 0;
|
|
77
|
+
color: var(--io-i-, #165dff);
|
|
78
|
+
line-height: 1;
|
|
79
|
+
background: none;
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
|
|
82
|
+
.bsicon {
|
|
83
|
+
color: var(--io-i-, #165dff);
|
|
84
|
+
font-size: 24px !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.import-meta-modal {
|
|
4
|
-
&-icon-file {
|
|
5
|
-
color: @primary-color;
|
|
6
|
-
font-size: 48px !important;
|
|
7
|
-
}
|
|
8
|
-
&-icon-export {
|
|
9
|
-
margin-right: @margin-xss;
|
|
10
|
-
}
|
|
11
|
-
&-export-btn {
|
|
12
|
-
display: block;
|
|
13
|
-
width: fit-content;
|
|
14
|
-
// margin-top: @margin-md;
|
|
15
|
-
}
|
|
16
|
-
.ant-upload.ant-upload-drag {
|
|
17
|
-
background: #fafafb;
|
|
18
|
-
/* io/中性/N2-置灰信息 */
|
|
19
|
-
border: 1px dashed #ccd0d4;
|
|
20
|
-
}
|
|
21
|
-
.ant-upload.ant-upload-drag .ant-upload {
|
|
22
|
-
padding: 40px 0;
|
|
23
|
-
}
|
|
24
|
-
&-export-container {
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
&-h1 {
|
|
27
|
-
margin-top: -8px;
|
|
28
|
-
margin-bottom: 4px;
|
|
29
|
-
}
|
|
30
|
-
&-h2 {
|
|
31
|
-
color: @text-color-secondary;
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&-show-container {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: space-between;
|
|
40
|
-
padding: 24px;
|
|
41
|
-
background: #fafafb;
|
|
42
|
-
/* io/中性/N1-按钮边框 线色 */
|
|
43
|
-
border: 1px solid #e6e7ea;
|
|
44
|
-
border-radius: 4px;
|
|
45
|
-
&-content {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
&-icon {
|
|
49
|
-
margin-right: 12px;
|
|
50
|
-
color: @primary-color;
|
|
51
|
-
font-size: 40px !important;
|
|
52
|
-
}
|
|
53
|
-
&-file {
|
|
54
|
-
&-title {
|
|
55
|
-
font-size: 16px;
|
|
56
|
-
}
|
|
57
|
-
&-size {
|
|
58
|
-
color: @text-color-secondary;
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-spin {
|
|
66
|
-
background: #fafafb;
|
|
67
|
-
border: 1px solid #e6e7ea;
|
|
68
|
-
border-radius: 4px;
|
|
69
|
-
&-icon.anticon {
|
|
70
|
-
color: @primary-color;
|
|
71
|
-
font-size: 24px;
|
|
72
|
-
}
|
|
73
|
-
.ant-spin-text {
|
|
74
|
-
margin-top: @margin-xs;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&-upload-txt {
|
|
79
|
-
font-size: 16px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ant-modal-body {
|
|
83
|
-
padding-top: 8px !important;
|
|
84
|
-
}
|
|
85
|
-
&-footer {
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: row;
|
|
88
|
-
align-items: center;
|
|
89
|
-
justify-content: space-between;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
.exportList {
|
|
93
|
-
&-importModal {
|
|
94
|
-
&-content {
|
|
95
|
-
}
|
|
96
|
-
&-tip {
|
|
97
|
-
margin: 0px 0px 10px;
|
|
98
|
-
padding: 5px 0px 5px 15px;
|
|
99
|
-
background-color: #e7f3fe;
|
|
100
|
-
border: 1px solid #b8e4ff;
|
|
101
|
-
border-radius: 4px;
|
|
102
|
-
.icon {
|
|
103
|
-
margin: 0px 10px;
|
|
104
|
-
color: #165dff;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
&-list {
|
|
108
|
-
height: 160px;
|
|
109
|
-
padding: 10px;
|
|
110
|
-
overflow-y: scroll;
|
|
111
|
-
border: 1px solid #e5e5e5;
|
|
112
|
-
border-radius: 4px;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.import-meta-modal {
|
|
4
|
+
&-icon-file {
|
|
5
|
+
color: @primary-color;
|
|
6
|
+
font-size: 48px !important;
|
|
7
|
+
}
|
|
8
|
+
&-icon-export {
|
|
9
|
+
margin-right: @margin-xss;
|
|
10
|
+
}
|
|
11
|
+
&-export-btn {
|
|
12
|
+
display: block;
|
|
13
|
+
width: fit-content;
|
|
14
|
+
// margin-top: @margin-md;
|
|
15
|
+
}
|
|
16
|
+
.ant-upload.ant-upload-drag {
|
|
17
|
+
background: #fafafb;
|
|
18
|
+
/* io/中性/N2-置灰信息 */
|
|
19
|
+
border: 1px dashed #ccd0d4;
|
|
20
|
+
}
|
|
21
|
+
.ant-upload.ant-upload-drag .ant-upload {
|
|
22
|
+
padding: 40px 0;
|
|
23
|
+
}
|
|
24
|
+
&-export-container {
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
&-h1 {
|
|
27
|
+
margin-top: -8px;
|
|
28
|
+
margin-bottom: 4px;
|
|
29
|
+
}
|
|
30
|
+
&-h2 {
|
|
31
|
+
color: @text-color-secondary;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-show-container {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
padding: 24px;
|
|
41
|
+
background: #fafafb;
|
|
42
|
+
/* io/中性/N1-按钮边框 线色 */
|
|
43
|
+
border: 1px solid #e6e7ea;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
&-content {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
&-icon {
|
|
49
|
+
margin-right: 12px;
|
|
50
|
+
color: @primary-color;
|
|
51
|
+
font-size: 40px !important;
|
|
52
|
+
}
|
|
53
|
+
&-file {
|
|
54
|
+
&-title {
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
}
|
|
57
|
+
&-size {
|
|
58
|
+
color: @text-color-secondary;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-spin {
|
|
66
|
+
background: #fafafb;
|
|
67
|
+
border: 1px solid #e6e7ea;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
&-icon.anticon {
|
|
70
|
+
color: @primary-color;
|
|
71
|
+
font-size: 24px;
|
|
72
|
+
}
|
|
73
|
+
.ant-spin-text {
|
|
74
|
+
margin-top: @margin-xs;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-upload-txt {
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-modal-body {
|
|
83
|
+
padding-top: 8px !important;
|
|
84
|
+
}
|
|
85
|
+
&-footer {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.exportList {
|
|
93
|
+
&-importModal {
|
|
94
|
+
&-content {
|
|
95
|
+
}
|
|
96
|
+
&-tip {
|
|
97
|
+
margin: 0px 0px 10px;
|
|
98
|
+
padding: 5px 0px 5px 15px;
|
|
99
|
+
background-color: #e7f3fe;
|
|
100
|
+
border: 1px solid #b8e4ff;
|
|
101
|
+
border-radius: 4px;
|
|
102
|
+
.icon {
|
|
103
|
+
margin: 0px 10px;
|
|
104
|
+
color: #165dff;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&-list {
|
|
108
|
+
height: 160px;
|
|
109
|
+
padding: 10px;
|
|
110
|
+
overflow-y: scroll;
|
|
111
|
+
border: 1px solid #e5e5e5;
|
|
112
|
+
border-radius: 4px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.settings-page-loading {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
width: 100%;
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
1
|
+
.settings-page-loading {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { Spin } from 'antd';
|
|
2
|
-
import React, { useEffect, useState } from 'react';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export const classPrefix = 'setting-pic-circle-select';
|
|
5
|
-
const tools = [
|
|
6
|
-
{
|
|
7
|
-
name: 'arrow',
|
|
8
|
-
text: '添加箭头',
|
|
9
|
-
icon: 'icon-tianjiajiantou1',
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
name: 'text',
|
|
13
|
-
text: '添加文字',
|
|
14
|
-
icon: 'icon-tianjiawenzi1',
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
const PageLoading: React.FC = () => {
|
|
18
|
-
const [size, setSize] = useState({ width: 500, height: 500 });
|
|
19
|
-
const [currentTool, setCurrentTool] = useState<string>();
|
|
20
|
-
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
init();
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
const init = () => {
|
|
26
|
-
loadImage('./images/zg_regist_top.png').then(() => {
|
|
27
|
-
this.initCanvas();
|
|
28
|
-
this.initCanvasEvent();
|
|
29
|
-
this.initEditors();
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const loadImage = (img: string) => {
|
|
34
|
-
return new Promise((resolve) => {
|
|
35
|
-
// if (utils.isImageBase64(img)) {
|
|
36
|
-
const imgEle = document.createElement('img');
|
|
37
|
-
imgEle.src = img;
|
|
38
|
-
imgEle.onload = () => {
|
|
39
|
-
// this.imgWidth = imgEle.width
|
|
40
|
-
// this.imgHeight = imgEle.height
|
|
41
|
-
// let scale = 1
|
|
42
|
-
// if (!this.primitiveSize && this.imgWidth > this.width) {
|
|
43
|
-
// scale = (this.width - 52) / this.imgWidth
|
|
44
|
-
// this.imgWidth = scale * this.imgWidth
|
|
45
|
-
// this.imgHeight = scale * this.imgHeight
|
|
46
|
-
// }
|
|
47
|
-
// this.imgObj = new fabric.Image(imgEle, {
|
|
48
|
-
// left: 0,
|
|
49
|
-
// top: 0,
|
|
50
|
-
// selectable: false,
|
|
51
|
-
// scaleX: scale,
|
|
52
|
-
// scaleY: scale
|
|
53
|
-
// })
|
|
54
|
-
resolve();
|
|
55
|
-
};
|
|
56
|
-
// } else if (utils.isURL(img)) {
|
|
57
|
-
// const that = this
|
|
58
|
-
// fabric.Image.fromURL(img, function(imgObj) {
|
|
59
|
-
// that.imgWidth = imgObj.width
|
|
60
|
-
// that.imgHeight = imgObj.height
|
|
61
|
-
// imgObj.set('selectable', false)
|
|
62
|
-
// that.imgObj = imgObj
|
|
63
|
-
// that.loading = false
|
|
64
|
-
// resolve()
|
|
65
|
-
// })
|
|
66
|
-
// }
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const selectTool = (tool: string) => {
|
|
71
|
-
setCurrentTool(tool);
|
|
72
|
-
};
|
|
73
|
-
return (
|
|
74
|
-
<div style={size}>
|
|
75
|
-
<div className="img-container" style={size}>
|
|
76
|
-
<canvas id="c"></canvas>
|
|
77
|
-
</div>
|
|
78
|
-
<ul className="tool-bar">
|
|
79
|
-
<li>操作</li>
|
|
80
|
-
{tools.map((item, i) => {
|
|
81
|
-
return (
|
|
82
|
-
<li key={i} onClick={() => selectTool(item.name)}>
|
|
83
|
-
{item.text}
|
|
84
|
-
</li>
|
|
85
|
-
);
|
|
86
|
-
})}
|
|
87
|
-
</ul>
|
|
88
|
-
</div>
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
export default PageLoading;
|
|
1
|
+
import { Spin } from 'antd';
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export const classPrefix = 'setting-pic-circle-select';
|
|
5
|
+
const tools = [
|
|
6
|
+
{
|
|
7
|
+
name: 'arrow',
|
|
8
|
+
text: '添加箭头',
|
|
9
|
+
icon: 'icon-tianjiajiantou1',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: 'text',
|
|
13
|
+
text: '添加文字',
|
|
14
|
+
icon: 'icon-tianjiawenzi1',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
17
|
+
const PageLoading: React.FC = () => {
|
|
18
|
+
const [size, setSize] = useState({ width: 500, height: 500 });
|
|
19
|
+
const [currentTool, setCurrentTool] = useState<string>();
|
|
20
|
+
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
init();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
const init = () => {
|
|
26
|
+
loadImage('./images/zg_regist_top.png').then(() => {
|
|
27
|
+
this.initCanvas();
|
|
28
|
+
this.initCanvasEvent();
|
|
29
|
+
this.initEditors();
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const loadImage = (img: string) => {
|
|
34
|
+
return new Promise((resolve) => {
|
|
35
|
+
// if (utils.isImageBase64(img)) {
|
|
36
|
+
const imgEle = document.createElement('img');
|
|
37
|
+
imgEle.src = img;
|
|
38
|
+
imgEle.onload = () => {
|
|
39
|
+
// this.imgWidth = imgEle.width
|
|
40
|
+
// this.imgHeight = imgEle.height
|
|
41
|
+
// let scale = 1
|
|
42
|
+
// if (!this.primitiveSize && this.imgWidth > this.width) {
|
|
43
|
+
// scale = (this.width - 52) / this.imgWidth
|
|
44
|
+
// this.imgWidth = scale * this.imgWidth
|
|
45
|
+
// this.imgHeight = scale * this.imgHeight
|
|
46
|
+
// }
|
|
47
|
+
// this.imgObj = new fabric.Image(imgEle, {
|
|
48
|
+
// left: 0,
|
|
49
|
+
// top: 0,
|
|
50
|
+
// selectable: false,
|
|
51
|
+
// scaleX: scale,
|
|
52
|
+
// scaleY: scale
|
|
53
|
+
// })
|
|
54
|
+
resolve();
|
|
55
|
+
};
|
|
56
|
+
// } else if (utils.isURL(img)) {
|
|
57
|
+
// const that = this
|
|
58
|
+
// fabric.Image.fromURL(img, function(imgObj) {
|
|
59
|
+
// that.imgWidth = imgObj.width
|
|
60
|
+
// that.imgHeight = imgObj.height
|
|
61
|
+
// imgObj.set('selectable', false)
|
|
62
|
+
// that.imgObj = imgObj
|
|
63
|
+
// that.loading = false
|
|
64
|
+
// resolve()
|
|
65
|
+
// })
|
|
66
|
+
// }
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const selectTool = (tool: string) => {
|
|
71
|
+
setCurrentTool(tool);
|
|
72
|
+
};
|
|
73
|
+
return (
|
|
74
|
+
<div style={size}>
|
|
75
|
+
<div className="img-container" style={size}>
|
|
76
|
+
<canvas id="c"></canvas>
|
|
77
|
+
</div>
|
|
78
|
+
<ul className="tool-bar">
|
|
79
|
+
<li>操作</li>
|
|
80
|
+
{tools.map((item, i) => {
|
|
81
|
+
return (
|
|
82
|
+
<li key={i} onClick={() => selectTool(item.name)}>
|
|
83
|
+
{item.text}
|
|
84
|
+
</li>
|
|
85
|
+
);
|
|
86
|
+
})}
|
|
87
|
+
</ul>
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export default PageLoading;
|