@titaui/pc 1.10.22 → 1.10.23

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 (37) hide show
  1. package/lib/components/communication/index.css +7 -7
  2. package/lib/components/communication/style.js +1 -1
  3. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +2 -2
  4. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +1 -2
  5. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
  6. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
  7. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
  8. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +0 -0
  9. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +5 -4
  10. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
  11. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  12. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +32 -2
  13. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.css +11 -16
  14. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  15. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +5 -1
  16. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +60 -2
  17. package/lib/components/dynamic/dynamic-item/index.css +56 -1
  18. package/lib/components/dynamic/dynamic-item/index.js +3 -3
  19. package/lib/components/dynamic/img/dynamic-redenvelopes-hover.svg +1 -0
  20. package/lib/components/dynamic/img/dynamic-redenvelopes-normal.svg +1 -0
  21. package/lib/components/file-list/components/single-file/index.css +6 -5
  22. package/lib/components/file-list/index.css +1 -0
  23. package/lib/components/video-modal/components/video-box/index.css +240 -0
  24. package/lib/components/video-modal/components/video-box/index.js +334 -0
  25. package/lib/components/video-modal/img/bigFaqi.png +0 -0
  26. package/lib/components/video-modal/img/close.png +0 -0
  27. package/lib/components/video-modal/img/full.svg +21 -0
  28. package/lib/components/video-modal/img/muted.svg +14 -0
  29. package/lib/components/video-modal/img/not-muted.svg +22 -0
  30. package/lib/components/video-modal/img/pause.svg +13 -0
  31. package/lib/components/video-modal/img/play.svg +18 -0
  32. package/lib/components/video-modal/img/small.svg +22 -0
  33. package/lib/components/video-modal/index.css +83 -0
  34. package/lib/components/video-modal/index.js +182 -0
  35. package/lib/components/video-modal/utils.js +25 -0
  36. package/lib/index.js +8 -0
  37. package/package.json +1 -1
@@ -5,9 +5,9 @@
5
5
 
6
6
  .titaui-communication__communication-text {
7
7
  font-size: 14px;
8
- color: #89919f;
8
+ color: #3f4755;
9
9
  line-height: 22px;
10
- margin: 0 8px;
10
+ margin: 0 4px;
11
11
  }
12
12
 
13
13
  .titaui-communication__communication-content {
@@ -15,6 +15,7 @@
15
15
  color: #6f7886;
16
16
  line-height: 22px;
17
17
  position: relative;
18
+ margin-top: 4px;
18
19
  }
19
20
 
20
21
  .titaui-communication__communication-content .highlight {
@@ -28,7 +29,7 @@
28
29
  .titaui-communication__communication-content__user-link {
29
30
  font-size: 14px;
30
31
  font-weight: 600;
31
- color: #3F4755;
32
+ color: #3f4755;
32
33
  line-height: 22px;
33
34
  }
34
35
 
@@ -47,7 +48,7 @@
47
48
  .titaui-communication__communication-time {
48
49
  font-size: 12px;
49
50
  font-weight: 400;
50
- color: #89919F;
51
+ color: #89919f;
51
52
  line-height: 18px;
52
53
  margin-left: 12px;
53
54
  }
@@ -73,7 +74,6 @@
73
74
 
74
75
  .titaui-communication__communication-total-icon {
75
76
  margin-left: 4px;
76
- margin-top: -2px;
77
77
  }
78
78
 
79
79
  .titaui-communication__reply-container-text {
@@ -93,13 +93,13 @@
93
93
  flex: 1;
94
94
  cursor: text;
95
95
  font-size: 12px;
96
- color: #BFC7D5;
96
+ color: #bfc7d5;
97
97
  line-height: 22px;
98
98
  margin-left: 12px;
99
99
  height: 32px;
100
100
  border-radius: 16px;
101
101
  border-radius: 16px;
102
- border: 1px solid #E9ECF0;
102
+ border: 1px solid #e9ecf0;
103
103
  display: flex;
104
104
  align-items: center;
105
105
  box-sizing: border-box;
@@ -19,7 +19,7 @@ var CommunicationWrapper = _styledComponents["default"].div(_templateObject || (
19
19
 
20
20
  exports.CommunicationWrapper = CommunicationWrapper;
21
21
 
22
- var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size: 13px;\n line-height: 22px;\n color: #8f9ca6;\n display: inline-block;\n cursor: pointer;\n\n &:hover {\n color: #2879ff;\n }\n"])));
22
+ var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size: 12px;\n line-height: 22px;\n color: #8f9ca6;\n display: inline-block;\n cursor: pointer;\n\n &:hover {\n color: #2879ff;\n }\n"])));
23
23
 
24
24
  exports.CommunicationRecordTotal = CommunicationRecordTotal;
25
25
 
@@ -41,7 +41,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
41
41
 
42
42
  var prefix = "titaui-dynamic-assessment-item";
43
43
 
44
- var DynamicShare = function DynamicShare(_ref) {
44
+ var DynamicAssessment = function DynamicAssessment(_ref) {
45
45
  var data = _ref.data,
46
46
  restProps = _objectWithoutProperties(_ref, _excluded);
47
47
 
@@ -97,5 +97,5 @@ var DynamicShare = function DynamicShare(_ref) {
97
97
  }), /*#__PURE__*/_react["default"].createElement("span", null, "".concat(data.startDate, "-").concat(data.deadline))))));
98
98
  };
