@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.
Files changed (100) hide show
  1. package/lib/components/communication/CommunicationRecord.js +18 -12
  2. package/lib/components/communication/index.css +48 -9
  3. package/lib/components/communication/index.js +67 -28
  4. package/lib/components/communication/style.js +7 -5
  5. package/lib/components/dynamic/components/obj-status/index.css +2 -19
  6. package/lib/components/dynamic/components/obj-status/index.js +7 -8
  7. package/lib/components/dynamic/components/obj-status/utils.js +37 -0
  8. package/lib/components/dynamic/components/percent/index.css +1 -1
  9. package/lib/components/dynamic/components/title/index.css +21 -22
  10. package/lib/components/dynamic/components/title/index.js +20 -8
  11. package/lib/components/dynamic/dynamic-item/components/header/index.css +6 -6
  12. package/lib/components/dynamic/dynamic-item/components/header/index.js +12 -6
  13. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-kr.png +0 -0
  14. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align-o.png +0 -0
  15. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.png +0 -0
  16. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +35 -24
  17. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +35 -29
  18. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +6 -34
  19. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +6 -32
  20. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +59 -19
  21. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +27 -19
  22. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +49 -38
  23. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +49 -44
  24. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +41 -29
  25. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +23 -29
  26. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +33 -16
  27. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +11 -24
  28. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +26 -41
  29. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +10 -29
  30. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +26 -41
  31. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +13 -30
  32. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +16 -54
  33. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +31 -80
  34. package/lib/components/dynamic/dynamic-item/dynamic-progress/utils.js +72 -0
  35. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +35 -28
  36. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +10 -23
  37. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-kr.png +0 -0
  38. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-o.png +0 -0
  39. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-project.png +0 -0
  40. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela-task.png +0 -0
  41. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-rela.svg +23 -0
  42. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +45 -26
  43. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +41 -33
  44. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +19 -6
  45. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +11 -17
  46. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +21 -23
  47. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +31 -27
  48. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +4 -4
  49. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +8 -18
  50. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -21
  51. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +6 -36
  52. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/dynamic-share-course.png +0 -0
  53. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.css +10 -18
  54. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/index.js +9 -25
  55. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +34 -30
  56. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +10 -24
  57. package/lib/components/dynamic/dynamic-item/index.css +4 -4
  58. package/lib/components/dynamic/dynamic-item/index.js +38 -8
  59. package/lib/components/dynamic/util.js +41 -81
  60. package/lib/components/file-list/components/single-file/index.css +9 -8
  61. package/lib/components/float-fixed-video-modal/img/close.png +0 -0
  62. package/lib/components/float-fixed-video-modal/img/full.svg +21 -0
  63. package/lib/components/float-fixed-video-modal/img/muted.svg +21 -0
  64. package/lib/components/float-fixed-video-modal/img/pause.svg +21 -0
  65. package/lib/components/float-fixed-video-modal/img/play.svg +22 -0
  66. package/lib/components/float-fixed-video-modal/img/small.svg +22 -0
  67. package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
  68. package/lib/components/float-fixed-video-modal/img/volume.svg +21 -0
  69. package/lib/components/float-fixed-video-modal/index.css +243 -0
  70. package/lib/components/float-fixed-video-modal/index.js +334 -0
  71. package/lib/components/float-fixed-video-modal/utils.js +25 -0
  72. package/lib/components/mblog/context.js +3 -1
  73. package/lib/components/mblog/index.css +7 -0
  74. package/lib/components/mblog/index.js +31 -4
  75. package/lib/components/mblog/style.js +4 -4
  76. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-empty.js +7 -4
  77. package/lib/components/progress/circle-progress/index.css +1 -0
  78. package/lib/components/progress/circle-progress/index.js +7 -2
  79. package/lib/components/search-key-handle/index.js +7 -2
  80. package/lib/components/video-modal/img/bigFaqi.png +0 -0
  81. package/lib/components/video-modal/img/muted.svg +16 -0
  82. package/lib/components/video-modal/img/not-muted.svg +16 -0
  83. package/lib/components/video-modal/img/pause.svg +17 -0
  84. package/lib/components/video-modal/img/play.png +0 -0
  85. package/lib/components/video-modal/img/play.svg +16 -0
  86. package/lib/components/video-modal/img/small.svg +22 -0
  87. package/lib/components/video-modal/index.css +213 -0
  88. package/lib/components/video-modal/index.js +322 -0
  89. package/lib/components/video-modal/utils.js +25 -0
  90. package/lib/index.js +16 -0
  91. package/package.json +1 -1
  92. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
  93. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
  94. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
  95. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/img/okrs-icon.png +0 -0
  96. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/img/plan-icon.png +0 -0
  97. package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
  98. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
  99. package/lib/components/dynamic/dynamic-item/dynamic-share-to-dynamic/img/guanlian.png +0 -0
  100. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-icon.png +0 -0
