import{aK as y}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 v}from"./index.vue_vue_type_script_setup_true_name_ValueItem_lang.1703796278973.js";import{d as f,l as V,o as a,c as n,a as b,z as x,x as T,A as h,u as k}from"./vue.1703796278973.js";const w={key:0},F=f({__name:"EditTable",props:{modelValue:{type:Array,default:""}},emits:["update:modelValue"],setup(p,{emit:m}){const i=p,s=[{title:"参数名称",dataIndex:"name",with:"33%"},{title:"类型",dataIndex:"valueType",with:"33%"},{title:"值",dataIndex:"value",with:"34%"}],u=V({get:()=>i.modelValue||[],set:o=>{m("update:modelValue",o)}});return(o,I)=>{const d=v,r=y;return a(),n(r,{rowKey:"id",columns:s,"data-source":k(u),bordered:"",pagination:!1},{bodyCell:b(({column:_,text:c,record:e})=>{var l;return[x("div",null,[["valueType","name"].includes(_.dataIndex)?(a(),T("span",w,h(c),1)):(a(),n(d,{key:1,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,itemType:e.type,options:e.type==="enum"?(((l=e==null?void 0:e.dataType)==null?void 0:l.elements)||[]).map(t=>({label:t.text,value:t.value})):e.type==="boolean"?[{label:"是",value:!0},{label:"否",value:!1}]:void 0},null,8,["modelValue","onUpdate:modelValue","itemType","options"]))])]}),_:1},8,["data-source"])}}});export{F as _};
