@titaui/pc 1.10.5 → 1.10.6
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/communication/CommunicationRecord.js +18 -12
- package/lib/components/communication/index.css +48 -9
- package/lib/components/communication/index.js +67 -28
- package/lib/components/communication/style.js +7 -5
- package/lib/components/dynamic/components/obj-status/index.css +2 -19
- package/lib/components/dynamic/components/obj-status/index.js +7 -8
- package/lib/components/dynamic/components/obj-status/utils.js +37 -0
- package/lib/components/dynamic/components/percent/index.css +1 -1
- package/lib/components/dynamic/components/title/index.css +21 -22
- package/lib/components/dynamic/components/title/index.js +20 -8
- package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
- package/lib/components/dynamic/dynamic-item/components/header/index.js +12 -6
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +35 -24
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +35 -29
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +6 -34
- package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +59 -19
- package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +27 -19
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +49 -38
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +49 -44
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +41 -29
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +23 -29
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +33 -16
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -24
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +26 -41
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +16 -54
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +31 -80
- package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +10 -23
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +45 -26
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +41 -33
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +19 -6
- package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +11 -17
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -23
- package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +31 -27
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +8 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -21
- package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +6 -36
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +10 -18
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +9 -25
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +34 -30
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -24
- package/lib/components/dynamic/dynamic-item/index.css +4 -4
- package/lib/components/dynamic/dynamic-item/index.js +38 -8
- package/lib/components/dynamic/util.js +41 -81
- package/lib/components/file-list/components/single-file/index.css +9 -8
- package/lib/components/float-fixed-video-modal/img/close.png +0 -0
- package/lib/components/float-fixed-video-modal/img/full.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/muted.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/pause.svg +21 -0
- package/lib/components/float-fixed-video-modal/img/play.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/small.svg +22 -0
- package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
- package/lib/components/float-fixed-video-modal/img/volume.svg +21 -0
- package/lib/components/float-fixed-video-modal/index.css +243 -0
- package/lib/components/float-fixed-video-modal/index.js +334 -0
- package/lib/components/float-fixed-video-modal/utils.js +25 -0
- package/lib/components/mblog/context.js +3 -1
- package/lib/components/mblog/index.css +7 -0
- package/lib/components/mblog/index.js +31 -4
- package/lib/components/mblog/style.js +4 -4
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
- package/lib/components/progress/circle-progress/index.css +1 -0
- package/lib/components/progress/circle-progress/index.js +7 -2
- package/lib/components/search-key-handle/index.js +7 -2
- package/lib/components/video-modal/img/bigFaqi.png +0 -0
- package/lib/components/video-modal/img/muted.svg +16 -0
- package/lib/components/video-modal/img/not-muted.svg +16 -0
- package/lib/components/video-modal/img/pause.svg +17 -0
- package/lib/components/video-modal/img/play.png +0 -0
- package/lib/components/video-modal/img/play.svg +16 -0
- package/lib/components/video-modal/img/small.svg +22 -0
- package/lib/components/video-modal/index.css +213 -0
- package/lib/components/video-modal/index.js +322 -0
- package/lib/components/video-modal/utils.js +25 -0
- package/lib/index.js +16 -0
- package/package.json +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
|
@@ -11,7 +11,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _reactTooltip = _interopRequireDefault(require("react-tooltip"));
|
|
13
13
|
|
|
14
|
-
var _avatar = _interopRequireDefault(require("
|
|
14
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
15
15
|
|
|
16
16
|
var _Portals = _interopRequireDefault(require("../../components-v1/portals/Portals"));
|
|
17
17
|
|
|
@@ -64,7 +64,11 @@ var CommunicationRecord = function CommunicationRecord(_ref) {
|
|
|
64
64
|
return /*#__PURE__*/_react["default"].createElement(_style.CommunicationItem, {
|
|
65
65
|
className: className
|
|
66
66
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
67
|
-
size:
|
|
67
|
+
size: {
|
|
68
|
+
width: 28,
|
|
69
|
+
fontSize: 14,
|
|
70
|
+
textNum: 1
|
|
71
|
+
},
|
|
68
72
|
name: communicationTrack.publishUser.name,
|
|
69
73
|
src: communicationTrack.publishUser.avatar.small,
|
|
70
74
|
color: communicationTrack.publishUser.avatar.color,
|
|
@@ -78,8 +82,10 @@ var CommunicationRecord = function CommunicationRecord(_ref) {
|
|
|
78
82
|
userName: communicationTrack.publishUser.name,
|
|
79
83
|
userId: communicationTrack.publishUser.userId
|
|
80
84
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
81
|
-
className: "".concat(prefix, "__communication-
|
|
82
|
-
},
|
|
85
|
+
className: "".concat(prefix, "__communication-time")
|
|
86
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
87
|
+
className: "".concat(prefix, "__communication-time-point")
|
|
88
|
+
}, "\xB7"), communicationTrack.createDate)) : /*#__PURE__*/_react["default"].createElement("span", null, /*#__PURE__*/_react["default"].createElement(_ConvertUserName["default"], {
|
|
83
89
|
userName: communicationTrack.publishUser.name,
|
|
84
90
|
userId: communicationTrack.publishUser.userId
|
|
85
91
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -88,25 +94,25 @@ var CommunicationRecord = function CommunicationRecord(_ref) {
|
|
|
88
94
|
userName: communicationTrack.parentUser.name,
|
|
89
95
|
userId: communicationTrack.parentUser.userId
|
|
90
96
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
|
-
className: "".concat(prefix, "__communication-
|
|
92
|
-
},
|
|
97
|
+
className: "".concat(prefix, "__communication-time")
|
|
98
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
99
|
+
className: "".concat(prefix, "__communication-time-point")
|
|
100
|
+
}, "\xB7"), communicationTrack.createDate), /*#__PURE__*/_react["default"].createElement(_Portals["default"], null, /*#__PURE__*/_react["default"].createElement(_reactTooltip["default"], {
|
|
93
101
|
html: true,
|
|
94
102
|
className: "tt-react-tooltip",
|
|
95
103
|
place: "top",
|
|
96
104
|
type: "dark",
|
|
97
105
|
effect: "solid"
|
|
98
|
-
}))), /*#__PURE__*/_react["default"].createElement("
|
|
99
|
-
className: "".concat(prefix, "__communication-content"),
|
|
100
|
-
ref: contentRef
|
|
101
|
-
}, (0, _openData.parseTag)(communicationTrack.content.trim()))), communicationTrack.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
})))), communicationTrack.attachments && /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
107
|
className: "".concat(prefix, "__communication-attachments")
|
|
103
108
|
}, /*#__PURE__*/_react["default"].createElement(_fileList["default"], {
|
|
104
109
|
data: communicationTrack.attachments
|
|
105
110
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
111
|
className: "".concat(prefix, "__communication-bottom")
|
|
107
112
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
|
-
className: "".concat(prefix, "__communication-
|
|
109
|
-
|
|
113
|
+
className: "".concat(prefix, "__communication-content"),
|
|
114
|
+
ref: contentRef
|
|
115
|
+
}, (0, _openData.parseTag)(communicationTrack.content.trim())), /*#__PURE__*/_react["default"].createElement(_style.CommunicationActionbar, {
|
|
110
116
|
className: "communication__actionbar"
|
|
111
117
|
}, /*#__PURE__*/_react["default"].createElement(_style.ActionbarList, null, /*#__PURE__*/_react["default"].createElement(_style.ActionbarItem, {
|
|
112
118
|
onMouseDown: function onMouseDown(event) {
|
|
@@ -5,17 +5,11 @@
|
|
|
5
5
|
margin: 0 8px;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.titaui-communication__communication-colon {
|
|
9
|
-
font-size: 14px;
|
|
10
|
-
font-weight: 600;
|
|
11
|
-
color: #3f4755;
|
|
12
|
-
line-height: 22px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
8
|
.titaui-communication__communication-content {
|
|
16
9
|
font-size: 14px;
|
|
17
10
|
color: #6f7886;
|
|
18
11
|
line-height: 22px;
|
|
12
|
+
position: relative;
|
|
19
13
|
}
|
|
20
14
|
|
|
21
15
|
.titaui-communication__communication-content .highlight {
|
|
@@ -47,9 +41,14 @@
|
|
|
47
41
|
|
|
48
42
|
.titaui-communication__communication-time {
|
|
49
43
|
font-size: 12px;
|
|
50
|
-
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
color: #89919F;
|
|
51
46
|
line-height: 18px;
|
|
52
|
-
margin-
|
|
47
|
+
margin-left: 6px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.titaui-communication__communication-time-point {
|
|
51
|
+
margin-right: 4px;
|
|
53
52
|
}
|
|
54
53
|
|
|
55
54
|
.titaui-communication__communication-bottom {
|
|
@@ -68,8 +67,48 @@
|
|
|
68
67
|
display: flex;
|
|
69
68
|
align-items: center;
|
|
70
69
|
user-select: none;
|
|
70
|
+
color: #2879ff;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.titaui-communication__communication-total-icon {
|
|
74
74
|
margin-left: 4px;
|
|
75
|
+
margin-top: -2px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.titaui-communication__reply-container-text {
|
|
79
|
+
margin-right: 4px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.titaui-communication__reply-container--show-user {
|
|
83
|
+
margin-left: 40px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.titaui-communication__reply-default-input {
|
|
87
|
+
display: flex;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.titaui-communication__reply-default-input-text {
|
|
91
|
+
flex: 1;
|
|
92
|
+
cursor: text;
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
color: #BFC7D5;
|
|
95
|
+
line-height: 22px;
|
|
96
|
+
margin-left: 12px;
|
|
97
|
+
height: 32px;
|
|
98
|
+
border-radius: 16px;
|
|
99
|
+
background: rgba(240, 244, 250, 0.6);
|
|
100
|
+
border-radius: 16px;
|
|
101
|
+
border: 1px solid #E9ECF0;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
padding-left: 12px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.titaui-communication__reply-default-input-avatar {
|
|
109
|
+
height: 32px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.titaui-communication__reply-default-input-avatar .titaui-pc-avator-container {
|
|
113
|
+
display: inline-flex;
|
|
75
114
|
}
|
|
@@ -19,12 +19,16 @@ var _CommunicationRecord = _interopRequireDefault(require("./CommunicationRecord
|
|
|
19
19
|
|
|
20
20
|
var _requestV = require("../../utils/request-v1");
|
|
21
21
|
|
|
22
|
+
var _bsGlobal = require("../../utils/bs-global");
|
|
23
|
+
|
|
22
24
|
var _style = require("./style");
|
|
23
25
|
|
|
24
26
|
var _openData = require("../../utils/open-data");
|
|
25
27
|
|
|
26
28
|
var _getLocale = require("../../utils/getLocale");
|
|
27
29
|
|
|
30
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
31
|
+
|
|
28
32
|
require("./index.css");
|
|
29
33
|
|
|
30
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -33,6 +37,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
33
37
|
|
|
34
38
|
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; }
|
|
35
39
|
|
|
40
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
41
|
+
|
|
36
42
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
37
43
|
|
|
38
44
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -91,7 +97,7 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
91
97
|
_this.setState({
|
|
92
98
|
communicationTrackList: data.comments ? data.comments : [],
|
|
93
99
|
communicationTrackTotal: data.total,
|
|
94
|
-
okrCommentFeedId: commentType
|
|
100
|
+
okrCommentFeedId: commentType === 2 ? res.Data.feedId : ""
|
|
95
101
|
});
|
|
96
102
|
} else {
|
|
97
103
|
_this.setState({
|
|
@@ -162,7 +168,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
162
168
|
isShowReplyToUser: true,
|
|
163
169
|
replyUser: communicationTrackList[index].publishUser.name,
|
|
164
170
|
replyUserId: communicationTrackList[index].publishUser.userId,
|
|
165
|
-
replyUserCommentId: communicationTrackList[index].commentId
|
|
171
|
+
replyUserCommentId: communicationTrackList[index].commentId,
|
|
172
|
+
isShowDefaultInput: false
|
|
166
173
|
});
|
|
167
174
|
} else if (actionType === "praise") {
|
|
168
175
|
// 沟通里的点赞
|
|
@@ -242,14 +249,15 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
242
249
|
submitStatus: 2
|
|
243
250
|
});
|
|
244
251
|
|
|
245
|
-
var url = commentType
|
|
252
|
+
var url = commentType === 1 ? (0, _requestV.getApiUrl2)("comment/Add") : (0, _requestV.getApiUrl)("okr/cycle/addComment?objId=".concat(okrFeedParams && okrFeedParams.objId, "&objType=").concat(okrFeedParams && okrFeedParams.objType, "&cycleType=").concat(okrFeedParams && okrFeedParams.cycleType, "&yqmNum=").concat(okrFeedParams && okrFeedParams.yqmNum, "&annualNum=").concat(okrFeedParams && okrFeedParams.annualNum));
|
|
246
253
|
(0, _requestV.taker)(url, "POST", sentData).then(function (res) {
|
|
247
254
|
if (res.Code === 1) {
|
|
248
255
|
isShowAllCommunicationRecord ? _this.getFeedInfo(feedId, communicationTrackTotal + 1) : _this.getFeedInfo(feedId, commentCount);
|
|
249
256
|
|
|
250
257
|
_this.setState({
|
|
251
258
|
submitStatus: 1,
|
|
252
|
-
isShowReplyToUser: false
|
|
259
|
+
isShowReplyToUser: false,
|
|
260
|
+
isShowDefaultInput: true
|
|
253
261
|
});
|
|
254
262
|
} else {
|
|
255
263
|
_this.setState({
|
|
@@ -271,11 +279,21 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
271
279
|
});
|
|
272
280
|
};
|
|
273
281
|
|
|
274
|
-
|
|
282
|
+
_this.handleShowMblog = function () {
|
|
283
|
+
_this.setState({
|
|
284
|
+
isShowDefaultInput: false
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
var showDefaultInput = props.showDefaultInput,
|
|
289
|
+
usePropsComment = props.usePropsComment,
|
|
290
|
+
communication = props.communication;
|
|
291
|
+
var comments = usePropsComment ? communication || [] : [];
|
|
292
|
+
var communicationLength = props.totalCommunicationNum || comments.length;
|
|
275
293
|
_this.state = {
|
|
276
294
|
communicationTrackList: comments,
|
|
277
295
|
// 沟通记录
|
|
278
|
-
communicationTrackTotal:
|
|
296
|
+
communicationTrackTotal: communicationLength,
|
|
279
297
|
// 沟通记录条数
|
|
280
298
|
isShowAllCommunicationRecord: false,
|
|
281
299
|
// 是否显示所有记录
|
|
@@ -290,7 +308,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
290
308
|
// 点赞记录
|
|
291
309
|
praiseObjId: "",
|
|
292
310
|
isShowPraiseRecordPop: false,
|
|
293
|
-
okrCommentFeedId: ""
|
|
311
|
+
okrCommentFeedId: "",
|
|
312
|
+
isShowDefaultInput: showDefaultInput && communicationLength !== 0 ? true : false
|
|
294
313
|
};
|
|
295
314
|
return _this;
|
|
296
315
|
}
|
|
@@ -304,14 +323,14 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
304
323
|
commentType = _this$props5.commentType,
|
|
305
324
|
usePropsComment = _this$props5.usePropsComment;
|
|
306
325
|
|
|
307
|
-
if ((feedId || commentType
|
|
326
|
+
if ((feedId || commentType === 2) && !usePropsComment) {
|
|
308
327
|
this.getFeedInfo(feedId, commentCount);
|
|
309
328
|
}
|
|
310
329
|
}
|
|
311
330
|
}, {
|
|
312
331
|
key: "componentDidUpdate",
|
|
313
332
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
314
|
-
if (prevProps.feedId
|
|
333
|
+
if (prevProps.feedId !== this.props.feedId || prevProps.okrFeedParams !== this.props.okrFeedParams || prevProps.usePropsComment !== this.props.usePropsComment) {
|
|
315
334
|
var _this$props6 = this.props,
|
|
316
335
|
feedId = _this$props6.feedId,
|
|
317
336
|
commentCount = _this$props6.commentCount;
|
|
@@ -339,7 +358,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
339
358
|
isShowReplyToUser = _this$state4.isShowReplyToUser,
|
|
340
359
|
submitStatus = _this$state4.submitStatus,
|
|
341
360
|
isShowPraiseRecordPop = _this$state4.isShowPraiseRecordPop,
|
|
342
|
-
praiseObjId = _this$state4.praiseObjId
|
|
361
|
+
praiseObjId = _this$state4.praiseObjId,
|
|
362
|
+
isShowDefaultInput = _this$state4.isShowDefaultInput;
|
|
343
363
|
var _this$props7 = this.props,
|
|
344
364
|
feedId = _this$props7.feedId,
|
|
345
365
|
className = _this$props7.className,
|
|
@@ -356,21 +376,24 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
356
376
|
_this$props7$highLigh = _this$props7.highLightKeyWord,
|
|
357
377
|
highLightKeyWord = _this$props7$highLigh === void 0 ? "" : _this$props7$highLigh,
|
|
358
378
|
_this$props7$autoFocu = _this$props7.autoFocus,
|
|
359
|
-
autoFocus = _this$props7$autoFocu === void 0 ? false : _this$props7$autoFocu
|
|
379
|
+
autoFocus = _this$props7$autoFocu === void 0 ? false : _this$props7$autoFocu,
|
|
380
|
+
_this$props7$showUser = _this$props7.showUser,
|
|
381
|
+
showUser = _this$props7$showUser === void 0 ? false : _this$props7$showUser;
|
|
382
|
+
var user = (0, _bsGlobal.getUserInfo)();
|
|
360
383
|
return /*#__PURE__*/_react["default"].createElement(_style.CommunicationWrapper, {
|
|
361
384
|
className: "communcation-wrapper ".concat(className)
|
|
362
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, communicationTrackTotal >
|
|
385
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, communicationTrackTotal > 3 && /*#__PURE__*/_react["default"].createElement(_style.CommunicationRecordTotal, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
363
386
|
className: "".concat(prefix, "__communication-total"),
|
|
364
387
|
onMouseDown: function onMouseDown() {
|
|
365
388
|
return _this2.handlerSwitchShowRecord();
|
|
366
389
|
}
|
|
367
390
|
}, (0, _getLocale.getLocale)("Mod_Allcommu"), "\xA0", /*#__PURE__*/_react["default"].createElement("span", null, communicationTrackTotal), communicationTrackTotal > commentCount && /*#__PURE__*/_react["default"].createElement("i", {
|
|
368
391
|
className: (0, _classnames["default"])("".concat(prefix, "__communication-total-icon"), {
|
|
369
|
-
"tu-icon-APP-xi": isShowAllCommunicationRecord,
|
|
370
|
-
"tu-icon-arrow-down1":
|
|
392
|
+
"tu-icon-APP-xi": !isShowAllCommunicationRecord,
|
|
393
|
+
"tu-icon-arrow-down1": isShowAllCommunicationRecord
|
|
371
394
|
})
|
|
372
395
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
373
|
-
className: "".concat(prefix, "__communication-list")
|
|
396
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefix, "__communication-list"), communicationTrackList.length > 0))
|
|
374
397
|
}, communicationTrackList.length > 0 && communicationTrackList.map(function (item, index) {
|
|
375
398
|
var length = communicationTrackList.length;
|
|
376
399
|
|
|
@@ -390,16 +413,14 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
390
413
|
}
|
|
391
414
|
});
|
|
392
415
|
}))), !useCustomMblog && /*#__PURE__*/_react["default"].createElement("div", {
|
|
393
|
-
className: "
|
|
394
|
-
}, /*#__PURE__*/_react["default"].createElement(_style.ReplyToUser, {
|
|
416
|
+
className: "".concat(prefix, "__reply-container")
|
|
417
|
+
}, isShowReplyToUser && /*#__PURE__*/_react["default"].createElement(_style.ReplyToUser, {
|
|
395
418
|
height: isShowReplyToUser ? "auto" : "0",
|
|
396
|
-
padding: isShowReplyToUser ? "
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
402
|
-
}, (0, _getLocale.getLocale)("Mod_Reply")), /*#__PURE__*/_react["default"].createElement(_style.ReplyUser, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
419
|
+
padding: isShowReplyToUser ? "4px 0" : "0",
|
|
420
|
+
className: (0, _classnames["default"])(_defineProperty({}, "".concat(prefix, "__reply-container--show-user"), showUser))
|
|
421
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.ReplyUser, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
422
|
+
className: "".concat(prefix, "__reply-container-text")
|
|
423
|
+
}, (0, _getLocale.getLocale)("Mod_Reply")), /*#__PURE__*/_react["default"].createElement("span", {
|
|
403
424
|
className: "name"
|
|
404
425
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
405
426
|
name: replyUser,
|
|
@@ -407,7 +428,23 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
407
428
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
408
429
|
className: "tu-icon-cross",
|
|
409
430
|
onMouseDown: this.handlerCancelReplyUser
|
|
410
|
-
}))), /*#__PURE__*/_react["default"].createElement(
|
|
431
|
+
}))), isShowDefaultInput && !isShowReplyToUser && /*#__PURE__*/_react["default"].createElement("div", {
|
|
432
|
+
className: "".concat(prefix, "__reply-default-input")
|
|
433
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
434
|
+
className: "".concat(prefix, "__reply-default-input-avatar")
|
|
435
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
436
|
+
size: {
|
|
437
|
+
width: 28,
|
|
438
|
+
textNum: 1,
|
|
439
|
+
fontSize: 14
|
|
440
|
+
},
|
|
441
|
+
name: user.Name,
|
|
442
|
+
color: user.UserAvatar.Color,
|
|
443
|
+
src: user.UserAvatar.Medium
|
|
444
|
+
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
445
|
+
onClick: this.handleShowMblog,
|
|
446
|
+
className: "".concat(prefix, "__reply-default-input-text")
|
|
447
|
+
}, "\u8F93\u5165\u6C9F\u901A\u5185\u5BB9")), !isShowDefaultInput && /*#__PURE__*/_react["default"].createElement(_mblog["default"], {
|
|
411
448
|
setTextareaRef: setTextareaRef || function () {},
|
|
412
449
|
isHasPlaceholder: true,
|
|
413
450
|
placeholderText: (0, _getLocale.getLocale)("Mod_contentofyour"),
|
|
@@ -424,7 +461,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
424
461
|
autoResizing: false,
|
|
425
462
|
onMblogSubmit: function onMblogSubmit(submitType, sentData) {
|
|
426
463
|
return _this2.handlerReply(submitType, sentData);
|
|
427
|
-
}
|
|
464
|
+
},
|
|
465
|
+
showUser: showUser
|
|
428
466
|
})), isShowPraiseRecordPop && /*#__PURE__*/_react["default"].createElement(_praiseRecord["default"], {
|
|
429
467
|
objId: praiseObjId,
|
|
430
468
|
objType: 19,
|
|
@@ -441,7 +479,8 @@ var Communication = /*#__PURE__*/function (_PureComponent) {
|
|
|
441
479
|
return Communication;
|
|
442
480
|
}(_react.PureComponent);
|
|
443
481
|
|
|
444
|
-
exports["default"] = Communication;
|
|
445
482
|
Communication.defaultProps = {
|
|
446
483
|
commentType: 1
|
|
447
|
-
};
|
|
484
|
+
};
|
|
485
|
+
var _default = Communication;
|
|
486
|
+
exports["default"] = _default;
|
|
@@ -7,6 +7,8 @@ exports.ReplyUser = exports.ReplyToUser = exports.ConfirmWrapper = exports.Confi
|
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
10
|
+
var _praiseBg = _interopRequireDefault(require("./praise-bg.png"));
|
|
11
|
+
|
|
10
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -17,7 +19,7 @@ var CommunicationWrapper = _styledComponents["default"].div(_templateObject || (
|
|
|
17
19
|
|
|
18
20
|
exports.CommunicationWrapper = CommunicationWrapper;
|
|
19
21
|
|
|
20
|
-
var CommunicationRecordTotal = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: 8px;\n font-size:
|
|
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"])));
|
|
21
23
|
|
|
22
24
|
exports.CommunicationRecordTotal = CommunicationRecordTotal;
|
|
23
25
|
|
|
@@ -29,7 +31,7 @@ var ReplyToUser = _styledComponents["default"].div(_templateObject3 || (_templat
|
|
|
29
31
|
|
|
30
32
|
exports.ReplyToUser = ReplyToUser;
|
|
31
33
|
|
|
32
|
-
var ReplyUser = _styledComponents["default"].
|
|
34
|
+
var ReplyUser = _styledComponents["default"].span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 2px 8px;\n line-height: 20px;\n border-radius: 12px;\n display: inline-flex;\n align-items: center;\n color: #89919F;\n background-color: #f5f8fa;\n word-break: break-all;\n\n .tu-icon-cross {\n margin-left: 4px;\n font-size: 16px;\n color: #89919F;\n cursor: pointer;\n &:hover {\n color: #f05e5e;\n }\n }\n"])));
|
|
33
35
|
|
|
34
36
|
exports.ReplyUser = ReplyUser;
|
|
35
37
|
|
|
@@ -37,7 +39,7 @@ var CommunicationItem = _styledComponents["default"].div(_templateObject5 || (_t
|
|
|
37
39
|
|
|
38
40
|
exports.CommunicationItem = CommunicationItem;
|
|
39
41
|
|
|
40
|
-
var CommunicationDetail = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: calc(100% - 35px);\n margin-top: 2px;\n margin-left:
|
|
42
|
+
var CommunicationDetail = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n width: calc(100% - 35px);\n margin-top: 2px;\n margin-left: 12px;\n display: flex;\n flex-direction: column;\n\n p {\n line-height: 17px;\n }\n"])));
|
|
41
43
|
|
|
42
44
|
exports.CommunicationDetail = CommunicationDetail;
|
|
43
45
|
|
|
@@ -45,7 +47,7 @@ var CommunicationContent = _styledComponents["default"].p(_templateObject7 || (_
|
|
|
45
47
|
|
|
46
48
|
exports.CommunicationContent = CommunicationContent;
|
|
47
49
|
|
|
48
|
-
var CommunicationActionbar = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: none;\n position: absolute;\n right: 0;\n"])));
|
|
50
|
+
var CommunicationActionbar = _styledComponents["default"].div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: none;\n position: absolute;\n right: 0;\n bottom: 0;\n"])));
|
|
49
51
|
|
|
50
52
|
exports.CommunicationActionbar = CommunicationActionbar;
|
|
51
53
|
|
|
@@ -81,7 +83,7 @@ var AttachmentAction = _styledComponents["default"].div(_templateObject16 || (_t
|
|
|
81
83
|
|
|
82
84
|
exports.AttachmentAction = AttachmentAction;
|
|
83
85
|
|
|
84
|
-
var ConfirmWrapper = _styledComponents["default"].div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n min-width: 300px;\n border-radius: 2px;\n box-shadow: 0 0 4px 0 rgba(0,0,0,0.20);\n background-color: #ffffff;\n \n &.bg {\n background: url(", ") no-repeat 0 0 / 101% 105%;\n box-shadow: 0 6px 15px 0 rgba(0,0,0,0.15);\n }\n"])),
|
|
86
|
+
var ConfirmWrapper = _styledComponents["default"].div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n min-width: 300px;\n border-radius: 2px;\n box-shadow: 0 0 4px 0 rgba(0,0,0,0.20);\n background-color: #ffffff;\n \n &.bg {\n background: url(", ") no-repeat 0 0 / 101% 105%;\n box-shadow: 0 6px 15px 0 rgba(0,0,0,0.15);\n }\n"])), _praiseBg["default"]);
|
|
85
87
|
|
|
86
88
|
exports.ConfirmWrapper = ConfirmWrapper;
|
|
87
89
|
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
.titaui-dynamic-obj-status {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
|
|
4
|
-
height:
|
|
5
|
-
min-width: 18px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.titaui-dynamic-obj-status--delay {
|
|
9
|
-
background: url("../../img/dynamic-delay.svg");
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.titaui-dynamic-obj-status--normal {
|
|
13
|
-
background: url("../../img/dynamic-normal.svg");
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.titaui-dynamic-obj-status--risk {
|
|
17
|
-
background: url("../../img/dynamic-risk.svg");
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.titaui-dynamic-obj-status--end {
|
|
21
|
-
background: url("../../img/dynamic-end.svg");
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 24px;
|
|
22
5
|
}
|
|
@@ -11,17 +11,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
11
11
|
|
|
12
12
|
var _util = require("../../util");
|
|
13
13
|
|
|
14
|
+
var _utils = require("./utils");
|
|
15
|
+
|
|
14
16
|
require("./index.css");
|
|
15
17
|
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
19
|
|
|
18
20
|
var prefix = "titaui-dynamic-obj-status";
|
|
19
|
-
var StateIconMapping = {
|
|
20
|
-
delay: "".concat(prefix, "--delay"),
|
|
21
|
-
normal: "".concat(prefix, "--normal"),
|
|
22
|
-
risk: "".concat(prefix, "--risk"),
|
|
23
|
-
end: "".concat(prefix, "--end")
|
|
24
|
-
};
|
|
25
21
|
|
|
26
22
|
var DynamicObjStatus = function DynamicObjStatus(_ref) {
|
|
27
23
|
var _ref$oStatus = _ref.oStatus,
|
|
@@ -30,8 +26,11 @@ var DynamicObjStatus = function DynamicObjStatus(_ref) {
|
|
|
30
26
|
riskLevel = _ref$riskLevel === void 0 ? 1 : _ref$riskLevel,
|
|
31
27
|
extraClass = _ref.extraClass;
|
|
32
28
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
33
|
-
className: (0, _classnames["default"])(extraClass, prefix
|
|
34
|
-
|
|
29
|
+
className: (0, _classnames["default"])(extraClass, prefix),
|
|
30
|
+
style: {
|
|
31
|
+
color: (0, _utils.getStatusColor)((0, _util.getProgressState)(oStatus, riskLevel))
|
|
32
|
+
}
|
|
33
|
+
}, (0, _utils.getStatusTextMapping)((0, _util.getProgressState)(oStatus, riskLevel)));
|
|
35
34
|
};
|
|
36
35
|
|
|
37
36
|
var _default = DynamicObjStatus;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getStatusTextMapping = exports.getStatusColor = exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
9
|
+
|
|
10
|
+
var getStatusTextMapping = function getStatusTextMapping(status) {
|
|
11
|
+
var statusMapText = {
|
|
12
|
+
delay: (0, _getLocale.getLocale)("OKR_MyO_E_From_Delayed"),
|
|
13
|
+
normal: (0, _getLocale.getLocale)("Pro_page_Mil_Normal"),
|
|
14
|
+
risk: (0, _getLocale.getLocale)("Pro_page_Mil_Existingrisk"),
|
|
15
|
+
end: (0, _getLocale.getLocale)("OKR_MyO_E_From_Completed")
|
|
16
|
+
};
|
|
17
|
+
return statusMapText[status];
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.getStatusTextMapping = getStatusTextMapping;
|
|
21
|
+
|
|
22
|
+
var getStatusColor = function getStatusColor(status) {
|
|
23
|
+
var statusMapText = {
|
|
24
|
+
delay: "#F05E5E",
|
|
25
|
+
normal: "#2879ff",
|
|
26
|
+
risk: "#F6BD16",
|
|
27
|
+
end: "BFC7D5"
|
|
28
|
+
};
|
|
29
|
+
return statusMapText[status];
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.getStatusColor = getStatusColor;
|
|
33
|
+
var _default = {
|
|
34
|
+
getStatusTextMapping: getStatusTextMapping,
|
|
35
|
+
getStatusColor: getStatusColor
|
|
36
|
+
};
|
|
37
|
+
exports["default"] = _default;
|
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
.titaui-dynamic-title {
|
|
2
2
|
display: flex;
|
|
3
3
|
overflow: hidden;
|
|
4
|
-
|
|
4
|
+
word-break: keep-all;
|
|
5
|
+
white-space: nowrap;
|
|
6
|
+
font-size: 13px;
|
|
7
|
+
line-height: 18px;
|
|
8
|
+
border-radius: 18px;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
height: 24px;
|
|
12
|
+
padding-left: 2px;
|
|
13
|
+
padding-right: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.titaui-dynamic-title__type {
|
|
17
|
+
color: #ffffff;
|
|
18
|
+
border-radius: 18px;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
margin-right: 6px;
|
|
23
|
+
padding: 1px 6px;
|
|
5
24
|
}
|
|
6
25
|
|
|
7
26
|
.titaui-dynamic-title__content {
|
|
8
27
|
display: flex;
|
|
9
|
-
height: 36px;
|
|
10
28
|
overflow: hidden;
|
|
11
29
|
box-sizing: border-box;
|
|
12
|
-
background: rgba(240, 244, 250, 0.5);
|
|
13
|
-
border-radius: 18px 18px 18px 1px;
|
|
14
30
|
word-break: keep-all;
|
|
15
31
|
white-space: nowrap;
|
|
16
|
-
padding: 7px 12px;
|
|
17
|
-
font-size: 14px;
|
|
18
|
-
line-height: 22px;
|
|
19
|
-
color: #3f4755;
|
|
20
|
-
font-weight: 600;
|
|
21
32
|
z-index: 2;
|
|
22
33
|
}
|
|
23
34
|
|
|
24
|
-
.titaui-dynamic-title__content-symbol {
|
|
25
|
-
color: #2879ff;
|
|
26
|
-
margin-right: 4px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
35
|
.titaui-dynamic-title__content-text {
|
|
30
36
|
flex: 1;
|
|
31
37
|
overflow: hidden;
|
|
@@ -33,12 +39,5 @@
|
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
.titaui-dynamic-title__content-text:hover {
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.titaui-dynamic-title__fill-empty {
|
|
40
|
-
flex: 1;
|
|
41
|
-
background: rgba(240, 244, 250, 0.5);
|
|
42
|
-
border-radius: 0 18px 18px 0;
|
|
43
|
-
margin-left: -18px;
|
|
42
|
+
opacity: 0.6;
|
|
44
43
|
}
|
|
@@ -28,23 +28,37 @@ var prefix = "titaui-dynamic-title";
|
|
|
28
28
|
var DynamicTitle = function DynamicTitle(_ref) {
|
|
29
29
|
var content = _ref.content,
|
|
30
30
|
onClickTitle = _ref.onClickTitle,
|
|
31
|
-
|
|
31
|
+
type = _ref.type,
|
|
32
|
+
typeBgColor = _ref.typeBgColor,
|
|
33
|
+
titleBgColor = _ref.titleBgColor,
|
|
34
|
+
contentColor = _ref.contentColor;
|
|
32
35
|
|
|
33
36
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
34
37
|
searchKeyWord = _useContext.searchKeyWord;
|
|
35
38
|
|
|
36
39
|
var onTitleClick = function onTitleClick() {
|
|
37
|
-
|
|
40
|
+
if (onClickTitle) {
|
|
41
|
+
onClickTitle();
|
|
42
|
+
}
|
|
38
43
|
};
|
|
39
44
|
|
|
40
45
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
-
className: prefix
|
|
46
|
+
className: prefix,
|
|
47
|
+
style: {
|
|
48
|
+
backgroundColor: titleBgColor
|
|
49
|
+
}
|
|
42
50
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
51
|
+
className: "".concat(prefix, "__type"),
|
|
52
|
+
style: {
|
|
53
|
+
backgroundColor: typeBgColor
|
|
54
|
+
}
|
|
55
|
+
}, type), /*#__PURE__*/_react["default"].createElement("span", {
|
|
43
56
|
className: "".concat(prefix, "__content")
|
|
44
57
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
45
|
-
className: "".concat(prefix, "__content-symbol")
|
|
46
|
-
}, "#"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
47
58
|
className: "".concat(prefix, "__content-text"),
|
|
59
|
+
style: {
|
|
60
|
+
color: contentColor
|
|
61
|
+
},
|
|
48
62
|
onClick: onTitleClick
|
|
49
63
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
50
64
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
@@ -52,9 +66,7 @@ var DynamicTitle = function DynamicTitle(_ref) {
|
|
|
52
66
|
keyWord: searchKeyWord
|
|
53
67
|
}),
|
|
54
68
|
isPercent: true
|
|
55
|
-
}))
|
|
56
|
-
className: "".concat(prefix, "__fill-empty")
|
|
57
|
-
}));
|
|
69
|
+
}))));
|
|
58
70
|
};
|
|
59
71
|
|
|
60
72
|
var _default = DynamicTitle;
|