@@ -9,12 +9,6 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var _dynamicLeftQuoto = _interopRequireDefault(require("../../img/dynamic-left-quoto.svg"));
15
-
16
- var _dynamicRightQuoto = _interopRequireDefault(require("../../img/dynamic-right-quoto.svg"));
17
-
18
12
  var _drawerManager = _interopRequireDefault(require("../../../drawer-manager"));
19
13
 
20
14
  var _context = require("../../context");
@@ -31,10 +25,14 @@ var _objStatus = _interopRequireDefault(require("../../components/obj-status"));
31
25
 
32
26
  var _constant = require("../../constant");
33
27
 
34
- var _util = require("../../util");
35
-
36
28
  var _getLocale = require("../../../../utils/getLocale");
37
29
 
30
+ var _utils = require("./utils");
31
+
32
+ var _conditionRender = _interopRequireDefault(require("../../../condition-render"));
33
+
34
+ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
35
+
38
36
  require("./index.css");
39
37
 
40
38
  var _excluded = ["data"];
@@ -47,8 +45,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
47
45
 
48
46
  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); }
49
47
 
50
- 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; }
51
-
52
48
  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; }
53
49
 
54
50
  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; }
@@ -64,7 +60,6 @@ var DynamicProgress = function DynamicProgress(_ref) {
64
60
  progressGrow = data.progressGrow,
65
61
  riskLevel = data.riskLevel,
66
62
  obj = data.obj,
67
- classify = data.classify,
68
63
  relationParentName = data.relationParentName,
69
64
  relationParentId = data.relationParentId,
70
65
  publishUser = data.publishUser;
@@ -72,10 +67,6 @@ var DynamicProgress = function DynamicProgress(_ref) {
72
67
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
73
68
  searchKeyWord = _useContext.searchKeyWord;
74
69
 
75
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
76
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
77
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
78
-
79
70
  var handleClickTitle = function handleClickTitle() {
80
71
  if (!obj) {
81
72
  return;
@@ -95,7 +86,7 @@ var DynamicProgress = function DynamicProgress(_ref) {
95
86
  } else if (objType === _constant.EObjType.Task) {
96
87
  window.Talent.app.vent.trigger("global-pull-screen", objId, "task");
97
88
  } else if (objType === _constant.EObjType.Project) {
98
- window.open(window.location.href.replace(location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
89
+ window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(objId)));
99
90
  }
100
91
  };
101
92
 
@@ -105,53 +96,21 @@ var DynamicProgress = function DynamicProgress(_ref) {
105
96
  });
106
97
  };
107
98
 
108
- var renderTitle = (0, _react.useMemo)(function () {
109
- if (!obj) {
110
- return;
111
- }
112
-
113
- var objType = obj.objType,
114
- objName = obj.objName;
115
-
116
- if (objType === _constant.EObjType.Kr) {
117
- return "KR\uFF1A".concat(objName);
118
- }
119
-
120
- if (objType === _constant.EObjType.O) {
121
- return "O\uFF1A".concat(objName);
122
- }
123
-
124
- if (objType === _constant.EObjType.Task) {
125
- return "".concat((0, _getLocale.getLocale)("Mod_Tasks"), "\uFF1A").concat(objName);
126
- }
127
-
128
- if (objType === _constant.EObjType.Project) {
129
- return "".concat((0, _getLocale.getLocale)("Mod_Project"), "\uFF1A").concat(objName);
130
- }
131
-
132
- return "";
133
- }, []);
134
- var Classify = (0, _react.useMemo)(function () {
135
- var _classNames;
136
-
137
- if (!classify || Number(classify) == 0) {
138
- return;
139
- }
140
-
141
- return /*#__PURE__*/_react["default"].createElement("span", {
142
- className: (0, _classnames["default"])("".concat(prefix, "__classify"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__classify--desire"), classify === 1), _defineProperty(_classNames, "".concat(prefix, "__classify--promise"), classify === 2), _classNames))
143
- });
144
- }, [classify]);
145
99
  var renderDesc = (0, _react.useMemo)(function () {
146
100
  var dom;
147
101
 
148
102
  if (obj && obj.objType === _constant.EObjType.Kr) {
149
- dom = /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)("Mod_Updated"), (0, _getLocale.getLocale)("Mod_Objective"), /*#__PURE__*/_react["default"].createElement("span", {
103
+ dom = /*#__PURE__*/_react["default"].createElement("span", {
104
+ className: "".concat(prefix, "__obj-wrapper")
105
+ }, (0, _getLocale.getLocale)("Mod_Updated"), (0, _getLocale.getLocale)("Mod_Objective"), /*#__PURE__*/_react["default"].createElement("span", {
150
106
  className: "".concat(prefix, "__object-name"),
151
107
  onClick: handleClickOTitle
152
- }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
153
- str: relationParentName,
154
- keyWord: searchKeyWord
108
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
109
+ text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
110
+ str: relationParentName,
111
+ keyWord: searchKeyWord
112
+ }),
113
+ isPercent: true
155
114
  })), (0, _getLocale.getLocale)("Mod_skeyrprogress"));
156
115
  }
157
116
 
@@ -167,14 +126,9 @@ var DynamicProgress = function DynamicProgress(_ref) {
167
126
  dom = "".concat((0, _getLocale.getLocale)("Mod_Updated")).concat((0, _getLocale.getLocale)("Mod_ProjectProgress"));
168
127
  }
169
128
 
170
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
129
+ return /*#__PURE__*/_react["default"].createElement("span", {
171
130
  className: "".concat(prefix, "__operate-desc")
172
- }, dom), /*#__PURE__*/_react["default"].createElement("span", {
173
- className: "".concat(prefix, "-desc-operate-type"),
174
- style: {
175
- background: feedTypeColor
176
- }
177
- }, feedTypeText));
131
+ }, dom);
178
132
  }, [searchKeyWord]);
