import{n as i,i as o,a9 as c}from"./index-b54f5418.js";import"./three-dc46505d.js";var l=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"effectPassLibrary-container"},[t("div",{staticClass:"box-header"},[t("el-input",{attrs:{size:"mini","prefix-icon":"el-icon-search",placeholder:"插件筛选"}}),t("el-dropdown",{attrs:{trigger:"click"},on:{command:e.addPass}},[t("el-button",{attrs:{size:"mini",icon:"el-icon-circle-plus-outline",type:"primary"}},[e._v(" 添加插件 ")]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.pass,function(n,a){return t("el-dropdown-item",{key:a,attrs:{command:n},domProps:{textContent:e._s(n.label)}})}),1)],1)],1),t("div",{staticClass:"box-container"},[t("el-tree",{attrs:{data:e.passList,"node-key":"vid"},on:{"node-click":e.nodeClick},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.data;return t("span",{staticClass:"custom-tree-node",class:{active:e.currentPass&&a.vid===e.currentPass.vid}},[t("span",{staticClass:"message-box"},[t("span",[e._v(e._s(a.name))])]),t("span",{staticClass:"operate-box",on:{click:function(m){return e.removePass(a)}}},[t("vis-icon",{attrs:{code:"#iconshanchu",color:a.vid===(e.currentPass&&e.currentPass.vid)?null:"#FF4C4C"}})],1)])}}])})],1)])},d=[];const u={components:{},data(){return{pass:[{label:"虚幻光影",value:"",type:o.UNREALBLOOMPASS},{label:"选择光影",value:"",type:o.SELECTIVEBLOOMPASS},{label:"FXAA",value:"",type:o.FXAA},{label:"SMAA",value:"",type:o.SMAAPASS}],chouseValue:""}},computed:{passList(){return Object.values(this.$store.getters["pass/get"])},currentPass(){return this.$store.getters["active/pass"]}},methods:{addPass(e){const s=c(e.type);s.name=`${e.label}-${s.vid.slice(-2)}`,this.$store.commit("pass/add",s)},removePass(e){this.$confirm(`是否删除后期：${e.name}。`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{this.currentPass.vid===e.vid&&this.$store.commit("active/pass",""),this.$store.commit("pass/remove",e.vid)})},nodeClick(e){const s=this.$store.getters["pass/get"][e.vid];this.$store.commit("active/pass",s)}}},r={};var p=i(u,l,d,!1,v,"7999e858",null,null);function v(e){for(let s in r)this[s]=r[s]}const h=function(){return p.exports}();export{h as default};
