@titaui/pc 1.10.10 → 1.10.13

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 (27) hide show
  1. package/lib/components/communication/CommunicationRecord.js +7 -7
  2. package/lib/components/communication/index.css +7 -7
  3. package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
  4. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +12 -2
  5. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +2 -10
  6. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
  7. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
  8. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +9 -7
  9. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -6
  10. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
  11. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
  12. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
  13. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
  14. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -2
  15. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +1 -1
  16. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +12 -4
  17. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +2 -10
  18. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +1 -1
  19. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
  20. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +1 -1
  21. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +1 -1
  22. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +1 -1
  23. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
  24. package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
  25. package/lib/components/dynamic/dynamic-list/index.js +2 -1
  26. package/lib/components/grid-layout/okr-progress/index.js +20 -30
  27. package/package.json +1 -1
@@ -80,14 +80,16 @@ var CommunicationRecord = function CommunicationRecord(_ref) {
80
80
  display: 'flex',
81
81
  alignItems: 'center'
82
82
  }
83
- }, communicationTrack.commentType != 2 ? /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
83
+ }, communicationTrack.commentType != 2 ? /*#__PURE__*/_react["default"].createElement("span", {
84
+ className: "".concat(prefix, "__communication-item")
85
+ }, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
84
86
  userName: communicationTrack.publishUser.name,
85
87
  userId: communicationTrack.publishUser.userId
86
88
  }), /*#__PURE__*/_react["default"].createElement("span", {
87
89
  className: "".concat(prefix, "__communication-time")
88
- }, /*#__PURE__*/_react["default"].createElement("span", {
89
- className: "".concat(prefix, "__communication-time-point")
90
- }, "\xB7"), communicationTrack.createDate)) : /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
90
+ }, communicationTrack.createDate)) : /*#__PURE__*/_react["default"].createElement("span", {
91
+ className: "".concat(prefix, "__communication-item")
92
+ }, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
91
93
  userName: communicationTrack.publishUser.name,
92
94
  userId: communicationTrack.publishUser.userId
93
95
  }), /*#__PURE__*/_react["default"].createElement("span", {
@@ -97,9 +99,7 @@ var CommunicationRecord = function CommunicationRecord(_ref) {
97
99
  userId: communicationTrack.parentUser.userId
98
100
  }), /*#__PURE__*/_react["default"].createElement("span", {
99
101
  className: "".concat(prefix, "__communication-time")
100
- }, /*#__PURE__*/_react["default"].createElement("span", {
101
- className: "".concat(prefix, "__communication-time-point")
102
- }, "\xB7"), communicationTrack.createDate), /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
102
+ }, communicationTrack.createDate), /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
103
103
  html: true,
104
104
  className: "tt-react-tooltip",
105
105
  place: "top",
@@ -1,3 +1,8 @@
1
+ .titaui-communication__communication-item {
2
+ display: flex;
3
+ align-items: center;
4
+ }
5
+
1
6
  .titaui-communication__communication-text {
2
7
  font-size: 14px;
3
8
  color: #89919f;
@@ -44,11 +49,7 @@
44
49
  font-weight: 400;
45
50
  color: #89919F;
46
51
  line-height: 18px;
47
- margin-left: 6px;
48
- }
49
-
50
- .titaui-communication__communication-time-point {
51
- margin-right: 4px;
52
+ margin-left: 12px;
52
53
  }
53
54
 
