@titaui/pc 1.7.101 → 1.8.3
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/lib/components/dialog/index.css +7 -1
- package/lib/components/dialog/index.js +7 -6
- package/lib/components/form/form-fields/input/index.css +22 -7
- package/lib/components/form/form-fields/input/index.js +11 -8
- package/lib/components/form/form-fields/input-verification-code/index.css +117 -0
- package/lib/components/form/form-fields/input-verification-code/index.js +230 -0
- package/lib/components/form/form-fields/password/index.css +2 -2
- package/lib/components/form/form-fields/radios/index.js +1 -1
- package/lib/components/form/index.js +4 -1
- package/lib/components/nav-top/components/user-message/components/empty/index.js +4 -2
- package/lib/components/nav-top/components/user-message/msg/index.js +1 -1
- package/lib/components/table/index.css +4 -0
- package/lib/components/table/index.js +3 -0
- package/lib/components/upload/index.js +2 -2
- package/lib/components/upload-photo-modal/constant.js +29 -0
- package/lib/components/upload-photo-modal/img/browser-preview-bgc.png +0 -0
- package/lib/components/upload-photo-modal/index.css +288 -0
- package/lib/components/upload-photo-modal/index.js +439 -0
- package/lib/components/upload-photo-modal/request-api.js +62 -0
- package/lib/components/user-selector/request-apis.js +1 -1
- package/lib/index.js +8 -0
- package/lib/pages/personal-info/components/base-info/index.css +36 -1
- package/lib/pages/personal-info/components/base-info/index.js +22 -90
- package/lib/pages/personal-info/components/edit-info/index.css +19 -0
- package/lib/pages/personal-info/components/edit-info/index.js +209 -0
- package/lib/pages/personal-info/components/edit-info/input/index.css +89 -0
- package/lib/pages/personal-info/components/edit-info/input/index.js +199 -0
- package/lib/pages/personal-info/components/person-photo/index.css +88 -0
- package/lib/pages/personal-info/components/person-photo/index.js +86 -0
- package/lib/pages/personal-info/index.js +3 -1
- package/package.json +3 -1
- package/src/components/dialog/index.js +2 -1
- package/src/components/dialog/index.scss +6 -1
- package/src/components/form/form-fields/input/index.scss +19 -7
- package/src/components/form/form-fields/input/index.tsx +9 -4
- package/src/components/form/form-fields/input-verification-code/index.scss +108 -0
- package/src/components/form/form-fields/input-verification-code/index.tsx +171 -0
- package/src/components/form/form-fields/password/index.scss +2 -2
- package/src/components/form/form-fields/radios/index.tsx +2 -2
- package/src/components/form/index.tsx +2 -0
- package/src/components/nav-top/components/user-message/components/empty/index.tsx +3 -2
- package/src/components/nav-top/components/user-message/msg/index.tsx +1 -1
- package/src/components/table/index.js +1 -0
- package/src/components/table/index.scss +5 -0
- package/src/components/upload/index.tsx +4 -4
- package/src/components/upload-photo-modal/constant.ts +27 -0
- package/src/components/upload-photo-modal/img/browser-preview-bgc.png +0 -0
- package/src/components/upload-photo-modal/index.scss +258 -0
- package/src/components/upload-photo-modal/index.tsx +331 -0
- package/src/components/upload-photo-modal/request-api.ts +33 -0
- package/src/components/user-selector/request-apis.js +1 -1
- package/src/index.js +1 -0
- package/src/pages/personal-info/components/base-info/index.scss +30 -1
- package/src/pages/personal-info/components/base-info/index.tsx +26 -97
- package/src/pages/personal-info/components/edit-info/index.scss +20 -0
- package/src/pages/personal-info/components/edit-info/index.tsx +166 -0
- package/src/pages/personal-info/components/edit-info/input/index.scss +82 -0
- package/src/pages/personal-info/components/edit-info/input/index.tsx +145 -0
- package/src/pages/personal-info/components/person-photo/index.scss +80 -0
- package/src/pages/personal-info/components/person-photo/index.tsx +49 -0
- package/src/pages/personal-info/index.tsx +2 -0
|
@@ -200,7 +200,7 @@ var Upload = /*#__PURE__*/function (_PureComponent) {
|
|
|
200
200
|
;
|
|
201
201
|
uploadStartFiles.push(uploadStartFile);
|
|
202
202
|
|
|
203
|
-
_this._dealUploadStart(uploadStartFiles); // 处理开始上传的文件
|
|
203
|
+
_this._dealUploadStart(uploadStartFiles); // 处理开始上传的文件
|
|
204
204
|
|
|
205
205
|
|
|
206
206
|
formData.append('file', element);
|
|
@@ -226,7 +226,7 @@ var Upload = /*#__PURE__*/function (_PureComponent) {
|
|
|
226
226
|
|
|
227
227
|
xhr.onreadystatechange = function () {
|
|
228
228
|
if (xhr.readyState == 4 && xhr.status == 200) {
|
|
229
|
-
var result = Object.assign({}, _objectSpread({}, JSON.parse(xhr.responseText).Result[0])); // 上传成功接口返回数据
|
|
229
|
+
var result = Object.assign({}, _objectSpread({}, JSON.parse(xhr.responseText).Result[0])); // 上传成功接口返回数据
|
|
230
230
|
|
|
231
231
|
result.percentComplete = 100;
|
|
232
232
|
result.IsSuccess = !!result.IsSuccess;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.List = void 0;
|
|
7
|
+
var List = [{
|
|
8
|
+
id: 'person',
|
|
9
|
+
accept: '.jpg,.jpeg,.gif,.png',
|
|
10
|
+
autoCropArea: 0.5,
|
|
11
|
+
initialAspectRatio: 1,
|
|
12
|
+
tips: '仅支持 jpg、jpeg、gif、png 格式 建议图片最小尺寸 150*150px',
|
|
13
|
+
previewTitle: '预览'
|
|
14
|
+
}, {
|
|
15
|
+
id: 'enterprise',
|
|
16
|
+
accept: '.jpg,.jpeg,.gif,.png',
|
|
17
|
+
autoCropArea: 1,
|
|
18
|
+
initialAspectRatio: 5,
|
|
19
|
+
tips: '建议 logo 尺寸 400*80 logo 最佳适配颜色为白色 仅支持 jpg、jpeg、gif、png 格式',
|
|
20
|
+
previewTitle: 'logo 预览'
|
|
21
|
+
}, {
|
|
22
|
+
id: 'browser',
|
|
23
|
+
accept: '',
|
|
24
|
+
autoCropArea: 0.5,
|
|
25
|
+
initialAspectRatio: 1,
|
|
26
|
+
tips: '图标尺寸 18*18,超过将被浏览器压缩',
|
|
27
|
+
previewTitle: '浏览器图标预览'
|
|
28
|
+
}];
|
|
29
|
+
exports.List = List;
|
|
Binary file
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
.tita-ui-change-person-photo__img {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0 32px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tita-ui-change-person-photo__img .cropper-wrap-box {
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.tita-ui-change-person-photo__img .cropper-canvas {
|
|
13
|
+
border-radius: 12px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.tita-ui-change-person-photo__img .cropper-crop {
|
|
17
|
+
border-radius: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.tita-ui-change-person-photo__upload {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
padding: 0 32px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tita-ui-change-person-photo__upload-preview {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.tita-ui-change-person-photo__upload-right {
|
|
34
|
+
position: relative;
|
|
35
|
+
width: 240px;
|
|
36
|
+
height: 240px;
|
|
37
|
+
background: #f0f2f5;
|
|
38
|
+
border-radius: 12px;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
padding: 30px;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.tita-ui-change-person-photo__upload-right-input {
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 76px;
|
|
49
|
+
width: 240px;
|
|
50
|
+
height: 60px;
|
|
51
|
+
opacity: 0;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tita-ui-change-person-photo__upload-right-icon {
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
margin-top: 46px;
|
|
58
|
+
font-size: 32px;
|
|
59
|
+
color: #2879ff;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tita-ui-change-person-photo__upload-right-title {
|
|
63
|
+
margin-top: 4px;
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
color: #2879ff;
|
|
67
|
+
line-height: 18px;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.tita-ui-change-person-photo__upload-right-tips {
|
|
72
|
+
margin-top: 8px;
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
color: #a4acb9;
|
|
76
|
+
line-height: 18px;
|
|
77
|
+
text-align: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tita-ui-change-person-photo__upload-left {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
align-items: center;
|
|
84
|
+
margin-left: 36px;
|
|
85
|
+
width: 136px;
|
|
86
|
+
height: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tita-ui-change-person-photo__upload-left-box1 {
|
|
90
|
+
width: 136px;
|
|
91
|
+
height: 136px;
|
|
92
|
+
background: #f0f2f5;
|
|
93
|
+
border-radius: 50%;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.tita-ui-change-person-photo__upload-left-box2 {
|
|
97
|
+
width: 48px;
|
|
98
|
+
height: 48px;
|
|
99
|
+
background: #f0f2f5;
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
margin-top: 14px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.tita-ui-change-person-photo__upload-left-box3 {
|
|
105
|
+
width: 28px;
|
|
106
|
+
height: 28px;
|
|
107
|
+
background: #f0f2f5;
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
margin-top: 14px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.tita-ui-change-person-photo__upload-left-box {
|
|
113
|
+
width: 160px;
|
|
114
|
+
height: 32px;
|
|
115
|
+
background: #F0F2F5;
|
|
116
|
+
border-radius: 2px;
|
|
117
|
+
border: 1px solid #E9ECF0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.tita-ui-change-person-photo__upload-left-preview {
|
|
121
|
+
margin-top: 8px;
|
|
122
|
+
font-size: 14px;
|
|
123
|
+
font-weight: 400;
|
|
124
|
+
color: #3F4755;
|
|
125
|
+
line-height: 22px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.tita-ui-change-person-photo__preview {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.tita-ui-change-person-photo__preview-box {
|
|
136
|
+
position: relative;
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.tita-ui-change-person-photo__preview-box-bgc {
|
|
143
|
+
width: 160px;
|
|
144
|
+
height: 32px;
|
|
145
|
+
background: #2879FF;
|
|
146
|
+
border-radius: 2px;
|
|
147
|
+
border: 1px solid #E9ECF0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.tita-ui-change-person-photo__preview-box-browser {
|
|
151
|
+
margin-left: 16px;
|
|
152
|
+
width: 176px;
|
|
153
|
+
height: 48px;
|
|
154
|
+
background: #F0F2F5;
|
|
155
|
+
border-radius: 2px;
|
|
156
|
+
border: 1px solid #E9ECF0;
|
|
157
|
+
background-image: url("./img/browser-preview-bgc.png");
|
|
158
|
+
background-size: 170px 28px;
|
|
159
|
+
background-position: center center;
|
|
160
|
+
background-repeat: no-repeat;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.tita-ui-change-person-photo__preview-box1 {
|
|
164
|
+
width: 136px;
|
|
165
|
+
height: 136px;
|
|
166
|
+
border-radius: 50%;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.tita-ui-change-person-photo__preview-box2 {
|
|
170
|
+
margin-top: 14px;
|
|
171
|
+
width: 48px;
|
|
172
|
+
height: 48px;
|
|
173
|
+
border-radius: 50%;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.tita-ui-change-person-photo__preview-box3 {
|
|
177
|
+
margin-top: 14px;
|
|
178
|
+
width: 28px;
|
|
179
|
+
height: 28px;
|
|
180
|
+
border-radius: 50%;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.tita-ui-change-person-photo__preview-enterprise-img {
|
|
184
|
+
position: absolute;
|
|
185
|
+
top: 1px;
|
|
186
|
+
right: 45px;
|
|
187
|
+
width: 70px;
|
|
188
|
+
height: 28px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.tita-ui-change-person-photo__preview-enterprise-title {
|
|
192
|
+
margin-top: 36px;
|
|
193
|
+
font-size: 14px;
|
|
194
|
+
font-weight: 400;
|
|
195
|
+
color: #3F4755;
|
|
196
|
+
line-height: 22px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.tita-ui-change-person-photo__preview-browser-img {
|
|
200
|
+
position: absolute;
|
|
201
|
+
top: 15px;
|
|
202
|
+
left: 16px;
|
|
203
|
+
width: 18px;
|
|
204
|
+
height: 18px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.tita-ui-change-person-photo__preview-browser-name {
|
|
208
|
+
position: absolute;
|
|
209
|
+
top: 15px;
|
|
210
|
+
right: 10px;
|
|
211
|
+
font-size: 12px;
|
|
212
|
+
font-weight: 400;
|
|
213
|
+
color: #3F4755;
|
|
214
|
+
line-height: 18px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.tita-ui-change-person-photo__preview-browser-title {
|
|
218
|
+
margin-top: 58px;
|
|
219
|
+
font-size: 14px;
|
|
220
|
+
font-weight: 400;
|
|
221
|
+
color: #3F4755;
|
|
222
|
+
line-height: 22px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.tita-ui-change-person-photo__preview-title {
|
|
226
|
+
margin-top: 8px;
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
font-weight: 400;
|
|
229
|
+
color: #6f7886;
|
|
230
|
+
line-height: 22px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.tita-ui-change-person-photo__title {
|
|
234
|
+
position: relative;
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
justify-content: space-between;
|
|
238
|
+
box-sizing: border-box;
|
|
239
|
+
padding: 8px 32px 0 32px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.tita-ui-change-person-photo__title-input {
|
|
243
|
+
display: none;
|
|
244
|
+
position: absolute;
|
|
245
|
+
width: 240px;
|
|
246
|
+
height: 30px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.tita-ui-change-person-photo__title-input--show {
|
|
250
|
+
display: block;
|
|
251
|
+
opacity: 0;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
width: 56px;
|
|
254
|
+
height: 22px;
|
|
255
|
+
position: absolute;
|
|
256
|
+
left: 124px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.tita-ui-change-person-photo__title-again {
|
|
260
|
+
margin-left: 92px;
|
|
261
|
+
margin-top: 8px;
|
|
262
|
+
font-size: 14px;
|
|
263
|
+
font-weight: 400;
|
|
264
|
+
color: #bfc7d5;
|
|
265
|
+
line-height: 22px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.tita-ui-change-person-photo__title-again--show {
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
color: #2879ff;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.tita-ui-change-person-photo__title-again--show:hover {
|
|
274
|
+
color: #DFE3EA;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.tita-ui-change-person-photo__title-again--hover {
|
|
278
|
+
color: #DFE3EA;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.tita-ui-change-person-photo__title-preview {
|
|
282
|
+
margin-right: 54px;
|
|
283
|
+
margin-top: 8px;
|
|
284
|
+
font-size: 14px;
|
|
285
|
+
font-weight: 400;
|
|
286
|
+
color: #6f7886;
|
|
287
|
+
line-height: 22px;
|
|
288
|
+
}
|