← Back
Editing: index127.js
import{k as e,W as l}from"./utils-lib.js?v=VERSION_NUMBER";import{c as a,q as s,v as o,e as d,A as t,x as r,y as m,C as u,a9 as i,ai as p,aj as n,a7 as c}from"./base-lib.js?v=VERSION_NUMBER";import{B as _}from"./index140.js?v=VERSION_NUMBER";import{c as V,d as f,e as x,f as b,h as j}from"./index15.js?v=VERSION_NUMBER";import"./__commonjsHelpers__.js?v=VERSION_NUMBER";import"./ace.js?v=VERSION_NUMBER";import"./index103.js?v=VERSION_NUMBER";import"./index112.js?v=VERSION_NUMBER";import"./useController3.js?v=VERSION_NUMBER";import"./validator.js?v=VERSION_NUMBER";import"./index104.js?v=VERSION_NUMBER";import"./column.js?v=VERSION_NUMBER";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,C=p,q=n,A=_,B=c,F=l;return s(),o("div",h,[d(B,{ref_key:"addScriptFormRef",ref:x,model:r(V),"label-width":"80px",rules:r(b)},{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(q,{modelValue:r(V).return_type,"onUpdate:modelValue":U[1]||(U[1]=e=>r(V).return_type=e),class:"!w-[16rem]"},{default:t((()=>[d(C,{label:"字符串",value:"string"}),d(C,{label:"整数",value:"int"}),d(C,{label:"浮点数",value:"float"})])),_:1},8,["modelValue"])])),_:1}),d(k,{label:"脚本参数"},{default:t((()=>[m("div",v,[d(q,{modelValue:r(V).is_args,"onUpdate:modelValue":U[2]||(U[2]=e=>r(V).is_args=e),class:"!w-[8.2rem]"},{default:t((()=>[d(C,{label:"需要",value:"1"}),d(C,{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(A,{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};
Save File
Cancel