54
55
  .titaui-communication__communication-bottom {
@@ -91,13 +92,12 @@
91
92
  .titaui-communication__reply-default-input-text {
92
93
  flex: 1;
93
94
  cursor: text;
94
- font-size: 14px;
95
+ font-size: 12px;
95
96
  color: #BFC7D5;
96
97
  line-height: 22px;
97
98
  margin-left: 12px;
98
99
  height: 32px;
99
100
  border-radius: 16px;
100
- background: rgba(240, 244, 250, 0.6);
101
101
  border-radius: 16px;
102
102
  border: 1px solid #E9ECF0;
103
103
  display: flex;
@@ -247,10 +247,10 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
247
247
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
248
248
  name: user.name,
249
249
  userId: user.id || user.userId,
250
- src: user.avatar.medium,
250
+ src: user.avatar.original || user.avatar.medium,
251
251
  color: user.avatar.color,
252
252
  size: {
253
- width: 52,
253
+ width: 48,
254
254
  textNum: 1,
255
255
  fontSize: 18
256
256
  }
@@ -74,6 +74,16 @@
74
74
  margin-right: 8px;
75
75
  }
76
76
 
77
+ .titaui-dynamic-align-item__obj-principal-user::after {
78
+ content: '';
79
+ width: 1px;
80
+ height: 14px;
81
+ background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
82
+ display: inline-block;
83
+ margin: 0 8px;
84
+ vertical-align: text-top;
85
+ }
86
+
77
87
  .titaui-dynamic-align-item__obj-cycle {
78
88
  font-size: 12px;
79
89
  color: #89919f;
@@ -89,11 +99,11 @@
89
99
  }
90
100
 
91
101
  .titaui-dynamic-align-item__space {
92
- height: 23px;
102
+ height: 30px;
93
103
  }
94
104
 
95
105
  .titaui-dynamic-align-item__operate-desc {
96
- font-size: 16px;
106
+ font-size: 14px;
97
107
  font-weight: 400;
98
108
  color: #89919f;
99
109
  line-height: 24px;
@@ -33,8 +33,6 @@ var _dynamicAlignO = _interopRequireDefault(require("./img/dynamic-align-o.png")
33
33
 
34
34
  var _dynamicAlignKr = _interopRequireDefault(require("./img/dynamic-align-kr.png"));
35
35
 
36
- var _dynamicPoint = _interopRequireDefault(require("../../img/dynamic-point.svg"));
37
-
38
36
  require("./index.css");
39
37
 
40
38
  var _excluded = ["data"];
@@ -143,10 +141,7 @@ var DynamicAlign = function DynamicAlign(_ref) {
143
141
  }, parentPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
144
142
  id: parentPrincipalUser.userId,
145
143
  name: parentPrincipalUser.name
146
- })), /*#__PURE__*/_react["default"].createElement("img", {
147
- src: _dynamicPoint["default"],
148
- alt: ""
149
- }), /*#__PURE__*/_react["default"].createElement("span", {
144
+ })), /*#__PURE__*/_react["default"].createElement("span", {
150
145
  className: "".concat(prefix, "__obj-cycle")
151
146
  }, parentcycleName))))), /*#__PURE__*/_react["default"].createElement("img", {
152
147
  className: "".concat(prefix, "__align-img"),
@@ -181,10 +176,7 @@ var DynamicAlign = function DynamicAlign(_ref) {
181
176
  }, principalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
182
177
  id: principalUser.userId,
183
178
  name: principalUser.name
184
- })), /*#__PURE__*/_react["default"].createElement("img", {
185
- src: _dynamicPoint["default"],
186
- alt: ""
187
- }), /*#__PURE__*/_react["default"].createElement("span", {
179
+ })), /*#__PURE__*/_react["default"].createElement("span", {
188
180
  className: "".concat(prefix, "__obj-cycle")
189
181
  }, cycleName)))))));
190
182
  };
@@ -15,7 +15,7 @@
15
15
  }
16
16
 
17
17
  .titaui-dynamic-announcement-item__operate-desc {
18
- font-size: 16px;
18
+ font-size: 14px;
19
19
  font-weight: 400;
20
20
  color: #89919f;
21
21
  line-height: 24px;
@@ -77,7 +77,7 @@
77
77
  }
78
78
 
79
79
  .titaui-dynamic-assessment-item__operate-desc {
80
- font-size: 16px;
80
+ font-size: 14px;
81
81
  font-weight: 400;
82
82
  color: #89919f;
83
83
  line-height: 24px;
@@ -58,12 +58,14 @@
58
58
  line-height: 18px;
59
59
  }
60
60
 
61
- .titaui-dynamic-create-o-item__okr-type {
62
- margin-right: 8px;
63
- }
64
-
65
- .titaui-dynamic-create-o-item__okr-cycle {
66
- margin-left: 8px;
61
+ .titaui-dynamic-create-o-item__okr-type::after {
62
+ content: '';
63
+ width: 1px;
64
+ height: 14px;
65
+ background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
66
+ display: inline-block;
67
+ margin: 0 8px;
68
+ vertical-align: text-top;
67
69
  }
68
70
 
69
71
  .titaui-dynamic-create-o-item__okr-krs {
@@ -97,7 +99,7 @@
97
99
  }
98
100
 
99
101
  .titaui-dynamic-create-o-item__operate-desc {
100
- font-size: 16px;
102
+ font-size: 14px;
101
103
  font-weight: 400;
102
104
  color: #89919f;
103
105
  line-height: 24px;
@@ -29,8 +29,6 @@ var _progress = _interopRequireDefault(require("../../../progress"));
29
29
 
30
30
  var _util = require("../../util");
31
31
 
32
- var _dynamicPoint = _interopRequireDefault(require("../../img/dynamic-point.svg"));
33
-
34
32
  require("./index.css");
35
33
 
36
34
  var _excluded = ["data"];
@@ -162,10 +160,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
162
160
  className: "".concat(prefix, "__okr")
163
161
  }, /*#__PURE__*/_react["default"].createElement("span", {
164
162
  className: "".concat(prefix, "__okr-type")
165
- }, okrTypeInfo.text), /*#__PURE__*/_react["default"].createElement("img", {
166
- src: _dynamicPoint["default"],
167
- alt: ""
168
- }), /*#__PURE__*/_react["default"].createElement("span", {
163
+ }, okrTypeInfo.text), /*#__PURE__*/_react["default"].createElement("span", {
169
164
  className: "".concat(prefix, "__okr-cycle")
170
165
  }, cycleName)), krs && krs.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
