← Back
Editing: http-auth-add2.js
import{c as e,p as a,q as l,M as s,A as o,e as d,x as r,aa as t,c1 as m,a8 as p}from"./base-lib.js?v=1765440387";import{j as u,W as i}from"./utils-lib.js?v=1765440387";import{S as n,U as f,V as h,W as b,X as c,Y as V,Z as _,_ as j,e as w}from"./index449.js?v=1765440387";import"./__commonjsHelpers__.js?v=1765440387";import"./site.js?v=1765440387";import"./column.js?v=1765440387";import"./index94.js?v=1765440387";import"./validator.js?v=1765440387";import"./useStore3.js?v=1765440387";const x=e({__name:"http-auth-add",setup:(e,{expose:x})=>(a(n),x({onConfirm:f}),(e,a)=>{const n=u,f=t,x=m,U=i,g=p;return l(),s(g,{ref_key:"authRef",ref:_,rules:r(j),disabled:r(w),model:r(h),class:"p-[2rem] addfrom","label-width":"5rem"},{default:o(()=>[d(f,{label:"名称",prop:"name"},{default:o(()=>[d(n,{modelValue:r(h).name,"onUpdate:modelValue":a[0]||(a[0]=e=>r(h).name=e),disabled:!!r(b),width:"20rem",placeholder:"请输入名称"},null,8,["modelValue","disabled"])]),_:1}),d(f,{label:"路径",prop:"path"},{default:o(()=>[d(x,{modelValue:r(h).path,"onUpdate:modelValue":a[1]||(a[1]=e=>r(h).path=e),class:"!w-[20rem]",disabled:!!r(b),"fetch-suggestions":r(c),placeholder:"请输入路径,例如:/web"},null,8,["modelValue","disabled","fetch-suggestions"])]),_:1}),d(f,{label:"用户名",prop:"user"},{default:o(()=>[d(n,{modelValue:r(h).user,"onUpdate:modelValue":a[2]||(a[2]=e=>r(h).user=e),width:"20rem",placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1}),d(f,{label:"密码",prop:"password"},{default:o(()=>[d(n,{modelValue:r(h).password,"onUpdate:modelValue":a[3]||(a[3]=e=>r(h).password=e),width:"20rem",placeholder:"请输入密码"},null,8,["modelValue"])]),_:1}),d(U,{options:r(V),class:"pl-[5.6rem] pt-[2.4rem]"},null,8,["options"])]),_:1},8,["rules","disabled","model"])})});export{x as default};
Save File
Cancel