import{d as x,ao as _,o as b,X as o,a6 as k,u as n,Y as d,f as t,E as s}from"./vue-fae2b924.js";import{u as y}from"./system-13158c13.js";import{b5 as g,b6 as h,b7 as r,U as c,M as u}from"./radical-3ee02118.js";import"./global-f242879f.js";import"./index-137e94ff.js";const E=x({__name:"index",setup(S){const l=y(),{plugins:i}=_(l),m=[{title:"名称",dataIndex:"name",width:"120px"},{title:"状态",dataIndex:"disabled",width:"80px",customRender:({record:e})=>t(r,{color:e.disabled?"red":"green"},{default:()=>[e.disabled?"禁用":"启用"]})},{title:"描述",dataIndex:"description",customRender:({record:e})=>{const a=[];if(e.description)for(const[p,f]of Object.entries(e.description))a.push(t(r,{color:"blue",class:"mb-4px"},{default:()=>[p,s(": "),f]}));return t("div",{class:"flex flex-wrap gap-4px"},[a])}},{title:"操作",dataIndex:"action",width:"140px",align:"center",customRender:({record:e})=>t("div",null,[t(c,{type:"link",onClick:()=>{u.confirm({title:`确定重启${e.name}吗?`,content:"开发中"})}},{default:()=>[s("重启")]}),t(c,{type:"link",onClick:()=>{u.confirm({title:`配置${e.name}`,content:"开发中"})}},{default:()=>[s("配置")]})])}];return b(()=>{l.loadSysInfo()}),(e,a)=>(o(),k("div",null,[n(i).length?(o(),d(n(g),{key:0,dataSource:n(i),columns:m,size:"small",pagination:!1,bordered:!0},null,8,["dataSource"])):(o(),d(n(h),{key:1}))]))}});export{E as default};