/*文件管理器-左侧递归组件*/ export default { template: ` `, props: ['nodes'], methods:{ zkAction:async function (node){ var that = this; if(!node.starZk && !node.children){ var data = await webos.fileSystem.getFileListByParentPath(node.path); var list = data.contentFiles.filter(function (item){ return item.type == "2"; }); list.forEach(function (item){ item.name = item.filterName; if(!item.thumbnail){ item.thumbnail = "modules/win11/imgs/folder-sm.png"; }; item.icon = item.thumbnail; item.starZk = false; }); node.children = list; } node.starZk = !node.starZk; }, pathClick:function (path){ this.$emit('path-click',path) } }, created: function () { } }