import{u as F,r as _,a as h,b as s,o as c,c as i,d as p,e,w as t,f as k,F as I,M as B}from"./index-CciaI3zE.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const N={__name:"FormItem",setup(v){const d=F(),m=_(),a=h({username:"admin",password:"123456"}),n=_(!1),b=g=>{n.value=!0,setTimeout(()=>{B.success("登录成功"),d.push({path:"/home"}),n.value=!1},1e3)};return(g,o)=>{const u=s("icon-user"),w=s("a-input"),r=s("a-form-item"),V=s("a-input-password"),x=s("a-button"),y=s("a-form");return c(),i(I,null,[o[3]||(o[3]=p("div",{class:"form-title"},"音频标注检索平台",-1)),e(y,{ref_key:"refForm",ref:m,model:a,layout:"validate",style:{width:"calc(100% - 100px)"},onSubmitSuccess:b},{default:t(()=>[e(r,{field:"username"},{default:t(()=>[e(w,{modelValue:a.username,"onUpdate:modelValue":o[0]||(o[0]=l=>a.username=l),placeholder:"用户名"},{prefix:t(()=>[e(u)]),_:1},8,["modelValue"])]),_:1}),e(r,{field:"password"},{default:t(()=>[e(V,{modelValue:a.password,"onUpdate:modelValue":o[1]||(o[1]=l=>a.password=l),placeholder:"密码",defaultVisibility:!0,"allow-clear":""},{prefix:t(()=>[e(u)]),_:1},8,["modelValue"])]),_:1}),e(r,null,{default:t(()=>[e(x,{loading:n.value,class:"submit-btn",style:{"background-color":"#7169df",color:"#fff"},"html-type":"submit"},{default:t(()=>o[2]||(o[2]=[k("登录 ")])),_:1},8,["loading"])]),_:1})]),_:1},8,["model"])],64)}}},S=f(N,[["__scopeId","data-v-d35870d8"]]),C={class:"login"},L={class:"login-form"},M={__name:"Login",setup(v){return(d,m)=>(c(),i("div",C,[p("div",L,[e(S)])]))}},E=f(M,[["__scopeId","data-v-8c7524fe"]]);export{E as default};
