1 |
- import{d as ne,u as z,cI as ie,b4 as de,bO as me,r as H,C as _,A as O,bg as re,o as g,X as R,b as e,w as l,a as d,t as y,e as a,h as C,V as v,$ as i,n,ab as ve,c as X,a0 as P,Y as ce,b$ as pe,c8 as fe,U as Fe,b_ as _e,ag as S,ad as D,ah as ge,j as x,Z as c,l as h,p as ye,m as xe,B as Ve,_ as Be}from"./index.6c36cb53.js";import{M as W}from"./index.a696a3d7.js";const A=p=>(ye("data-v-9ff4238f"),p=p(),xe(),p),ke={class:"px-3 mt-2"},be={class:"h-100"},we=A(()=>d("div",{style:{width:"24px"}},null,-1)),Ce={class:"h-100"},Se={class:"w-50"},De={class:"w-50"},he=A(()=>d("span",{class:"mr-1"},"\u6837\u5F0F\u540D:",-1)),Ae={class:"ml-5"},Ee=A(()=>d("div",{class:"pa-1"},null,-1)),Ne=ne({__name:"index",setup(p){const{isShow:f,showDialog:Y}=z(!1,"Mx_Style"),E=ie(),{list:N,current:F,index:s,fontNames:U,fontStyles:I,isUpdate:j,newStyleName:V}=de(E),{setIndex:Z,putCurrent:G,add:J,remove:K,apply:T,init:Q}=E,ee=[{name:"\u5E94\u7528",fun:()=>{T()},disabled:()=>!j.value,primary:!0,labelProps:{"key-name":"A"}},{name:"\u5173\u95ED",fun:()=>Y(!1)}],le={a:()=>{T()}},{isShow:B,showDialog:k}=z(!1),{open:ae}=me(),b=H("\u6240\u6709\u6837\u5F0F"),L=_(()=>b.value==="\u6B63\u5728\u4F7F\u7528\u6837\u5F0F"),o=_(()=>L.value?[F.value]:N.value),te=_(()=>o.value[s.value]===F.value),w=H(!1),ue=()=>{w.value=!0,Ve(()=>{w.value=!1})};O(L,()=>{s.value=o.value.indexOf(F.value)}),O(f,m=>{m&&Q()});const $=()=>{J(),k(!1),ue()},se={enter:$},r=_(()=>N.value[s.value].isBigFont),M=m=>r.value?(m=m.endsWith(".shx")?m:m+".shx",m.toLocaleLowerCase()):m;return(m,u)=>{const oe=re("scroll-bottom");return g(),R(P,null,[e(W,{title:"\u6587\u5B57\u6837\u5F0F","max-width":"600",modelValue:a(f),"onUpdate:modelValue":u[9]||(u[9]=t=>h(f)?f.value=t:null),footerBtnList:ee,keys:le},{default:l(()=>[d("div",ke,[d("p",null,"\u5F53\u524D\u6587\u5B57\u6837\u5F0F: "+y(a(F).name),1),e(C,{"align-stretch":""},{default:l(()=>[e(v,{cols:"4",class:"h-100","align-self":"start"},{default:l(()=>[d("div",be,[e(i,{"key-name":"S",colon:""},{default:l(()=>[n("\u6837\u5F0F")]),_:1}),ve((g(),X(_e,{density:"compact",class:"overflow-y py-0 list-border",height:"230"},{default:l(()=>[(g(!0),R(P,null,ce(o.value,(t,q)=>(g(),X(pe,{key:t.id,onClick:Ue=>a(Z)(q),value:t,class:"pa-0","min-height":"24",height:"24"},{prepend:l(()=>[we]),default:l(()=>[e(fe,{textContent:y(t.name),class:Fe(["",a(s)===q?"bg-light-blue-darken-2":""])},null,8,["textContent","class"])]),_:2},1032,["onClick","value"]))),128))]),_:1})),[[oe,w.value]]),e(S,{"bg-color":"grey-lighten-2",class:"mt-2",modelValue:b.value,"onUpdate:modelValue":u[0]||(u[0]=t=>b.value=t),items:["\u6240\u6709\u6837\u5F0F","\u6B63\u5728\u4F7F\u7528\u6837\u5F0F"]},null,8,["modelValue"])])]),_:1}),e(v,{cols:"6",class:"h-100"},{default:l(()=>[d("div",Ce,[e(D,{title:"\u5B57\u4F53",class:"mb-1"},{default:l(()=>[e(C,null,{default:l(()=>[d("div",Se,[e(i,{"key-name":r.value?"X":"B",class:"ml-1"},{default:l(()=>[n(y(r.value?"SHX\u5B57\u4F53":"\u5B57\u4F53\u540D"),1)]),_:1},8,["key-name"]),e(S,{"bg-color":"grey-lighten-2",class:"mx-1","menu-props":{maxHeight:"200px"},items:a(U),"model-value":M((o.value[a(s)].isBigFont?o.value[a(s)].fileName:o.value[a(s)].typeFace)||a(U)[0]),"onUpdate:modelValue":u[1]||(u[1]=t=>{o.value[a(s)].isBigFont?o.value[a(s)].fileName=t:o.value[a(s)].typeFace=t})},null,8,["items","model-value"])]),d("div",De,[e(i,{"key-name":r.value?"B":"Y",class:"ml-1"},{default:l(()=>[n(y(r.value?"\u5927\u5B57\u4F53":"\u5B57\u4F53\u6837\u5F0F"),1)]),_:1},8,["key-name"]),e(S,{"bg-color":"grey-lighten-2",class:"mx-1","menu-props":{maxHeight:"200px"},items:a(I),"model-value":M(o.value[a(s)].isBigFont?o.value[a(s)].bigFontFileName||a(I)[0]:"\u5E38\u89C4"),"onUpdate:modelValue":u[2]||(u[2]=t=>{o.value[a(s)].isBigFont&&(o.value[a(s)].bigFontFileName=t)})},null,8,["items","model-value"])])]),_:1}),e(ge,{class:"mt-2","model-value":r.value,"onUpdate:modelValue":u[3]||(u[3]=t=>{t!==null&&(o.value[a(s)].isBigFont=t)})},{label:l(()=>[e(i,{"key-name":"U"},{default:l(()=>[n("\u4F7F\u7528\u5927\u5B57\u4F53")]),_:1})]),_:1},8,["model-value"])]),_:1}),e(D,{title:"\u5927\u5C0F",class:"mt-4"},{default:l(()=>[e(x,{modelValue:o.value[a(s)].textSize,"onUpdate:modelValue":u[4]||(u[4]=t=>o.value[a(s)].textSize=t),type:"number",min:"0",step:"0.001"},{prepend:l(()=>[e(i,{"key-name":"T"},{default:l(()=>[n("\u9AD8\u5EA6")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e(D,{title:"\u6548\u679C",class:"mt-4"},{default:l(()=>[e(x,{modelValue:o.value[a(s)].xScale,"onUpdate:modelValue":u[5]||(u[5]=t=>o.value[a(s)].xScale=t),type:"number",step:"0.001"},{prepend:l(()=>[e(i,{"key-name":"W",colon:""},{default:l(()=>[n("\u5BBD\u5EA6\u56E0\u5B50")]),_:1})]),_:1},8,["modelValue"]),e(x,{class:"mt-2",modelValue:o.value[a(s)].obliquingAngle,"onUpdate:modelValue":u[6]||(u[6]=t=>o.value[a(s)].obliquingAngle=t),type:"number",step:"0.001"},{prepend:l(()=>[e(i,{"key-name":"O",colon:""},{default:l(()=>[n("\u503E\u659C\u89D2\u5EA6")]),_:1})]),_:1},8,["modelValue"])]),_:1})])]),_:1}),e(v,{cols:"2","align-self":"start"},{default:l(()=>[e(c,{class:"mt-5 w-100",isAction:""},{default:l(()=>[e(i,{"key-name":"C",onClick:a(G)},{default:l(()=>[n("\u7F6E\u4E3A\u5F53\u524D")]),_:1},8,["onClick"])]),_:1}),e(c,{class:"mt-4 w-100",isAction:""},{default:l(()=>[e(i,{"key-name":"N",onClick:u[7]||(u[7]=t=>a(k)())},{default:l(()=>[n("\u65B0\u5EFA")]),_:1})]),_:1}),e(c,{class:"mt-4 w-100",isAction:"",onClick:u[8]||(u[8]=t=>a(ae)({text:"\u5220\u9664\u6587\u5B57\u6837\u5F0F: \u6837\u5F0F1?",define:()=>a(K)()})),disabled:te.value},{default:l(()=>[e(i,{"key-name":"D"},{default:l(()=>[n("\u5220\u9664")]),_:1})]),_:1},8,["disabled"])]),_:1})]),_:1})])]),_:1},8,["modelValue"]),e(W,{title:"\u65B0\u5EFA\u6587\u5B57\u6837\u5F0F",modelValue:a(B),"onUpdate:modelValue":u[13]||(u[13]=t=>h(B)?B.value=t:null),"max-width":"300",keys:se},{actions:l(()=>[Ee]),default:l(()=>[e(C,{class:"py-3"},{default:l(()=>[e(v,{cols:"7","align-self":"start"},{default:l(()=>[e(x,{class:"mt-1 ml-8",modelValue:a(V),"onUpdate:modelValue":u[10]||(u[10]=t=>h(V)?V.value=t:null)},{prepend:l(()=>[he]),_:1},8,["modelValue"])]),_:1}),e(v,{cols:"5"},{default:l(()=>[d("div",Ae,[e(c,{primary:"",onClick:u[11]||(u[11]=t=>$()),isAction:""},{default:l(()=>[n(" \u786E\u5B9A ")]),_:1}),e(c,{class:"mt-2",onClick:u[12]||(u[12]=t=>a(k)()),isAction:""},{default:l(()=>[n(" \u53D6\u6D88 ")]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}});const Le=Be(Ne,[["__scopeId","data-v-9ff4238f"]]);export{Le as default};
|