import{U as n,a2 as d,ad as p,ag as s,d as c,f as u}from"./vue-vendor-CxLCUzY4.js";import{c9 as b,bp as o}from"./index-Cy4uayzW.js";import{L as m}from"./useTableSync-f6089e8a-CReDWK2x.js";import"./cgform.data-475d4984-B8WsIiLb.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";var f=Object.defineProperty,y=Object.defineProperties,g=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable,i=(e,t,a)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,v=(e,t)=>{for(var a in t||(t={}))h.call(t,a)&&i(e,a,t[a]);if(r)for(var a of r(t))w.call(t,a)&&i(e,a,t[a]);return e},O=(e,t)=>y(e,g(t));const k=c({name:"ForeignKeyTable",props:{actionButton:{type:Boolean,default:!0}},setup(){const e=u([{title:"字段名称",key:"dbFieldName",width:160},{title:"字段备注",key:"dbFieldTxt",width:160},{title:"主表名",key:"mainTable",width:280,type:o.input,defaultValue:""},{title:"主表字段",key:"mainField",width:280,type:o.input,defaultValue:""}]),t=m(e);return O(v({},t),{columns:e})}});function P(e,t,a,j,x,B){const l=n("JVxeTable");return d(),p(l,s({ref:"tableRef",rowNumber:"",keyboardEdit:"",maxHeight:e.tableHeight.noToolbar,loading:e.loading,columns:e.columns,dataSource:e.dataSource,disabled:!e.actionButton,disabledRows:{dbFieldName:["id","has_child"]}},e.tableProps),null,16,["maxHeight","loading","columns","dataSource","disabled"])}const C=b(k,[["render",P]]);export{C as default};
