refac/enh: folder optimization
This commit is contained in:
1 parent
54beeeaf72
commit
c80bb31968
9 files changed
+153
-32
No files matched your search
@@ -18,15 +18,27 @@
|
||||
sensitivity: 'base'
|
||||
})
|
||||
);
|
||||
|
||||
let folderRegistry = {};
|
||||
|
||||
const onItemMove = (e) => {
|
||||
console.log(`onItemMove`, e, folderRegistry);
|
||||
|
||||
if (e.originFolderId) {
|
||||
folderRegistry[e.originFolderId]?.setFolderItems();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
{#each folderList as folderId (folderId)}
|
||||
<RecursiveFolder
|
||||
className=""
|
||||
bind:folderRegistry
|
||||
{folders}
|
||||
{folderId}
|
||||
{shiftKey}
|
||||
{onDelete}
|
||||
{onItemMove}
|
||||
on:import={(e) => {
|
||||
dispatch('import', e.detail);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user