import{$ as e}from"./wsl.js?v=20260328163632";import{l as s,t as a,x as r}from"./utils-lib.js?v=20260328163632";import{g as t}from"./index195.js?v=20260328163632";import{u as i}from"./index50.js?v=20260328163632";import{k as l,r as o,c as m,o as u,V as n,_ as p,Y as d}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index91.js?v=20260328163632";import"./index92.js?v=20260328163632";import"./index97.js?v=20260328163632";const v=l({__name:"index",setup(l,{expose:v}){const{sid:c}=i(),j=o({formAttrs:{labelWidth:"auto"},formItems:[]}),x=o({label:s("数据卷名称"),attrs:{labelStyle:"min-width: 100px"},ruleKey:"volume_name",rules:[{required:!0,message:s("请输入数据卷名称"),trigger:["blur","change"]}],children:[{key:"volume_name",type:"input",attrs:{class:"!w-[320px]",placeholder:s("请输入数据卷名称")}}]}),f=m((()=>(j.value.formItems=[x.value],j.value))),[b,_,g]=a(f);return u((()=>{_.value.driver="bridge"})),v({onConfirm:async()=>{var a;try{await(null==(a=g.value)?void 0:a.validate());return(await r({loading:s("正在创建数据卷，请稍后..."),request:e({..._.value,sid:c.value}),message:!0,success:e=>{t()}})).status}catch(i){}}}),(e,s)=>(n(),p(d(b),{class:"p-20px"}))}});export{v as default};
