

<script>
/* eslint-disable */
// sd-skip-auto-import
import SdChildTable from"@/common/components/sd-child-table.vue";import asyncComponent from"@/common/services/async-component";import runtimeUtil from"../runtime-util";import components from"./_import-components/sd-child-table-render-import";const SdChildTableRender={name:"SdChildTableRender",components:{...components,[SdChildTable.name]:SdChildTable},inheritAttrs:false,model:{prop:"value",event:"change"},props:{label:{type:String,default:""},hideCaption:{type:Boolean,default:false}},data(){return{builder:asyncComponent((()=>import(/* webpackChunkName: "sd-form-by-builder" */"@/common/components/sd-form-by-builder.vue")))}},computed:{items(){if(0===this.$attrs.fields.length)return[];const e=runtimeUtil.getTableInfo(this.$attrs.fields,{columns:1}).map((e=>e[0])).filter((e=>!!e));return e},columns(){return this.$attrs.fields.filter((e=>e.attrFD.hidden)).map((e=>({dataIndex:e.name,sdHidden:true}))).concat(this.$attrs.columns||[])},labelCompute(){return this.hideCaption?null:this.label}},methods:{}};var _render=function e(){var t=this,n=t._self._c;return n("sd-child-table",t._g(t._b({attrs:{label:t.labelCompute,columns:t.columns},scopedSlots:t._u([{key:"form",fn:function(){return[n("span"),n(t.builder,{tag:"component",attrs:{"form-data":{attrFD:t.$attrs.childAttrFD||{columns:1},pageFieldInfos:t.$attrs.fields}}})]},proxy:true},t._l(t.items.filter((e=>e.componentForDisplay)),(function(e){return{key:e.name,fn:function({text:t}){return[n(e.componentForDisplay,{key:e.name,tag:"component",attrs:{value:t,"read-only":true}})]}}}))],null,true)},"sd-child-table",t.$attrs,false),t.$listeners))};var staticRenderFns=[];_render._withStripped=true;SdChildTableRender.render=_render;SdChildTableRender.staticRenderFns=staticRenderFns;export default SdChildTableRender;export{SdChildTableRender as forDisplay};</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
