@titaui/pc 1.10.71 → 1.10.75
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/dynamic/dynamic.js +4 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
- package/lib/components/okr-detail/e-list/index.js +1 -1
- package/lib/components/okr-flow/root-node/index.js +14 -1
- package/lib/components/tree/index.css +3 -2
- package/lib/pages/new-okr-list/index.js +1 -9
- package/package.json +1 -1
|
@@ -221,7 +221,10 @@ var Dynamic = function Dynamic() {
|
|
|
221
221
|
setNoMoreData(resp.Data.isEnd);
|
|
222
222
|
|
|
223
223
|
if (needResetValue) {
|
|
224
|
-
setDynamicData(
|
|
224
|
+
setDynamicData([]);
|
|
225
|
+
setTimeout(function () {
|
|
226
|
+
setDynamicData(resp.Data.feeds);
|
|
227
|
+
}, 0);
|
|
225
228
|
} else {
|
|
226
229
|
setDynamicData(JSON.parse(JSON.stringify([].concat(_toConsumableArray(dynamicData), _toConsumableArray(resp.Data.feeds)))));
|
|
227
230
|
}
|
|
@@ -176,7 +176,7 @@ var EKrNode = function EKrNode(props) {
|
|
|
176
176
|
className: (0, _classnames["default"])("tu-icon-O ".concat(_precls["default"], "__e-kr-node-preicon"))
|
|
177
177
|
}) : /*#__PURE__*/_react["default"].createElement("span", {
|
|
178
178
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-prefix"))
|
|
179
|
-
}, "KR", index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
179
|
+
}, "KR", data.SortNum ? data.SortNum + 1 : index + 1), /*#__PURE__*/_react["default"].createElement("span", {
|
|
180
180
|
className: (0, _classnames["default"])("".concat(_precls["default"], "__e-kr-node-title")),
|
|
181
181
|
onClick: function onClick() {
|
|
182
182
|
if (data.mileStoneId) {
|
|
@@ -332,7 +332,7 @@ function _default(props) {
|
|
|
332
332
|
editable: krCanEdit,
|
|
333
333
|
onEditUser: onEditUserHandler,
|
|
334
334
|
nameTips: function nameTips(name) {
|
|
335
|
-
return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A");
|
|
335
|
+
return /*#__PURE__*/_react["default"].createElement("span", null, "\u8D1F\u8D23\u4EBA\uFF1A", name);
|
|
336
336
|
}
|
|
337
337
|
})), showKrWeight && /*#__PURE__*/_react["default"].createElement(OkrRowColumn, {
|
|
338
338
|
width: 60,
|
|
@@ -215,7 +215,7 @@ function Elist(props, ref) {
|
|
|
215
215
|
!(index + 1 == krList.length && oEList.length == 0) && hasdivider && /*#__PURE__*/_react["default"].createElement("div", {
|
|
216
216
|
className: "e__divider"
|
|
217
217
|
}));
|
|
218
|
-
}), oEList.map(function (kr) {
|
|
218
|
+
}), !!oEList && !!oEList.length && oEList.map(function (kr) {
|
|
219
219
|
return /*#__PURE__*/_react["default"].createElement(_paddingLayout["default"], {
|
|
220
220
|
padding: layoutPadding
|
|
221
221
|
}, /*#__PURE__*/_react["default"].createElement(_okrTree["default"], {
|
|
@@ -102,7 +102,20 @@ function RootNode(props) {
|
|
|
102
102
|
style: {
|
|
103
103
|
backgroundColor: color
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
+
style: {
|
|
107
|
+
height: '24px',
|
|
108
|
+
width: '12px',
|
|
109
|
+
overflow: 'hidden',
|
|
110
|
+
margin: '0px auto'
|
|
111
|
+
}
|
|
112
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
113
|
+
src: whiteRootImg,
|
|
114
|
+
style: {
|
|
115
|
+
maxWidth: 268
|
|
116
|
+
},
|
|
117
|
+
width: imgWidth
|
|
118
|
+
})));
|
|
106
119
|
}
|
|
107
120
|
|
|
108
121
|
if (searchType == "depart") {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
position: absolute;
|
|
38
38
|
width: 100%;
|
|
39
39
|
bottom: 0;
|
|
40
|
-
content:
|
|
40
|
+
content: '';
|
|
41
41
|
border-bottom: 2px solid #2879ff;
|
|
42
42
|
z-index: 1;
|
|
43
43
|
}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
position: absolute;
|
|
52
52
|
width: 100%;
|
|
53
53
|
top: 0;
|
|
54
|
-
content:
|
|
54
|
+
content: '';
|
|
55
55
|
border-top: 2px solid #2879ff;
|
|
56
56
|
z-index: 1;
|
|
57
57
|
}
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
align-items: center;
|
|
62
62
|
line-height: unset;
|
|
63
63
|
overflow: hidden;
|
|
64
|
+
border-radius: 8px;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
.titaui-tree .rc-tree .rc-tree-treenode .rc-tree-node-content-wrapper {
|
|
@@ -209,17 +209,9 @@ var NewOkrList = function NewOkrList(props) {
|
|
|
209
209
|
params.keyWords = "";
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
var request;
|
|
213
|
-
|
|
214
|
-
if (!relation) {
|
|
215
|
-
request = (0, _requestApi.okrSearch)(params);
|
|
216
|
-
} else {
|
|
217
|
-
request = (0, _requestApi.okrList)(params);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
212
|
setLoading(true);
|
|
221
213
|
recordVisitUser();
|
|
222
|
-
|
|
214
|
+
(0, _requestApi.okrSearch)(params).then(function (res) {
|
|
223
215
|
setOkrs(res.works || []);
|
|
224
216
|
setTotal(res.total);
|
|
225
217
|
setLoading(false);
|