179
133
  return /*#__PURE__*/_react["default"].createElement("div", {
180
134
  className: prefix
@@ -187,32 +141,29 @@ var DynamicProgress = function DynamicProgress(_ref) {
187
141
  className: "".concat(prefix, "__content")
188
142
  }, /*#__PURE__*/_react["default"].createElement("div", {
189
143
  className: "".concat(prefix, "__title")
190
- }, /*#__PURE__*/_react["default"].createElement(_title["default"], {
191
- content: renderTitle,
192
- onClickTitle: handleClickTitle,
193
- suffixContent: Classify
194
- }), /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
144
+ }, /*#__PURE__*/_react["default"].createElement(_title["default"], _extends({
145
+ content: obj === null || obj === void 0 ? void 0 : obj.objName,
146
+ onClickTitle: handleClickTitle
147
+ }, (0, _utils.getDynamicTitleProps)(obj)))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
148
+ condition: obj && obj.objType === _constant.EObjType.O
149
+ }, /*#__PURE__*/_react["default"].createElement("div", {
150
+ className: "".concat(prefix, "__status")
151
+ }, /*#__PURE__*/_react["default"].createElement(_objStatus["default"], {
195
152
  oStatus: 1,
196
153
  riskLevel: riskLevel,
197
- extraClass: "".concat(prefix, "__status-left")
154
+ extraClass: "".concat(prefix, "__status-text")
198
155
  }), /*#__PURE__*/_react["default"].createElement(_percent["default"], {
199
156
  percent: progress,
200
157
  growPercent: progressGrow,
201
- extraClass: "".concat(prefix, "__percent-left")
202
- })), progressDescription && /*#__PURE__*/_react["default"].createElement("div", {
158
+ extraClass: "".concat(prefix, "__status-percent")
159
+ }))), progressDescription && /*#__PURE__*/_react["default"].createElement("div", {
203
160
  className: "".concat(prefix, "__description")
204
- }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
205
- className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--left")),
206
- src: _dynamicLeftQuoto["default"]
207
- })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
161
+ }, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
208
162
  className: "".concat(prefix, "__description-text")
