@lvce-editor/explorer-view 2.9.0 → 2.10.0
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.
|
@@ -2979,6 +2979,12 @@ const getDropHandler = index => {
|
|
|
2979
2979
|
}
|
|
2980
2980
|
};
|
|
2981
2981
|
|
|
2982
|
+
const getFileArray = fileList => {
|
|
2983
|
+
// @ts-ignore
|
|
2984
|
+
const files = [...fileList];
|
|
2985
|
+
return files;
|
|
2986
|
+
};
|
|
2987
|
+
|
|
2982
2988
|
const getFileHandles = async fileIds => {
|
|
2983
2989
|
const files = await invoke('FileSystemHandle.getFileHandles', fileIds);
|
|
2984
2990
|
return files;
|
|
@@ -3002,8 +3008,7 @@ const getFilePaths = async (files, platform) => {
|
|
|
3002
3008
|
|
|
3003
3009
|
const handleDrop = async (state, x, y, fileIds, fileList) => {
|
|
3004
3010
|
try {
|
|
3005
|
-
|
|
3006
|
-
const files = [...fileList];
|
|
3011
|
+
const files = getFileArray(fileList);
|
|
3007
3012
|
const fileHandles = await getFileHandles(fileIds);
|
|
3008
3013
|
const paths = await getFilePaths(files, state.platform);
|
|
3009
3014
|
const index = getIndexFromPosition(state, x, y);
|