@gingkoo/pandora-explorer 0.0.1-alpha.57 → 0.0.1-alpha.58
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 +19 -15
- 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.0.1-alpha.
|
|
2
|
+
* @gingkoo/pandora-explorer v0.0.1-alpha.58
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -4663,11 +4663,13 @@ registerMenu('folder', [{
|
|
|
4663
4663
|
}, {
|
|
4664
4664
|
key: 'copy',
|
|
4665
4665
|
icon: 'copy',
|
|
4666
|
-
title: '复制'
|
|
4666
|
+
title: '复制',
|
|
4667
|
+
desc: 'ctrl + c'
|
|
4667
4668
|
}, {
|
|
4668
4669
|
key: 'shear',
|
|
4669
4670
|
icon: 'shear',
|
|
4670
|
-
title: '剪切'
|
|
4671
|
+
title: '剪切',
|
|
4672
|
+
desc: 'ctrl + x'
|
|
4671
4673
|
}, {
|
|
4672
4674
|
key: 'rename',
|
|
4673
4675
|
icon: 'rename',
|
|
@@ -4693,7 +4695,8 @@ registerMenu('cur-folder', [{
|
|
|
4693
4695
|
}, {
|
|
4694
4696
|
key: 'copy',
|
|
4695
4697
|
icon: 'copy',
|
|
4696
|
-
title: '复制'
|
|
4698
|
+
title: '复制',
|
|
4699
|
+
desc: 'ctrl + c'
|
|
4697
4700
|
}, {
|
|
4698
4701
|
key: 'file-upload',
|
|
4699
4702
|
icon: 'upload',
|
|
@@ -7675,22 +7678,18 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7675
7678
|
//清空日志
|
|
7676
7679
|
setLog([]);
|
|
7677
7680
|
},
|
|
7678
|
-
|
|
7681
|
+
updateNav: key => {
|
|
7679
7682
|
if (key) {
|
|
7680
|
-
|
|
7683
|
+
reloadNode(key);
|
|
7681
7684
|
} else {
|
|
7682
|
-
|
|
7683
|
-
reloadNode(curInfo.key);
|
|
7684
|
-
}
|
|
7685
|
+
curInfo?.key && reloadNode(curInfo.key);
|
|
7685
7686
|
}
|
|
7686
7687
|
},
|
|
7687
7688
|
updateData: key => {
|
|
7688
7689
|
if (key) {
|
|
7689
|
-
|
|
7690
|
+
loadData(key);
|
|
7690
7691
|
} else {
|
|
7691
|
-
|
|
7692
|
-
reloadNode(curInfo.key);
|
|
7693
|
-
}
|
|
7692
|
+
curInfo?.key && loadData(curInfo.key);
|
|
7694
7693
|
}
|
|
7695
7694
|
}
|
|
7696
7695
|
}));
|
|
@@ -7735,6 +7734,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7735
7734
|
}
|
|
7736
7735
|
if ((e.ctrlKey || e.metaKey) && e.key === 'v') {
|
|
7737
7736
|
curInfo && onPaste?.(curInfo);
|
|
7737
|
+
curInfo && reloadNode(curInfo.key);
|
|
7738
7738
|
}
|
|
7739
7739
|
};
|
|
7740
7740
|
const closeMenu = () => {
|
|
@@ -7907,9 +7907,13 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7907
7907
|
}
|
|
7908
7908
|
} else {
|
|
7909
7909
|
let data = await _onRename?.(key, value, info);
|
|
7910
|
-
if (
|
|
7910
|
+
if (info.type == 'folder' || type == 'menu') {
|
|
7911
7911
|
if (data?.key) {
|
|
7912
|
-
|
|
7912
|
+
if (key === curInfo?.key) {
|
|
7913
|
+
loadData(data.key);
|
|
7914
|
+
} else {
|
|
7915
|
+
curInfo?.key && loadData(curInfo?.key);
|
|
7916
|
+
}
|
|
7913
7917
|
updata(key, {
|
|
7914
7918
|
key: data.key,
|
|
7915
7919
|
title: value
|