209
163
  }, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
210
164
  str: progressDescription,
211
165
  keyWord: searchKeyWord
212
- })), /*#__PURE__*/_react["default"].createElement("img", {
213
- className: (0, _classnames["default"])("".concat(prefix, "__description-quoto"), "".concat(prefix, "__description-quoto--right")),
214
- src: _dynamicRightQuoto["default"]
215
- })))));
166
+ }))))));
216
167
  };
217
168
 
218
169
  var _default = DynamicProgress;
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDynamicTitleProps = exports["default"] = void 0;
7
+
8
+ var _constant = require("../../constant");
9
+
10
+ var _getLocale = require("../../../../utils/getLocale");
11
+
12
+ var getDynamicTitleProps = function getDynamicTitleProps(obj) {
13
+ if (!obj) {
14
+ return {
15
+ type: "",
16
+ typeBgColor: "#ffffff",
17
+ titleBgColor: "#ffffff",
18
+ contentColor: ""
19
+ };
20
+ }
21
+
22
+ var objType = obj.objType;
23
+
24
+ if (objType === _constant.EObjType.Kr) {
25
+ return {
26
+ type: "KR",
27
+ typeBgColor: "rgba(90, 216, 166, 0.5)",
28
+ titleBgColor: "rgba(90, 216, 166, 0.1)",
29
+ contentColor: "#5AD8A6"
30
+ };
31
+ }
32
+
33
+ if (objType === _constant.EObjType.O) {
34
+ return {
35
+ type: (0, _getLocale.getLocale)("Mod_Objective"),
36
+ typeBgColor: "rgba(40, 121, 255, 0.5)",
37
+ titleBgColor: "rgba(40, 121, 255, 0.1)",
38
+ contentColor: "#2879FF"
39
+ };
40
+ }
41
+
42
+ if (objType === _constant.EObjType.Task) {
43
+ return {
44
+ type: (0, _getLocale.getLocale)("Mod_Tasks"),
45
+ typeBgColor: "rgba(92, 142, 255, 0.5)",
46
+ titleBgColor: "rgba(92, 142, 255, 0.1)",
47
+ contentColor: "#5C8EFF"
48
+ };
49
+ }
50
+
51
+ if (objType === _constant.EObjType.Project) {
52
+ return {
53
+ type: (0, _getLocale.getLocale)("Mod_Project"),
54
+ typeBgColor: "rgba(98, 77, 255, 0.5)",
55
+ titleBgColor: "rgba(98, 77, 255, 0.1)",
56
+ contentColor: "#624DFF"
57
+ };
58
+ }
59
+
60
+ return {
61
+ type: "",
62
+ typeBgColor: "#ffffff",
63
+ titleBgColor: "#ffffff",
64
+ contentColor: ""
65
+ };
66
+ };
67
+
68
+ exports.getDynamicTitleProps = getDynamicTitleProps;
69
+ var _default = {
70
+ getDynamicTitleProps: getDynamicTitleProps
71
+ };
72
+ exports["default"] = _default;
@@ -11,27 +11,24 @@
11
11
  height: 78px;
12
12
  display: flex;
13
13
  align-items: center;
14
- border-radius: 8px;
15
- background: rgba(240, 244, 250, 0.5);
16
- padding: 16px 12px 16px 16px;
14
+ border-radius: 12px;
15
+ background: rgba(98, 77, 255, 0.06);
16
+ padding: 8px 12px;
17
17
  box-sizing: border-box;
18
- margin-left: 69px;
19
- }
20
-
21
- .titaui-dynamic-project-item__content-img {
22
- display: inline-block;
23
- width: 36px;
24
- border-radius: 6px;
18
+ margin-left: 88px;
25
19
  }
26
20
 
27
21
  .titaui-dynamic-project-item__content-info {
28
22
  flex: 1;
29
23
  display: flex;
30
24
  flex-direction: column;
31
- margin-left: 16px;
32
25
  overflow: hidden;
33
26
  }
34
27
 
28
+ .titaui-dynamic-project-item__content-status-icon {
29
+ font-size: 14px;
30
+ }
31
+
35
32
  .titaui-dynamic-project-item__content-status-and-time-range {
36
33
  display: flex;
37
34
  align-items: center;
@@ -59,10 +56,33 @@
59
56
  font-weight: 600;
60
57
  color: #3f4755;
61
58
  line-height: 24px;
59
+ display: flex;
60
+ margin-bottom: 4px;
61
+ align-items: center;
62
62
  }
