@gingkoo/pandora-explorer 0.0.1-alpha.41 → 0.0.1-alpha.42

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/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-explorer v0.0.1-alpha.41
2
+ * @gingkoo/pandora-explorer v0.0.1-alpha.42
3
3
  */
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import cx$1 from 'classnames';
@@ -5679,7 +5679,6 @@ var Tree = (props => {
5679
5679
  };
5680
5680
  //树的懒加载
5681
5681
  const onLoadData = treeNode => {
5682
- console.log(treeNode, '加载');
5683
5682
  onChange ? null : seTmotionShow(false);
5684
5683
  if (!treeNode.api) {
5685
5684
  if (!treeNode?.children) {
@@ -5974,7 +5973,6 @@ const ExplorerMenu = props => {
5974
5973
  const store = useContext(ExampleContext);
5975
5974
  const [eventKey, setEventKey] = useState([]);
5976
5975
  const [select, setSelect] = useState('');
5977
- console.log('even:t', eventKey, 'load:', store.nav_loadKey);
5978
5976
  useEffect(() => {
5979
5977
  setEventKey(expandedKeys);
5980
5978
  }, [expandedKeys]);
@@ -7630,6 +7628,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7630
7628
  updateData: () => {
7631
7629
  if (curInfo?.key) {
7632
7630
  loadData(curInfo.key, curInfo);
7631
+ reloadNode(curInfo.key);
7633
7632
  }
7634
7633
  }
7635
7634
  }));
@@ -7750,7 +7749,6 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7750
7749
  if (info.create_file) {
7751
7750
  if (curInfo) {
7752
7751
  await createFile?.(value, curInfo);
7753
- // curInfo?.key && loadData(curInfo?.key);
7754
7752
  reloadNode(curInfo?.key);
7755
7753
  }
7756
7754
  } else {
@@ -7876,7 +7874,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7876
7874
  let arr = addData(data || [], key);
7877
7875
  onChange?.(arr);
7878
7876
  };
7879
- return jsxs(ExampleContext.Provider, {
7877
+ return jsx(ExampleContext.Provider, {
7880
7878
  value: {
7881
7879
  //data
7882
7880
  dataMap,
@@ -7920,12 +7918,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7920
7918
  setLoadKey,
7921
7919
  setNavLoadKey
7922
7920
  },
7923
- children: [jsxs("button", {
7924
- onClick: () => {
7925
- reloadNode('a12');
7926
- },
7927
- children: ["\u5237\u65B0\u7ED3\u70B9", ' ']
7928
- }), jsx("div", {
7921
+ children: jsx("div", {
7929
7922
  className: 'explorer-container',
7930
7923
  children: jsx(Layout, {
7931
7924
  ...props,
@@ -7933,7 +7926,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7933
7926
  loadNode: loadNode,
7934
7927
  onRename: onRename
7935
7928
  })
7936
- })]
7929
+ })
7937
7930
  });
7938
7931
  });
7939
7932