1 |
- import{ae as _,ag as V,B as G,al as z,aW as H,an as e,ai as a,ax as Z,ay as F,aC as c,ao as S,am as r,au as f,aj as i,c2 as u,ak as m,b6 as v,c3 as t,as as I,ap as p,bR as E,at as g,aG as W,aP as j,aX as X,M as y,C as O,b as R,v as q,w as J,S as K,aw as L,af as Q,ah as D,c4 as Y,i as h}from"./index-D68iA7pN.js";import{M as ee}from"./index-AOcxwHT9.js";import{V as B}from"./VSlider-Bmvc6aBM.js";const le={class:"d-flex justify-center algin-center"},ae={class:"d-flex justify-center algin-center"},te={class:"d-flex"},se={class:"d-flex align-center w-50"},oe={class:"d-flex align-center w-50"},ne={class:"d-flex"},ie=_({__name:"ElectronSetUp",setup(P,{expose:x}){const k=V(""),b=()=>{y.clearFileCache()},M=()=>{y.debugTools()},w=V(!0),{createColor:C}=G(),o=V(),d=V(),U=V(!1);K(async()=>{const l=R.getCurrentMxCAD().mxdraw.getViewColor(),s=O(l).toString();o.value=C({color:s,name:s}),U.value=await y.getAppConfig("isStartOpenLastFile")||!1});const T=n=>{o.value=n},N=n=>{const l=O(n.color),s=l.red(),$=l.green(),A=l.blue();R.getCurrentMxCAD().setViewBackgroundColor(s,$,A),q.callEvent("updateBackgroundColor",new J(s,$,A))};return x({determine:()=>{o.value&&N(o.value),y.setAppConfig("isStartOpenLastFile",U.value)}}),(n,l)=>(z(),H(X,null,[e(c,{title:n.t("691")},{default:a(()=>[e(Z,{modelValue:w.value,"onUpdate:modelValue":l[0]||(l[0]=s=>w.value=s)},{default:a(()=>[e(F,{label:n.t("692"),value:!0},null,8,["label"]),e(F,{label:n.t("693"),value:!1},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["title"]),e(I,{class:"mt-2"},{default:a(()=>[e(S,{cols:"6",class:"mb-1"},{default:a(()=>[e(c,{title:n.t("694")},{default:a(()=>[r("div",le,[e(f,{modelValue:i(u),"onUpdate:modelValue":l[1]||(l[1]=s=>m(u)?u.value=s:null),class:"pa-0",style:{"max-width":"36px"}},null,8,["modelValue"]),e(B,{"thumb-size":10,"tick-size":1,max:128,color:"#007AD9",modelValue:i(u),"onUpdate:modelValue":l[4]||(l[4]=s=>m(u)?u.value=s:null),"hide-details":"",step:1},{prepend:a(()=>[e(v,{icon:"class:iconfont minus",size:"x-small",variant:"text",onClick:l[2]||(l[2]=s=>i(u)>0&&u.value--)})]),append:a(()=>[e(v,{icon:"class:iconfont plus",size:"x-small",variant:"text",onClick:l[3]||(l[3]=s=>i(u)<128&&u.value++)})]),_:1},8,["modelValue"])])]),_:1},8,["title"])]),_:1}),e(S,{cols:"6",class:"mb-1","align-self":"start"},{default:a(()=>[e(c,{title:n.t("695")},{default:a(()=>[r("div",ae,[e(f,{modelValue:i(t),"onUpdate:modelValue":l[5]||(l[5]=s=>m(t)?t.value=s:null),class:"pa-0",style:{"max-width":"36px"}},null,8,["modelValue"]),e(B,{"thumb-size":10,"tick-size":1,color:"#007AD9",modelValue:i(t),"onUpdate:modelValue":l[8]||(l[8]=s=>m(t)?t.value=s:null),min:0,max:68,"hide-details":"",step:1},{prepend:a(()=>[e(v,{icon:"class:iconfont minus",size:"x-small",variant:"text",onClick:l[6]||(l[6]=s=>i(t)>0&&t.value--)})]),append:a(()=>[e(v,{icon:"class:iconfont plus",size:"x-small",variant:"text",onClick:l[7]||(l[7]=s=>i(t)<68&&t.value++)})]),_:1},8,["modelValue"])])]),_:1},8,["title"])]),_:1})]),_:1}),e(c,{title:n.t("696"),class:"mt-2"},{default:a(()=>[r("div",te,[r("div",se,[r("span",null,p(n.t("697"))+":",1),e(E,{"model-value":o.value,"onUpdate:modelValue":T,"menus-props":{maxHeight:"600"}},null,8,["model-value"])]),r("div",oe,[r("span",null,p(n.t("698"))+":",1),e(E,{"model-value":d.value,"menus-props":{maxHeight:"600"}},null,8,["model-value"])])])]),_:1},8,["title"]),e(c,{title:n.t("249"),class:"mt-2"},{default:a(()=>[r("div",ne,[e(f,{modelValue:i(t),"onUpdate:modelValue":l[9]||(l[9]=s=>m(t)?t.value=s:null),class:"pa-0"},{prepend:a(()=>[g(p(n.t("699"))+": ",1)]),_:1},8,["modelValue"]),e(f,{modelValue:i(t),"onUpdate:modelValue":l[10]||(l[10]=s=>m(t)?t.value=s:null),class:"pa-0 ml-4"},{prepend:a(()=>[g(p(n.t("700"))+"("+p(n.t("701"))+"): ",1)]),_:1},8,["modelValue"])])]),_:1},8,["title"]),e(f,{"model-value":k.value,readonly:"",class:"mt-2"},{prepend:a(()=>[g(p(n.t("702")),1)]),_:1},8,["model-value"]),e(W,{label:n.t("703"),modelValue:U.value,"onUpdate:modelValue":l[11]||(l[11]=s=>U.value=s),class:"mt-2"},null,8,["label","modelValue"]),e(j,{class:"mt-2 mr-2",onClick:b},{default:a(()=>[g(p(n.t("704")),1)]),_:1}),e(j,{class:"mt-2",onClick:M},{default:a(()=>[g(p(n.t("705")),1)]),_:1})],64))}}),ue=L(ie,[["__scopeId","data-v-6001fecb"]]),de={class:"px-3"},re={class:"d-flex justify-center algin-center"},me={class:"d-flex justify-center algin-center"},pe=_({__name:"index",setup(P){const{isShow:x,showDialog:k}=Q(!1,"Mx_SetAppDialog"),b=V(),w=[{name:"确定",fun:()=>{Y(),b.value?.determine(),k(!1)},primary:!0},{name:"关闭",fun:()=>k(!1)}];return(C,o)=>(z(),D(ee,{title:C.t("348"),"max-width":"600",modelValue:i(x),"onUpdate:modelValue":o[8]||(o[8]=d=>m(x)?x.value=d:null),footerBtnList:w},{default:a(()=>[r("div",de,[i(h)()?(z(),D(ue,{key:0,ref_key:"electronSetUp",ref:b},null,512)):(z(),D(I,{key:1},{default:a(()=>[e(S,{cols:"6",class:"mb-1"},{default:a(()=>[e(c,{title:C.t("694")},{default:a(()=>[r("div",re,[e(f,{modelValue:i(u),"onUpdate:modelValue":o[0]||(o[0]=d=>m(u)?u.value=d:null),class:"pa-0",style:{"max-width":"36px"}},null,8,["modelValue"]),e(B,{"thumb-size":10,"tick-size":1,max:128,color:"#007AD9",modelValue:i(u),"onUpdate:modelValue":o[3]||(o[3]=d=>m(u)?u.value=d:null),"hide-details":"",step:1},{prepend:a(()=>[e(v,{icon:"class:iconfont minus",size:"x-small",variant:"text",onClick:o[1]||(o[1]=d=>i(u)>0&&u.value--)})]),append:a(()=>[e(v,{icon:"class:iconfont plus",size:"x-small",variant:"text",onClick:o[2]||(o[2]=d=>i(u)<128&&u.value++)})]),_:1},8,["modelValue"])])]),_:1},8,["title"])]),_:1}),e(S,{cols:"6",class:"mb-1","align-self":"start"},{default:a(()=>[e(c,{title:C.t("695")},{default:a(()=>[r("div",me,[e(f,{modelValue:i(t),"onUpdate:modelValue":o[4]||(o[4]=d=>m(t)?t.value=d:null),class:"pa-0",style:{"max-width":"36px"}},null,8,["modelValue"]),e(B,{"thumb-size":10,"tick-size":1,color:"#007AD9",modelValue:i(t),"onUpdate:modelValue":o[7]||(o[7]=d=>m(t)?t.value=d:null),min:0,max:68,"hide-details":"",step:1},{prepend:a(()=>[e(v,{icon:"class:iconfont minus",size:"x-small",variant:"text",onClick:o[5]||(o[5]=d=>i(t)>0&&t.value--)})]),append:a(()=>[e(v,{icon:"class:iconfont plus",size:"x-small",variant:"text",onClick:o[6]||(o[6]=d=>i(t)<68&&t.value++)})]),_:1},8,["modelValue"])])]),_:1},8,["title"])]),_:1})]),_:1}))])]),_:1},8,["title","modelValue"]))}}),Ce=L(pe,[["__scopeId","data-v-a6e01d76"]]);export{Ce as default};
|