63
63
 
64
- .titaui-dynamic-project-item__content-title-text:hover {
64
+ .titaui-dynamic-project-item__content-title-type {
65
+ border-radius: 18px;
66
+ background: rgba(98, 77, 255, 0.5);
67
+ color: #ffffff;
68
+ margin-right: 8px;
69
+ font-size: 14px;
70
+ line-height: 20px;
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ padding: 0 6px;
75
+ font-weight: 400;
76
+ height: 20px;
77
+ }
78
+
79
+ .titaui-dynamic-project-item__content-title-text {
80
+ flex: 1;
65
81
  cursor: pointer;
82
+ overflow: hidden;
83
+ }
84
+
85
+ .titaui-dynamic-project-item__content-title-text:hover {
66
86
  color: #2879ff;
67
87
  }
68
88
 
@@ -73,23 +93,10 @@
73
93
  }
74
94
 
75
95
  .titaui-dynamic-project-item__operate-desc {
76
- font-size: 14px;
96
+ font-size: 16px;
77
97
  font-weight: 400;
78
98
  color: #89919f;
79
- line-height: 22px;
80
- margin: 0 8px 0 4px;
99
+ line-height: 24px;
100
+ margin-left: 4px;
81
101
  overflow: hidden;
82
102
  }
83
-
84
- .titaui-dynamic-project-item-desc-operate-type {
85
- display: inline-flex;
86
- align-items: center;
87
- justify-content: center;
88
- padding: 0 6px;
89
- height: 18px;
90
- min-width: 40px;
91
- border-radius: 10px 10px 10px 2px;
92
- font-size: 12px;
93
- color: #ffffff;
94
- line-height: 18px;
95
- }
@@ -23,10 +23,6 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
23
23
 
24
24
  var _tooltip = _interopRequireDefault(require("../../../tooltip"));
25
25
 
26
- var _dynamicProject = _interopRequireDefault(require("./img/dynamic-project.png"));
27
-
28
- var _util = require("../../util");
29
-
30
26
  var _getLocale = require("../../../../utils/getLocale");
31
27
 
32
28
  require("./index.css");
@@ -60,10 +56,6 @@ var DynamicProject = function DynamicProject(_ref) {
60
56
  var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
61
57
  searchKeyWord = _useContext.searchKeyWord;
62
58
 
63
- var _getFeedTypeAndTypeCo = (0, _util.getFeedTypeAndTypeColor)(data.feedType),
64
- feedTypeText = _getFeedTypeAndTypeCo.feedTypeText,
65
- feedTypeColor = _getFeedTypeAndTypeCo.feedTypeColor;
66
-
67
59
  var handleClickTitle = function handleClickTitle() {
68
60
  window.open(window.location.href.replace(window.location.hash, "#work?iTalentNavCode=tita-work&work_id=".concat(data.obj.objId)));
69
61
  };
@@ -78,14 +70,9 @@ var DynamicProject = function DynamicProject(_ref) {
78
70
  }));
79
71
  }, [workName, searchKeyWord]);
80
72
  var renderDesc = (0, _react.useMemo)(function () {
81
- return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
73
+ return /*#__PURE__*/_react["default"].createElement("span", {
82
74
  className: "".concat(prefix, "__operate-desc")
83
- }, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Feed_Set_Project")), /*#__PURE__*/_react["default"].createElement("span", {
84
- className: "".concat(prefix, "-desc-operate-type"),
85
- style: {
86
- background: feedTypeColor
87
- }
88
- }, feedTypeText));
75
+ }, (0, _getLocale.getLocale)("Mod_InChargeof"), (0, _getLocale.getLocale)("Feed_Set_Project"));
89
76
  }, []);
