import{_ as k,L as w,w as y,M as C,I as B,N as L}from"./element-plus.fa1aa32c.js";import{d as x}from"./message.910b3d2c.js";import{_ as D}from"./edit.vue_vue_type_script_setup_true_lang.801050d7.js";import{d as u,s as F,a0 as T,ag as N,o,c as R,O as d,L as i,M as t,V as a,T as m}from"./@vue.cab01781.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.22a46fd8.js";import"./axios.8058589d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.0abf9e5c.js";import"./lodash.bbe6f09f.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.5bd363c0.js";import"./color.232115c1.js";import"./clone.8f44c0eb.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.404eaa9c.js";import"./vue-clipboard3.19ab9072.js";import"./clipboard.6fb7c109.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";import"./index.082aefea.js";const V=m("\u5F00\u542F"),M=m("\u5173\u95ED"),S=m(" \u8BBE\u7F6E "),$=u({name:"shortLetter"}),Et=u({...$,setup(z){const p=F(),e=T({loading:!1,lists:[]}),c=async()=>{try{e.loading=!0,e.lists=await x(),e.loading=!1}catch{e.loading=!1}},f=s=>{var r;(r=p.value)==null||r.open(s)};return c(),(s,r)=>{const n=w,_=k,g=y,h=C,E=B,v=N("perms"),b=L;return o(),R("div",null,[d((o(),i(E,{class:"!border-none",shadow:"never"},{default:t(()=>[a(h,{size:"large",data:e.lists},{default:t(()=>[a(n,{label:"\u77ED\u4FE1\u6E20\u9053",prop:"name","min-width":"120"}),a(n,{label:"\u72B6\u6001","min-width":"120"},{default:t(({row:l})=>[l.status==1?(o(),i(_,{key:0},{default:t(()=>[V]),_:1})):(o(),i(_,{key:1,type:"danger"},{default:t(()=>[M]),_:1}))]),_:1}),a(n,{label:"\u64CD\u4F5C","min-width":"120",fixed:"right"},{default:t(({row:l})=>[d((o(),i(g,{type:"primary",link:"",onClick:I=>f(l.alias)},{default:t(()=>[S]),_:2},1032,["onClick"])),[[v,["setting:storage:edit"]]])]),_:1})]),_:1},8,["data"])]),_:1})),[[b,e.loading]]),a(D,{ref_key:"editRef",ref:p,onSuccess:c},null,512)])}}});export{Et as default};