99
99
 
100
- var _default = DynamicShare;
100
+ var _default = DynamicAssessment;
101
101
  exports["default"] = _default;
@@ -74,7 +74,6 @@
74
74
 
75
75
  .titaui-dynamic-create-o-item__kr {
76
76
  display: flex;
77
- align-items: center;
78
77
  margin-top: 6px;
79
78
  }
80
79
 
@@ -83,7 +82,7 @@
83
82
  color: #89919f;
84
83
  line-height: 18px;
85
84
  margin-right: 4px;
86
- margin-top: 1px;
85
+ margin-top: 3px;
87
86
  word-break: keep-all;
88
87
  }
89
88
 
@@ -56,7 +56,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
56
56
  var prefix = "titaui-dynamic-share-to-dynamic";
57
57
  var userId = (0, _bsGlobal.getUserInfo)().Id;
58
58
 
59
- var DynamicShare = function DynamicShare(_ref) {
59
+ var DynamicLearning = function DynamicLearning(_ref) {
60
60
  var data = _ref.data,
61
61
  _ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
62
62
  hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
@@ -103,8 +103,9 @@ var DynamicShare = function DynamicShare(_ref) {
103
103
  }, [data, searchKeyWord]);
104
104
  (0, _react.useEffect)(function () {
105
105
  if (data.shareContent && typeof data.shareContent === "string" && data.shareContent.substr(0, 1) === "{") {
106
- setTitle(JSON.parse(data.shareContent).title);
107
- setContent(htmlToText(JSON.parse(data.shareContent).content));
106
+ var shareContent = JSON.parse(data.shareContent);
107
+ setTitle(shareContent.title);
108
+ setContent(htmlToText(shareContent.content));
108
109
  }
109
110
  }, []);
110
111
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -139,5 +140,5 @@ var DynamicShare = function DynamicShare(_ref) {
139
140
  }, content))));
140
141
  };
141
142
 
142
- var _default = DynamicShare;
143
+ var _default = DynamicLearning;
143
144
  exports["default"] = _default;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.MileStoneStatusClass2StatusTypeText = void 0;
6
+ exports.MileStoneStatusClass2StatusTypeText = exports.EStatusStatus2ClassType = void 0;
7
7
 
8
8
  var _getLocale = require("../../../../utils/getLocale");
9
9
 
@@ -13,4 +13,11 @@ var MileStoneStatusClass2StatusTypeText = {
13
13
  4: (0, _getLocale.getLocale)("OKR_MyO_E_Overdue"),
14
14
  3: (0, _getLocale.getLocale)("Pro_page_Sta_Completed")
15
15
  };
