index.c672fa01.js 3.3 KB

1
  1. import{d as D,u as g,r as n,C as B,o,c as C,w as e,a as s,b as t,V as m,ad as _,b_ as p,Z as a,$ as c,n as l,X as F,Y as k,ab as A,bA as V,U as w,t as y,a0 as L,h as b,e as M,l as S}from"./index.6c36cb53.js";import{M as j}from"./index.a696a3d7.js";import{V as I}from"./VTable.c59a0e01.js";const R={class:"px-3 ShortcutKeySettingsDialog"},N={class:"d-flex justify-end my-2"},$=s("thead",null,[s("tr",null,[s("th",null,"\u529F\u80FD\u540D\u79F0"),s("th",null,"\u5FEB\u6377\u952E")])],-1),q={class:"w-100 text-left"},T=["onClick"],U={class:"d-flex justify-start my-2"},z={class:"d-flex justify-space-between"},K={class:"d-flex justify-space-between my-2"},Q=s("div",{class:"my-1"},null,-1),P=D({__name:"index",setup(X){const{isShow:i,showDialog:Y}=g(!1,"MxCloud_QuickCommand"),f=n([{title:"\u529F\u80FD",type:"",value:0,list:[{name:"A",cmd:"S",cmdList:[{cmd:"f"},{cmd:"l"}]},{name:"B",cmd:"S",cmdList:[{cmd:"a"},{cmd:"d"}]}]},{title:"\u7ED8\u56FE",type:"",value:1,list:[{name:"\u753B\u7EBF",cmd:"MxLine",cmdList:[{cmd:"line"},{cmd:"l"}]},{name:"\u753B\u5706\u5F27",cmd:"Mx_Arc",cmdList:[{cmd:"arc"},{cmd:"_arc"}]}]}]),r=n(0),h=B(()=>f.value[r.value].list),d=n(0),v=B(()=>h.value[d.value].cmdList);return(Z,E)=>(o(),C(j,{title:"\u547D\u4EE4\u884C\u5FEB\u6377\u547D\u4EE4\u8BBE\u7F6E","max-width":"800",modelValue:M(i),"onUpdate:modelValue":E[0]||(E[0]=u=>S(i)?i.value=u:null)},{actions:e(()=>[Q]),default:e(()=>[s("div",R,[t(b,{class:"mt-2","align-stretch":"","no-gutters":""},{default:e(()=>[t(m,{cols:"3","align-self":"stretch",class:"h-100"},{default:e(()=>[t(_,{title:"\u5206\u7C7B"},{default:e(()=>[t(p,{class:"mt-1",height:"300px",items:f.value,"active-class":"active",selected:[r.value]},null,8,["items","selected"])]),_:1}),s("div",N,[t(a,{isAction:"",class:"mr-4"},{default:e(()=>[t(c,{"key-name":"E"},{default:e(()=>[l("\u5BFC\u51FA\u8BBE\u7F6E\u6587\u4EF6")]),_:1})]),_:1})])]),_:1}),t(m,{cols:"6","align-self":"stretch",style:{height:"300px"}},{default:e(()=>[t(_,{title:"\u529F\u80FD\u5217\u8868"},{default:e(()=>[t(I,{class:"mt-1 mx-table",height:"300px"},{default:e(()=>[$,s("tbody",q,[(o(!0),F(L,null,k(h.value,(u,x)=>A((o(),F("tr",{key:u.cmd,class:w(d.value===x?"active":""),onClick:G=>d.value=x},[s("td",null,y(u.name),1),s("td",null,y(u.cmd),1)],10,T)),[[V]])),128))])]),_:1})]),_:1}),s("div",U,[t(a,{isAction:"",class:"ml-4"},{default:e(()=>[t(c,{"key-name":"I"},{default:e(()=>[l("\u5BFC\u5165\u8BBE\u7F6E\u6587\u4EF6")]),_:1})]),_:1}),t(a,{isAction:"",class:"ml-8"},{default:e(()=>[t(c,{"key-name":"R"},{default:e(()=>[l("\u6062\u590D\u9ED8\u8BA4\u8BBE\u7F6E")]),_:1})]),_:1})])]),_:1}),t(m,{cols:"3","align-self":"stretch",class:"h-100"},{default:e(()=>[t(_,{title:"\u5FEB\u6377\u547D\u4EE4"},{default:e(()=>[s("div",z,[t(a,null,{default:e(()=>[t(c,{"key-name":"A"},{default:e(()=>[l("\u65B0\u589E")]),_:1})]),_:1}),t(a,{class:"ml-2"},{default:e(()=>[t(c,{"key-name":"D"},{default:e(()=>[l("\u5220\u9664")]),_:1})]),_:1})]),t(p,{class:"mt-1",height:"279px",items:v.value,"item-title":"cmd","item-value":"cmd","active-class":"active",selected:[v.value[0].cmd]},null,8,["items","selected"])]),_:1}),s("div",K,[t(a,{primary:"",isAction:""},{default:e(()=>[l(" \u786E\u5B9A ")]),_:1}),t(a,{class:"ml-2",isAction:""},{default:e(()=>[l(" \u53D6\u6D88 ")]),_:1})])]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}});export{P as default};