index.1a43d021.js 1.7 KB

1
  1. import{cr as g,b4 as B,d as w,r as y,u as D,o as i,c as L,w as m,a as e,b as T,X as f,Y as F,ab as S,bA as V,U as k,t as d,e as h,a0 as C,l as E,p as I,m as A,_ as M}from"./index.6c36cb53.js";import{M as R}from"./index.a696a3d7.js";import{V as N}from"./VTable.c59a0e01.js";const U=()=>{const a=g(),{createLineType:l}=a,{lineTypeList:o}=B(a);return{lineTypeList:o,createLineType:l}},x=a=>(I("data-v-ebaf4beb"),a=a(),A(),a),z={class:"mt-2"},X=x(()=>e("p",null,"\u5DF2\u52A0\u8F7D\u7684\u7EBF\u578B",-1)),Y=x(()=>e("thead",{class:"w-100"},[e("tr",{class:"w-100"},[e("th",{class:"text-center"},"\u7EBF\u578B"),e("th",{class:"text-center w-25"},"\u5916\u89C2"),e("th",{class:"text-center"},"\u8BF4\u660E")])],-1)),$={class:"w-100 text-left"},j=["onClick"],q=w({__name:"index",emits:["change"],setup(a,{expose:l,emit:o}){const{createLineType:G,lineTypeList:u}=U(),s=y(0),{isShow:c,showDialog:r,onReveal:v}=D(!1),b=[{name:"\u786E\u5B9A",fun:()=>{o("change",u.value[s.value]),r(!1)},primary:!0},{name:"\u53D6\u6D88",fun:()=>r(!1)}];return v(p=>{s.value=u.value.findIndex(n=>n.name===p.name)}),l({showDialog:r}),(p,n)=>(i(),L(R,{title:"\u7EBF\u578B\u7BA1\u7406\u5668","max-width":"500",modelValue:h(c),"onUpdate:modelValue":n[0]||(n[0]=t=>E(c)?c.value=t:null),footerBtnList:b},{default:m(()=>[e("div",z,[X,T(N,{class:"w-100",cellpadding:"20",height:"300"},{default:m(()=>[Y,e("tbody",$,[(i(!0),f(C,null,F(h(u),(t,_)=>S((i(),f("tr",{key:t.id,class:k(s.value===_?"active":""),onClick:H=>s.value=_},[e("td",null,d(t.name),1),e("td",null,d(t.explain),1),e("td",null,d(t.appearance),1)],10,j)),[[V]])),128))])]),_:1})])]),_:1},8,["modelValue"]))}});const P=M(q,[["__scopeId","data-v-ebaf4beb"]]);export{P as default};