import{_ as c}from"./index-cf27e902.js";import{n as r,i as l,a9 as d}from"./index-b54f5418.js";import"./three-dc46505d.js";var u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.config,expression:"config"}],staticClass:"modifierModule-container"},[i("div",{staticClass:"eventSetting-title"},[i("vis-icon",{attrs:{code:"#iconjihetuxing"}}),i("de-controller-input",{attrs:{label:"名称"},model:{value:e.config.name,callback:function(o){e.$set(e.config,"name",o)},expression:"config.name"}})],1),i("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"click"},model:{value:e.visible,callback:function(o){e.visible=o},expression:"visible"}},[i("el-cascader-panel",{attrs:{options:e.modifierOptions},on:{change:e.change},model:{value:e.cascaderValue,callback:function(o){e.cascaderValue=o},expression:"cascaderValue"}}),i("el-button",{attrs:{slot:"reference",type:"primary",size:"mini"},slot:"reference"},[e._v(" 添加修改器 ")])],1),e._l(e.modifierList,function(o){return i("div",{key:o.vid,staticClass:"modifier-item"},[i(o.type,{tag:"components",attrs:{config:o}}),i("div",{staticClass:"operation-box"},[i("vis-icon",{attrs:{code:"#iconsanjiaojiantoushang"}}),i("vis-icon",{attrs:{code:"#iconsanjiaojiantouxia"}}),i("vis-icon",{attrs:{code:"#iconshanchu"}})],1)],1)})],2)},f=[];const s=Object.assign({"./modifierModule/BooleanModifier.vue":()=>c(()=>import("./BooleanModifier-319c688f.js"),["assets/BooleanModifier-319c688f.js","assets/index-b54f5418.js","assets/three-dc46505d.js","assets/index-f59973e2.css"])}),a={};Object.keys(s).forEach(e=>{a[e.split("/").pop().replace(/.\/|\.vue$/g,"")]=s[e]});const v={components:a,data(){return{visible:!1,cascaderValue:[],modifierOptions:[{label:"布尔修改器",value:l.BOOLEANMODIFIER}]}},computed:{config(){return this.$store.getters["active/object"]},modifierList(){return Object.values(this.$store.getters["modifier/get"]).filter(e=>e.source===this.config.vid)}},methods:{change(e){if(!e[0])return;const t=d(e[0],{source:this.config.vid});t.name=`${this.modifierOptions.find(i=>i.value===e[0]).label}-${t.vid.slice(-2)}`,console.log(t),this.$store.commit("modifier/add",t),this.cascaderValue=[],this.visible=!1}}},n={};var m=r(v,u,f,!1,_,"bc9a1f0c",null,null);function _(e){for(let t in n)this[t]=n[t]}const b=function(){return m.exports}();export{b as default};
