import{n as a}from"./index-b54f5418.js";import"./three-dc46505d.js";var c=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"containerOperation-container"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading-mask"},[t("vis-icon",{staticClass:"ani",attrs:{code:"#iconxuanzhuan"}}),t("span",[e._v("正在加载...")])],1),!e.loading&&!e.floderChildren.length?t("div",{staticClass:"empty-tips"},[t("span",[e._v("这里暂时是空的哦")])]):e._l(e.floderChildren,function(i,o){return t("div",{directives:[{name:"tooltip",rawName:"v-tooltip.bottom",value:`${i.name}`,expression:"`${item.name}`",modifiers:{bottom:!0}}],key:o,staticClass:"file-item-box",on:{click:function(s){return e.chouseFile(i)}}},[i.dir?[t("vis-icon",{attrs:{size:e.iconSize,code:"#iconwenjianjia"}})]:[t("img",{attrs:{src:i.preview}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.selected.find(function(s){return s.id===i.id}),expression:"selected.find((elem) => elem.id === item.id)"}],staticClass:"item-selected-mask",on:{click:function(s){return s.stopPropagation(),e.cancelSelected(i)}}},[t("vis-icon",{staticClass:"item-selected",attrs:{size:"60px",code:"#icongou"}})],1)],t("span",{staticClass:"item-title",domProps:{textContent:e._s(i.name)}}),t("vis-icon",{directives:[{name:"tooltip",rawName:"v-tooltip.bottom",value:"删除",expression:"`删除`",modifiers:{bottom:!0}}],staticClass:"item-delete",attrs:{size:"16px",code:"#iconshanchu"},nativeOn:{click:function(s){return s.stopPropagation(),e.remove(i)}}})],2)}),t("div",{staticClass:"file-item-placeholder",style:{display:e.floderChildren.length%2!==0?"block":"none",flex:1}})],2)},l=[];const d={data(){return{iconSize:"35px",timer:"",fileIcon:{mtl:"#iconmtl"},selected:[]}},computed:{loading(){return this.$store.getters["canvasLibrary/loading"]},currentFloder(){return this.$store.getters["canvasLibrary/currentFloder"]},floderChildren(){return this.currentFloder.children},currentScene(){return this.$store.getters["scene/currentScene"]}},methods:{chouseFile(e){e.dir?this.$store.commit("canvasLibrary/currentFloder",e):this.selected.push(e)},cancelSelected(e){this.selected.some((n,t,i)=>{if(e.id===n.id)return this.selected.splice(t,1),!0})},remove(e){return this.$tool.devTips()}}},r={};var u=a(d,c,l,!1,v,"460771e5",null,null);function v(e){for(let n in r)this[n]=r[n]}const h=function(){return u.exports}();export{h as default};
