@kep-platform/basic-component 0.0.23 → 0.0.24
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/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
|
|
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.
|
|
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": "
|
|
77
|
+
"gitHead": "1f2ef83b49da934cc5f6cbfd0d452b82622ea3e9",
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@ant-design/icons": "^5.3.7",
|
|
80
|
-
"@kep-platform/hooks": "^0.0.
|
|
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"
|