@titaui/pc 1.10.20 → 1.10.21
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/components/first-level-tabs/index.css +6 -10
- package/lib/components/dynamic/components/first-level-tabs/index.js +2 -2
- package/lib/components/nav-top/components/menu/index.css +12 -8
- package/lib/components/nav-top/components/menu/index.js +4 -4
- package/package.json +1 -1
|
@@ -37,18 +37,14 @@
|
|
|
37
37
|
border-radius: 2px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.titaui-dynamic-first-level-tabs__tab--
|
|
40
|
+
.titaui-dynamic-first-level-tabs__tab--point {
|
|
41
41
|
position: absolute;
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
width: 8px;
|
|
43
|
+
height: 8px;
|
|
44
44
|
background: #f05e5e;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
font-size: 12px;
|
|
49
|
-
color: #ffffff;
|
|
50
|
-
line-height: 18px;
|
|
51
|
-
padding: 0 4px;
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
right: -2px;
|
|
47
|
+
top: 22px;
|
|
52
48
|
}
|
|
53
49
|
|
|
54
50
|
.titaui-dynamic-first-level-tabs__hide-first-level-tabs {
|
|
@@ -120,8 +120,8 @@ var FirstLevelTabs = function FirstLevelTabs(_ref) {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
}, item.MenuName, item.CodeId === 1001 && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
123
|
-
className: "".concat(prefix, "__tab--
|
|
124
|
-
}
|
|
123
|
+
className: "".concat(prefix, "__tab--point")
|
|
124
|
+
}));
|
|
125
125
|
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
126
|
className: "".concat(prefix, "__fold-tab")
|
|
127
127
|
}, renderFoldFirstLevelTab));
|
|
@@ -39,16 +39,20 @@
|
|
|
39
39
|
transform: translate(-50%, 0);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.titaui-nav-top-menu__menu--
|
|
43
|
-
|
|
42
|
+
.titaui-nav-top-menu__menu--hasNum {
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
44
45
|
position: absolute;
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
right: 4px;
|
|
47
|
+
top: 6px;
|
|
47
48
|
background: #f05e5e;
|
|
48
|
-
|
|
49
|
-
border-radius:
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
box-shadow: 0px 2px 4px 0px rgba(240, 94, 94, 0.6), inset 0px 0px 2px 1px rgba(255, 255, 255, 0.4);
|
|
50
|
+
border-radius: 8px;
|
|
51
|
+
height: 16px;
|
|
52
|
+
font-size: 12px;
|
|
53
|
+
color: #ffffff;
|
|
54
|
+
line-height: 18px;
|
|
55
|
+
padding: 0 4px;
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
.titaui-nav-top-menu__hide-menus {
|
|
@@ -89,20 +89,20 @@ var Menu = function Menu(_ref) {
|
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
var renderRawItem = function renderRawItem(menu) {
|
|
92
|
-
var _classNames;
|
|
93
|
-
|
|
94
92
|
return /*#__PURE__*/_react["default"].createElement(_rcOverflow["default"].Item, {
|
|
95
93
|
component: "span"
|
|
96
94
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
97
95
|
condition: menu.title !== "Learning"
|
|
98
96
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
99
|
-
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), (
|
|
97
|
+
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|
|
100
98
|
href: "".concat(menu.href),
|
|
101
99
|
target: "_self",
|
|
102
100
|
onClick: function onClick() {
|
|
103
101
|
return handleTracker(menu);
|
|
104
102
|
}
|
|
105
|
-
}, menu.title
|
|
103
|
+
}, menu.title, menu.href === "#dynamic" && feedNum > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: "".concat(prefix, "__menu--hasNum")
|
|
105
|
+
}, feedNum > 100 ? "99+" : feedNum))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
106
106
|
condition: menu.title === "Learning"
|
|
107
107
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
108
108
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id)),
|