171
166
  className: "".concat(prefix, "__okr-krs")
@@ -51,7 +51,7 @@
51
51
  }
52
52
 
53
53
  .titaui-dynamic-kr-item__object-name {
54
- font-size: 16px;
54
+ font-size: 14px;
55
55
  color: #2879ff;
56
56
  line-height: 24px;
57
57
  margin: 0 4px;
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  .titaui-dynamic-kr-item__operate-desc {
67
- font-size: 16px;
67
+ font-size: 14px;
68
68
  font-weight: 400;
69
69
  color: #89919f;
70
70
  line-height: 24px;
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .titaui-dynamic-milestone-item__object-name {
96
- font-size: 16px;
96
+ font-size: 14px;
97
97
  color: #2879ff;
98
98
  line-height: 24px;
99
99
  margin: 0 4px;
@@ -106,7 +106,7 @@
106
106
  }
107
107
 
108
108
  .titaui-dynamic-milestone-item__operate-desc {
109
- font-size: 16px;
109
+ font-size: 14px;
110
110
  font-weight: 400;
111
111
  color: #89919f;
112
112
  line-height: 24px;
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .titaui-dynamic-okrs-communication-item__operate-desc {
59
- font-size: 16px;
59
+ font-size: 14px;
60
60
  font-weight: 400;
61
61
  color: #89919f;
62
62
  line-height: 24px;
@@ -56,7 +56,7 @@
56
56
  }
57
57
 
58
58
  .titaui-dynamic-plan-communication-item__operate-desc {
59
- font-size: 16px;
59
+ font-size: 14px;
60
60
  font-weight: 400;
61
61
  color: #89919f;
62
62
  line-height: 24px;
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  .titaui-dynamic-progress-item__object-name {
32
- font-size: 16px;
32
+ font-size: 14px;
33
33
  color: #2879ff;
34
34
  line-height: 24px;
35
35
  margin: 0 4px;
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  .titaui-dynamic-progress-item__operate-desc {
49
- font-size: 16px;
49
+ font-size: 14px;
50
50
  font-weight: 400;
51
51
  color: #89919f;
52
52
  line-height: 24px;
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .titaui-dynamic-project-item__operate-desc {
96
- font-size: 16px;
96
+ font-size: 14px;
97
97
  font-weight: 400;
98
98
  color: #89919f;
99
99
  line-height: 24px;
@@ -79,14 +79,22 @@
79
79
  font-size: 12px;
80
80
  color: #89919f;
81
81
  line-height: 18px;
82
- margin-right: 8px;
82
+ }
83
+
84
+ .titaui-dynamic-relative-item__obj-principal-user::after {
85
+ content: '';
86
+ width: 1px;
87
+ height: 14px;
88
+ background: linear-gradient(180deg, rgba(191, 199, 213, 0) 0%, #bfc7d5 50%, rgba(240, 242, 245, 0) 100%);
89
+ display: inline-block;
90
+ margin: 0 8px;
91
+ vertical-align: text-top;
83
92
  }
84
93
 
85
94
  .titaui-dynamic-relative-item__obj-cycle {
86
95
  font-size: 12px;
87
96
  color: #89919f;
88
97
  line-height: 18px;
89
- margin-left: 8px;
90
98
  }
91
99
 
92
100
  .titaui-dynamic-relative-item__rela-img {
@@ -97,11 +105,11 @@
97
105
  }
98
106
 
99
107
  .titaui-dynamic-relative-item__space {
100
- height: 20px;
108
+ height: 30px;
101
109
  }
102
110
 
103
111
  .titaui-dynamic-relative-item__operate-desc {
104
- font-size: 16px;
112
+ font-size: 14px;
105
113
  font-weight: 400;
106
114
  color: #89919f;
107
115
  line-height: 24px;
@@ -37,8 +37,6 @@ var _dynamicRelaProject = _interopRequireDefault(require("./img/dynamic-rela-pro
37
37
 
38
38
  var _dynamicRelaTask = _interopRequireDefault(require("./img/dynamic-rela-task.png"));
39
39
 
40
- var _dynamicPoint = _interopRequireDefault(require("../../img/dynamic-point.svg"));
41
-
42
40
  require("./index.css");
43
41
 
44
42
  var _excluded = ["data"];
@@ -156,10 +154,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
156
154
  }, rObjprincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
157
155
  id: rObjprincipalUser.userId,
158
156
  name: rObjprincipalUser.name
159
- })), /*#__PURE__*/_react["default"].createElement("img", {
160
- src: _dynamicPoint["default"],
161
- alt: ""
162
- }), /*#__PURE__*/_react["default"].createElement("span", {
157
+ })), /*#__PURE__*/_react["default"].createElement("span", {
163
158
  className: "".concat(prefix, "__obj-cycle")
164
159
  }, rObjCycleName))))), /*#__PURE__*/_react["default"].createElement("img", {
165
160
  className: "".concat(prefix, "__rela-img"),
@@ -194,10 +189,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
194
189
  }, objPrincipalUser && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
195
190
  id: objPrincipalUser.userId,
196
191
  name: objPrincipalUser.name
197
- })), /*#__PURE__*/_react["default"].createElement("img", {
198
- src: _dynamicPoint["default"],
199
- alt: ""
200
- }), /*#__PURE__*/_react["default"].createElement("span", {
192
+ })), /*#__PURE__*/_react["default"].createElement("span", {
201
193
  className: "".concat(prefix, "__obj-cycle")
202
194
  }, objCycleName)))))));
