import{n as o,V as r}from"./index-b54f5418.js";import"./three-dc46505d.js";var n=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"obejct3D-container"},[t("de-collapse-layout",{attrs:{label:"网格设置",icon:"#iconshezhi","arrow-position":"left"},scopedSlots:e._u([{key:"container",fn:function(){return[t("de-controller-select",{attrs:{label:"几何",options:e.geometryList,prop:{label:"name",value:"vid"},animation:{target:e.config,attribute:"geometry"}},model:{value:e.config.geometry,callback:function(a){e.$set(e.config,"geometry",a)},expression:"config.geometry"}}),t("de-controller-select",{attrs:{label:"材质",options:e.materialList,prop:{label:"name",value:"vid"},multiple:e.multipleMaterial,animation:{target:e.config,attribute:"material"}},model:{value:e.config.material,callback:function(a){e.$set(e.config,"material",a)},expression:"config.material"}}),t("de-controller-switch",{attrs:{keyframe:!1,label:"多材质"},model:{value:e.multipleMaterial,callback:function(a){e.multipleMaterial=a},expression:"multipleMaterial"}})]},proxy:!0}])})],1)},s=[];const c={props:{config:{type:Object,required:!0}},computed:{multipleMaterial:{get(){return Array.isArray(this.config.material)},set(e){e?r.set(this.config,"material",r.observable([this.config.material])):this.config.material=this.config.material[0]||""}},materialList(){return[{name:"无",vid:""}].concat(this.$store.getters["material/list"])},geometryList(){return this.$store.getters["geometry/list"]}}},l={};var m=o(c,n,s,!1,u,null,null,null);function u(e){for(let i in l)this[i]=l[i]}const g=function(){return m.exports}();export{g as default};
