import{k as e,$ as l}from"./utils-lib.js?v=1761009159";import{c as a,v as o,x as s,e as t,B as r,y as p,C as d,z as m,ab as i,ai as n,ah as u,a9 as c}from"./base-lib.js?v=1761009159";import{B as _}from"./index115.js?v=1761009159";import{a as f,b as j,c as h,h as b}from"./index65.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./ace.js?v=1761009159";import"./index105.js?v=1761009159";import"./index114.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./index119.js?v=1761009159";import"./form-item.js?v=1761009159";import"./validator.js?v=1761009159";import"./useController9.js?v=1761009159";import"./useStore9.js?v=1761009159";import"./index103.js?v=1761009159";const x={class:"p-20px"},V={class:"h-[16rem]"},y=a({__name:"add-script",setup:a=>(a,y)=>{const v=e,w=i,U=n,S=u,k=_,B=c,C=l;return o(),s("div",x,[t(B,{ref_key:"addScriptFormRef",ref:j,model:p(f),"label-width":"80px",rules:p(h)},{default:r(()=>[t(w,{label:"名称",prop:"name"},{default:r(()=>[t(v,{modelValue:p(f).name,"onUpdate:modelValue":y[0]||(y[0]=e=>p(f).name=e),placeholder:"请输入脚本名称",width:"36rem"},null,8,["modelValue"])]),_:1}),t(w,{label:"脚本类型",prop:"script_type"},{default:r(()=>[t(S,{modelValue:p(f).script_type,"onUpdate:modelValue":y[1]||(y[1]=e=>p(f).script_type=e)},{default:r(()=>[t(U,{label:"shell",value:"shell"},{default:r(()=>y[4]||(y[4]=[d("Shell",-1)])),_:1,__:[4]}),t(U,{label:"python",value:"python"},{default:r(()=>y[5]||(y[5]=[d("Python",-1)])),_:1,__:[5]})]),_:1},8,["modelValue"])]),_:1}),t(w,{label:"内容",prop:"content"},{default:r(()=>[m("div",V,[t(k,{class:"!h-[16rem] !w-[36rem]",modelValue:p(f).content,"onUpdate:modelValue":y[2]||(y[2]=e=>p(f).content=e)},null,8,["modelValue"])])]),_:1}),t(w,{label:"备注"},{default:r(()=>[t(v,{modelValue:p(f).description,"onUpdate:modelValue":y[3]||(y[3]=e=>p(f).description=e),placeholder:"备注",width:"36rem"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),t(C,{options:p(b),class:"list-disc pl-24px"},null,8,["options"])])}});export{y as default};
