@gingkoo/pandora-explorer 0.0.1-alpha.103 → 0.0.1-alpha.104

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.103
2
+ * @gingkoo/pandora-explorer v0.0.1-alpha.104
3
3
  */
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import cx$1 from 'classnames';
@@ -6161,7 +6161,6 @@ var Tree = /*#__PURE__*/forwardRef((props, _ref) => {
6161
6161
  checkStrictly: true,
6162
6162
  expandedKeys: expandedKeys,
6163
6163
  loadedKeys: loadedKeys,
6164
- // activeKey={activeKey}
6165
6164
  checkable: type == 'table' ? true : false,
6166
6165
  selectedKeys: selectedKeys ? selectedKeys : undefined,
6167
6166
  autoExpandParent: autoExpandParent,
@@ -9412,7 +9411,14 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9412
9411
  if (Array.isArray(filelist)) {
9413
9412
  setCurList(filelist);
9414
9413
  }
9415
- }, [filelist]);
9414
+ setTimeout(() => {
9415
+ if (filelist?.length && _expandkey) {
9416
+ setExpandkey(_expandkey);
9417
+ } else {
9418
+ setExpandkey([]);
9419
+ }
9420
+ }, 0);
9421
+ }, [filelist, _expandkey]);
9416
9422
  /* ************ 挂载监听 **************** */
9417
9423
  useEffect(() => {
9418
9424
  window.addEventListener('click', closeMenu);
@@ -9521,11 +9527,6 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
9521
9527
  setCurSelect(null);
9522
9528
  props?.onCheck?.([]);
9523
9529
  }, [curInfo?.key]);
9524
- useEffect(() => {
9525
- if (_expandkey) {
9526
- setExpandkey(_expandkey);
9527
- }
9528
- }, [_expandkey]);
9529
9530
  useEffect(() => {
9530
9531
  if (isNavtab) return;
9531
9532
  if (!curlist?.length) {