@cmstops/pro-compo 0.1.2 → 0.1.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/dist/index.css +115 -1
- package/dist/index.min.css +1 -1
- package/es/appCenter/component.js +1 -1
- package/es/appCenter/script/routeMap.d.ts +1 -1
- package/es/appCenter/style/index.css +1 -1
- package/es/appCenter/style/index.less +1 -1
- package/es/index.css +115 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +2 -0
- package/es/messageBox/component.d.ts +0 -0
- package/es/messageBox/component.js +145 -0
- package/es/messageBox/index.d.ts +2 -0
- package/es/messageBox/index.js +7 -0
- package/es/messageBox/list.d.ts +0 -0
- package/es/messageBox/list.js +116 -0
- package/es/messageBox/script/api.d.ts +6 -0
- package/es/messageBox/script/api.js +16 -0
- package/es/messageBox/style/css.js +1 -0
- package/es/messageBox/style/index.css +64 -0
- package/es/messageBox/style/index.d.ts +1 -0
- package/es/messageBox/style/index.js +1 -0
- package/es/messageBox/style/index.less +71 -0
- package/es/userAvater/component.d.ts +0 -0
- package/es/userAvater/component.js +167 -0
- package/es/userAvater/index.d.ts +2 -0
- package/es/userAvater/index.js +7 -0
- package/es/userAvater/script/api.d.ts +8 -0
- package/es/userAvater/script/api.js +32 -0
- package/es/userAvater/style/css.js +1 -0
- package/es/userAvater/style/index.css +50 -0
- package/es/userAvater/style/index.d.ts +1 -0
- package/es/userAvater/style/index.js +1 -0
- package/es/userAvater/style/index.less +54 -0
- package/es/utils/request.js +3 -2
- package/lib/appCenter/component.js +1 -1
- package/lib/appCenter/style/index.css +1 -1
- package/lib/appCenter/style/index.less +1 -1
- package/lib/index.css +115 -1
- package/lib/index.js +4 -0
- package/lib/index.less +2 -0
- package/lib/messageBox/component.js +146 -0
- package/lib/messageBox/index.js +8 -0
- package/lib/messageBox/list.js +117 -0
- package/lib/messageBox/script/api.js +19 -0
- package/lib/messageBox/style/css.js +2 -0
- package/lib/messageBox/style/index.css +64 -0
- package/lib/messageBox/style/index.js +2 -0
- package/lib/messageBox/style/index.less +71 -0
- package/lib/userAvater/component.js +168 -0
- package/lib/userAvater/index.js +8 -0
- package/lib/userAvater/script/api.js +37 -0
- package/lib/userAvater/style/css.js +2 -0
- package/lib/userAvater/style/index.css +50 -0
- package/lib/userAvater/style/index.js +2 -0
- package/lib/userAvater/style/index.less +54 -0
- package/lib/utils/request.js +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.user-avater-content-info {
|
|
2
|
+
width: 328px;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
padding: 24px;
|
|
8
|
+
padding-bottom: 0px;
|
|
9
|
+
line-height: 1;
|
|
10
|
+
}
|
|
11
|
+
.user-avater-content-info .avatar {
|
|
12
|
+
width: 74px;
|
|
13
|
+
height: 74px;
|
|
14
|
+
position: relative;
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
}
|
|
22
|
+
.user-avater-content-info .avatar .arco-avatar {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
}
|
|
26
|
+
.user-avater-content-info .nick-name {
|
|
27
|
+
font-size: 16px;
|
|
28
|
+
color: #1D2129;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
}
|
|
32
|
+
.user-avater-content-info .user-name,
|
|
33
|
+
.user-avater-content-info .user-email {
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
color: #86909C;
|
|
36
|
+
margin-bottom: 10px;
|
|
37
|
+
}
|
|
38
|
+
.user-avater-content-info .org-alias {
|
|
39
|
+
border: 1px solid #EBEEF5;
|
|
40
|
+
padding: 10px 20px;
|
|
41
|
+
border-radius: 40px;
|
|
42
|
+
}
|
|
43
|
+
.user-avater-content-info .b_info_bottom {
|
|
44
|
+
height: 52px;
|
|
45
|
+
padding: 10px 16px;
|
|
46
|
+
width: 100%;
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.user-avater-container {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.user-avater-content-info {
|
|
6
|
+
width: 328px;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding: 24px;
|
|
12
|
+
padding-bottom: 0px;
|
|
13
|
+
line-height: 1;
|
|
14
|
+
.avatar {
|
|
15
|
+
width: 74px;
|
|
16
|
+
height: 74px;
|
|
17
|
+
position: relative;
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
margin-bottom: 10px;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
.arco-avatar {
|
|
25
|
+
width: 100%;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.nick-name {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
color: #1D2129;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
margin-bottom: 10px;
|
|
34
|
+
}
|
|
35
|
+
.user-name,
|
|
36
|
+
.user-email {
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
color: #86909C;
|
|
39
|
+
margin-bottom: 10px;
|
|
40
|
+
}
|
|
41
|
+
.org-alias {
|
|
42
|
+
border: 1px solid #EBEEF5;
|
|
43
|
+
padding: 10px 20px;
|
|
44
|
+
border-radius: 40px;
|
|
45
|
+
}
|
|
46
|
+
.b_info_bottom {
|
|
47
|
+
height: 52px;
|
|
48
|
+
padding: 10px 16px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
}
|
package/lib/utils/request.js
CHANGED
|
@@ -14,7 +14,7 @@ function request(BASE_API, options) {
|
|
|
14
14
|
service.interceptors.request.use(
|
|
15
15
|
(config) => {
|
|
16
16
|
if (auth.getToken()) {
|
|
17
|
-
config.headers
|
|
17
|
+
config.headers["Authorization"] = `Bearer ${auth.getToken()}`;
|
|
18
18
|
}
|
|
19
19
|
return config;
|
|
20
20
|
},
|
|
@@ -28,8 +28,9 @@ function request(BASE_API, options) {
|
|
|
28
28
|
const res = response.data;
|
|
29
29
|
if (res.code !== 0) {
|
|
30
30
|
return Promise.reject(new Error(res.message || "Error"));
|
|
31
|
+
} else {
|
|
32
|
+
return res;
|
|
31
33
|
}
|
|
32
|
-
return res;
|
|
33
34
|
},
|
|
34
35
|
(error) => {
|
|
35
36
|
console.log("err" + error);
|