import{K as s}from"./utils-lib.js?v=1761009159";import{c as a,g as t,e,C as r,U as o,q as m,v as l,x as i,y as p}from"./base-lib.js?v=1761009159";import{j as u,h as n,b as c,d,F as j}from"./form-item.js?v=1761009159";import{r as x,u as v,e as _,f,h as b,a as w,g as h}from"./index363.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./index105.js?v=1761009159";import"./index126.js?v=1761009159";import"./index103.js?v=1761009159";import"./column.js?v=1761009159";import"./site.js?v=1761009159";import"./validator.js?v=1761009159";const g={class:"p-2rem"},k=a({__name:"set-tomcat",emits:["close"],setup(a,{expose:k,emit:y}){const C=y,{BtForm:K,submit:q}=s({data:()=>x.value?{...x.value}:{},options:s=>t(()=>[u("启动用户","user",v.value,{attrs:{class:"!w-[30rem]"}}),n("开机启动",()=>e(o,{modelValue:s.value.auto_restart,"onUpdate:modelValue":a=>s.value.auto_restart=a},{default:()=>[r("是否设置开机自动启动")]}),"auto_restart",{attrs:{class:"!w-[10rem]"}}),c("端口","port",{attrs:{class:"!w-[20rem]",placeholder:"请输入端口",type:"number"},rules:[{required:!0,message:"请输入Tomcat名称"}]}),d([u("JDK","jdk_path",_.value,{attrs:{class:"!w-[30rem]"}}),j(()=>e("span",{class:"bt-link ml-8px h-[32px] leading-[32px] text-center",onClick:()=>{C("close"),f()}},[r("添加JDK")]))]),c("备注","ps",{attrs:{class:"!w-[30rem]",placeholder:"请输入备注"}})]),submit:async(s,a)=>(await a(),await b(s.value))});return m(()=>{w(),h()}),k({onConfirm:q}),(s,a)=>(l(),i("div",g,[e(p(K))]))}});export{k as default};
