← Back
Editing: index219.js
import{ay as s,K as a,i4 as e,G as t}from"./utils-lib.js?v=VERSION_NUMBER";import{c as r,ay as i,g as o,q as m,v as l,e as p,x as n}from"./base-lib.js?v=VERSION_NUMBER";import{l as u}from"./form-item.js?v=VERSION_NUMBER";import{f as c}from"./validator.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";const{refs:{isRefreshTableList:f}}=s(),d={class:"flex flex-col p-[1.6rem] lib-box"},b=r({__name:"index",setup(s,{expose:r}){const b=i("popupClose",(()=>{})),{BtForm:h,submit:g}=t({data:()=>({path:"",name:"",id:""}),options:s=>o((()=>[u("路径","path",{attrs:{class:"!w-[24rem]",placeholder:"请输入镜像路径"},rules:[{required:!0,message:"请输入镜像路径",trigger:["blur","change"]}]},(()=>(s=>{c({type:"file",change:a=>{s.value.path=a}})})(s)))])),submit:async(s,t,r)=>{await t(),(async(s,t)=>{a({request:e({data:JSON.stringify({path:s.value.path})}),message:!0,success:({status:s})=>{s&&(f.value=!0,t())}})})(s,b)}});return r({onConfirm:g}),(s,a)=>(m(),l("div",d,[p(n(h))]))}});export{b as default};
Save File
Cancel