@titaui/pc 1.11.41 → 1.11.42

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.
@@ -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.41",
3
+ "version": "1.11.42",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",