90
77
  return /*#__PURE__*/_react["default"].createElement("div", {
91
78
  className: prefix
@@ -96,26 +83,26 @@ var DynamicProject = function DynamicProject(_ref) {
96
83
  user: principalUser
97
84
  })), /*#__PURE__*/_react["default"].createElement("div", {
98
85
  className: "".concat(prefix, "__content")
99
- }, /*#__PURE__*/_react["default"].createElement("img", {
100
- className: "".concat(prefix, "__content-img"),
101
- src: _dynamicProject["default"],
102
- alt: ""
103
- }), /*#__PURE__*/_react["default"].createElement("div", {
86
+ }, /*#__PURE__*/_react["default"].createElement("div", {
104
87
  className: "".concat(prefix, "__content-info")
105
88
  }, /*#__PURE__*/_react["default"].createElement("div", {
106
89
  className: "".concat(prefix, "__content-title")
90
+ }, /*#__PURE__*/_react["default"].createElement("span", {
91
+ className: "".concat(prefix, "__content-title-type")
92
+ }, (0, _getLocale.getLocale)("Feed_Set_Project")), /*#__PURE__*/_react["default"].createElement("span", {
93
+ className: "".concat(prefix, "__content-title-text")
107
94
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
108
95
  isPercent: true,
109
96
  text: renderName,
110
97
  minusWidth: 30
111
- })), /*#__PURE__*/_react["default"].createElement("div", {
98
+ }))), /*#__PURE__*/_react["default"].createElement("div", {
112
99
  className: "".concat(prefix, "__content-status-and-time-range")
113
100
  }, /*#__PURE__*/_react["default"].createElement("i", {
114
- className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status])
101
+ className: (0, _classnames["default"])(_constant2.EStatusStatus2ClassType[status], "".concat(prefix, "__content-status-icon"))
115
102
  }), /*#__PURE__*/_react["default"].createElement("span", {
116
103
  className: "".concat(prefix, "__content-status-text")
117
104
  }, (0, _constant.getEStatusClass2StatusTypeText)()[status]), /*#__PURE__*/_react["default"].createElement("i", {
118
- className: (0, _classnames["default"])("tu-icon-deferred")
105
+ className: (0, _classnames["default"])("tu-icon-deferred", "".concat(prefix, "__content-status-icon"))
119
106
  }), /*#__PURE__*/_react["default"].createElement("span", {
120
107
  className: "".concat(prefix, "__content-time-range")
121
108
  }, startDate, "-", deadline)))));
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 64 (93537) - https://sketch.com -->
4
+ <title>形状结合</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs>
7
+ <radialGradient cx="50%" cy="50%" fx="50%" fy="50%" r="65.0566151%" gradientTransform="translate(0.500000,0.500000),scale(0.777778,1.000000),rotate(88.840962),scale(1.000000,1.351545),translate(-0.500000,-0.500000)" id="radialGradient-1">
8
+ <stop stop-color="#A7B2C4" offset="0%"></stop>
9
+ <stop stop-color="#BFC7D5" stop-opacity="0" offset="100%"></stop>
10
+ </radialGradient>
11
+ </defs>
12
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
13
+ <g id="动态-任务" transform="translate(-115.000000, -865.000000)" fill="url(#radialGradient-1)" fill-rule="nonzero">
14
+ <g id="新建目标-负责目标" transform="translate(11.000000, 715.000000)">
15
+ <g id="编组-3" transform="translate(93.000000, 102.000000)">
16
+ <g id="形状结合-2" transform="translate(11.000000, 48.000000)">
17
+ <path d="M3.8056793,2.14936144 C3.96786934,2.33036776 3.94952786,2.60864824 3.764451,2.76625129 C1.94131475,4.32153569 0.893246686,6.5928146 0.893246686,8.9999467 C0.893246686,11.4071772 1.94131475,13.680267 3.764451,15.2328548 C3.8652491,15.3211141 3.9174703,15.4417521 3.9174703,15.5624689 C3.9174703,15.6633451 3.88172841,15.7695948 3.8056793,15.85065 C3.64354933,16.0325618 3.36135866,16.0505916 3.17445966,15.8921028 C1.1552737,14.1719719 -1.11185559e-15,11.661149 -1.6007069e-15,8.99996636 C-2.08888207e-15,6.34246451 1.15525366,3.82894496 3.17353858,2.10971955 C3.36043758,1.94943961 3.64352929,1.96654427 3.8056793,2.14936144 Z M14.1943207,2.14936144 C14.3564707,1.96654427 14.6395624,1.94943961 14.8264614,2.10971955 C16.8447463,3.82894496 18,6.34246451 18,8.99996636 C18,11.661149 16.8447263,14.1719719 14.8255403,15.8921028 C14.6386413,16.0505916 14.3564507,16.0325618 14.1943207,15.85065 C14.1182716,15.7695948 14.0825297,15.6633451 14.0825297,15.5624689 C14.0825297,15.4417521 14.1347509,15.3211141 14.235549,15.2328548 C16.0586852,13.680267 17.1067533,11.4071772 17.1067533,8.9999467 C17.1067533,6.5928146 16.0586852,4.32153569 14.235549,2.76625129 C14.0504721,2.60864824 14.0321307,2.33036776 14.1943207,2.14936144 Z M5.60410658,3.96491623 C5.76079018,4.15042999 5.73237689,4.42601388 5.53999147,4.57908979 C4.18682589,5.6543807 3.40903452,7.26824215 3.40903452,8.99994668 C3.40903452,10.7326747 4.18682589,12.3437806 5.53999147,13.4226932 C5.65082133,13.5073504 5.7049047,13.6352122 5.7049047,13.7613025 C5.7049047,13.858557 5.67190603,13.9549061 5.60594876,14.035981 C5.45018624,14.2260022 5.16803563,14.251236 4.97563018,14.098101 C3.41085666,12.8571173 2.5130046,11.0001295 2.5130046,8.9999467 C2.5130046,7.00346433 3.41085666,5.14287449 4.97378801,3.90096565 C5.16619345,3.74696462 5.44838412,3.77578077 5.60410658,3.96491623 Z M12.3958934,3.96491623 C12.5516159,3.77578077 12.8338065,3.74696462 13.026212,3.90096565 C14.5891433,5.14287449 15.4869954,7.00346433 15.4869954,8.9999467 C15.4869954,11.0001295 14.5891433,12.8571173 13.0243698,14.098101 C12.8319644,14.251236 12.5498138,14.2260022 12.3940512,14.035981 C12.328094,13.9549061 12.2950953,13.858557 12.2950953,13.7613025 C12.2950953,13.6352122 12.3491787,13.5073504 12.4600085,13.4226932 C13.8131741,12.3437806 14.5909655,10.7326747 14.5909655,8.99994668 C14.5909655,7.26824215 13.8131741,5.6543807 12.4600085,4.57908979 C12.2676231,4.42601388 12.2392098,4.15042999 12.3958934,3.96491623 Z M7.42724285,5.80389397 C7.48036509,5.88136688 7.50421303,5.96783499 7.50421303,6.05066172 C7.50421303,6.19116011 7.43455141,6.32894221 7.30816331,6.41450489 C6.43964564,6.98905627 5.92292017,7.95630632 5.92292017,8.9999467 C5.92292017,10.0293168 6.4304749,10.9883983 7.2760657,11.5639142 C7.48036509,11.7008106 7.52894201,11.9763354 7.3869356,12.1744857 C7.2476524,12.3726164 6.96546175,12.4194426 6.7639256,12.2798694 C5.67557032,11.5423021 5.02693028,10.3138762 5.02693028,8.9999467 C5.02693028,7.66629467 5.6902275,6.42891296 6.80609501,5.69042057 C7.00853222,5.5535242 7.28705858,5.60759385 7.42724285,5.80389397 Z M10.5727572,5.80389397 C10.7129414,5.60759385 10.9914678,5.5535242 11.193905,5.69042057 C12.3097725,6.42891296 12.9730697,7.66629467 12.9730697,8.9999467 C12.9730697,10.3138762 12.3244297,11.5423021 11.2360744,12.2798694 C11.0345383,12.4194426 10.7523476,12.3726164 10.6130644,12.1744857 C10.471058,11.9763354 10.5196349,11.7008106 10.7239343,11.5639142 C11.5695251,10.9883983 12.0770798,10.0293168 12.0770798,8.9999467 C12.0770798,7.95630632 11.5603544,6.98905627 10.6918367,6.41450489 C10.5654486,6.32894221 10.495787,6.19116011 10.495787,6.05066172 C10.495787,5.96783499 10.5196349,5.88136688 10.5727572,5.80389397 Z M8.97643591,8.12261234 C9.46179035,8.12261234 9.85567513,8.51609834 9.85567513,8.99786332 C9.85567513,9.4814785 9.46179033,9.87230728 8.97643591,9.87230728 C8.48930362,9.87230728 8.09535892,9.48149818 8.09535892,8.99786332 C8.09535892,8.51609834 8.48930364,8.12261234 8.97643591,8.12261234 Z" id="形状结合" transform="translate(9.000000, 9.000000) rotate(-90.000000) translate(-9.000000, -9.000000) "></path>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </svg>
@@ -6,7 +6,7 @@
6
6
  }
