@titaui/pc 1.11.40 → 1.11.43

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.
@@ -133,10 +133,10 @@ var DynamicFooter = function DynamicFooter(_ref) {
133
133
  praiseType: type
134
134
  };
135
135
  setPraiseData([parseUser].concat(_toConsumableArray(data)));
136
- actionName = "点赞总结feed";
136
+ actionName = "点赞";
137
137
  } else {
138
138
  setPraiseData(data);
139
- actionName = "取消总结feed点赞";
139
+ actionName = "取消点赞";
140
140
  }
141
141
 
142
142
  if (window.titaTracker) {
@@ -183,7 +183,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
183
183
 
184
184
  var handleReply = function handleReply(_ref2) {
185
185
  var submitType = _ref2.submitType;
186
- var actionName = submitType === "delete" ? "删除总结feed评论" : "评论总结feed";
186
+ var actionName = submitType === "delete" ? "删除评论" : "评论";
187
187
 
188
188
  if (window.titaTracker) {
189
189
  window.titaTracker("action").record({
@@ -18,10 +18,22 @@ exports.onlineBroadcastData = exports["default"] = void 0;
18
18
  // href = "https://wiki.tita.com/pages/viewpage.action?pageId=15697741";
19
19
  // }
20
20
  var onlineBroadcastData = [{
21
+ hasOnline: true,
22
+ preContent: "「考核」更多位置支持离职人员筛选啦",
23
+ preHref: "https://wiki.tita.com/x/pwDQAQ",
24
+ isNew: true,
25
+ date: "4/29"
26
+ }, {
27
+ hasOnline: true,
28
+ preContent: "「1 on 1」面谈全新上线",
29
+ preHref: "https://wiki.tita.com/pages/viewpage.action?pageId=27165723",
30
+ isNew: true,
31
+ date: "4/27"
32
+ }, {
21
33
  hasOnline: true,
22
34
  preContent: "「考核」OKR 维度支持按 KR 评分啦",
23
35
  preHref: "https://wiki.tita.com/x/JYOeAQ",
24
- isNew: true,
36
+ isNew: false,
25
37
  date: "4/11"
26
38
  }, {
27
39
  hasOnline: true,
@@ -34,7 +34,7 @@
34
34
  vertical-align: top;
35
35
  }
36
36
 
37
- .tita-okrdt-tree__e-task-node-priority > span {
37
+ .tita-okrdt-tree__e-task-node-priority-label span {
38
38
  display: inline-block;
39
39
  vertical-align: text-bottom;
40
40
  height: 16px;
@@ -103,7 +103,7 @@
103
103
  vertical-align: top;
104
104
  }
105
105
 
106
- .tita-okrdt-tree__e-project-node-priority > span {
106
+ .tita-okrdt-tree__e-project-node-priority-label span {
107
107
  display: inline-block;
108
108
  vertical-align: text-bottom;
109
109
  height: 16px;
@@ -164,7 +164,7 @@
164
164
  vertical-align: top;
165
165
  }
166
166
 
167
- .tita-okrdt-tree__e-task-level2-node-priority > span {
167
+ .tita-okrdt-tree__e-task-level2-node-priority-label span {
168
168
  display: inline-block;
169
169
  vertical-align: text-bottom;
170
170
  height: 16px;
@@ -194,7 +194,7 @@
194
194
  .tita-okrdt-tree__e-empty-node {
195
195
  font-size: 12px;
196
196
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
197
- color: #F6BD16;
197
+ color: #f6bd16;
198
198
  line-height: 18px;
199
199
  padding-left: 12px;
200
200
  }
@@ -11,10 +11,14 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
+ var _titaUi = require("tita-ui");
15
+
14
16
  var _dropSelector = _interopRequireDefault(require("../drop-selector"));
15
17
 
16
18
  var _getLocale = require("../../utils/getLocale");
17
19
 
20
+ var _constant = require("../task-tree/task-item-node/constant");
21
+
18
22
  require("./index.css");
19
23
 
20
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -64,9 +68,13 @@ var EPriority = function EPriority(props) {
64
68
  checked: level,
65
69
  canEdit: hasAuth && status !== '5',
66
70
  limitHeight: false,
67
- trigger: /*#__PURE__*/_react["default"].createElement("span", {
71
+ trigger: /*#__PURE__*/_react["default"].createElement("div", {
72
+ className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-label"))
73
+ }, /*#__PURE__*/_react["default"].createElement(_titaUi.Tooltip, {
74
+ content: (0, _constant.getPriorityTextMapping)()[level]
75
+ }, /*#__PURE__*/_react["default"].createElement("span", {
68
76
  className: (0, _classnames["default"])("".concat(preCls, "__e-task-node-priority-p").concat(level))
69
- })
77
+ })))
70
78
  }, /*#__PURE__*/_react["default"].createElement(_dropSelector["default"].IconItem, {
71
79
  name: "1"
72
80
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TASK_NDOE_TYPE = exports.EStatusStatus2ClassType = exports.EStatusClass2StatusTypeText = exports.EStatusClass2StatusType = void 0;
6
+ exports.getPriorityTextMapping = exports.TASK_NDOE_TYPE = exports.EStatusStatus2ClassType = exports.EStatusClass2StatusTypeText = exports.EStatusClass2StatusType = void 0;
7
7
 
8
8
  var _getLocale = require("../../../utils/getLocale");
9
9
 
@@ -41,6 +41,18 @@ var EStatusClass2StatusTypeText = function EStatusClass2StatusTypeText() {
41
41
  };
42
42
 
43
43
  exports.EStatusClass2StatusTypeText = EStatusClass2StatusTypeText;
44
+
45
+ var getPriorityTextMapping = function getPriorityTextMapping() {
46
+ return {
47
+ 1: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Highest")),
48
+ 2: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_High")),
49
+ 3: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Middle")),
50
+ 4: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Low")),
51
+ 5: "".concat((0, _getLocale.getLocale)("OKR_MyO_E_Priority"), "\uFF1A").concat((0, _getLocale.getLocale)("OKR_MyO_E_Butt_Verylow"))
52
+ };
53
+ };
54
+
55
+ exports.getPriorityTextMapping = getPriorityTextMapping;
44
56
  var TASK_NDOE_TYPE;
45
57
  exports.TASK_NDOE_TYPE = TASK_NDOE_TYPE;
46
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.11.40",
3
+ "version": "1.11.43",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",