@lobehub/ui 1.80.0 → 1.81.0

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.
@@ -2,6 +2,7 @@ import { CSSProperties, ReactNode } from 'react';
2
2
  export interface MobileTabBarItemProps {
3
3
  icon: ReactNode | ((active: boolean) => ReactNode);
4
4
  key: string;
5
+ onClick?: () => void;
5
6
  title: ReactNode | ((active: boolean) => ReactNode);
6
7
  }
7
8
  export interface MobileTabBarProps {
@@ -40,7 +40,9 @@ var MobileTabBar = /*#__PURE__*/memo(function (_ref) {
40
40
  gap: 4,
41
41
  justify: 'center',
42
42
  onClick: function onClick() {
43
- return setCurrentActive(item.key);
43
+ var _item$onClick;
44
+ setCurrentActive(item.key);
45
+ item === null || item === void 0 ? void 0 : (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item);
44
46
  },
45
47
  children: [/*#__PURE__*/_jsx(Flexbox, {
46
48
  align: 'center',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.80.0",
3
+ "version": "1.81.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",