@titaui/pc 1.7.62 → 1.7.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/lib/components/button/rect-btn/index.css +3 -3
  2. package/lib/components/button/rect-btn/index.js +3 -1
  3. package/lib/components/dialog-confirm/index.css +5 -3
  4. package/lib/components/dynamic/constant.js +3 -1
  5. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
  6. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +86 -0
  7. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +107 -0
  8. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
  9. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +86 -0
  10. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +107 -0
  11. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/jiantou-right@3x.png +0 -0
  12. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/user-photo.png +0 -0
  13. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +77 -0
  14. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +110 -0
  15. package/lib/components/dynamic/dynamic.js +2 -1
  16. package/lib/components/dynamic/util.js +10 -0
  17. package/lib/components/okr-detail/components/icon-text/index.js +6 -2
  18. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/edit-child-okr-weight.js +284 -0
  19. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +85 -0
  20. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +80 -24
  21. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/weight-input.js +95 -0
  22. package/lib/components/okr-detail/request-apis.js +25 -2
  23. package/lib/components/version-change-modal/index.js +1 -1
  24. package/lib/components/weekly-report/common-painter/openDataPainter.js +3 -3
  25. package/lib/index.js +8 -0
  26. package/lib/utils/auth.js +37 -2
  27. package/package.json +1 -1
@@ -25,8 +25,8 @@
25
25
 
26
26
  .titaui-rect-btn--big {
27
27
  border-radius: 18px;
28
- height: 34px;
29
- line-height: 32px;
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: 34px;
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
  };
@@ -2,7 +2,7 @@
2
2
  display: inline-block;
3
3
  width: 360px;
4
4
  background: #ffffff;
5
- border-radius: 6px;
5
+ border-radius: 24px;
6
6
  }
7
7
 
8
8
  .titaui-dialog-confirm__btn {
@@ -10,7 +10,7 @@
10
10
  width: 90px;
11
11
  height: 32px;
12
12
  line-height: 32px;
13
- border-radius: 4px;
13
+ border-radius: 18px;
14
14
  text-align: center;
15
15
  }
16
16
 
@@ -69,6 +69,7 @@
69
69
 
70
70
  .titaui-dialog-confirm .rc-dialog-content {
71
71
  box-shadow: none;
72
+ border-radius: 24px;
72
73
  }
73
74
 
74
75
  .titaui-dialog-confirm .rc-dialog-body {
@@ -92,11 +93,12 @@
92
93
 
93
94
  .titaui-dialog-confirm__body {
94
95
  position: relative;
96
+ display: flex;
95
97
  }
96
98
 
97
99
  .titaui-dialog-confirm__body-icon {
98
100
  display: inline-block;
99
- font-size: 16px;
101
+ font-size: 14px;
100
102
  }
101
103
 
102
104
  .titaui-dialog-confirm__body-title {
@@ -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["OkrEStatistics"] = 17] = "OkrEStatistics";
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;
@@ -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"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _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;
@@ -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"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _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;
@@ -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
+ }