@titaui/pc 1.15.92 → 1.15.93
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-item/components/schedule/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/components/task-progress/render-row.js +6 -22
- package/lib/components/nav-top/components/menu/index.js +1 -4
- package/lib/components/nav-top/utils.js +2 -6
- package/lib/pages/aha2021/index.js +1 -5
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@ var Schedule = function Schedule(_ref) {
|
|
|
52
52
|
__html: val === null || val === void 0 ? void 0 : val.RichContent
|
|
53
53
|
}
|
|
54
54
|
})));
|
|
55
|
-
})), (value === null || value === void 0 ? void 0 : value.length) === 0 && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, oldValue ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
+
})), (!value || (value === null || value === void 0 ? void 0 : value.length) === 0) && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, oldValue ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
56
|
className: "".concat(prefix, "__content-richContent")
|
|
57
57
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
58
|
dangerouslySetInnerHTML: {
|
|
@@ -34,29 +34,13 @@ var RenderRow = function RenderRow(_ref) {
|
|
|
34
34
|
window.Talent.app.vent.trigger("global-pull-screen", item.TaskId, "task");
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
var LastContents = [{
|
|
38
|
-
RichContent: '不吃多久\n\n不吃你还记得吧 \n\n飙车党',
|
|
39
|
-
ContentTime: '2022/06/01',
|
|
40
|
-
UserName: '南方南方',
|
|
41
|
-
UserId: '345678',
|
|
42
|
-
EntityId: '1'
|
|
43
|
-
}, {
|
|
44
|
-
RichContent: '不吃多久\n\n不吃你还记得吧 \n\n飙车党',
|
|
45
|
-
ContentTime: '2022/06/01',
|
|
46
|
-
UserName: '南方南方',
|
|
47
|
-
UserId: '345678',
|
|
48
|
-
EntityId: '2'
|
|
49
|
-
}, {
|
|
50
|
-
RichContent: '不吃多久\n\n不吃你还记得吧 \n\n飙车党',
|
|
51
|
-
ContentTime: '2022/06/01',
|
|
52
|
-
UserName: '南方南方',
|
|
53
|
-
UserId: '345678',
|
|
54
|
-
EntityId: '3'
|
|
55
|
-
}];
|
|
56
|
-
|
|
57
37
|
var render = function render() {
|
|
38
|
+
var _item$LastRichContent;
|
|
39
|
+
|
|
40
|
+
console.log('LastRichContent', item === null || item === void 0 ? void 0 : (_item$LastRichContent = item.LastRichContent) === null || _item$LastRichContent === void 0 ? void 0 : _item$LastRichContent.trim());
|
|
41
|
+
|
|
58
42
|
if (item.IsImport) {
|
|
59
|
-
var _item$
|
|
43
|
+
var _item$LastRichContent2;
|
|
60
44
|
|
|
61
45
|
return /*#__PURE__*/_react["default"].createElement("tr", null, /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
62
46
|
className: "".concat(prefix, "__table-row-title"),
|
|
@@ -78,7 +62,7 @@ var RenderRow = function RenderRow(_ref) {
|
|
|
78
62
|
value: item.Progress,
|
|
79
63
|
editable: false
|
|
80
64
|
})), /*#__PURE__*/_react["default"].createElement("td", null, /*#__PURE__*/_react["default"].createElement(_schedule["default"], {
|
|
81
|
-
oldValue: (item === null || item === void 0 ? void 0 : (_item$
|
|
65
|
+
oldValue: (item === null || item === void 0 ? void 0 : (_item$LastRichContent2 = item.LastRichContent) === null || _item$LastRichContent2 === void 0 ? void 0 : _item$LastRichContent2.trim()) || (item === null || item === void 0 ? void 0 : item.LastContent) || "" // oldValue={item?.LastRichContent?.trim() || ""}
|
|
82
66
|
,
|
|
83
67
|
value: item.LastContents,
|
|
84
68
|
editable: false,
|
|
@@ -169,14 +169,11 @@ var Menu = function Menu(_ref) {
|
|
|
169
169
|
}));
|
|
170
170
|
};
|
|
171
171
|
|
|
172
|
-
var newMenus = menus.filter(function (val) {
|
|
173
|
-
return val.href !== '#summary/my';
|
|
174
|
-
});
|
|
175
172
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
176
173
|
className: prefix,
|
|
177
174
|
ref: containerRef
|
|
178
175
|
}, /*#__PURE__*/_react["default"].createElement(_rcOverflow["default"], {
|
|
179
|
-
data:
|
|
176
|
+
data: menus,
|
|
180
177
|
renderRawItem: renderRawItem,
|
|
181
178
|
renderRest: renderRest,
|
|
182
179
|
maxCount: "responsive"
|
|
@@ -14,14 +14,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
14
14
|
var getMenus = function getMenus() {
|
|
15
15
|
// @ts-ignore
|
|
16
16
|
var navs = window.BSGlobal.newNavigation;
|
|
17
|
-
|
|
18
|
-
return item.href !== '#summary/my';
|
|
19
|
-
}); //新加
|
|
20
|
-
|
|
21
|
-
hnavs.sort(function (pre, next) {
|
|
17
|
+
navs.sort(function (pre, next) {
|
|
22
18
|
return pre.orderId - next.orderId;
|
|
23
19
|
});
|
|
24
|
-
return
|
|
20
|
+
return navs; // const newNavigation = [
|
|
25
21
|
// {
|
|
26
22
|
// id: 21817,
|
|
27
23
|
// tenantId: 0,
|
|
@@ -117,11 +117,7 @@ function PageLayout(props) {
|
|
|
117
117
|
|
|
118
118
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
119
119
|
className: (0, _classnames["default"])(preCls)
|
|
120
|
-
},
|
|
121
|
-
className: "".concat(preCls, "__update-tip")
|
|
122
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
|
-
className: "tu-icon-tishi update-tip-icon"
|
|
124
|
-
}), "\u4EB2\u7231\u7684\u7528\u6237\u60A8\u597D\uFF0C\u300C\u603B\u7ED3\u300D\u5C06\u4E8E\u4ECA\u665A\u8FDB\u884C\u5347\u7EA7\uFF0C22:30 - 23:00 \u5C06\u6682\u65F6\u5173\u95ED\u603B\u7ED3\u6A21\u5757\uFF0C\u8BF7\u4E8E 8.25 22:00 - \u6B21\u65E5 7:00 \u6682\u505C\u603B\u7ED3\u7684\u7F16\u8F91\u4E0E\u63D0\u4EA4\u64CD\u4F5C\uFF0C\u611F\u8C22\u60A8\u7684\u7406\u89E3\u4E0E\u914D\u5408~"), hideNavTop !== 'true' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
120
|
+
}, hideNavTop !== 'true' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
125
121
|
className: (0, _classnames["default"])("".concat(preCls, "__header"))
|
|
126
122
|
}, (0, _helpers.getTenantInfo)().Source === 964 ? /*#__PURE__*/_react["default"].createElement(_hrHeader["default"], null) : /*#__PURE__*/_react["default"].createElement(_navTop["default"], null)), /*#__PURE__*/_react["default"].createElement("div", {
|
|
127
123
|
className: (0, _classnames["default"])("".concat(preCls, "__message"))
|