@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.
Files changed (58) hide show
  1. package/dist/index.css +115 -1
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.js +1 -1
  4. package/es/appCenter/script/routeMap.d.ts +1 -1
  5. package/es/appCenter/style/index.css +1 -1
  6. package/es/appCenter/style/index.less +1 -1
  7. package/es/index.css +115 -1
  8. package/es/index.d.ts +2 -0
  9. package/es/index.js +2 -0
  10. package/es/index.less +2 -0
  11. package/es/messageBox/component.d.ts +0 -0
  12. package/es/messageBox/component.js +145 -0
  13. package/es/messageBox/index.d.ts +2 -0
  14. package/es/messageBox/index.js +7 -0
  15. package/es/messageBox/list.d.ts +0 -0
  16. package/es/messageBox/list.js +116 -0
  17. package/es/messageBox/script/api.d.ts +6 -0
  18. package/es/messageBox/script/api.js +16 -0
  19. package/es/messageBox/style/css.js +1 -0
  20. package/es/messageBox/style/index.css +64 -0
  21. package/es/messageBox/style/index.d.ts +1 -0
  22. package/es/messageBox/style/index.js +1 -0
  23. package/es/messageBox/style/index.less +71 -0
  24. package/es/userAvater/component.d.ts +0 -0
  25. package/es/userAvater/component.js +167 -0
  26. package/es/userAvater/index.d.ts +2 -0
  27. package/es/userAvater/index.js +7 -0
  28. package/es/userAvater/script/api.d.ts +8 -0
  29. package/es/userAvater/script/api.js +32 -0
  30. package/es/userAvater/style/css.js +1 -0
  31. package/es/userAvater/style/index.css +50 -0
  32. package/es/userAvater/style/index.d.ts +1 -0
  33. package/es/userAvater/style/index.js +1 -0
  34. package/es/userAvater/style/index.less +54 -0
  35. package/es/utils/request.js +3 -2
  36. package/lib/appCenter/component.js +1 -1
  37. package/lib/appCenter/style/index.css +1 -1
  38. package/lib/appCenter/style/index.less +1 -1
  39. package/lib/index.css +115 -1
  40. package/lib/index.js +4 -0
  41. package/lib/index.less +2 -0
  42. package/lib/messageBox/component.js +146 -0
  43. package/lib/messageBox/index.js +8 -0
  44. package/lib/messageBox/list.js +117 -0
  45. package/lib/messageBox/script/api.js +19 -0
  46. package/lib/messageBox/style/css.js +2 -0
  47. package/lib/messageBox/style/index.css +64 -0
  48. package/lib/messageBox/style/index.js +2 -0
  49. package/lib/messageBox/style/index.less +71 -0
  50. package/lib/userAvater/component.js +168 -0
  51. package/lib/userAvater/index.js +8 -0
  52. package/lib/userAvater/script/api.js +37 -0
  53. package/lib/userAvater/style/css.js +2 -0
  54. package/lib/userAvater/style/index.css +50 -0
  55. package/lib/userAvater/style/index.js +2 -0
  56. package/lib/userAvater/style/index.less +54 -0
  57. package/lib/utils/request.js +3 -2
  58. 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,2 @@
1
+ "use strict";
2
+ require("./index.less");
@@ -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
+ }
@@ -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.Authorization = `Bearer ${auth.getToken()}`;
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",