16
- exports.MileStoneStatusClass2StatusTypeText = MileStoneStatusClass2StatusTypeText;
16
+ exports.MileStoneStatusClass2StatusTypeText = MileStoneStatusClass2StatusTypeText;
17
+ var EStatusStatus2ClassType = {
18
+ 3: "tu-icon-finished",
19
+ 2: "tu-icon-running",
20
+ 4: "tu-icon-deferred",
21
+ 1: "tu-icon-notstart"
22
+ };
23
+ exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
@@ -124,7 +124,7 @@ var DynamicMilestone = function DynamicMilestone(_ref) {
124
124
  }))), /*#__PURE__*/_react["default"].createElement("div", {
125
125
  className: "".concat(prefix, "__content-status-and-time-range")
126
126
  }, /*#__PURE__*/_react["default"].createElement("i", {
127
- className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
127
+ className: (0, _classnames["default"])(_constant.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
128
128
  }), /*#__PURE__*/_react["default"].createElement("span", {
129
129
  className: "".concat(prefix, "__content-status-text")
130
130
  }, _constant.MileStoneStatusClass2StatusTypeText[status]), /*#__PURE__*/_react["default"].createElement("i", {
@@ -53,6 +53,18 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
53
53
 
54
54
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
55
55
 
56
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
57
+
58
+ 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."); }
59
+
60
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
61
+
62
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
63
+
64
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
65
+
66
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
67
+
56
68
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
57
69
 
58
70
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -80,6 +92,11 @@ var DynamicRelative = function DynamicRelative(_ref) {
80
92
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
81
93
  searchKeyWord = _useContext.searchKeyWord;
82
94
 
95
+ var _useState = (0, _react.useState)(null),
96
+ _useState2 = _slicedToArray(_useState, 2),
97
+ relatedImgUrl = _useState2[0],
98
+ setRelatedImgUrl = _useState2[1];
99
+
83
100
  var handleClickTitle = function handleClickTitle(id, type) {
84
101
  if (type === _constant.EObjType.Kr) {
85
102
  _drawerManager["default"].open("krDetail", {
@@ -113,10 +130,23 @@ var DynamicRelative = function DynamicRelative(_ref) {
113
130
  text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Mod_Objective"));
114
131
  }
115
132
 
133
+ if (relateObjType === _constant.EObjType.Project) {
134
+ text = "".concat((0, _getLocale.getLocale)("Mod_Connected")).concat((0, _getLocale.getLocale)("Feed_Set_Project"));
135
+ }
136
+
116
137
  return /*#__PURE__*/_react["default"].createElement("span", {
117
138
  className: "".concat(prefix, "__operate-desc")
118
139
  }, text);
119
140
  }, []);
141
+ (0, _react.useEffect)(function () {
142
+ if (relateObjType === _constant.EObjType.O) {
143
+ setRelatedImgUrl(_dynamicRelaO["default"]);
144
+ } else if (relateObjType === _constant.EObjType.Kr) {
145
+ setRelatedImgUrl(_dynamicRelaKr["default"]);
146
+ } else {
147
+ setRelatedImgUrl(_dynamicRelaProject["default"]);
148
+ }
149
+ }, []);
120
150
  return /*#__PURE__*/_react["default"].createElement("div", {
121
151
  className: prefix
122
152
  }, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
@@ -131,11 +161,11 @@ var DynamicRelative = function DynamicRelative(_ref) {
131
161
  }, /*#__PURE__*/_react["default"].createElement("div", {
132
162
  className: "".concat(prefix, "__obj-base-info")
133
163
  }, /*#__PURE__*/_react["default"].createElement("span", {
134
- className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), relateObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), relateObjType === _constant.EObjType.Kr), _classNames))
164
+ className: (0, _classnames["default"])("".concat(prefix, "__obj-base-info-left"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--o"), relateObjType === _constant.EObjType.O), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--kr"), relateObjType === _constant.EObjType.Kr), _defineProperty(_classNames, "".concat(prefix, "__obj-base-info-left--project"), relateObjType === _constant.EObjType.Project), _classNames))
135
165
  }, /*#__PURE__*/_react["default"].createElement("img", {
136
166
  alt: "",
137
167
  className: "".concat(prefix, "__obj-base-info-left-img"),
138
- src: relateObjType === _constant.EObjType.O ? _dynamicRelaO["default"] : _dynamicRelaKr["default"]
168
+ src: relatedImgUrl || ""
139
169
  })), /*#__PURE__*/_react["default"].createElement("div", {
140
170
  className: "".concat(prefix, "__obj-base-info-right")
141
171
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .titaui-dynamic-reply-item__detail {
15
- margin-top: 14px;
15
+ margin-top: 12px;
16
16
  }
17
17
 
18
18
  .titaui-dynamic-reply-item__detail-gain {
@@ -27,21 +27,25 @@
27
27
  margin-bottom: 0;
28
28
  }
29
29
 
30
+ .titaui-dynamic-reply-item__detail-tasks {
31
+ margin-top: 16px;
32
+ }
33
+
30
34
  .titaui-dynamic-reply-item__detail-tasks-item {
31
35
  display: flex;
32
36
  align-items: center;
33
- margin-left: 8px;
34
37
  font-size: 14px;
35
38
  color: #6f7886;
36
39
  line-height: 22px;
40
+ margin-top: 8px;
37
41
  cursor: pointer;
38
42
  }
39
43
 
40
44
  .titaui-dynamic-reply-item__detail-tasks-item::before {
41
45
  content: '';
42
46
  display: inline-block;
43
- width: 6px;
44
- height: 6px;
47
+ width: 5px;
48
+ height: 5px;
45
49
  background: #2879ff;
46
50
  border-radius: 50%;
47
51
  margin-right: 6px;
@@ -69,18 +73,9 @@
69
73
  font-weight: 600;
70
74
  color: #3f4755;
71
75
  line-height: 22px;
72
- margin-left: 8px;
73
76
  white-space: pre-wrap;
74
- }
75
-
76
- .titaui-dynamic-reply-item__detail-block-title--sub::before {
77
- content: '';
78
- display: inline-block;
79
- width: 6px;
80
- height: 6px;
81
- background: #2879ff;
82
- border-radius: 50%;
83
- margin-right: 6px;
77
+ margin-left: 12px;
78
+ margin-top: 16px;
84
79
  }
85
80
 
86
81
  .titaui-dynamic-reply-item__detail-block-content {
@@ -97,7 +92,7 @@
97
92
  }
98
93
 
99
94
  .titaui-dynamic-reply-item__detail-block-content--sub {
100
- margin-left: 20px;
95
+ margin-left: 12px;
101
96
  }
102
97
 
103
98
  .titaui-dynamic-reply-item__object-name {
@@ -163,7 +163,7 @@ var DynamicReply = function DynamicReply(_ref) {
163
163
  className: "".concat(prefix, "__detail-tasks")
164
164
  }, /*#__PURE__*/_react["default"].createElement("div", {
165
165
  className: "".concat(prefix, "__detail-block-title")
166
- }, "\u884C\u52A8\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
166
+ }, "\u6539\u8FDB\u8BA1\u5212"), data.tasks && data.tasks.map(function (task) {
167
167
  return /*#__PURE__*/_react["default"].createElement("div", {
168
168
  key: task.taskId,
169
169
  className: "".concat(prefix, "__detail-tasks-item"),
@@ -3,13 +3,17 @@
3
3
  }
4
4
 
5
5
  .titaui-dynamic-share-item__content {
6
- display: flex;
7
6
  font-size: 14px;
8
7
  color: #3f4755;
9
8
  line-height: 24px;
10
9
  margin-left: 88px;
11
10
  }
12
11
 
12
+ .titaui-dynamic-share-item__content-obj {
13
+ display: flex;
14
+ margin-bottom: 4px;
15
+ }
16
+
13
17
  .titaui-dynamic-share-item__operate-desc {
14
18
  font-size: 14px;
15
19
  font-weight: 400;
@@ -21,8 +21,16 @@ var _getLocale = require("../../../../utils/getLocale");
21
21
 
22
22
  var _openData = require("../../../../utils/open-data");
23
23
 
24
+ var _title = _interopRequireDefault(require("../../components/title"));
25
+
26
+ var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
27
+
28
+ var _utils = require("../dynamic-progress/utils");
29
+
24
30
  require("./index.css");
25
31
 
32
+ var _constant = require("../../constant");
33
+
26
34
  var _excluded = ["data", "dynamicShareIsShowToping", "hasDynamicOpereateAuth"];
27
35
 
28
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -47,16 +55,61 @@ var DynamicShare = function DynamicShare(_ref) {
47
55
  hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
48
56
  restProps = _objectWithoutProperties(_ref, _excluded);
49
57
 
58
+ var obj = data.obj;
59
+
50
60
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
51
61
  searchKeyWord = _useContext.searchKeyWord;
52
62
 
53
63
  var contentRef = (0, _react.useRef)();
54
64
  var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
55
65
  var renderDesc = (0, _react.useMemo)(function () {
66
+ var text = (0, _getLocale.getLocale)("Mod_postedshare");
67
+ var obj = data.obj;
68
+
69
+ if (obj && obj.objType === _constant.EObjType.Kr) {
70
+ text = "";
71
+ }
72
+
73
+ if (obj && obj.objType === _constant.EObjType.O) {
74
+ text = "".concat((0, _getLocale.getLocale)("Mod_Updated")).concat((0, _getLocale.getLocale)("Mod_objectiveprog"));
75
+ }
76
+
77
+ if (obj && obj.objType === _constant.EObjType.Task) {
78
+ text = "".concat((0, _getLocale.getLocale)("Mod_Updated")).concat((0, _getLocale.getLocale)("Data_Taskprogress"));
79
+ }
80
+
81
+ if (obj && obj.objType === _constant.EObjType.Project) {
82
+ text = "".concat((0, _getLocale.getLocale)("Mod_Updated")).concat((0, _getLocale.getLocale)("Mod_ProjectProgress"));
83
+ }
84
+
56
85
  return /*#__PURE__*/_react["default"].createElement("span", {
57
86
  className: "".concat(prefix, "__operate-desc")
58
- }, (0, _getLocale.getLocale)("Mod_postedshare"));
87
+ }, text);
59
88
  }, []);
89
+
90
+ var handleClickTitle = function handleClickTitle() {
91
+ if (!obj) {
92
+ return;
93
+ }
94
+
95
+ var objType = obj.objType,
96
+ objId = obj.objId;
97
+
98
+ if (objType === _constant.EObjType.Kr) {
99
+ _drawerManager["default"].open("krDetail", {
100
+ krId: objId
101
+ });
102
+ } else if (objType === _constant.EObjType.O) {
103
+ _drawerManager["default"].open("okrDetail", {
104
+ okrId: objId
105
+ });
106
+ } else if (objType === _constant.EObjType.Task) {
107
+ window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
108
+ } else if (objType === _constant.EObjType.Project) {
109
+ window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
110
+ }
111
+ };
112
+
60
113
  (0, _react.useEffect)(function () {
61
114
  (0, _tools.highLightWord)({
62
115
  parentDom: contentRef.current,
@@ -73,7 +126,12 @@ var DynamicShare = function DynamicShare(_ref) {
73
126
  user: data.publishUser
74
127
  }, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
75
128
  className: "".concat(prefix, "__content")
76
- }, /*#__PURE__*/_react["default"].createElement("div", {
129
+ }, obj && /*#__PURE__*/_react["default"].createElement("div", {
130
+ className: "".concat(prefix, "__content-obj")
131
+ }, /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
132
+ content: (0, _tools.htmlDecodeByRegExp)(obj === null || obj === void 0 ? void 0 : obj.objName),
133
+ onClickTitle: handleClickTitle
134
+ }, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement("div", {
77
135
  ref: contentRef
78
136
  }, (0, _openData.parseTag)(data.content))), data.attachments && /*#__PURE__*/_react["default"].createElement("div", {
79
137
  className: "".concat(prefix, "__files")
@@ -44,7 +44,7 @@
44
44
  align-items: center;
45
45
  color: #89919f;
46
46
  position: relative;
47
- border-bottom: 1px solid #F0F4FA;
47
+ border-bottom: 1px solid #f0f4fa;
48
48
  }
49
49
 
50
50
  .titaui-dynamic-item__footer-left {
@@ -98,6 +98,23 @@
98
98
  color: #2879ff;
99
99
  }
100
100
 
101
+ .titaui-dynamic-item__footer-icon-redenvelopes::before {
102
+ content: '';
103
+ display: inline-block;
104
+ background: url("../img/dynamic-redenvelopes-normal.svg") no-repeat;
105
+ background-size: 20px 20px;
106
+ width: 20px;
107
+ height: 20px;
108
+ }
109
+
110
+ .titaui-dynamic-item__footer-icon-redenvelopes:hover {
111
+ animation: redenvelopesRubberBand 1s;
112
+ }
113
+
114
+ .titaui-dynamic-item__footer-icon-redenvelopes:hover::before {
115
+ background: url("../img/dynamic-redenvelopes-hover.svg") no-repeat;
116
+ }
117
+
101
118
  .titaui-dynamic-item__footer-number {
102
119
  margin-left: 8px;
103
120
  font-size: 14px;
@@ -122,8 +139,46 @@
122
139
  .titaui-dynamic-item__upvote-btn {
123
140
  color: #a4acb9;
124
141
  font-size: 20px;
142
+ width: 20px !important;
125
143
  }
126
144
 
127
145
  .titaui-dynamic-item__upvote-btn:hover {
128
146
  color: #2879ff;
129
147
  }
148
+
149
+ @keyframes redenvelopesRubberBand {
150
+ 0% {
151
+ -webkit-transform: scaleX(1);
152
+ transform: scaleX(1);
153
+ }
154
+
155
+ 30% {
156
+ -webkit-transform: scale3d(1.25, 0.75, 1);
157
+ transform: scale3d(1.25, 0.75, 1);
158
+ }
159
+
160
+ 40% {
161
+ -webkit-transform: scale3d(0.75, 1.25, 1);
162
+ transform: scale3d(0.75, 1.25, 1);
163
+ }
164
+
165
+ 50% {
166
+ -webkit-transform: scale3d(1.15, 0.85, 1);
167
+ transform: scale3d(1.15, 0.85, 1);
168
+ }
169
+
170
+ 65% {
171
+ -webkit-transform: scale3d(0.95, 1.05, 1);
172
+ transform: scale3d(0.95, 1.05, 1);
173
+ }
174
+
175
+ 75% {
176
+ -webkit-transform: scale3d(1.05, 0.95, 1);
177
+ transform: scale3d(1.05, 0.95, 1);
178
+ }
179
+
180
+ to {
181
+ -webkit-transform: scaleX(1);
182
+ transform: scaleX(1);
183
+ }
184
+ }
@@ -49,7 +49,7 @@ var _dynamicReward = _interopRequireDefault(require("./dynamic-reward"));
49
49
 
50
50
  var _dynamicMilestone = _interopRequireDefault(require("./dynamic-milestone"));
51
51
 
52
- var _dynamicShareToDynamic = _interopRequireDefault(require("./dynamic-share-to-dynamic"));
52
+ var _dynamicLearning = _interopRequireDefault(require("./dynamic-learning"));
53
53
 
54
54
  var _bsGlobal = require("../../../utils/bs-global");
55
55
 
@@ -266,7 +266,7 @@ var DynamicItem = function DynamicItem(_ref) {
266
266
  });
267
267
  }
268
268
 
269
- return /*#__PURE__*/_react["default"].createElement(_dynamicShareToDynamic["default"], {
269
+ return /*#__PURE__*/_react["default"].createElement(_dynamicLearning["default"], {
270
270
  data: data
271
271
  });
272
272
 
@@ -388,7 +388,7 @@ var DynamicItem = function DynamicItem(_ref) {
388
388
  className: (0, _classnames["default"])("tu-icon-arrow-down", "".concat(prefix, "__icon"), "".concat(prefix, "__icon-up"))
389
389
  }))), /*#__PURE__*/_react["default"].createElement("span", {
390
390
  onClick: handlePayReward,
391
- className: (0, _classnames["default"])("tu-icon-red-envelopes", "".concat(prefix, "__footer-icon"))
391
+ className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
392
392
  }), /*#__PURE__*/_react["default"].createElement("span", {
393
393
  onClick: handleCommentClick,
394
394
  className: (0, _classnames["default"])("tu-icon-pinglun-m", "".concat(prefix, "__footer-icon"))
@@ -0,0 +1 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="74.137%" y1="76.285%" x2="7.656%" y2=".727%" id="a"><stop stop-color="#F05E5E" offset="0%"/><stop stop-color="#FFA5A5" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M16.905 4.805c0 .004.003.01.005.014.67 1.56 1.007 3.286 1.007 5.181s-.336 3.622-1.008 5.18v.001a3.5 3.5 0 0 1-1.814 1.823c-1.394.609-3.093.913-5.095.913s-3.7-.304-5.095-.912A3.5 3.5 0 0 1 3.09 15.18c-.67-1.56-1.007-3.286-1.007-5.181 0-1.75.287-3.355.86-4.818l.147-.363.006-.013c.356.213.797.408 1.306.58 1.433.482 3.412.78 5.598.78s4.165-.298 5.598-.78c.51-.172.95-.367 1.307-.58zm-8.143 4.63a.65.65 0 0 0-.895-.121.524.524 0 0 0-.098.735l1.08 1.413h-.646a.47.47 0 1 0 0 .94h1.176v.728H8.082a.595.595 0 0 0 0 1.19h1.297v.532a.648.648 0 1 0 1.296 0v-.532h1.313a.595.595 0 0 0 0-1.19h-1.313v-.728h1.192a.47.47 0 0 0 0-.94h-.641l.958-1.387a.555.555 0 0 0-.172-.79.638.638 0 0 0-.849.179l-1.123 1.594zM10 2.083c2.002 0 3.7.304 5.095.912a3.5 3.5 0 0 1 1.26.933c-.32.216-.88.412-1.64.574-1.244.264-2.922.415-4.715.415-1.793 0-3.471-.151-4.714-.415-.76-.162-1.32-.358-1.642-.573.342-.4.772-.72 1.26-.933v-.001c1.296-.564 2.853-.867 4.672-.907L10 2.083z" fill="url(#a)"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><rect width="20" height="20" rx=".167"/><path d="M16.905 4.805c0 .004.003.01.005.014.67 1.56 1.007 3.286 1.007 5.181s-.336 3.622-1.008 5.18v.001a3.5 3.5 0 0 1-1.814 1.823c-1.394.609-3.093.913-5.095.913s-3.7-.304-5.095-.912A3.5 3.5 0 0 1 3.09 15.18c-.67-1.56-1.007-3.286-1.007-5.181 0-1.75.287-3.355.86-4.818l.147-.363.006-.013c.356.213.797.408 1.306.58 1.433.482 3.412.78 5.598.78s4.165-.298 5.598-.78c.51-.172.95-.367 1.307-.58zm-8.143 4.63a.65.65 0 0 0-.895-.121.524.524 0 0 0-.098.735l1.08 1.413h-.646a.47.47 0 1 0 0 .94h1.176v.728H8.082a.595.595 0 0 0 0 1.19h1.297v.532a.648.648 0 1 0 1.296 0v-.532h1.313a.595.595 0 0 0 0-1.19h-1.313v-.728h1.192a.47.47 0 0 0 0-.94h-.641l.958-1.387a.555.555 0 0 0-.172-.79.638.638 0 0 0-.849.179l-1.123 1.594zM10 2.083c2.002 0 3.7.304 5.095.912a3.5 3.5 0 0 1 1.26.933c-.32.216-.88.412-1.64.574-1.244.264-2.922.415-4.715.415-1.793 0-3.471-.151-4.714-.415-.76-.162-1.32-.358-1.642-.573.342-.4.772-.72 1.26-.933v-.001c1.296-.564 2.853-.867 4.672-.907L10 2.083z" fill="#A4ACB9"/></g></svg>
@@ -11,7 +11,7 @@
11
11
  align-items: center;
12
12
  justify-content: center;
13
13
  margin-right: 10px;
14
- background: #F0F2F5;
14
+ background: #f0f2f5;
15
15
  }
16
16
 
17
17
  .titaui-new-file-list-single-file__file-preview-img {
@@ -28,7 +28,8 @@
28
28
  .titaui-new-file-list-single-file__file-name {
29
29
  text-align: center;
30
30
  margin-top: 8px;
31
- color: #3F4755;
31
+ color: #3f4755;
32
+ margin-right: 10px;
32
33
  }
33
34
 
34
35
  .titaui-new-file-list-single-file__operate {
@@ -47,7 +48,7 @@
47
48
  .titaui-new-file-list-single-file__operate-item {
48
49
  font-size: 12px;
49
50
  font-weight: 400;
50
- color: #FFFFFF;
51
+ color: #ffffff;
51
52
  line-height: 18px;
52
53
  display: flex;
53
54
  flex-direction: column;
@@ -60,7 +61,7 @@
60
61
 
61
62
  .titaui-new-file-list-single-file__operate-item-icon {
62
63
  margin-bottom: 4px;
63
- color: #3F4755;
64
+ color: #3f4755;
64
65
  width: 32px;
65
66
  height: 32px;
66
67
  display: flex;
@@ -73,7 +74,7 @@
73
74
 
74
75
  .titaui-new-file-list-single-file__operate-item:hover {
75
76
  cursor: pointer;
76
- color: #FFFFFF;
77
+ color: #ffffff;
77
78
  }
78
79
 
79
80
  .titaui-new-file-list-single-file__operate-item--only {
@@ -1,5 +1,6 @@
1
1
  .titaui-new-file-list {
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
+ row-gap: 12px;
4
5
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
5
6
  }