File: /www/server/panel/BTPanel/static/js/springboot-check-list.js
import{_ as x}from"./index118.js?v=1777008528";import{c as k,r as d,o as b,j as n,k as o,e as D,v as c,q as a,x as f,s as r,p as m,F as y,B as C,L as p,y as _,J as B,K as L}from"./base-lib.js?v=1777008528";import{cZ as N}from"./utils-lib.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";const V={class:"px-[20px]"},j={class:"text-medium mt-[1.6rem] flex items-center"},$={class:"list-con"},F=["onClick"],S=["title"],T={key:0,class:"showDetail"},q=k({__name:"springboot-check-list",props:{compData:{default:()=>{}}},setup(h){const u=h,i=d([]);d(!1);const l=t=>{if(!t)return!1;switch(!0){case t.startsWith("/"):return"来源:文件路径".concat(t);case t==="命令行或环境变量":return"来源:命令行或环境变量";default:return"来源:jar包内文件".concat(t)}},w=t=>{t.file&&(t.show=!t.show)};return b(async()=>{u.compData.params,i.value=u.compData.data.map(t=>({...t,show:!1}))}),(t,s)=>{const g=x;return n(),o("div",V,[D(g,null,{"header-left":c(()=>[a("div",j,[s[0]||(s[0]=a("span",{class:"text-warning svgtofont-el-warning-outline text-subtitleLarge mr-[1rem]"},null,-1)),f("检查到"+r(m(i).length)+"项问题,是否继续创建项目?",1)])]),"header-right":c(()=>[...s[1]||(s[1]=[])]),content:c(()=>[a("div",$,[(n(!0),o(y,null,C(m(i),(e,v)=>(n(),o("div",{key:v,class:p(["list-item",e.show?"!bg-light":""])},[a("div",{class:p(["flex justify-between items-center h-[4.5rem]",e.file?"cursor-pointer":""]),onClick:z=>w(e)},[a("span",{class:"font-bold text-small w-[90%] truncate",title:e.msg},r(e.msg),9,S),l(e.file)?(n(),o("span",T,[s[2]||(s[2]=f("详情",-1)),a("span",{class:p(e.show?"svgtofont-el-arrow-down":"svgtofont-el-arrow-right")},null,2)])):_("",!0)],10,F),l(e.file)?B((n(),o("div",{key:0,class:"list-detail"},r(l(e.file)),513)),[[L,e.show]]):_("",!0)],2))),128))])]),_:1})])}}}),M=N(q,[["__scopeId","data-v-b32faef1"]]);export{M as default};