@titaui/pc 1.7.65 → 1.7.69
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/button/rect-btn/index.css +3 -3
- package/lib/components/button/rect-btn/index.js +3 -1
- package/lib/components/dynamic/constant.js +3 -1
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +86 -0
- package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +86 -0
- package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +107 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/jiantou-right@3x.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/user-photo.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +77 -0
- package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +110 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/dynamic/quick-operation/index.js +2 -1
- package/lib/components/dynamic/util.js +10 -0
- package/lib/components/nav-top/index.js +2 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.js +3 -2
- package/lib/components/tooltip/index.css +1 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.css +0 -1
- package/lib/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +8 -3
- package/lib/components/version-change-modal/index.js +1 -1
- package/lib/components/weekly-report/common-painter/openDataPainter.js +3 -3
- package/lib/index.js +8 -0
- package/lib/pages/new-okr-list/header/comments.js +1 -1
- package/lib/utils/mblog.js +2 -1
- package/package.json +1 -1
- package/src/components/button/rect-btn/index.scss +3 -3
- package/src/components/button/rect-btn/index.tsx +3 -1
- package/src/components/button/types.ts +1 -0
- package/src/components/dynamic/constant.ts +3 -1
- package/src/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
- package/src/components/dynamic/dynamic-item/dynamic-okrs-communication/index.scss +77 -0
- package/src/components/dynamic/dynamic-item/dynamic-okrs-communication/index.tsx +81 -0
- package/src/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
- package/src/components/dynamic/dynamic-item/dynamic-plan-communication/index.scss +77 -0
- package/src/components/dynamic/dynamic-item/dynamic-plan-communication/index.tsx +81 -0
- package/src/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/jiantou-right@3x.png +0 -0
- package/src/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/user-photo.png +0 -0
- package/src/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.scss +72 -0
- package/src/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.tsx +82 -0
- package/src/components/dynamic/dynamic-item/dynamic-task/index.tsx +2 -1
- package/src/components/dynamic/quick-operation/index.tsx +3 -1
- package/src/components/dynamic/util.ts +8 -0
- package/src/components/nav-top/index.tsx +2 -1
- package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.tsx +3 -2
- package/src/components/tooltip/index.scss +1 -1
- package/src/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +2 -1
- package/src/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.scss +0 -1
- package/src/components/version-change-modal/index.tsx +1 -1
- package/src/components/weekly-report/common-painter/openDataPainter.ts +2 -2
- package/src/index.js +1 -0
- package/src/pages/new-okr-list/header/comments.tsx +1 -2
- package/src/utils/mblog.js +2 -1
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
|
|
26
26
|
.titaui-rect-btn--big {
|
|
27
27
|
border-radius: 18px;
|
|
28
|
-
height:
|
|
29
|
-
line-height:
|
|
28
|
+
height: 36px;
|
|
29
|
+
line-height: 34px;
|
|
30
30
|
min-width: 90px;
|
|
31
31
|
padding: 0 16px;
|
|
32
32
|
}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.titaui-rect-btn--primary.titaui-rect-btn--big {
|
|
98
|
-
line-height:
|
|
98
|
+
line-height: 36px;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.titaui-rect-btn--primary.titaui-rect-btn--disabled {
|
|
@@ -31,7 +31,8 @@ var RectBtn = function RectBtn(props) {
|
|
|
31
31
|
_props$className = props.className,
|
|
32
32
|
className = _props$className === void 0 ? "" : _props$className,
|
|
33
33
|
_props$disabled = props.disabled,
|
|
34
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled
|
|
34
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
35
|
+
style = props.style;
|
|
35
36
|
|
|
36
37
|
var renderIcon = function renderIcon() {
|
|
37
38
|
if (typeof icon == "string") {
|
|
@@ -54,6 +55,7 @@ var RectBtn = function RectBtn(props) {
|
|
|
54
55
|
|
|
55
56
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
56
57
|
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(type), "".concat(precls, "--").concat(size), _defineProperty({}, "".concat(precls, "--disabled"), disabled), className),
|
|
58
|
+
style: style,
|
|
57
59
|
onClick: onClickHandler
|
|
58
60
|
}, icon && renderIcon(), props.children || text);
|
|
59
61
|
};
|
|
@@ -41,7 +41,7 @@ exports.EFeedType = EFeedType;
|
|
|
41
41
|
EFeedType[EFeedType["Bless"] = 14] = "Bless";
|
|
42
42
|
EFeedType[EFeedType["Kr"] = 15] = "Kr";
|
|
43
43
|
EFeedType[EFeedType["MileStone"] = 16] = "MileStone";
|
|
44
|
-
EFeedType[EFeedType["
|
|
44
|
+
EFeedType[EFeedType["OKREStatistics"] = 17] = "OKREStatistics";
|
|
45
45
|
EFeedType[EFeedType["Reply"] = 18] = "Reply";
|
|
46
46
|
EFeedType[EFeedType["OkrCycle"] = 19] = "OkrCycle";
|
|
47
47
|
EFeedType[EFeedType["Task"] = 20] = "Task";
|
|
@@ -51,6 +51,8 @@ exports.EFeedType = EFeedType;
|
|
|
51
51
|
EFeedType[EFeedType["Announcement"] = 24] = "Announcement";
|
|
52
52
|
EFeedType[EFeedType["Signin"] = 80] = "Signin";
|
|
53
53
|
EFeedType[EFeedType["O"] = 101] = "O";
|
|
54
|
+
EFeedType[EFeedType["OKRsCommunication"] = 102] = "OKRsCommunication";
|
|
55
|
+
EFeedType[EFeedType["PlanCommunication"] = 103] = "PlanCommunication";
|
|
54
56
|
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
55
57
|
|
|
56
58
|
var EObjType;
|
|
Binary file
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.titaui-dynamic-okrs-communication-item {
|
|
2
|
+
border-radius: 12px;
|
|
3
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
4
|
+
background: #ffffff;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-dynamic-okrs-communication-item__content {
|
|
11
|
+
height: 78px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
|
+
padding: 16px 12px 16px 16px;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
margin-left: 69px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-okrs-communication-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-okrs-communication-item__content-info {
|
|
28
|
+
flex: 1;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
margin-left: 16px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-okrs-communication-item__content-title {
|
|
36
|
+
flex: 1;
|
|
37
|
+
word-break: keep-all;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
color: #3f4755;
|
|
43
|
+
line-height: 24px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-dynamic-okrs-communication-item__content-title-text {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.titaui-dynamic-okrs-communication-item__content-title-text:hover {
|
|
51
|
+
color: #2879ff;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.titaui-dynamic-okrs-communication-item__content-title-priority {
|
|
55
|
+
width: 18px;
|
|
56
|
+
height: 26px;
|
|
57
|
+
margin-right: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-dynamic-okrs-communication-item__operate-desc {
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
color: #89919f;
|
|
64
|
+
line-height: 22px;
|
|
65
|
+
margin: 0 8px 0 4px;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.titaui-dynamic-okrs-communication-item__operate-desc-wrapper {
|
|
70
|
+
display: flex;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-okrs-communication-item-desc-operate-type {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
padding: 0 2px;
|
|
78
|
+
height: 18px;
|
|
79
|
+
min-width: 40px;
|
|
80
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
81
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
82
|
+
border-radius: 14px 10px 10px 4px;
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
color: #ffffff;
|
|
85
|
+
line-height: 18px;
|
|
86
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
13
|
+
|
|
14
|
+
var _okrsIcon = _interopRequireDefault(require("./img/okrs-icon.png"));
|
|
15
|
+
|
|
16
|
+
var _context = require("../../context");
|
|
17
|
+
|
|
18
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
19
|
+
|
|
20
|
+
var _tooltip = require("../../../tooltip");
|
|
21
|
+
|
|
22
|
+
var _util = require("../../util");
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
var _excluded = ["data"];
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
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; }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
var prefix = "titaui-dynamic-okrs-communication-item";
|
|
41
|
+
|
|
42
|
+
var DynamicTask = function DynamicTask(_ref) {
|
|
43
|
+
var data = _ref.data,
|
|
44
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
+
|
|
46
|
+
var status = data.status,
|
|
47
|
+
taskName = data.taskName,
|
|
48
|
+
startDate = data.startDate,
|
|
49
|
+
deadline = data.deadline,
|
|
50
|
+
feedType = data.feedType,
|
|
51
|
+
principalUser = data.principalUser;
|
|
52
|
+
|
|
53
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
54
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
55
|
+
|
|
56
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
57
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
+
|
|
60
|
+
var handleClickPlanTitle = function handleClickPlanTitle() {
|
|
61
|
+
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var renderName = (0, _react.useMemo)(function () {
|
|
65
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
className: prefix + "__content-title-text",
|
|
67
|
+
onClick: handleClickPlanTitle
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
69
|
+
str: taskName,
|
|
70
|
+
keyWord: searchKeyWord
|
|
71
|
+
}));
|
|
72
|
+
}, [taskName, searchKeyWord]);
|
|
73
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
74
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
|
+
className: prefix + "__operate-desc"
|
|
76
|
+
}, "\u7684\u8BA1\u5212\u8868"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
+
className: prefix + "-desc-operate-type",
|
|
78
|
+
style: {
|
|
79
|
+
background: feedTypeColor
|
|
80
|
+
}
|
|
81
|
+
}, feedTypeText));
|
|
82
|
+
}, []);
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
className: prefix
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
86
|
+
data: data
|
|
87
|
+
}, restProps, {
|
|
88
|
+
desc: renderDesc,
|
|
89
|
+
user: principalUser
|
|
90
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
+
className: "".concat(prefix, "__content")
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
93
|
+
className: "".concat(prefix, "__content-img"),
|
|
94
|
+
src: _okrsIcon["default"]
|
|
95
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
+
className: prefix + "__content-info"
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: prefix + "__content-title"
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
100
|
+
isPercent: true,
|
|
101
|
+
text: renderName,
|
|
102
|
+
minusWidth: 30
|
|
103
|
+
})))));
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var _default = DynamicTask;
|
|
107
|
+
exports["default"] = _default;
|
|
Binary file
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.titaui-dynamic-plan-communication-item {
|
|
2
|
+
border-radius: 12px;
|
|
3
|
+
box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
|
|
4
|
+
background: #ffffff;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-dynamic-plan-communication-item__content {
|
|
11
|
+
height: 78px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: rgba(240, 244, 250, 0.5);
|
|
16
|
+
padding: 16px 12px 16px 16px;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
margin-left: 69px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.titaui-dynamic-plan-communication-item__content-img {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
width: 36px;
|
|
24
|
+
border-radius: 6px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-dynamic-plan-communication-item__content-info {
|
|
28
|
+
flex: 1;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
margin-left: 16px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.titaui-dynamic-plan-communication-item__content-title {
|
|
36
|
+
flex: 1;
|
|
37
|
+
word-break: keep-all;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
color: #3f4755;
|
|
43
|
+
line-height: 24px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-dynamic-plan-communication-item__content-title-text {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.titaui-dynamic-plan-communication-item__content-title-text:hover {
|
|
51
|
+
color: #2879ff;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.titaui-dynamic-plan-communication-item__content-title-priority {
|
|
55
|
+
width: 18px;
|
|
56
|
+
height: 26px;
|
|
57
|
+
margin-right: 4px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.titaui-dynamic-plan-communication-item__operate-desc {
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
color: #89919f;
|
|
64
|
+
line-height: 22px;
|
|
65
|
+
margin: 0 8px 0 4px;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.titaui-dynamic-plan-communication-item__operate-desc-wrapper {
|
|
70
|
+
display: flex;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.titaui-dynamic-plan-communication-item-desc-operate-type {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
padding: 0 2px;
|
|
78
|
+
height: 18px;
|
|
79
|
+
min-width: 40px;
|
|
80
|
+
clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
81
|
+
-webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
|
|
82
|
+
border-radius: 14px 10px 10px 4px;
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
color: #ffffff;
|
|
85
|
+
line-height: 18px;
|
|
86
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
13
|
+
|
|
14
|
+
var _planIcon = _interopRequireDefault(require("./img/plan-icon.png"));
|
|
15
|
+
|
|
16
|
+
var _context = require("../../context");
|
|
17
|
+
|
|
18
|
+
var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handle"));
|
|
19
|
+
|
|
20
|
+
var _tooltip = require("../../../tooltip");
|
|
21
|
+
|
|
22
|
+
var _util = require("../../util");
|
|
23
|
+
|
|
24
|
+
require("./index.css");
|
|
25
|
+
|
|
26
|
+
var _excluded = ["data"];
|
|
27
|
+
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
|
+
|
|
30
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
+
|
|
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; }
|
|
33
|
+
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
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; }
|
|
39
|
+
|
|
40
|
+
var prefix = "titaui-dynamic-plan-communication-item";
|
|
41
|
+
|
|
42
|
+
var DynamicTask = function DynamicTask(_ref) {
|
|
43
|
+
var data = _ref.data,
|
|
44
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
45
|
+
|
|
46
|
+
var status = data.status,
|
|
47
|
+
taskName = data.taskName,
|
|
48
|
+
startDate = data.startDate,
|
|
49
|
+
deadline = data.deadline,
|
|
50
|
+
feedType = data.feedType,
|
|
51
|
+
principalUser = data.principalUser;
|
|
52
|
+
|
|
53
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
54
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
55
|
+
|
|
56
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(feedType),
|
|
57
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
58
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
59
|
+
|
|
60
|
+
var handleClickPlanTitle = function handleClickPlanTitle() {
|
|
61
|
+
window.Talent.app.vent.trigger("global-pull-screen", data.taskId, "task");
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var renderName = (0, _react.useMemo)(function () {
|
|
65
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
className: prefix + "__content-title-text",
|
|
67
|
+
onClick: handleClickPlanTitle
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
69
|
+
str: taskName,
|
|
70
|
+
keyWord: searchKeyWord
|
|
71
|
+
}));
|
|
72
|
+
}, [taskName, searchKeyWord]);
|
|
73
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
74
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
75
|
+
className: prefix + "__operate-desc"
|
|
76
|
+
}, "\u7684\u8BA1\u5212\u8868"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
+
className: prefix + "-desc-operate-type",
|
|
78
|
+
style: {
|
|
79
|
+
background: feedTypeColor
|
|
80
|
+
}
|
|
81
|
+
}, feedTypeText));
|
|
82
|
+
}, []);
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
84
|
+
className: prefix
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
86
|
+
data: data
|
|
87
|
+
}, restProps, {
|
|
88
|
+
desc: renderDesc,
|
|
89
|
+
user: principalUser
|
|
90
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
91
|
+
className: "".concat(prefix, "__content")
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
93
|
+
className: "".concat(prefix, "__content-img"),
|
|
94
|
+
src: _planIcon["default"]
|
|
95
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
+
className: prefix + "__content-info"
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
className: prefix + "__content-title"
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip.TooltipText, {
|
|
100
|
+
isPercent: true,
|
|
101
|
+
text: renderName,
|
|
102
|
+
minusWidth: 30
|
|
103
|
+
})))));
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var _default = DynamicTask;
|
|
107
|
+
exports["default"] = _default;
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.titaui-dynamic-share-to-dynamic__operate-desc {
|
|
2
|
+
margin-left: 4px;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
font-family: OPPOSans-R, OPPOSans;
|
|
5
|
+
font-weight: normal;
|
|
6
|
+
color: #89919f;
|
|
7
|
+
line-height: 22px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-dynamic-share-to-dynamic__content {
|
|
11
|
+
height: 24px;
|
|
12
|
+
display: flex;
|
|
13
|
+
padding: 0 50px;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
margin-top: 16px;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
font-family: OPPOSans-R, OPPOSans;
|
|
18
|
+
font-weight: normal;
|
|
19
|
+
color: #3f4755;
|
|
20
|
+
line-height: 24px;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titaui-dynamic-share-to-dynamic__content-quoto {
|
|
25
|
+
vertical-align: text-top;
|
|
26
|
+
margin-right: 6px;
|
|
27
|
+
width: 12px;
|
|
28
|
+
width: 12px;
|
|
29
|
+
height: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.titaui-dynamic-share-to-dynamic__share {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
height: 104px;
|
|
35
|
+
display: flex;
|
|
36
|
+
border-radius: 18px;
|
|
37
|
+
background: rgba(240, 244, 250, 0.5);
|
|
38
|
+
padding: 12px;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
margin-left: 68px;
|
|
41
|
+
margin-top: 12px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.titaui-dynamic-share-to-dynamic__share-img {
|
|
45
|
+
width: 80px;
|
|
46
|
+
height: 80px;
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
margin-right: 12px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.titaui-dynamic-share-to-dynamic__share-right {
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.titaui-dynamic-share-to-dynamic__share-right-title {
|
|
56
|
+
display: block;
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
font-family: OPPOSans-B, OPPOSans;
|
|
59
|
+
font-weight: normal;
|
|
60
|
+
color: #141c28;
|
|
61
|
+
line-height: 24px;
|
|
62
|
+
margin-bottom: 8px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.titaui-dynamic-share-to-dynamic__share-right-content {
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
font-family: OPPOSans-R, OPPOSans;
|
|
68
|
+
font-weight: normal;
|
|
69
|
+
color: #3f4755;
|
|
70
|
+
line-height: 24px;
|
|
71
|
+
text-overflow: -o-ellipsis-lastline;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
text-overflow: ellipsis;
|
|
74
|
+
display: -webkit-box;
|
|
75
|
+
-webkit-line-clamp: 2;
|
|
76
|
+
-webkit-box-orient: vertical;
|
|
77
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
+
|
|
14
|
+
var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
|
|
15
|
+
|
|
16
|
+
var _context = require("../../context");
|
|
17
|
+
|
|
18
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
19
|
+
|
|
20
|
+
var _dangerousHtml = _interopRequireDefault(require("../../components/dangerous-html"));
|
|
21
|
+
|
|
22
|
+
var _util = require("../../util");
|
|
23
|
+
|
|
24
|
+
var _tools = require("../../../../utils/tools");
|
|
25
|
+
|
|
26
|
+
var _userPhoto = _interopRequireDefault(require("./img/user-photo.png"));
|
|
27
|
+
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
30
|
+
var _excluded = ["data", "hasDynamicOpereateAuth"];
|
|
31
|
+
|
|
32
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
33
|
+
|
|
34
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
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); }
|
|
39
|
+
|
|
40
|
+
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; }
|
|
41
|
+
|
|
42
|
+
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; }
|
|
43
|
+
|
|
44
|
+
var prefix = "titaui-dynamic-share-to-dynamic";
|
|
45
|
+
|
|
46
|
+
var DynamicShare = function DynamicShare(_ref) {
|
|
47
|
+
var data = _ref.data,
|
|
48
|
+
_ref$hasDynamicOperea = _ref.hasDynamicOpereateAuth,
|
|
49
|
+
hasDynamicOpereateAuth = _ref$hasDynamicOperea === void 0 ? false : _ref$hasDynamicOperea,
|
|
50
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
+
|
|
52
|
+
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
53
|
+
searchKeyWord = _useContext.searchKeyWord;
|
|
54
|
+
|
|
55
|
+
var contentRef = (0, _react.useRef)();
|
|
56
|
+
|
|
57
|
+
var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
|
|
58
|
+
feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
|
|
59
|
+
feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
|
|
60
|
+
|
|
61
|
+
var isPublisher = data.publishUser.userId === window.BSGlobal.loginUserInfo.Id;
|
|
62
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
63
|
+
return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
64
|
+
className: prefix + "__operate-desc"
|
|
65
|
+
}, "\u5206\u4EAB\u4E86\u4E00\u7BC7\u6587\u7AE0"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
66
|
+
className: prefix + "-desc-operate-type",
|
|
67
|
+
style: {
|
|
68
|
+
background: feedTypeColor
|
|
69
|
+
}
|
|
70
|
+
}));
|
|
71
|
+
}, []);
|
|
72
|
+
(0, _react.useEffect)(function () {
|
|
73
|
+
(0, _tools.highLightWord)({
|
|
74
|
+
parentDom: contentRef.current,
|
|
75
|
+
keyWord: searchKeyWord
|
|
76
|
+
});
|
|
77
|
+
}, [data, searchKeyWord]);
|
|
78
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
+
className: prefix
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], _extends({
|
|
81
|
+
data: data,
|
|
82
|
+
desc: renderDesc,
|
|
83
|
+
showDelete: hasDynamicOpereateAuth || isPublisher,
|
|
84
|
+
showTopping: hasDynamicOpereateAuth,
|
|
85
|
+
user: data.publishUser
|
|
86
|
+
}, restProps)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
87
|
+
className: prefix + "__content"
|
|
88
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
89
|
+
className: (0, _classnames["default"])(prefix + "__content-quoto", prefix + "__content-quoto--left"),
|
|
90
|
+
src: _dynamicLeftQuoto["default"]
|
|
91
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
92
|
+
ref: contentRef
|
|
93
|
+
}, /*#__PURE__*/_react["default"].createElement(_dangerousHtml["default"], {
|
|
94
|
+
htmlText: "团队12312为当你把策划久别重逢后金"
|
|
95
|
+
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
|
+
className: (0, _classnames["default"])("".concat(prefix, "__share"))
|
|
97
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
98
|
+
src: _userPhoto["default"],
|
|
99
|
+
className: (0, _classnames["default"])("".concat(prefix, "__share-img"))
|
|
100
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
101
|
+
className: (0, _classnames["default"])("".concat(prefix, "__share-right"))
|
|
102
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
|
+
className: (0, _classnames["default"])("".concat(prefix, "__share-right-title"))
|
|
104
|
+
}, "\u56E2\u961F\u5982\u4F55\u5F00\u59CB OKR \u4E4B\u65C5\uFF1F"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
105
|
+
className: (0, _classnames["default"])("".concat(prefix, "__share-right-content"))
|
|
106
|
+
}, "\u591A\u5E74\u6765\uFF0C\u6211\u6709\u5E78\u4E00\u76F4\u5728\u521B\u65B0\u548C\u4EA4\u4ED8\u751F\u547D\u5468\u671F\u7684\u6240\u5FC5\u7ECF\u7684\u9636\u6BB5\u4E0A\u5DE5\u4F5C\u3002\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u4ECE\u6700\u521D\u7684\u60F3\u6CD5\u5E26\u5165\u4E16\u754C\uFF0C\u5BF9\u9886\u5BFC\u8005\u6765\u8BF4\u662F\u4E00\u4E2A\u591A\u4E48\u5927\u7684\u6311\u6218\u3002\u591A\u5E74\u6765\uFF0C\u6211\u6709\u5E78\u4E00\u76F4\u5728\u521B\u4EA4ncmjdksncjndskjcndjsk\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u65E0\u8BBA\u662F\u5728\u6218\u7565\u3001\u4EA7\u54C1\u8FD8\u662F\u4EA4\u4ED8\u9636\u6BB5\uFF0C\u6211\u90FD\u53D1\u89C9\uFF0C\u5982\u4F55\u786E\u4FDD\u5C06\u5982\u4F55\u786E\u4FDD\u5C06\u5982\u4F55\u786E\u4FDD\u5C06\u5982\u4F55\u786E\u4FDD\u5C06"))));
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
var _default = DynamicShare;
|
|
110
|
+
exports["default"] = _default;
|
|
@@ -29,6 +29,8 @@ var _util = require("../../util");
|
|
|
29
29
|
|
|
30
30
|
var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
|
|
31
31
|
|
|
32
|
+
var _mblog = require("../../../../utils/mblog");
|
|
33
|
+
|
|
32
34
|
require("./index.css");
|
|
33
35
|
|
|
34
36
|
var _excluded = ["data"];
|
|
@@ -107,7 +109,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
107
109
|
className: prefix + "__content-title-text",
|
|
108
110
|
onClick: handleClickTaskTitle
|
|
109
111
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
110
|
-
str: taskName,
|
|
112
|
+
str: (0, _mblog.htmlDecodeByRegExp)(taskName),
|
|
111
113
|
keyWord: searchKeyWord
|
|
112
114
|
}));
|
|
113
115
|
}, [taskName, searchKeyWord]);
|