@kep-platform/basic-component 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
package/dist/Menu/Menu.js CHANGED
@@ -44,7 +44,9 @@ function Menu(_ref) {
44
44
  return /*#__PURE__*/React.createElement(MenuListItem, {
45
45
  key: item.key,
46
46
  active: activeKey === item.key,
47
- onClick: function onClick() {
47
+ onClick: function onClick(e) {
48
+ e.stopPropagation();
49
+ e.preventDefault();
48
50
  setActiveKey(item.key);
49
51
  onSelect === null || onSelect === void 0 || onSelect(item.key, item);
50
52
  },
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import("../Flex").FlexItemProps | keyof React.HtmlHTMLAttributes<HTMLDivElement>> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
2
+ export declare const MainArea: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HtmlHTMLAttributes<HTMLDivElement> | keyof import("../Flex").FlexItemProps> & import("../Flex").FlexItemProps & React.HtmlHTMLAttributes<HTMLDivElement>, "ref"> & {
3
3
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
4
4
  }, never>> & string;
5
5
  type MainPropertyProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "A react library developed with dumi",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -74,10 +74,10 @@
74
74
  "react-dom": "^18.0.0",
75
75
  "stylelint": "^14.9.1"
76
76
  },
77
- "gitHead": "a650530adba4ec45631c719e48dec7ed1696d3be",
77
+ "gitHead": "1f2ef83b49da934cc5f6cbfd0d452b82622ea3e9",
78
78
  "dependencies": {
79
79
  "@ant-design/icons": "^5.3.7",
80
- "@kep-platform/hooks": "^0.0.23",
80
+ "@kep-platform/hooks": "^0.0.24",
81
81
  "color": "^4.2.3",
82
82
  "rc-pagination": "^4.1.0",
83
83
  "styled-components": "^6.1.11"