1 |
- import{M as c}from"./index-AOcxwHT9.js";import{ae as g,ag as r,a$ as V,Y as x,ah as _,ai as o,aj as h,ak as w,al as y,am as n,an as u,au as m,ap as p,aC as T}from"./index-D68iA7pN.js";import{o as k,i,c as D,s as f}from"./hooks-B2wby68t.js";const M={class:"px-3"},R={class:"px-2"},U={class:""},B={class:""},F=g({__name:"index",setup(E){const a=r(""),s=r(0);V(i,e=>{e||(a.value="",s.value=0)});const d=[{name:"确定",fun:()=>{D({text:a.value,angle:THREE.MathUtils.degToRad(s.value)}),a.value=""},primary:!0},{name:"关闭",fun:()=>f(!1)}];k((e={})=>{typeof e.text=="string"&&(a.value=e.text),typeof e.angle=="number"&&(s.value=x(THREE.MathUtils.radToDeg(e.angle),2))});const v={esc:()=>f(!1),enter:d[0].fun};return(e,t)=>(y(),_(c,{title:e.t("709"),"max-width":"360",modelValue:h(i),"onUpdate:modelValue":t[2]||(t[2]=l=>w(i)?i.value=l:null),footerBtnList:d,persistent:"",keys:v},{default:o(()=>[n("div",M,[u(T,{title:e.t("710")},{default:o(()=>[n("div",R,[u(m,{class:"mt-1",modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=l=>a.value=l),autofocus:""},{prepend:o(()=>[n("span",U,p(e.t("663"))+":",1)]),_:1},8,["modelValue"]),u(m,{class:"mt-1 w-50",modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=l=>s.value=l),type:"number"},{prepend:o(()=>[n("span",B,p(e.t("545"))+":",1)]),_:1},8,["modelValue"])])]),_:1},8,["title"])])]),_:1},8,["title","modelValue"]))}});export{F as default};
|