@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.
@@ -37,18 +37,14 @@
37
37
  border-radius: 2px;
38
38
  }
39
39
 
40
- .titaui-dynamic-first-level-tabs__tab--showNumber {
40
+ .titaui-dynamic-first-level-tabs__tab--point {
41
41
  position: absolute;
42
- right: -12px;
43
- top: 25%;
42
+ width: 8px;
43
+ height: 8px;
44
44
  background: #f05e5e;
45
- box-shadow: 0px 2px 4px 0px rgba(240, 94, 94, 0.4), inset 0px 0px 2px 1px rgba(255, 255, 255, 0.5);
46
- border-radius: 8px;
47
- height: 16px;
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--showNumber")
124
- }, feedNum < 100 ? feedNum : "99+"));
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--hasPoint::before {
43
- content: '';
42
+ .titaui-nav-top-menu__menu--hasNum {
43
+ display: flex;
44
+ align-items: center;
44
45
  position: absolute;
45
- width: 6px;
46
- height: 6px;
46
+ right: 4px;
47
+ top: 6px;
47
48
  background: #f05e5e;
48
- border: 2px solid #2879ff;
49
- border-radius: 50%;
50
- right: 12px;
51
- top: 10px;
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"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__menu-show--active"), activeMenuId === menu.id), _defineProperty(_classNames, "".concat(prefix, "__menu--hasPoint"), menu.href === "#dynamic" && feedNum > 0), _classNames)),
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)), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
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)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.20",
3
+ "version": "1.10.21",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",