@kep-platform/basic-component 1.0.14 → 1.0.15
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/Button/Button.d.ts
CHANGED
@@ -6,7 +6,7 @@ export type ButtonProps = {
|
|
6
6
|
children: ReactNode;
|
7
7
|
} & HtmlHTMLAttributes<HTMLButtonElement>;
|
8
8
|
declare const Button: React.ForwardRefExoticComponent<{
|
9
|
-
type?: "default" | "
|
9
|
+
type?: "default" | "primary" | "danger" | undefined;
|
10
10
|
size?: SizeType | undefined;
|
11
11
|
children: ReactNode;
|
12
12
|
} & React.HtmlHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
@@ -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
|
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"> & {
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
4
4
|
}, never>> & string;
|
5
5
|
type MainPropertyProps = {
|
package/dist/Tree/Tree.js
CHANGED
@@ -147,7 +147,9 @@ var Tree = observer(function (_ref) {
|
|
147
147
|
loadedKeys = _useState2[0],
|
148
148
|
setLoadedKeys = _useState2[1];
|
149
149
|
useEffect(function () {
|
150
|
-
if (
|
150
|
+
if (JSON.stringify(loadedKeys) !== JSON.stringify(loadedKeysProps)) {
|
151
|
+
setLoadedKeys(loadedKeysProps);
|
152
|
+
}
|
151
153
|
}, [loadedKeysProps]);
|
152
154
|
|
153
155
|
/* 树组件的结构其实比较简单,就是一个树标题(TableMode下),然后树节点形成的列表 */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kep-platform/basic-component",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.15",
|
4
4
|
"description": "A react library developed with dumi",
|
5
5
|
"license": "MIT",
|
6
6
|
"module": "dist/index.js",
|
@@ -86,5 +86,5 @@
|
|
86
86
|
"authors": [
|
87
87
|
"less-step-jss 1599925910@qq.com"
|
88
88
|
],
|
89
|
-
"gitHead": "
|
89
|
+
"gitHead": "829935f9dddf81c80c3235da084268558e8c4193"
|
90
90
|
}
|