@gingkoo/pandora-explorer 0.0.1-alpha.64 → 0.0.1-alpha.65
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 +10 -7
- 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.65
|
|
3
3
|
*/
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import cx$1 from 'classnames';
|
|
@@ -5166,28 +5166,28 @@ function Menu(props) {
|
|
|
5166
5166
|
return data;
|
|
5167
5167
|
});
|
|
5168
5168
|
_menu.map(v => {
|
|
5169
|
-
if (!store.isEdit && edit.includes(v
|
|
5169
|
+
if (!store.isEdit && edit.includes(v?.key)) {
|
|
5170
5170
|
arr.push({
|
|
5171
5171
|
...v,
|
|
5172
5172
|
disabled: true
|
|
5173
5173
|
});
|
|
5174
5174
|
return;
|
|
5175
5175
|
}
|
|
5176
|
-
if (!store.isDelect && delect.includes(v
|
|
5176
|
+
if (!store.isDelect && delect.includes(v?.key)) {
|
|
5177
5177
|
arr.push({
|
|
5178
5178
|
...v,
|
|
5179
5179
|
disabled: true
|
|
5180
5180
|
});
|
|
5181
5181
|
return;
|
|
5182
5182
|
}
|
|
5183
|
-
if (!store.isDownload && download.includes(v
|
|
5183
|
+
if (!store.isDownload && download.includes(v?.key)) {
|
|
5184
5184
|
arr.push({
|
|
5185
5185
|
...v,
|
|
5186
5186
|
disabled: true
|
|
5187
5187
|
});
|
|
5188
5188
|
return;
|
|
5189
5189
|
}
|
|
5190
|
-
if (!store.isUpload && upload.includes(v
|
|
5190
|
+
if (!store.isUpload && upload.includes(v?.key)) {
|
|
5191
5191
|
arr.push({
|
|
5192
5192
|
...v,
|
|
5193
5193
|
disabled: true
|
|
@@ -7522,7 +7522,7 @@ styleInject(css_248z);
|
|
|
7522
7522
|
|
|
7523
7523
|
function ExplorerInfo(props) {
|
|
7524
7524
|
const {
|
|
7525
|
-
infoshow,
|
|
7525
|
+
infoshow = false,
|
|
7526
7526
|
getIcons,
|
|
7527
7527
|
curInfo,
|
|
7528
7528
|
dataMap,
|
|
@@ -7864,7 +7864,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7864
7864
|
return () => {
|
|
7865
7865
|
window.removeEventListener('keydown', handleKeyDown);
|
|
7866
7866
|
};
|
|
7867
|
-
}, [curSelect, dataMap]);
|
|
7867
|
+
}, [curSelect, dataMap, isDelect, isEdit]);
|
|
7868
7868
|
const handleKeyDown = e => {
|
|
7869
7869
|
if (e.altKey && e.key === '3') {
|
|
7870
7870
|
setMenutype('column');
|
|
@@ -7876,6 +7876,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7876
7876
|
setMenutype('tile');
|
|
7877
7877
|
}
|
|
7878
7878
|
if ((e.ctrlKey || e.metaKey) && e.key === 'c') {
|
|
7879
|
+
if (!isEdit) return;
|
|
7879
7880
|
if (curSelect && dataMap?.[curSelect]) {
|
|
7880
7881
|
onCopy?.(dataMap?.[curSelect]);
|
|
7881
7882
|
} else {
|
|
@@ -7883,6 +7884,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7883
7884
|
}
|
|
7884
7885
|
}
|
|
7885
7886
|
if ((e.ctrlKey || e.metaKey) && e.key === 'x') {
|
|
7887
|
+
if (!isEdit) return;
|
|
7886
7888
|
if (curSelect && dataMap?.[curSelect]) {
|
|
7887
7889
|
onShear?.(dataMap?.[curSelect]);
|
|
7888
7890
|
} else {
|
|
@@ -7890,6 +7892,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
7890
7892
|
}
|
|
7891
7893
|
}
|
|
7892
7894
|
if ((e.ctrlKey || e.metaKey) && e.key === 'v') {
|
|
7895
|
+
if (!isEdit) return;
|
|
7893
7896
|
curInfo && onPaste?.(curInfo);
|
|
7894
7897
|
curInfo && reloadNode(curInfo.key);
|
|
7895
7898
|
}
|