index-zOzy80IM.js 1.6 KB

1
  1. import{bs as x,aQ as y,ae as L,ag as T,af as k,ah as D,ai as _,aj as h,ak as B,al as p,am as e,ap as t,an as V,aW as f,aY as b,aA as C,aZ as M,aX as R,bB as S,bA as I,aw as A}from"./index-D68iA7pN.js";import{M as N}from"./index-AOcxwHT9.js";const j=()=>{const o=x(),{createLineType:i}=o,{lineTypeList:r}=y(o);return{lineTypeList:r,createLineType:i}},z={class:"mt-2"},E={class:"w-100"},F={class:"w-100"},Q={class:"text-center"},U={class:"text-center w-25"},W={class:"text-center"},X={class:"w-100 text-left"},Y=["onClick"],Z=L({__name:"index",emits:["change"],setup(o,{expose:i,emit:r}){const{createLineType:$,lineTypeList:c}=j(),n=T(0),{isShow:d,showDialog:u,onReveal:g}=k(!1),v=r,w=[{name:"确定",fun:()=>{v("change",c.value[n.value]),u(!1)},primary:!0},{name:"取消",fun:()=>u(!1)}];return g(a=>{n.value=c.value.findIndex(l=>l.name===a.name)}),i({showDialog:u}),(a,l)=>(p(),D(N,{title:a.t("线型管理器"),"max-width":"500",modelValue:h(d),"onUpdate:modelValue":l[0]||(l[0]=s=>B(d)?d.value=s:null),footerBtnList:w},{default:_(()=>[e("div",z,[e("p",null,t(a.t("已加载的线型")),1),V(S,{class:"w-100",cellpadding:"20",height:"300"},{default:_(()=>[e("thead",E,[e("tr",F,[e("th",Q,t(a.t("线型")),1),e("th",U,t(a.t("外观")),1),e("th",W,t(a.t("说明")),1)])]),e("tbody",X,[(p(!0),f(R,null,b(h(c),(s,m)=>C((p(),f("tr",{key:s.id,class:M(n.value===m?"active":""),onClick:q=>n.value=m},[e("td",null,t(s.name),1),e("td",null,t(s.explain),1),e("td",null,t(s.appearance),1)],10,Y)),[[I]])),128))])]),_:1})])]),_:1},8,["title","modelValue"]))}}),J=A(Z,[["__scopeId","data-v-320e1ec6"]]);export{J as default};