import"./index-M_JNBppB.js";import"./el-collapse-item-l0sNRNKZ.js";/* empty css                     *//* empty css                 *//* empty css                        *//* empty css                  */import{ax as b,c as v,y as m,z as s,F as t,O as a,I as d}from"./vue-BJk78QHK.js";import{a as f,b as c,r as _,n as z,u as U}from"./element-3_pOinej.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";const S={__name:"ControlsAttr",setup(x){const p=b(),l=v(()=>p.state.curComponent.propValue);return(y,e)=>{const u=_,n=c,r=z,i=f,V=U;return s(),m(V,{title:"控制器",name:"controls"},{default:t(()=>[a(i,{class:"more-form","label-position":"left","label-width":"110px"},{default:t(()=>[a(n,{label:"允许控制:"},{default:t(()=>[a(u,{size:"small",modelValue:l.value.controls.enabled,"onUpdate:modelValue":e[0]||(e[0]=o=>l.value.controls.enabled=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"启用阻尼:"},{default:t(()=>[a(u,{size:"small",modelValue:l.value.controls.enableDamping,"onUpdate:modelValue":e[1]||(e[1]=o=>l.value.controls.enableDamping=o)},null,8,["modelValue"])]),_:1}),l.value.controls.enableDamping?(s(),m(n,{key:0,label:"阻尼系数:"},{default:t(()=>[a(r,{size:"small",modelValue:l.value.controls.dampingFactor,"onUpdate:modelValue":e[2]||(e[2]=o=>l.value.controls.dampingFactor=o),min:0,step:.1},null,8,["modelValue"])]),_:1})):d("",!0),a(n,{label:"允许缩放:"},{default:t(()=>[a(u,{size:"small",modelValue:l.value.controls.enableZoom,"onUpdate:modelValue":e[3]||(e[3]=o=>l.value.controls.enableZoom=o)},null,8,["modelValue"])]),_:1}),l.value.controls.enableZoom?(s(),m(n,{key:1,label:"缩放最远距离:"},{default:t(()=>[a(r,{size:"small",modelValue:l.value.controls.maxDistance,"onUpdate:modelValue":e[4]||(e[4]=o=>l.value.controls.maxDistance=o),min:0,step:.1},null,8,["modelValue"])]),_:1})):d("",!0),l.value.controls.enableZoom?(s(),m(n,{key:2,label:"缩放最近距离:"},{default:t(()=>[a(r,{size:"small",modelValue:l.value.controls.minDistance,"onUpdate:modelValue":e[5]||(e[5]=o=>l.value.controls.minDistance=o),min:0,step:.1},null,8,["modelValue"])]),_:1})):d("",!0),l.value.controls.enableZoom?(s(),m(n,{key:3,label:"最大俯仰角(°):"},{default:t(()=>[a(r,{size:"small",modelValue:l.value.controls.maxPolarAngle,"onUpdate:modelValue":e[6]||(e[6]=o=>l.value.controls.maxPolarAngle=o),min:0,max:180,step:.1},null,8,["modelValue"])]),_:1})):d("",!0),a(n,{label:"自动旋转:"},{default:t(()=>[a(u,{size:"small",modelValue:l.value.controls.autoRotate,"onUpdate:modelValue":e[7]||(e[7]=o=>l.value.controls.autoRotate=o)},null,8,["modelValue"])]),_:1}),l.value.controls.autoRotate?(s(),m(n,{key:4,label:"旋转速度:"},{default:t(()=>[a(r,{size:"small",modelValue:l.value.controls.autoRotateSpeed,"onUpdate:modelValue":e[8]||(e[8]=o=>l.value.controls.autoRotateSpeed=o),min:0,step:.1},null,8,["modelValue"])]),_:1})):d("",!0),a(n,{label:"右键拖拽:"},{default:t(()=>[a(u,{size:"small",modelValue:l.value.controls.enablePan,"onUpdate:modelValue":e[9]||(e[9]=o=>l.value.controls.enablePan=o)},null,8,["modelValue"])]),_:1}),a(n,{label:"键盘控制:"},{default:t(()=>[a(u,{size:"small",modelValue:l.value.controls.enableKeys,"onUpdate:modelValue":e[10]||(e[10]=o=>l.value.controls.enableKeys=o)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})}}};export{S as default};
