import"./index-M_JNBppB.js";/* empty css                  *//* empty css                   *//* empty css                  *//* empty css                   */import{d as p,e as u,a as V,b as d,n as v,y as L,f as E,I as c}from"./element-3_pOinej.js";import{az as k,aA as U,y as m,z as i,F as n,D as r,O as t,u as l,B as f,M as g,a7 as y,K as h}from"./vue-BJk78QHK.js";import"./threejs-BafxXW5-.js";import"./utils-YI6ye1sf.js";import"./vxe-Dx3zSILm.js";const S={style:{display:"flex","flex-direction":"column","background-color":"#232630",padding:"16px",gap:"16px"}},z={class:"w-[100%] flex justify-center p-[5px] m-t-[5px] rounded-[6px] cursor-pointer list-img-bg"},q={__name:"AnimationEvent",props:k({animationList:{type:Array,default:()=>[]}},{animation:{type:Object,required:!0,default:()=>({near:{loop:"LoopRepeat",timeScale:1,weight:1,paly:[],stop:[]},leave:{loop:"LoopRepeat",timeScale:1,weight:1,paly:[],stop:[]}})},animationModifiers:{}}),emits:["update:animation"],setup(s){const o=U(s,"animation");return(B,a)=>{const b=L,w=E,x=c;return i(),m(x,{style:{"margin-left":"10px"},placement:"left",width:"320",trigger:"click"},{reference:n(()=>[r("div",z,[t(w,{type:"primary",link:"",icon:"Edit"},{default:n(()=>a[12]||(a[12]=[h(" 播放/停止动画配置 ")])),_:1})])]),default:n(()=>[r("div",S,[r("div",null,[a[10]||(a[10]=r("p",{style:{color:"#1e90ff",margin:"0"}}," 靠近时播放/停止动画： ",-1)),t(l(p),{modelValue:o.value.near.paly,"onUpdate:modelValue":a[0]||(a[0]=e=>o.value.near.paly=e),style:{"margin-top":"8px",width:"100%"},placeholder:"选择播放的动画",multiple:"","collapse-tags":"",teleported:!1},{default:n(()=>[(i(!0),f(g,null,y(s.animationList,e=>(i(),m(l(u),{key:e.name,value:e.name,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),t(l(p),{modelValue:o.value.near.stop,"onUpdate:modelValue":a[1]||(a[1]=e=>o.value.near.stop=e),style:{"margin-top":"8px",width:"100%"},placeholder:"选择停止的动画",multiple:"","collapse-tags":"",teleported:!1},{default:n(()=>[(i(!0),f(g,null,y(s.animationList,e=>(i(),m(l(u),{key:e.name,value:e.name,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),t(l(V),{class:"more-form","label-position":"left","label-width":"80px",style:{"margin-top":"12px"}},{default:n(()=>[t(l(d),{label:"循环方式:"},{default:n(()=>[t(l(p),{modelValue:o.value.near.loop,"onUpdate:modelValue":a[2]||(a[2]=e=>o.value.near.loop=e),style:{width:"100%"},placeholder:"请选择",teleported:!1},{default:n(()=>[t(l(u),{label:"执行一次",value:"LoopOnce"}),t(l(u),{label:"循环执行",value:"LoopRepeat"}),t(l(u),{label:"来回循环",value:"LoopPingPong"})]),_:1},8,["modelValue"])]),_:1}),t(l(d),{label:"播放速度:"},{default:n(()=>[t(l(v),{size:"small",modelValue:o.value.near.timeScale,"onUpdate:modelValue":a[3]||(a[3]=e=>o.value.near.timeScale=e),min:0,step:.1,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(l(d),{label:"动作幅度:"},{default:n(()=>[t(l(v),{size:"small",modelValue:o.value.near.weight,"onUpdate:modelValue":a[4]||(a[4]=e=>o.value.near.weight=e),min:0,step:.1,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),t(b),r("div",null,[a[11]||(a[11]=r("p",{style:{color:"#ff6b6b",margin:"0"}}," 离开时播放/停止动画： ",-1)),t(l(p),{modelValue:o.value.leave.paly,"onUpdate:modelValue":a[5]||(a[5]=e=>o.value.leave.paly=e),style:{"margin-top":"8px",width:"100%"},placeholder:"选择播放的动画",multiple:"","collapse-tags":"",teleported:!1},{default:n(()=>[(i(!0),f(g,null,y(s.animationList,e=>(i(),m(l(u),{key:e.name,value:e.name,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),t(l(p),{modelValue:o.value.leave.stop,"onUpdate:modelValue":a[6]||(a[6]=e=>o.value.leave.stop=e),style:{"margin-top":"8px",width:"100%"},placeholder:"选择停止的动画",multiple:"","collapse-tags":"",teleported:!1},{default:n(()=>[(i(!0),f(g,null,y(s.animationList,e=>(i(),m(l(u),{key:e.name,value:e.name,label:e.name},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),t(l(V),{class:"more-form","label-position":"left","label-width":"80px",style:{"margin-top":"12px"}},{default:n(()=>[t(l(d),{label:"循环方式:"},{default:n(()=>[t(l(p),{modelValue:o.value.leave.loop,"onUpdate:modelValue":a[7]||(a[7]=e=>o.value.leave.loop=e),style:{width:"100%"},placeholder:"请选择",teleported:!1},{default:n(()=>[t(l(u),{label:"执行一次",value:"LoopOnce"}),t(l(u),{label:"循环执行",value:"LoopRepeat"}),t(l(u),{label:"来回循环",value:"LoopPingPong"})]),_:1},8,["modelValue"])]),_:1}),t(l(d),{label:"播放速度:"},{default:n(()=>[t(l(v),{size:"small",modelValue:o.value.leave.timeScale,"onUpdate:modelValue":a[8]||(a[8]=e=>o.value.leave.timeScale=e),min:0,step:.1,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),t(l(d),{label:"动作幅度:"},{default:n(()=>[t(l(v),{size:"small",modelValue:o.value.leave.weight,"onUpdate:modelValue":a[9]||(a[9]=e=>o.value.leave.weight=e),min:0,step:.1,"controls-position":"right",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})])])]),_:1})}}};export{q as default};