203
195
  };
@@ -114,7 +114,7 @@
114
114
  }
115
115
 
116
116
  .titaui-dynamic-reply-item__operate-desc {
117
- font-size: 16px;
117
+ font-size: 14px;
118
118
  font-weight: 400;
119
119
  color: #89919f;
120
120
  line-height: 24px;
@@ -141,7 +141,7 @@
141
141
  }
142
142
 
143
143
  .titaui-dynamic-report-item__operate-desc {
144
- font-size: 16px;
144
+ font-size: 14px;
145
145
  font-weight: 400;
146
146
  color: #89919f;
147
147
  line-height: 24px;
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  .titaui-dynamic-reward-item__operate-desc {
56
- font-size: 16px;
56
+ font-size: 14px;
57
57
  font-weight: 400;
58
58
  color: #89919f;
59
59
  line-height: 24px;
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  .titaui-dynamic-share-item__operate-desc {
14
- font-size: 16px;
14
+ font-size: 14px;
15
15
  font-weight: 400;
16
16
  color: #89919f;
17
17
  line-height: 24px;
@@ -1,6 +1,6 @@
1
1
  .titaui-dynamic-share-to-dynamic__operate-desc {
2
2
  margin-left: 4px;
3
- font-size: 16px;
3
+ font-size: 14px;
4
4
  font-weight: normal;
5
5
  color: #89919f;
6
6
  line-height: 24px;
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  .titaui-dynamic-task-item__object-name {
96
- font-size: 16px;
96
+ font-size: 14px;
97
97
  color: #2879ff;
98
98
  line-height: 24px;
99
99
  margin: 0 4px;
@@ -106,7 +106,7 @@
106
106
  }
107
107
 
108
108
  .titaui-dynamic-task-item__operate-desc {
109
- font-size: 16px;
109
+ font-size: 14px;
110
110
  font-weight: 400;
111
111
  color: #89919f;
112
112
  line-height: 24px;
@@ -78,7 +78,7 @@ var Item = function Item(_ref) {
78
78
  className: "".concat(preCls, "-avatar")
79
79
  }, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
80
80
  name: name,
81
- src: avatar.small,
81
+ src: avatar.original,
82
82
  color: avatar.color,
83
83
  userId: userId,
84
84
  size: {
@@ -65,7 +65,8 @@ var DynamicList = function DynamicList(_ref) {
65
65
  }]
66
66
  }, data.map(function (item) {
67
67
  return /*#__PURE__*/_react["default"].createElement("div", {
68
- className: "".concat(prefix, "__item-wrapper")
68
+ className: "".concat(prefix, "__item-wrapper"),
69
+ key: item.feedId
69
70
  }, /*#__PURE__*/_react["default"].createElement(_dynamicItem["default"], {
70
71
  data: item,
71
72
  onDeleteFeed: handleDeleteFeed,
@@ -19,6 +19,10 @@ var _clickLink = _interopRequireWildcard(require("../util/click-link"));
19
19
 
20
20
  var _getLocale = require("../../../utils/getLocale");
21
21
 
22
+ var _OKRprogressEmpty = _interopRequireDefault(require("../image/OKRprogress-empty.png"));
23
+
24
+ var _Progress = _interopRequireDefault(require("../image/Progress.png"));
25
+
22
26
  require("../index.css");
23
27
 
24
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -27,8 +31,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
27
31
 
28
32
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
33
 
30
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
31
-
32
34
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
35
 
34
36
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -71,38 +73,26 @@ function OKRProgressComponent() {
71
73
 
72
74
  (0, _react.useEffect)(function () {
73
75
  (0, _network["default"])(ComponentId).then(function (res) {
74
- var _iterator = _createForOfIteratorHelper(res),
75
- _step;
76
-
77
- try {
78
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
79
- var item = _step.value;
80
-
81
- switch (item.componentDataProp) {
82
- case "allMyProgressCount":
83
- setHadUpdateOkrNum(item.componentDataCount);
84
- break;
76
+ Object.values(res).forEach(function (item) {
77
+ if (item.componentDataProp === "allMyProgressCount") {
78
+ setHadUpdateOkrNum(item.componentDataCount);
79
+ }
85
80
 
86
- case "allMyNoProgressCount":
87
- setHadNotUpdateOkrNum(item.componentDataCount);
88
- break;
81
+ if (item.componentDataProp === "allMyNoProgressCount") {
82
+ setHadNotUpdateOkrNum(item.componentDataCount);
83
+ }
89
84
 
90
- case "weekLatelyUpdatekrProgress":
91
- setWeekLatelyUpdatekrProgress(item.componentDataCount);
92
- }
85
+ if (item.componentDataProp === "weekLatelyUpdatekrProgress") {
86
+ setWeekLatelyUpdatekrProgress(item.componentDataCount);
93
87
  }
94
- } catch (err) {
95
- _iterator.e(err);
96
- } finally {
97
- _iterator.f();
98
- }
88
+ });
99
89
  });
100
90
  }, []);
101
91
  (0, _react.useEffect)(function () {
102
92
  if (hadUpdateOkrNum + hadNotUpdateOkrNum === 0) {
103
- !isMyOKREmpty && setIsMyOKREmpty(true);
93
+ setIsMyOKREmpty(isMyOKREmpty);
104
94
  } else {
105
- isMyOKREmpty && setIsMyOKREmpty(false);
95
+ setIsMyOKREmpty(!isMyOKREmpty);
106
96
  setUpdatePercent(Number.parseFloat((hadUpdateOkrNum / (hadNotUpdateOkrNum + hadUpdateOkrNum)).toFixed(2)) * 100);
107
97
  }
108
98
  }, [hadUpdateOkrNum + hadNotUpdateOkrNum]);
@@ -119,16 +109,16 @@ function OKRProgressComponent() {
119
109
  padding: "20px 22px 0"
120
110
  }
121
111
  }, /*#__PURE__*/_react["default"].createElement(_commenComponents.CardTitle, {
122
- content: (0, _getLocale.getLocale)("HP_Executiotasks"),
123
- iconUrl: require("../image/Progress.png"),
112
+ content: (0, _getLocale.getLocale)("HP_KRProgress"),
113
+ iconUrl: _Progress["default"],
124
114
  tips: (0, _getLocale.getLocale)("HP_ProgressKROKR")
125
- }, !isMyOKREmpty && /*#__PURE__*/_react["default"].createElement("a", {
115
+ }, !isMyOKREmpty && /*#__PURE__*/_react["default"].createElement("span", {
126
116
  onClick: function onClick() {
127
117
  return (0, _clickLink["default"])("okr%2Fmanage");
128
118
  },
129
119
  className: "grid-component-card-title__behave"
130
120
  }, (0, _getLocale.getLocale)("OKR_OKRW_Gotoupdate"))), isMyOKREmpty ? /*#__PURE__*/_react["default"].createElement(_commenComponents.EmptyBackGround, {
131
- imgSrc: require("../image/OKRprogress-empty.png"),
121
+ imgSrc: _OKRprogressEmpty["default"],
132
122
  content: (0, _getLocale.getLocale)("HP_Regulgoodwork"),
133
123
  behave: {
134
124
  type: "moreinfo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.10",
3
+ "version": "1.10.13",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",