@kep-platform/basic-component 1.0.20 → 1.0.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.
@@ -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 React.HtmlHTMLAttributes<HTMLDivElement> | keyof import("../Flex").FlexItemProps> & 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 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 = {
@@ -192,15 +192,15 @@ export var TreeNodeController = observer(function (_ref) {
192
192
  } else {
193
193
  //如果有loadData则触发。
194
194
  if (loadData && !loaded) {
195
+ onExpand(expandedKeys.concat([node[fieldNames.key]]), {
196
+ nativeEvent: e,
197
+ node: node,
198
+ expanded: !expanded
199
+ });
195
200
  setLoading(true);
196
201
  loadData(node).then(function () {
197
202
  setLoading(false);
198
203
  setLoadedKeys(loadedKeys.concat([node[fieldNames.key]]));
199
- onExpand(expandedKeys.concat([node[fieldNames.key]]), {
200
- nativeEvent: e,
201
- node: node,
202
- expanded: !expanded
203
- });
204
204
  }, function () {
205
205
  setLoading(false);
206
206
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kep-platform/basic-component",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
@@ -87,5 +87,5 @@
87
87
  "authors": [
88
88
  "less-step-jss 1599925910@qq.com"
89
89
  ],
90
- "gitHead": "111251d1ba815452a258dd87095534e1a783cf7f"
90
+ "gitHead": "8e45b692a1b25bfb1750114aefe5727edca77b09"
91
91
  }