@titaui/pc 1.12.1 → 1.12.4
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/constant.js +1 -1
- package/lib/components/nav-top/components/menu/index.js +16 -14
- package/lib/components/task-relation-modal/tree/category-tree/index.css +3 -3
- package/lib/components/task-relation-modal/tree/work-tree/index.css +1 -1
- package/lib/components/task-relation-modal/tree-node/category-node/index.css +1 -1
- package/package.json +1 -1
|
@@ -116,7 +116,7 @@ var EStatusStatus2ClassType = {
|
|
|
116
116
|
3: "tu-icon-deferred",
|
|
117
117
|
6: "tu-icon-paused",
|
|
118
118
|
0: "tu-icon-notstart",
|
|
119
|
-
5: "tu-icon-
|
|
119
|
+
5: "tu-icon-weijieshou-right"
|
|
120
120
|
};
|
|
121
121
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
122
122
|
var PlanReportType = ["titaPlanReport", "titaPlanManagerReport"];
|
|
@@ -45,7 +45,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
45
45
|
|
|
46
46
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
47
47
|
|
|
48
|
-
var prefix =
|
|
48
|
+
var prefix = "titaui-nav-top-menu";
|
|
49
49
|
var popupAlign = {
|
|
50
50
|
offset: [0, 5],
|
|
51
51
|
overflow: {
|
|
@@ -62,7 +62,7 @@ var NewFeatureGuidePopupAlign = {
|
|
|
62
62
|
},
|
|
63
63
|
targetOffset: [0, 0]
|
|
64
64
|
};
|
|
65
|
-
var NEWMENUS =
|
|
65
|
+
var NEWMENUS = "#/interview";
|
|
66
66
|
|
|
67
67
|
var Menu = function Menu(_ref) {
|
|
68
68
|
var menus = _ref.menus,
|
|
@@ -83,7 +83,7 @@ var Menu = function Menu(_ref) {
|
|
|
83
83
|
feedNum = _useGlobalValue2[0];
|
|
84
84
|
|
|
85
85
|
var containerRef = (0, _react.useRef)();
|
|
86
|
-
var apiPath = (0, _bsGlobal.getBSGlobal)(
|
|
86
|
+
var apiPath = (0, _bsGlobal.getBSGlobal)("apiPath");
|
|
87
87
|
var userId = (0, _bsGlobal.getUserInfo)().Id;
|
|
88
88
|
|
|
89
89
|
var handlePopupVisibleChange = function handlePopupVisibleChange(visible) {
|
|
@@ -92,10 +92,10 @@ var Menu = function Menu(_ref) {
|
|
|
92
92
|
|
|
93
93
|
var handleTracker = function handleTracker(menu) {
|
|
94
94
|
if (window.titaTracker) {
|
|
95
|
-
window.titaTracker(
|
|
95
|
+
window.titaTracker("action").record({
|
|
96
96
|
actionName: "\u5BFC\u822A\u83DC\u5355__".concat(menu.title),
|
|
97
|
-
actionGroup:
|
|
98
|
-
productName:
|
|
97
|
+
actionGroup: "导航菜单",
|
|
98
|
+
productName: "导航菜单"
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
};
|
|
@@ -133,7 +133,7 @@ var Menu = function Menu(_ref) {
|
|
|
133
133
|
var renderRawItem = function renderRawItem(menu) {
|
|
134
134
|
var href = menu.href;
|
|
135
135
|
|
|
136
|
-
if (menu.title ===
|
|
136
|
+
if (menu.title === "Learning") {
|
|
137
137
|
href = "".concat(apiPath, "/").concat(userId, "/eLearningHome#/");
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -145,8 +145,9 @@ var Menu = function Menu(_ref) {
|
|
|
145
145
|
popupVisible: !isKnow,
|
|
146
146
|
popup: menu.href === NEWMENUS ? popup : null,
|
|
147
147
|
mask: false,
|
|
148
|
-
action: [
|
|
149
|
-
popupAlign: NewFeatureGuidePopupAlign
|
|
148
|
+
action: ["focus"],
|
|
149
|
+
popupAlign: NewFeatureGuidePopupAlign,
|
|
150
|
+
zIndex: 1201
|
|
150
151
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
151
152
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
152
153
|
href: href,
|
|
@@ -154,10 +155,11 @@ var Menu = function Menu(_ref) {
|
|
|
154
155
|
onClick: function onClick() {
|
|
155
156
|
return handleTracker(menu);
|
|
156
157
|
}
|
|
157
|
-
}, menu.title, menu.href ===
|
|
158
|
-
className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href ===
|
|
159
|
-
}, feedNum > 100 ?
|
|
158
|
+
}, menu.title, menu.href === "#dynamic" && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
|
+
className: (0, _classnames["default"])("".concat(prefix, "__menu--hasNum"), _defineProperty({}, "".concat(prefix, "__menu--hasNum-active"), activeMenuId === menu.id && menu.href === "#dynamic"))
|
|
160
|
+
}, feedNum > 100 ? "99+" : feedNum), menu.href === NEWMENUS && /*#__PURE__*/_react["default"].createElement("img", {
|
|
160
161
|
src: _new["default"],
|
|
162
|
+
alt: "",
|
|
161
163
|
className: "".concat(prefix, "__tips-new")
|
|
162
164
|
})))));
|
|
163
165
|
};
|
|
@@ -173,7 +175,7 @@ var Menu = function Menu(_ref) {
|
|
|
173
175
|
}, items.map(function (menu) {
|
|
174
176
|
var href = menu.href;
|
|
175
177
|
|
|
176
|
-
if (menu.title ===
|
|
178
|
+
if (menu.title === "Learning") {
|
|
177
179
|
href = "".concat(apiPath, "/").concat(userId, "/eLearningHome#/");
|
|
178
180
|
}
|
|
179
181
|
|
|
@@ -194,7 +196,7 @@ var Menu = function Menu(_ref) {
|
|
|
194
196
|
popupPlacement: "bottomLeft",
|
|
195
197
|
popupAlign: popupAlign
|
|
196
198
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
-
className: (0, _classnames["default"])(
|
|
199
|
+
className: (0, _classnames["default"])("tu-icon-diot", "".concat(prefix, "__more-icon"), _defineProperty({}, "".concat(prefix, "__more-icon--active"), isActiveHideMeun))
|
|
198
200
|
}));
|
|
199
201
|
};
|
|
200
202
|
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
font-size: 14px;
|
|
19
19
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
20
20
|
font-weight: 400;
|
|
21
|
-
color: #
|
|
21
|
+
color: #ffffff;
|
|
22
22
|
line-height: 36px;
|
|
23
|
-
background: #
|
|
23
|
+
background: #2879ff;
|
|
24
24
|
border-radius: 4px;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
overflow-y: scroll;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.rel-category-tree__content .rc-tree-treenode {
|
|
46
|
+
.rel-category-tree__content .rc-tree-list .rc-tree-treenode {
|
|
47
47
|
margin-bottom: 8px;
|
|
48
48
|
padding-left: 28px;
|
|
49
49
|
}
|