@gingkoo/pandora-explorer 0.1.11-alpha.2 → 0.1.11-alpha.3
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 +3 -3
- package/lib/es/index.js.map +1 -1
- package/package.json +1 -1
package/lib/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @gingkoo/pandora-explorer v0.1.11-alpha.
|
|
2
|
+
* @gingkoo/pandora-explorer v0.1.11-alpha.3
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -9694,7 +9694,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9694
9694
|
//默认选中 处理默认选中效果 这里指处理 data
|
|
9695
9695
|
useEffect(() => {
|
|
9696
9696
|
if (isNavtab) {
|
|
9697
|
-
if (!curlist?.length) {
|
|
9697
|
+
if (!curInfo && !curlist?.length) {
|
|
9698
9698
|
setCurList(data?.[0]?.children || []);
|
|
9699
9699
|
}
|
|
9700
9700
|
} else {
|
|
@@ -9704,7 +9704,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
9704
9704
|
}
|
|
9705
9705
|
}
|
|
9706
9706
|
//关闭导航时
|
|
9707
|
-
}, [data, isNavtab]);
|
|
9707
|
+
}, [data, isNavtab, curInfo]);
|
|
9708
9708
|
//切换当前 文件目录时 需要清空的内容
|
|
9709
9709
|
useEffect(() => {
|
|
9710
9710
|
if (!curInfo?.key || curInfo?.key == 'root') return;
|