← Back
Editing: index209.js
import{ay as s,K as a,hD as e,G as t}from"./utils-lib.js?v=1765440387";import{c as r,az as o,g as i,q as m,v as l,e as p,x as n}from"./base-lib.js?v=1765440387";import{k as u}from"./form-item.js?v=1765440387";import{f as c}from"./validator.js?v=1765440387";import"./__commonjsHelpers__.js?v=1765440387";import"./index94.js?v=1765440387";import"./column.js?v=1765440387";const{refs:{isRefreshTableList:f}}=s(),d={class:"flex flex-col p-[1.6rem] lib-box"},h=r({__name:"index",setup(s,{expose:r}){const h=o("popupClose",()=>{}),{BtForm:b,submit:g}=t({data:()=>({path:"",name:"",id:""}),options:s=>i(()=>[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,h)}});return r({onConfirm:g}),(s,a)=>(m(),l("div",d,[p(n(b))]))}});export{h as default};
Save File
Cancel