import{k as e,$ as l}from"./utils-lib.js?v=1761009159";import{c as a,v as s,x as o,e as d,B as t,y as r,z as m,D as u,ab as i,ak as p,al as n,a9 as c}from"./base-lib.js?v=1761009159";import{B as _}from"./index115.js?v=1761009159";import{c as V,d as f,e as b,f as x,h as j}from"./index15.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./ace.js?v=1761009159";import"./index105.js?v=1761009159";import"./index114.js?v=1761009159";import"./useController3.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const h={class:"p-20px"},v={class:"flex items-center"},g={key:0,class:"flex items-center"},w={class:"h-[16rem]"},U=a({__name:"index",setup:a=>(a,U)=>{const y=e,k=i,B=p,z=n,C=_,D=c,F=l;return s(),o("div",h,[d(D,{ref_key:"addScriptFormRef",ref:b,model:r(V),"label-width":"80px",rules:r(x)},{default:t(()=>[d(k,{label:"名称",prop:"name"},{default:t(()=>[d(y,{modelValue:r(V).name,"onUpdate:modelValue":U[0]||(U[0]=e=>r(V).name=e),placeholder:"请输入脚本名称",width:"36rem"},null,8,["modelValue"])]),_:1}),d(k,{label:"返回类型"},{default:t(()=>[d(z,{modelValue:r(V).return_type,"onUpdate:modelValue":U[1]||(U[1]=e=>r(V).return_type=e),class:"!w-[16rem]"},{default:t(()=>[d(B,{label:"字符串",value:"string"}),d(B,{label:"整数",value:"int"}),d(B,{label:"浮点数",value:"float"})]),_:1},8,["modelValue"])]),_:1}),d(k,{label:"脚本参数"},{default:t(()=>[m("div",v,[d(z,{modelValue:r(V).is_args,"onUpdate:modelValue":U[2]||(U[2]=e=>r(V).is_args=e),class:"!w-[8.2rem]"},{default:t(()=>[d(B,{label:"需要",value:"1"}),d(B,{label:"不需要",value:"0"})]),_:1},8,["modelValue"]),"1"==r(V).is_args?(s(),o("div",g,[d(y,{class:"mx-4px",width:"10rem",placeholder:"参数标题",modelValue:r(f).args_title,"onUpdate:modelValue":U[3]||(U[3]=e=>r(f).args_title=e)},null,8,["modelValue"]),d(y,{modelValue:r(f).args_ps,"onUpdate:modelValue":U[4]||(U[4]=e=>r(f).args_ps=e),width:"16rem",placeholder:"参数说明"},null,8,["modelValue"])])):u("",!0)])]),_:1}),d(k,{label:"内容",prop:"script"},{default:t(()=>[m("div",w,[d(C,{class:"!h-[16rem] !w-[36rem]",modelValue:r(V).script,"onUpdate:modelValue":U[5]||(U[5]=e=>r(V).script=e)},null,8,["modelValue"])])]),_:1}),d(k,{label:"备注"},{default:t(()=>[d(y,{modelValue:r(V).ps,"onUpdate:modelValue":U[6]||(U[6]=e=>r(V).ps=e),placeholder:"备注",width:"36rem"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),d(F,{options:r(j),class:"list-disc pl-24px"},null,8,["options"])])}});export{U as default};
