drill.define(async t=>{let[e,a]=await t("util/u-menu -pack","util/u-prompt -pack");$.register({tag:"source-tag",data:{tagid:"",name:""},props:["name","tagid"],proto:{set _count(t){this.$countEle.text=t},get _count(){return parseInt(this.$countEle.text)}},temp:'\n            <div class="dirblock_text">{{name}}</div>\n            <div class="dirblock_count" xv-tar="countEle">0</div>\n            <div xv-content style="display:none;"></div>\n        ',watch:{tagid(t,e){this.data.tagid=e}},inited(){this.class.add("dirblock")}}),$.register({tag:"source-block",temp:'\n        <div class="pic_name">{{name}}</div> \n        <div xv-content style="display:none;"></div>\n        ',data:{name:"",tagid:[],path:""},watch:{tagid(t,e){this.data.selftagid=e.join(" ")},path(t,e){this.style["background-image"]=e?`url(${e})`:""}},inited(){this.class.add("pic_block"),this.on("contextmenu",t=>{t.preventDefault();let i=this.parents(".source_con")[0];i&&i.class.contains("selected_img_mode")||e({title:"图片 "+this.name,options:[{name:"重命名",click:async()=>{let t=await a({value:this.name,title:`将分类 ${this.name} 修改为？`});t&&(this.name=t)}},{name:"删除",click:()=>{this.remove()}}],event:t})})}})});