import{c as e,q as l,v as a,x as o,e as s,B as p,y as m,C as t,I as i,J as d,z as r,aj as n,ah as u,ab as f,a9 as _}from"./base-lib.js?v=1761009159";import{k as c,ax as V}from"./utils-lib.js?v=1761009159";import{_ as j}from"./index103.js?v=1761009159";import{g as b,o as x,i as v,a as h,p as y,b as k,r as C}from"./index481.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index105.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./site.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./validator.js?v=1761009159";const U={class:"p-[20px]"},w={class:"flex"},g=e({__name:"install-package",props:{compData:{default:()=>{}},isConfig:{type:Boolean},formData:{}},emits:[""],setup:(e,{expose:g,emit:I})=>(l(()=>{b()}),g({onConfirm:x}),(e,l)=>{const b=n,x=u,g=f,I=c,B=j,D=V,q=_;return a(),o("div",U,[s(q,{ref_key:"installFormRef",ref:k,model:m(v),rules:m(C)},{default:p(()=>[s(g,{label:"安装方式"},{default:p(()=>[s(x,{modelValue:m(v).type,"onUpdate:modelValue":l[0]||(l[0]=e=>m(v).type=e)},{default:p(()=>[s(b,{value:"common"},{default:p(()=>l[5]||(l[5]=[t("普通安装",-1)])),_:1,__:[5]}),s(b,{value:"file"},{default:p(()=>l[6]||(l[6]=[t("从文件批量安装",-1)])),_:1,__:[6]})]),_:1},8,["modelValue"])]),_:1}),i(s(g,{label:"名称",prop:"name"},{default:p(()=>[r("div",w,[s(I,{modelValue:m(v).name,"onUpdate:modelValue":l[1]||(l[1]=e=>m(v).name=e),placeholder:"请输入名称",width:"22rem"},null,8,["modelValue"]),s(g,{label:"版本",prop:"version"},{default:p(()=>[s(I,{modelValue:m(v).version,"onUpdate:modelValue":l[2]||(l[2]=e=>m(v).version=e),placeholder:"默认最新版本",width:"22rem"},null,8,["modelValue"])]),_:1})])]),_:1},512),[[d,"common"==m(v).type]]),i(s(g,{label:"版本记录文件",prop:"file"},{default:p(()=>[s(B,{modelValue:m(v).file,"onUpdate:modelValue":l[3]||(l[3]=e=>m(v).file=e),placeholder:"版本记录文件",icon:"el-folder-opened",onIconClick:m(h),width:"40rem"},null,8,["modelValue","onIconClick"])]),_:1},512),[[d,"file"==m(v).type]]),s(g,{label:"pip镜像源",prop:"pip"},{default:p(()=>[s(D,{modelValue:m(v).pip,"onUpdate:modelValue":l[4]||(l[4]=e=>m(v).pip=e),options:m(y),class:"!w-[54rem]"},null,8,["modelValue","options"])]),_:1})]),_:1},8,["model","rules"])])})});export{g as default};
