import{c as e,s as l,n as a,v as o,x as s,e as d,B as t,z as p,y as i,T as m,ab as u,S as n,an as r,a9 as c}from"./base-lib.js?v=1761009159";import{ax as V}from"./utils-lib.js?v=1761009159";import{M as f}from"./index57.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index105.js?v=1761009159";import"./index114.js?v=1761009159";import"./useMethod7.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const _={class:"p-20px"},x={class:"w-280px"},b={class:"w-100px ml-10px"},v={class:"w-280px"},j={class:"w-130px"},w={class:"w-140px ml-10px"},U={class:"w-280px"},h=e({__name:"index",props:{compData:{}},setup(e){const{rules:h,getDomainOptions:D,unitOptions:q,typeOptions:O,initForm:y}=f(),{form:E,domainOptions:k,formRef:M}=l(f()),R=e;return D(),a(()=>{y(R.compData)}),(e,l)=>{const a=m,f=u,D=n,y=V,R=r,g=c;return o(),s("div",_,[d(g,{ref_key:"formRef",ref:M,model:i(E),rules:i(h)},{default:t(()=>[d(f,{label:"名字",prop:"full_name"},{default:t(()=>[p("div",x,[d(a,{modelValue:i(E).full_name,"onUpdate:modelValue":l[0]||(l[0]=e=>i(E).full_name=e),placeholder:"请输入姓名"},null,8,["modelValue"])])]),_:1}),d(f,{label:"配额",prop:"quota"},{default:t(()=>[d(D,{modelValue:i(E).quota,"onUpdate:modelValue":l[1]||(l[1]=e=>i(E).quota=e),class:"w-170px",min:0,controls:!1,placeholder:"输入邮箱的配额大小"},null,8,["modelValue"]),p("div",b,[d(y,{modelValue:i(E).quota_unit,"onUpdate:modelValue":l[2]||(l[2]=e=>i(E).quota_unit=e),options:i(q)},null,8,["modelValue","options"])])]),_:1}),d(f,{label:"用户类型",prop:"is_admin"},{default:t(()=>[p("div",v,[d(y,{modelValue:i(E).is_admin,"onUpdate:modelValue":l[3]||(l[3]=e=>i(E).is_admin=e),options:i(O)},null,8,["modelValue","options"])])]),_:1}),d(f,{label:"邮箱地址",prop:"username"},{default:t(()=>[p("div",j,[d(a,{modelValue:i(E).username,"onUpdate:modelValue":l[4]||(l[4]=e=>i(E).username=e),disabled:e.compData.isEdit,placeholder:"您的域名"},null,8,["modelValue","disabled"])]),p("div",w,[d(y,{modelValue:i(E).domain,"onUpdate:modelValue":l[5]||(l[5]=e=>i(E).domain=e),disabled:e.compData.isEdit,filterable:!0,options:i(k)},null,8,["modelValue","disabled","options"])])]),_:1}),d(f,{label:"邮箱密码",prop:"password"},{default:t(()=>[p("div",U,[d(a,{modelValue:i(E).password,"onUpdate:modelValue":l[6]||(l[6]=e=>i(E).password=e),placeholder:e.compData.isEdit?"如果为空，密码不会更改":"请输入您的邮箱密码"},null,8,["modelValue","placeholder"])])]),_:1}),d(f,{label:"状态",prop:"active","show-feedback":!1},{default:t(()=>[d(R,{modelValue:i(E).active,"onUpdate:modelValue":l[7]||(l[7]=e=>i(E).active=e),"active-value":1,"inactive-value":0},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}});export{h as default};
