import{Y as A,aK as B}from"./index.17037962789732.js";import"./index.1703796278973305.js";import"./index.170379627897315.js";import"./index.170379627897317.js";import"./index.1703796278973301.js";import"./index.1703796278973302.js";import"./index.170379627897332.js";import"./index.1703796278973303.js";import"./index.170379627897339.js";import"./index.170379627897316.js";import"./index.170379627897314.js";import"./index.1703796278973304.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_name_ValueItem_lang.1703796278973.js";import{d as f,v as w,m as j,r as c,o,c as u,a as d,t as m,A as _,B as n,x as v,F as E,b as y,u as N,z as F}from"./vue.1703796278973.js";const S=F("template",{slot:"title"},[m(" 请按照json格式输入 ")],-1),L={key:2,style:{"max-width":"260px"}},U=f({name:"FunctionCall"}),X=f({...U,props:{value:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]}},emits:["change","update:value"],setup(x,{emit:r}){const l=x,s=w({value:[]}),h=[{title:"参数名称",dataIndex:"name",width:300},{title:"类型",dataIndex:"type"},{title:"值",dataIndex:"value",align:"center",width:260}],g=()=>{const e=s.value.map(a=>({name:a.id,value:a.value}));r("update:value",e),r("change",e)};return j(()=>l.data,()=>{s.value=l.data.map(e=>{const a=l.value.find(p=>p.name===e.id);return a?{...e,value:a.value}:e})},{immediate:!0,deep:!0}),(e,a)=>{const p=c("Ellipsis"),V=c("AIcon"),C=A,I=T,k=B;return o(),u(k,{model:"TABLE",pagination:!1,"data-source":N(s).value,columns:h,bodyStyle:{padding:0}},{bodyCell:d(({column:i,record:t,index:z})=>[i.dataIndex==="name"?(o(),u(p,{key:0},{default:d(()=>[m(_(t.name),1)]),_:2},1024)):n("",!0),i.dataIndex==="type"?(o(),v(E,{key:1},[m(_(t.type)+" ",1),t.type==="object"?(o(),u(C,{key:0},{default:d(()=>[S,y(V,{type:"QuestionCircleOutlined",style:{marginLeft:"5px",cursor:"help"}})]),_:1})):n("",!0)],64)):n("",!0),i.dataIndex==="value"?(o(),v("div",L,[y(I,{modelValue:t.value,"onUpdate:modelValue":b=>t.value=b,itemType:t.type,options:t.options,onChange:g},null,8,["modelValue","onUpdate:modelValue","itemType","options"])])):n("",!0)]),_:1},8,["data-source"])}}});export{X as _};
