1 |
- import{N as A,ag as G,z,d as M,k as Y,y as E,Y as J,J as W,ae as X,af as $,ah as q,ai as l,aj as r,ak as k,al as H,am as s,an as e,ao as o,ax as K,ay as B,az as i,at as u,ap as n,aA as L,aB as N,as as _,au as p,aC as S,aD as w,aE as F,aF as Q,aG as Z,aw as ee}from"./index-D68iA7pN.js";import{M as le}from"./index-AOcxwHT9.js";import{r as te}from"./index-DygTP69T.js";const T=""+new URL("jingao-DVjn0eNy.png",import.meta.url).href,se=c=>{const b=A(!0,"Mx_ArrayDialog_is_array_rect"),h=A(5,"Mx_ArrayDialog_row"),y=A(5,"Mx_ArrayDialog_col"),C=A(200,"Mx_ArrayDialog_row_offset"),x=A(200,"Mx_ArrayDialog_col_offset"),g=A(0,"Mx_ArrayDialog_angle");let f=[];const V=G(0),R=async()=>(c(!1),f=await z.userSelect(M("524")),V.value=f.length,c(!0),f),U=async v=>{c(!1);const m=new Y;m.clearLastInputPoint(),v&&m.setMessage(v);const j=await m.go();if(!j)return c(!0);m.setUserDraw((t,a)=>{a.drawLine(t.toVector3(),j?.toVector3())});const D=await m.go();return D?(c(!0),j.distanceTo(D)):c(!0)},O=async()=>{c(!1);const v=new E;v.clearLastInputPoint(),v.setMessage(M("525"));const m=await v.go();typeof m=="number"&&(g.value=J(m,3)),c(!0)},I=W();return{isArrayRect:b,row:h,col:y,rowOffset:C,colOffset:x,angle:g,selectCount:V,selectObject:R,getLength:U,getAngle:O,onConfirmClick:()=>{if(b.value){if(V.value<=0)return I.error(M("526")+"!");te({iColNum:y.value,iRowNum:h.value,dAng:g.value,aryId:f,dColOffset:x.value,dRowOffset:C.value})}c(!1)}}},ae={class:"px-3"},oe={class:"d-flex justify-center align-center"},ne={class:"d-flex justify-center align-center"},ue={class:"px-2"},de={class:"w-100"},ie={class:"w-100 mt-3"},re={class:"w-50"},ce={class:"w-25"},fe={class:"w-25 ml-1"},me={class:"d-flex flex-column justify-center align-center h-100"},_e={class:"w-100"},pe={class:"w-50"},ge={class:"w-25"},ye={class:"d-flex flex-column algin-center justify-center ml-4"},ve={class:"mr-12"},we={class:"px-3"},Ve={class:"d-flex flex-column algin-center justify-center ml-4"},ke={class:"h-100 pl-2"},be={class:"d-flex algin-center ml-2 mb-1",style:{"line-height":"1.5rem"}},Ce={class:"mt-2"},xe=X({__name:"index",setup(c){const{isShow:b,showDialog:h}=$(!1,"Mx_ArrayDialog"),{isArrayRect:y,row:C,col:x,rowOffset:g,colOffset:f,angle:V,selectCount:R,selectObject:U,getLength:O,getAngle:I,onConfirmClick:P}=se(h),v=async()=>{const t=await O(M("指定行间距"));t&&(g.value=t)},m=async()=>{const t=await O(M("指定列间距"));t&&(f.value=t)},j=async()=>{const t=await O(M("指定单位单元"));t&&(f.value=t,g.value=t)},D=[{name:"确定",fun:P,primary:!0},{name:"取消",fun:()=>h(!1)}];return(t,a)=>(H(),q(le,{title:t.t("291"),modelValue:r(b),"onUpdate:modelValue":a[6]||(a[6]=d=>k(b)?b.value=d:null),"max-width":"520",footerBtnList:D},{default:l(()=>[s("div",ae,[e(_,{class:"mt-1","align-stretch":""},{default:l(()=>[e(o,{cols:7,class:"h-100","align-self":"start"},{default:l(()=>[e(K,{modelValue:r(y),"onUpdate:modelValue":a[0]||(a[0]=d=>k(y)?y.value=d:null),inline:""},{default:l(()=>[e(B,{value:!0,class:"mr-12"},{label:l(()=>[e(i,{"key-name":"R"},{default:l(()=>[u(n(t.t("118")),1)]),_:1})]),_:1}),e(B,{value:!1},{label:l(()=>[e(i,{"key-name":"P"},{default:l(()=>[u(n(t.t("119")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"]),L(s("div",null,[e(_,null,{default:l(()=>[e(o,{cols:"6"},{default:l(()=>[e(p,{class:"mt-2 ml-2",type:"number",modelValue:r(C),"onUpdate:modelValue":a[1]||(a[1]=d=>k(C)?C.value=d:null)},{prepend:l(()=>[s("div",oe,[a[7]||(a[7]=s("div",{class:"box box-row mr-1"},[s("div",{class:"box-line"})],-1)),e(i,{"key-name":"W",colon:""},{default:l(()=>[u(n(t.t("120")),1)]),_:1})])]),_:1},8,["modelValue"])]),_:1}),e(o,{cols:"6"},{default:l(()=>[e(p,{class:"mt-2 ml-2",type:"number",modelValue:r(x),"onUpdate:modelValue":a[2]||(a[2]=d=>k(x)?x.value=d:null)},{prepend:l(()=>[s("div",ne,[a[8]||(a[8]=s("div",{class:"box box-col mr-1"},[s("div",{class:"box-line"})],-1)),e(i,{"key-name":"O",colon:""},{default:l(()=>[u(n(t.t("121")),1)]),_:1})])]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(S,{class:"mt-1",title:t.t("537")},{default:l(()=>[s("div",ue,[e(_,{class:"mt-2"},{default:l(()=>[e(o,{cols:"4"},{default:l(()=>[s("p",de,[e(i,{"key-name":"F",colon:""},{default:l(()=>[u(n(t.t("122")),1)]),_:1})]),s("p",ie,[e(i,{"key-name":"M",colon:""},{default:l(()=>[u(n(t.t("123")),1)]),_:1})])]),_:1}),e(o,{cols:"8",class:"d-flex"},{default:l(()=>[s("div",re,[e(p,{class:"",type:"number",modelValue:r(g),"onUpdate:modelValue":a[3]||(a[3]=d=>k(g)?g.value=d:null)},null,8,["modelValue"]),e(p,{class:"mt-3",type:"number",modelValue:r(f),"onUpdate:modelValue":a[4]||(a[4]=d=>k(f)?f.value=d:null)},null,8,["modelValue"])]),s("div",ce,[e(w,{class:"h-100",onClick:j})]),s("div",fe,[s("div",me,[e(w,{onClick:v}),e(w,{class:"mt-2",onClick:m})])])]),_:1})]),_:1}),e(_,null,{default:l(()=>[e(o,{cols:"4"},{default:l(()=>[s("p",_e,[e(i,{"key-name":"A",colon:""},{default:l(()=>[u(n(t.t("124")),1)]),_:1})])]),_:1}),e(o,{cols:"8",class:"d-flex"},{default:l(()=>[s("div",pe,[e(p,{class:"mt-1",type:"number",step:"0.01",modelValue:r(V),"onUpdate:modelValue":a[5]||(a[5]=d=>k(V)?V.value=d:null)},null,8,["modelValue"])]),s("div",ge,[e(w,{class:"mt-1",onClick:r(I)},null,8,["onClick"])]),a[9]||(a[9]=s("div",{class:"w-25 ml-1"},null,-1))]),_:1})]),_:1}),e(_,{class:"mt-2"},{default:l(()=>[e(o,{cols:"3"},{default:l(()=>[s("div",ye,[e(F,{src:T,alt:t.t("125"),width:"24px"},null,8,["alt"]),u(" "+n(t.t("125")),1)])]),_:1}),e(o,{cols:"9"},{default:l(()=>[u(n(t.t("126")),1)]),_:1})]),_:1})])]),_:1},8,["title"])],512),[[N,r(y)]]),L(s("div",null,[e(_,{class:"d-flex mx-3 mt-1"},{default:l(()=>[s("p",ve,n(t.t("127"))+":",1),e(p,null,{prepend:l(()=>a[10]||(a[10]=[s("span",{class:""},"X:",-1)])),_:1}),e(p,{class:"ml-1"},{prepend:l(()=>a[11]||(a[11]=[s("span",{class:""},"Y:",-1)])),_:1}),e(w)]),_:1}),e(S,{title:t.t("538")},{default:l(()=>[s("div",we,[e(i,{"key-name":"M",colon:""},{default:l(()=>[u(n(t.t("128")),1)]),_:1}),e(Q,{"bg-color":"grey-lighten-2",class:"",items:[]}),e(_,null,{default:l(()=>[e(o,{cols:"6"},{default:l(()=>[e(i,{"key-name":"I",colon:""},{default:l(()=>[u(n(t.t("129")),1)]),_:1})]),_:1}),e(o,{cols:"3"},{default:l(()=>[e(p,{class:"mt-1"})]),_:1}),e(o,{cols:"3"})]),_:1}),e(_,null,{default:l(()=>[e(o,{cols:"6"},{default:l(()=>[e(i,{"key-name":"F",colon:""},{default:l(()=>[u(n(t.t("130")),1)]),_:1})]),_:1}),e(o,{cols:"3"},{default:l(()=>[e(p,{class:"mt-1"})]),_:1}),e(o,{cols:"3"},{default:l(()=>[e(w)]),_:1})]),_:1}),e(_,null,{default:l(()=>[e(o,{cols:"6"},{default:l(()=>[e(i,{"key-name":"B",colon:""},{default:l(()=>[u(n(t.t("131")),1)]),_:1})]),_:1}),e(o,{cols:"3"},{default:l(()=>[e(p,{class:"mt-1",disabled:""})]),_:1}),e(o,{cols:"3"},{default:l(()=>[e(w,{disabled:""})]),_:1})]),_:1}),e(_,{class:"mt-2"},{default:l(()=>[e(o,{cols:"3"},{default:l(()=>[s("div",Ve,[e(F,{src:T,alt:t.t("125"),width:"24px"},null,8,["alt"]),u(" "+n(t.t("125")),1)])]),_:1}),e(o,{cols:"9"},{default:l(()=>[u(n(t.t("132")),1)]),_:1})]),_:1})])]),_:1},8,["title"]),e(Z,{class:"mt-2"},{label:l(()=>[e(i,{"key-name":"T"},{default:l(()=>[u(n(t.t("133")),1)]),_:1})]),_:1})],512),[[N,!r(y)]])]),_:1}),e(o,{cols:5,"align-self":"start"},{default:l(()=>[s("div",ke,[s("div",be,[e(w,{onClick:r(U)},null,8,["onClick"]),e(i,{"key-name":"S"},{default:l(()=>[u(n(t.t("134")),1)]),_:1})]),s("p",Ce,n(t.t("135")+r(R)+t.t("136")+t.t("137")),1),a[12]||(a[12]=s("div",{class:"obj-box"},null,-1))])]),_:1})]),_:1})])]),_:1},8,["title","modelValue"]))}}),Oe=ee(xe,[["__scopeId","data-v-383532b3"]]);export{Oe as default};
|