7
7
 
8
8
  .titaui-dynamic-relative-item__content {
9
- margin-left: 69px;
9
+ margin-left: 88px;
10
10
  position: relative;
11
11
  }
12
12
 
@@ -21,10 +21,41 @@
21
21
  width: 100%;
22
22
  }
23
23
 
24
- .titaui-dynamic-relative-item__obj-base-info-icon {
25
- color: #89919F;
26
- font-size: 18px;
24
+ .titaui-dynamic-relative-item__obj-base-info-left {
25
+ width: 40px;
26
+ height: 40px;
27
+ min-width: 40px;
28
+ border-radius: 50%;
27
29
  margin-right: 8px;
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ }
34
+
35
+ .titaui-dynamic-relative-item__obj-base-info-left--o {
36
+ background: rgba(40, 121, 255, 0.16);
37
+ }
38
+
39
+ .titaui-dynamic-relative-item__obj-base-info-left--kr {
40
+ background: rgba(90, 216, 166, 0.16);
41
+ }
42
+
43
+ .titaui-dynamic-relative-item__obj-base-info-left--task {
44
+ background: rgba(40, 121, 255, 0.16);
45
+ }
46
+
47
+ .titaui-dynamic-relative-item__obj-base-info-left--project {
48
+ background: rgba(98, 77, 255, 0.16);
49
+ }
50
+
51
+ .titaui-dynamic-relative-item__obj-base-info-left-img {
52
+ width: 20px;
53
+ height: 20px;
54
+ }
55
+
56
+ .titaui-dynamic-relative-item__obj-base-info-right {
57
+ flex: 1;
58
+ overflow: hidden;
28
59
  }
29
60
 
30
61
  .titaui-dynamic-relative-item__obj-title {
@@ -33,7 +64,7 @@
33
64
  word-break: keep-all;
34
65
  font-size: 14px;
35
66
  font-weight: 600;
36
- color: #3F4755;
67
+ color: #3f4755;
37
68
  line-height: 22px;
38
69
  }
39
70
 
@@ -44,9 +75,8 @@
44
75
 
45
76
  .titaui-dynamic-relative-item__obj-principal-user {
46
77
  font-size: 12px;
47
- color: #89919F;
78
+ color: #89919f;
48
79
  line-height: 18px;
49
- margin-left: 26px;
50
80
  }
51
81
 
52
82
  .titaui-dynamic-relative-item__obj-principal-user::after {
@@ -57,13 +87,15 @@
57
87
 
58
88
  .titaui-dynamic-relative-item__obj-cycle {
59
89
  font-size: 12px;
60
- color: #89919F;
90
+ color: #89919f;
61
91
  line-height: 18px;
62
92
  }
63
93
 
64
- .titaui-dynamic-relative-item__align-img {
94
+ .titaui-dynamic-relative-item__rela-img {
65
95
  position: absolute;
66
- top: 38px;
96
+ top: 51px;
97
+ width: 18px;
98
+ left: 10px;
67
99
  }
68
100
 
69
101
  .titaui-dynamic-relative-item__space {
@@ -71,23 +103,10 @@
71
103
  }
72
104
 
73
105
  .titaui-dynamic-relative-item__operate-desc {
74
- font-size: 14px;
106
+ font-size: 16px;
75
107
  font-weight: 400;
76
108
  color: #89919f;
77
- line-height: 22px;
78
- margin: 0 8px 0 4px;
109
+ line-height: 24px;
110
+ margin-left: 4px;
79
111
  overflow: hidden;
80
112
  }
81
-
82
- .titaui-dynamic-relative-item-desc-operate-type {
83
- display: inline-flex;
84
- align-items: center;
85
- justify-content: center;
86
- padding: 0 6px;
87
- height: 18px;
88
- min-width: 40px;
89
- border-radius: 10px 10px 10px 2px;
90
- font-size: 12px;
91
- color: #ffffff;
92
- line-height: 18px;
93
- }