import{d as M,r as p,u as S,c as T,o as P,U as x,w as n,j as e,t as k,i as B,_ as w,k as y,B as V,p as i,H as h,M as C}from"./index-9PRMimni.js";const U=M({__name:"EmailSetting",setup(N){const c={originator:{required:!0,message:"请输入发件人邮箱",trigger:"blur"}},_=p(),s=S(),a=p({originator:""});function m(){_.value.validate(r=>{r?s.error("验证失败，请填写完整信息"):s.success("验证成功")})}return(r,o)=>{const l=y,t=w,u=V,d=h,f=k,g=C,b=x;return P(),T(b,{cols:"1 s:1 m:1 l:4 xl:4 2xl:4",responsive:"screen"},{default:n(()=>[e(g,null,{default:n(()=>[e(f,{"label-width":120,model:a.value,rules:c,ref_key:"formRef",ref:_},{default:n(()=>[e(t,{label:"发件人邮箱",path:"originator"},{default:n(()=>[e(l,{value:a.value.originator,"onUpdate:value":o[0]||(o[0]=v=>a.value.originator=v),placeholder:"请输入发件人邮箱"},null,8,["value"])]),_:1}),e(t,{label:"SMTP服务器地址"},{default:n(()=>[e(l,{placeholder:"请输入SMTP服务器地址"})]),_:1}),e(t,{label:"SMTP服务器端口"},{default:n(()=>[e(l,{placeholder:"请输入SMTP服务器端口"})]),_:1}),e(t,{label:"SMTP用户名"},{default:n(()=>[e(l,{placeholder:"请输入SMTP用户名"})]),_:1}),e(t,{label:"SMTP密码"},{default:n(()=>[e(l,{type:"password",placeholder:"请输入SMTP密码"})]),_:1}),e(t,{label:"邮件测试"},{default:n(()=>[e(u,null,{default:n(()=>o[1]||(o[1]=[i("邮件测试")])),_:1})]),_:1}),B("div",null,[e(d,null,{default:n(()=>[e(u,{type:"primary",onClick:m},{default:n(()=>o[2]||(o[2]=[i("更新邮件信息")])),_:1})]),_:1})])]),_:1},8,["model"])]),_:1})]),_:1})}}});export{U as _};
