@titaui/pc 1.11.52-beta.15 → 1.11.52-beta.18
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/create-okr-modal/fields/o-new-name.js +1 -1
- package/lib/components/create-okr-modal/kr-items/krItem.js +1 -1
- package/lib/components/dynamic/components/title/index.js +2 -4
- package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +7 -7
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +12 -12
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -3
- package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +3 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +11 -9
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +1 -1
- package/lib/components/nav-top/components/user-message/components/todos/todo-item.js +3 -3
- package/lib/components/okr-detail/components/header/edit-name.js +0 -1
- package/lib/components/okr-detail/components/header/index.css +3 -1
- package/lib/components/okr-detail/detail-header/index.js +3 -1
- package/lib/components/search-key-handle/index.js +3 -3
- package/lib/utils/open-data.js +5 -5
- package/package.json +2 -2
|
@@ -171,7 +171,7 @@ function ONewName(_ref) {
|
|
|
171
171
|
onOInputFocusStateChange(false);
|
|
172
172
|
}
|
|
173
173
|
}, []);
|
|
174
|
-
var handleOnKeyDown = (0, _react.useCallback)(function () {
|
|
174
|
+
var handleOnKeyDown = (0, _react.useCallback)(function (e) {
|
|
175
175
|
setIsInputContent(true);
|
|
176
176
|
}, [setIsInputContent]);
|
|
177
177
|
var handleOnKeyUp = (0, _react.useCallback)(function (e) {
|
|
@@ -102,7 +102,7 @@ function KrItem(props) {
|
|
|
102
102
|
// }
|
|
103
103
|
// }, [onAddKr])
|
|
104
104
|
|
|
105
|
-
var handleOnKeyDown = (0, _react.useCallback)(function () {
|
|
105
|
+
var handleOnKeyDown = (0, _react.useCallback)(function (e) {
|
|
106
106
|
setIsInputContent(true);
|
|
107
107
|
}, [setIsInputContent]);
|
|
108
108
|
var handleOnKeyUp = (0, _react.useCallback)(function (e) {
|
|
@@ -15,8 +15,6 @@ var _searchKeyHandle = _interopRequireDefault(require("../../../search-key-handl
|
|
|
15
15
|
|
|
16
16
|
var _context = require("../../context");
|
|
17
17
|
|
|
18
|
-
var _openData = require("../../../../utils/open-data");
|
|
19
|
-
|
|
20
18
|
require("./index.css");
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -25,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
23
|
|
|
26
24
|
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; }
|
|
27
25
|
|
|
28
|
-
var prefix =
|
|
26
|
+
var prefix = 'titaui-dynamic-title';
|
|
29
27
|
|
|
30
28
|
var DynamicTitle = function DynamicTitle(_ref) {
|
|
31
29
|
var content = _ref.content,
|
|
@@ -64,7 +62,7 @@ var DynamicTitle = function DynamicTitle(_ref) {
|
|
|
64
62
|
onClick: onTitleClick
|
|
65
63
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
66
64
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
67
|
-
str:
|
|
65
|
+
str: content,
|
|
68
66
|
keyWord: searchKeyWord
|
|
69
67
|
}),
|
|
70
68
|
isPercent: true
|
|
@@ -53,7 +53,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
53
53
|
|
|
54
54
|
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; }
|
|
55
55
|
|
|
56
|
-
var prefix =
|
|
56
|
+
var prefix = 'titaui-dynamic-align-item';
|
|
57
57
|
|
|
58
58
|
var DynamicAlign = function DynamicAlign(_ref) {
|
|
59
59
|
var _classNames;
|
|
@@ -77,27 +77,27 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
77
77
|
|
|
78
78
|
var handleClickTitle = function handleClickTitle(id, type) {
|
|
79
79
|
if (type === _constant.EObjType.Kr) {
|
|
80
|
-
_drawerManager["default"].open(
|
|
80
|
+
_drawerManager["default"].open('krDetail', {
|
|
81
81
|
krId: id
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
if (type === _constant.EObjType.O) {
|
|
86
|
-
_drawerManager["default"].open(
|
|
86
|
+
_drawerManager["default"].open('okrDetail', {
|
|
87
87
|
okrId: id
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
93
|
-
var text =
|
|
93
|
+
var text = '';
|
|
94
94
|
|
|
95
95
|
if (parentObjType === _constant.EObjType.Kr) {
|
|
96
|
-
text = "".concat((0, _getLocale.getLocale)(
|
|
96
|
+
text = "".concat((0, _getLocale.getLocale)('Mod_Aligned')).concat((0, _getLocale.getLocale)('Mod_KeyResults'));
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
if (parentObjType === _constant.EObjType.O) {
|
|
100
|
-
text = "".concat((0, _getLocale.getLocale)(
|
|
100
|
+
text = "".concat((0, _getLocale.getLocale)('Mod_Aligned')).concat((0, _getLocale.getLocale)('Mod_Objective'));
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -133,7 +133,7 @@ var DynamicAlign = function DynamicAlign(_ref) {
|
|
|
133
133
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
134
134
|
isPercent: true,
|
|
135
135
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
136
|
-
str: (0,
|
|
136
|
+
str: (0, _tools.htmlDecodeByRegExp)(parentObjName),
|
|
137
137
|
keyWord: searchKeyWord
|
|
138
138
|
})
|
|
139
139
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -98,13 +98,13 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
98
98
|
},
|
|
99
99
|
// 部门
|
|
100
100
|
3: {
|
|
101
|
-
icon:
|
|
102
|
-
text: (0, _getLocale.getLocale)(
|
|
101
|
+
icon: 'tu-icon-gong_si',
|
|
102
|
+
text: (0, _getLocale.getLocale)('OKR_MyO_Pop_Company')
|
|
103
103
|
},
|
|
104
104
|
// 公司
|
|
105
105
|
4: {
|
|
106
|
-
icon:
|
|
107
|
-
text: okrTypeName || (0, _getLocale.getLocale)(
|
|
106
|
+
icon: 'tu-icon-liebiao-tuandui',
|
|
107
|
+
text: okrTypeName || (0, _getLocale.getLocale)('OKR_MyO_Text_Team')
|
|
108
108
|
} // 团队
|
|
109
109
|
|
|
110
110
|
};
|
|
@@ -112,15 +112,15 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
112
112
|
|
|
113
113
|
if (!okrTypeInfo) {
|
|
114
114
|
okrTypeInfo = {
|
|
115
|
-
icon:
|
|
116
|
-
text: (0, _getLocale.getLocale)(
|
|
115
|
+
icon: 'tu-icon-liebiao-geren',
|
|
116
|
+
text: (0, _getLocale.getLocale)('OKR_Menu_Title_Others')
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
var renderDesc = (0, _react.useMemo)(function () {
|
|
121
121
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
122
|
className: "".concat(prefix, "__operate-desc")
|
|
123
|
-
}, (0, _getLocale.getLocale)(
|
|
123
|
+
}, (0, _getLocale.getLocale)('Mod_InChargeof'), (0, _getLocale.getLocale)('Mod_Objective'));
|
|
124
124
|
}, []);
|
|
125
125
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
126
126
|
className: prefix
|
|
@@ -136,9 +136,9 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
136
136
|
}, /*#__PURE__*/_react["default"].createElement(_progress["default"].Circle, {
|
|
137
137
|
linear: true,
|
|
138
138
|
linearId: data.feedId,
|
|
139
|
-
linearStartColor: (0, _util.getProcessColor)(okrStatus, riskLevel,
|
|
140
|
-
linearEndColor: (0, _util.getProcessColor)(okrStatus, riskLevel,
|
|
141
|
-
backgroundColor: (0, _util.getProcessColor)(okrStatus, riskLevel,
|
|
139
|
+
linearStartColor: (0, _util.getProcessColor)(okrStatus, riskLevel, 'linearStartColor'),
|
|
140
|
+
linearEndColor: (0, _util.getProcessColor)(okrStatus, riskLevel, 'linearEndColor'),
|
|
141
|
+
backgroundColor: (0, _util.getProcessColor)(okrStatus, riskLevel, 'backgroundColor'),
|
|
142
142
|
percent: Number.parseInt(okrProgress || 0, 10),
|
|
143
143
|
showTextContent: true,
|
|
144
144
|
size: 48,
|
|
@@ -153,7 +153,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
153
153
|
onClick: handleClickOTitle
|
|
154
154
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
155
155
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
156
|
-
str: (0,
|
|
156
|
+
str: (0, _tools.htmlDecodeByRegExp)(okrName),
|
|
157
157
|
keyWord: searchKeyWord
|
|
158
158
|
}),
|
|
159
159
|
isPercent: true
|
|
@@ -179,7 +179,7 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
179
179
|
handleClickKrTitle(kr.krId);
|
|
180
180
|
}
|
|
181
181
|
}, /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
182
|
-
str: (0,
|
|
182
|
+
str: (0, _tools.htmlDecodeByRegExp)(kr.krName),
|
|
183
183
|
keyWord: searchKeyWord
|
|
184
184
|
})));
|
|
185
185
|
}))))));
|
|
@@ -27,8 +27,6 @@ var _constant = require("../../constant");
|
|
|
27
27
|
|
|
28
28
|
var _getLocale = require("../../../../utils/getLocale");
|
|
29
29
|
|
|
30
|
-
var _openData = require("../../../../utils/open-data");
|
|
31
|
-
|
|
32
30
|
var _utils = require("./utils");
|
|
33
31
|
|
|
34
32
|
var _conditionRender = _interopRequireDefault(require("../../../condition-render"));
|
|
@@ -111,7 +109,7 @@ var DynamicProgress = function DynamicProgress(_ref) {
|
|
|
111
109
|
onClick: handleClickOTitle
|
|
112
110
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
113
111
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
114
|
-
str: (0,
|
|
112
|
+
str: (0, _tools.htmlDecodeByRegExp)(relationParentName),
|
|
115
113
|
keyWord: searchKeyWord
|
|
116
114
|
}),
|
|
117
115
|
isPercent: true
|
|
@@ -69,7 +69,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
69
69
|
|
|
70
70
|
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; }
|
|
71
71
|
|
|
72
|
-
var prefix =
|
|
72
|
+
var prefix = 'titaui-dynamic-relative-item';
|
|
73
73
|
|
|
74
74
|
var DynamicRelative = function DynamicRelative(_ref) {
|
|
75
75
|
var _classNames, _classNames2;
|
|
@@ -99,13 +99,13 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
99
99
|
|
|
100
100
|
var handleClickTitle = function handleClickTitle(id, type) {
|
|
101
101
|
if (type === _constant.EObjType.Kr) {
|
|
102
|
-
_drawerManager["default"].open(
|
|
102
|
+
_drawerManager["default"].open('krDetail', {
|
|
103
103
|
krId: id
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
if (type === _constant.EObjType.O) {
|
|
108
|
-
_drawerManager["default"].open(
|
|
108
|
+
_drawerManager["default"].open('okrDetail', {
|
|
109
109
|
okrId: id
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -115,7 +115,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
if (type === _constant.EObjType.Task) {
|
|
118
|
-
window.Talent.app.vent.trigger(
|
|
118
|
+
window.Talent.app.vent.trigger('global-pull-screen', id, 'task');
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -123,15 +123,15 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
123
123
|
var text;
|
|
124
124
|
|
|
125
125
|
if (relateObjType === _constant.EObjType.Kr) {
|
|
126
|
-
text = "".concat((0, _getLocale.getLocale)(
|
|
126
|
+
text = "".concat((0, _getLocale.getLocale)('Mod_Connected')).concat((0, _getLocale.getLocale)('Mod_KeyResults'));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
if (relateObjType === _constant.EObjType.O) {
|
|
130
|
-
text = "".concat((0, _getLocale.getLocale)(
|
|
130
|
+
text = "".concat((0, _getLocale.getLocale)('Mod_Connected')).concat((0, _getLocale.getLocale)('Mod_Objective'));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
if (relateObjType === _constant.EObjType.Project) {
|
|
134
|
-
text = "".concat((0, _getLocale.getLocale)(
|
|
134
|
+
text = "".concat((0, _getLocale.getLocale)('Mod_Connected')).concat((0, _getLocale.getLocale)('Feed_Set_Project'));
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -165,7 +165,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
165
165
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
166
166
|
alt: "",
|
|
167
167
|
className: "".concat(prefix, "__obj-base-info-left-img"),
|
|
168
|
-
src: relatedImgUrl ||
|
|
168
|
+
src: relatedImgUrl || ''
|
|
169
169
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
170
|
className: "".concat(prefix, "__obj-base-info-right")
|
|
171
171
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -176,7 +176,7 @@ var DynamicRelative = function DynamicRelative(_ref) {
|
|
|
176
176
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
177
177
|
isPercent: true,
|
|
178
178
|
text: /*#__PURE__*/_react["default"].createElement(_searchKeyHandle["default"], {
|
|
179
|
-
str: (0,
|
|
179
|
+
str: (0, _tools.htmlDecodeByRegExp)(relateObjName),
|
|
180
180
|
keyWord: searchKeyWord
|
|
181
181
|
})
|
|
182
182
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -29,6 +29,8 @@ var _getLocale = require("../../../../utils/getLocale");
|
|
|
29
29
|
|
|
30
30
|
var _mblog = require("../../../../utils/mblog");
|
|
31
31
|
|
|
32
|
+
var _openData = require("../../../../utils/open-data");
|
|
33
|
+
|
|
32
34
|
require("./index.css");
|
|
33
35
|
|
|
34
36
|
var _excluded = ["data"];
|
|
@@ -118,7 +120,7 @@ var DynamicTask = function DynamicTask(_ref) {
|
|
|
118
120
|
className: "".concat(prefix, "__object-name"),
|
|
119
121
|
onClick: handleClickTitle
|
|
120
122
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
121
|
-
text: (0, _mblog.htmlDecodeByRegExp)(obj.objName),
|
|
123
|
+
text: (0, _openData.parseString)((0, _mblog.htmlDecodeByRegExp)(obj.objName)),
|
|
122
124
|
isPercent: true
|
|
123
125
|
})), (0, _getLocale.getLocale)('Mod_stask'));
|
|
124
126
|
}
|
|
@@ -27,6 +27,8 @@ var _utils = require("./utils");
|
|
|
27
27
|
|
|
28
28
|
var _getLocale = require("../../utils/getLocale");
|
|
29
29
|
|
|
30
|
+
var _openData = require("../../utils/open-data");
|
|
31
|
+
|
|
30
32
|
require("./style/style.css");
|
|
31
33
|
|
|
32
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); }
|
|
@@ -110,7 +112,7 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
|
|
|
110
112
|
|
|
111
113
|
_this.handleOk = function () {
|
|
112
114
|
if (!_this.state.isValid) {
|
|
113
|
-
_toast["default"].Warning(
|
|
115
|
+
_toast["default"].Warning('关键成果总权重须等于100%');
|
|
114
116
|
|
|
115
117
|
return;
|
|
116
118
|
}
|
|
@@ -126,10 +128,10 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
|
|
|
126
128
|
};
|
|
127
129
|
});
|
|
128
130
|
|
|
129
|
-
(0, _requestV.taker)((0, _requestV.getApiUrl)(url),
|
|
131
|
+
(0, _requestV.taker)((0, _requestV.getApiUrl)(url), 'post', data).then(function (res) {
|
|
130
132
|
_this.props.onOk && _this.props.onOk(); // @ts-ignore
|
|
131
133
|
|
|
132
|
-
window.Talent.app.vent.trigger(
|
|
134
|
+
window.Talent.app.vent.trigger('updateProgress:Project-Progress-View', {});
|
|
133
135
|
});
|
|
134
136
|
};
|
|
135
137
|
|
|
@@ -295,7 +297,7 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
|
|
|
295
297
|
isValid = _this$state.isValid,
|
|
296
298
|
isDone = _this$state.isDone;
|
|
297
299
|
return /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
|
298
|
-
title: (0, _getLocale.getLocale)(
|
|
300
|
+
title: (0, _getLocale.getLocale)('OKR_MyO_Text_krweightsetting'),
|
|
299
301
|
noFooterLine: true,
|
|
300
302
|
visible: !isDone && isShowModal,
|
|
301
303
|
width: "570px",
|
|
@@ -324,19 +326,19 @@ var EditKrWightModal = /*#__PURE__*/function (_Component) {
|
|
|
324
326
|
}, /*#__PURE__*/_react["default"].createElement(_style.KrCounter, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
325
327
|
className: "kr-counter"
|
|
326
328
|
}, "KR".concat(index + 1))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
327
|
-
title: mileStoneName,
|
|
329
|
+
title: (0, _openData.parseString)(mileStoneName),
|
|
328
330
|
overlayStyle: mileStoneName.length > 18 ? {
|
|
329
331
|
zIndex: 99999
|
|
330
332
|
} : {}
|
|
331
|
-
}, /*#__PURE__*/_react["default"].createElement(_style.KrTitle, null, mileStoneName)), /*#__PURE__*/_react["default"].createElement(_style.FormItemWrapper, {
|
|
333
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.KrTitle, null, (0, _openData.parseString)(mileStoneName))), /*#__PURE__*/_react["default"].createElement(_style.FormItemWrapper, {
|
|
332
334
|
style: {
|
|
333
335
|
width: 140
|
|
334
336
|
}
|
|
335
|
-
}, /*#__PURE__*/_react["default"].createElement(_style.FormItemLabel, null, (0, _getLocale.getLocale)(
|
|
337
|
+
}, /*#__PURE__*/_react["default"].createElement(_style.FormItemLabel, null, (0, _getLocale.getLocale)('OKR_MyO_Text_Weights')), /*#__PURE__*/_react["default"].createElement(_FormItemV["default"], {
|
|
336
338
|
isDirty: data.isDirty,
|
|
337
|
-
errorText: (0, _getLocale.getLocale)(
|
|
339
|
+
errorText: (0, _getLocale.getLocale)('OKR_MyO_KRP_Please0and100')
|
|
338
340
|
}, /*#__PURE__*/_react["default"].createElement(_Input["default"], {
|
|
339
|
-
suffixIcon: (0, _getLocale.getLocale)(
|
|
341
|
+
suffixIcon: (0, _getLocale.getLocale)('OKR_MyO_Pop_Upd_Percentage'),
|
|
340
342
|
value: krWeight,
|
|
341
343
|
onChange: function onChange(value) {
|
|
342
344
|
return _this4.handleWeightChange(value, feedId);
|
|
@@ -260,7 +260,7 @@ function Inform(props) {
|
|
|
260
260
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
261
261
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
262
262
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
263
|
-
text: (0, _openData.parseString)((0, _utils.deleteText)(
|
|
263
|
+
text: (0, _openData.parseString)((0, _utils.deleteText)(item.content)),
|
|
264
264
|
isPercent: true,
|
|
265
265
|
mouseEnterDelay: 0.8
|
|
266
266
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -23,7 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
23
23
|
|
|
24
24
|
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; }
|
|
25
25
|
|
|
26
|
-
var preCls =
|
|
26
|
+
var preCls = 'titaui-user-message-msg-todos';
|
|
27
27
|
|
|
28
28
|
var TodoItem = function TodoItem(props) {
|
|
29
29
|
var item = props.item,
|
|
@@ -34,7 +34,7 @@ var TodoItem = function TodoItem(props) {
|
|
|
34
34
|
onItemClick && onItemClick(false);
|
|
35
35
|
|
|
36
36
|
if (item.objType === 7) {
|
|
37
|
-
window.Talent.app.vent.trigger(
|
|
37
|
+
window.Talent.app.vent.trigger('global-pull-screen', item.objId, 'task');
|
|
38
38
|
} else {
|
|
39
39
|
(0, _tools.openPage)(item.objUrl);
|
|
40
40
|
}
|
|
@@ -78,7 +78,7 @@ var TodoItem = function TodoItem(props) {
|
|
|
78
78
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
79
79
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
80
80
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
81
|
-
text: (0, _openData.parseString)((0, _utils.deleteText)(
|
|
81
|
+
text: (0, _openData.parseString)((0, _utils.deleteText)(item.content)),
|
|
82
82
|
isPercent: true,
|
|
83
83
|
mouseEnterDelay: 0.8
|
|
84
84
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
.okr-drawer-header__content {
|
|
8
8
|
flex: 1;
|
|
9
9
|
position: relative;
|
|
10
|
+
overflow: visible;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.okr-drawer-header__avatar {
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
.okr-drawer-header__edit-input {
|
|
105
|
-
height: calc(100% - 32px);
|
|
106
|
+
min-height: calc(100% - 32px);
|
|
106
107
|
margin-bottom: 8px;
|
|
107
108
|
border-bottom: 1px solid transparent;
|
|
108
109
|
transition: border 0.3s ease;
|
|
@@ -145,6 +146,7 @@
|
|
|
145
146
|
padding: 0 0 4px 0;
|
|
146
147
|
font-size: 20px;
|
|
147
148
|
font-weight: 600;
|
|
149
|
+
white-space: normal !important;
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
.okr-drawer-header__edit-btns {
|
|
@@ -67,6 +67,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
67
67
|
|
|
68
68
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
69
69
|
|
|
70
|
+
var StrRreg = /@\$(userName|departmentName)\=(.+?)\$(\s|$)/g;
|
|
71
|
+
|
|
70
72
|
function OkrDetailHeader(_ref) {
|
|
71
73
|
var detailInfo = _ref.detailInfo;
|
|
72
74
|
|
|
@@ -396,7 +398,7 @@ function OkrDetailHeader(_ref) {
|
|
|
396
398
|
actionComponent: /*#__PURE__*/_react["default"].createElement(_wechatBtn["default"], {
|
|
397
399
|
id: detailInfo.workId,
|
|
398
400
|
objType: 62,
|
|
399
|
-
name: detailInfo.workName,
|
|
401
|
+
name: detailInfo.workName.replace(StrRreg, ''),
|
|
400
402
|
principalUser: detailInfo.principalUser
|
|
401
403
|
}),
|
|
402
404
|
content: parent && /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -18,7 +18,7 @@ var SearchKeyHandle = function SearchKeyHandle(_ref) {
|
|
|
18
18
|
keyWord = _ref$keyWord === void 0 ? '' : _ref$keyWord,
|
|
19
19
|
_ref$color = _ref.color,
|
|
20
20
|
color = _ref$color === void 0 ? '#F05E5E' : _ref$color;
|
|
21
|
-
if (!str || !keyWord) return /*#__PURE__*/_react["default"].createElement("span", null, str);
|
|
21
|
+
if (!str || !keyWord) return /*#__PURE__*/_react["default"].createElement("span", null, (0, _openData.parseString)(str));
|
|
22
22
|
var result = str.split(keyWord);
|
|
23
23
|
return /*#__PURE__*/_react["default"].createElement("span", null, result.map(function (item, index) {
|
|
24
24
|
if (index !== result.length - 1) {
|
|
@@ -26,10 +26,10 @@ var SearchKeyHandle = function SearchKeyHandle(_ref) {
|
|
|
26
26
|
style: {
|
|
27
27
|
color: color
|
|
28
28
|
}
|
|
29
|
-
}, keyWord));
|
|
29
|
+
}, (0, _openData.parseString)(keyWord)));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
return item;
|
|
32
|
+
return (0, _openData.parseString)(item);
|
|
33
33
|
}));
|
|
34
34
|
};
|
|
35
35
|
|
package/lib/utils/open-data.js
CHANGED
|
@@ -251,7 +251,7 @@ var parseString = function parseString(str) {
|
|
|
251
251
|
for (var i = 0; i < commonStrs.length; i++) {
|
|
252
252
|
var _v2Paresed = parseStringV2(commonStrs[i]);
|
|
253
253
|
|
|
254
|
-
|
|
254
|
+
renderData.push( /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _v2Paresed)); // renderData.push(
|
|
255
255
|
// <span dangerouslySetInnerHTML={{ __html: commonStrs[i] }} />,
|
|
256
256
|
// )
|
|
257
257
|
|
|
@@ -276,8 +276,8 @@ var parseStringV2 = function parseStringV2(str) {
|
|
|
276
276
|
__html: str
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
|
-
var reg = /\$(userName|departmentName)\=(.+?)
|
|
280
|
-
var strReg = /\$(?:userName|departmentName)
|
|
279
|
+
var reg = /\$(userName|departmentName)\=(.+?)\$/g;
|
|
280
|
+
var strReg = /\$(?:userName|departmentName)\=.+?\$/;
|
|
281
281
|
var openDatas = [];
|
|
282
282
|
var matchStr = reg.exec(str);
|
|
283
283
|
|
|
@@ -339,8 +339,8 @@ var parseOpenDataStringToImg = /*#__PURE__*/function () {
|
|
|
339
339
|
fontWeight: '500',
|
|
340
340
|
color: '#3f4755'
|
|
341
341
|
}), font || {});
|
|
342
|
-
reg = /\$(userName|departmentName)\=(.+?)
|
|
343
|
-
strReg = /\$(?:userName|departmentName)
|
|
342
|
+
reg = /\$(userName|departmentName)\=(.+?)\$/g;
|
|
343
|
+
strReg = /\$(?:userName|departmentName)\=.+?\$/;
|
|
344
344
|
openDatas = [];
|
|
345
345
|
matchStr = reg.exec(str);
|
|
346
346
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.11.52-beta.
|
|
3
|
+
"version": "1.11.52-beta.18",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@titaui/rc-trigger": "5.2.5",
|
|
79
79
|
"@titaui/react-flow-renderer": "9.5.4",
|
|
80
80
|
"@titaui/request": "^1.0.1",
|
|
81
|
-
"@titaui/rich-editor": "^0.1.
|
|
81
|
+
"@titaui/rich-editor": "^0.1.39",
|
|
82
82
|
"@titaui/toast": "1.0.0",
|
|
83
83
|
"@types/color": "3.0.3",
|
|
84
84
|
"@types/prosemirror-commands": "1.0.4",
|