

<script>
/* eslint-disable */
// sd-skip-auto-import
import asyncComponent from"@/common/services/async-component";import runtimeUtil from"./runtime-util";import components from"./_import-components/sd-table-layout-form-import";var _render=function e(){var t=this,r=t._self._c;return r("table",{class:["sd-form-theme","sd-form-table",t.formProps.theme]},[r("sd-form-colgroup",{attrs:{columns:2*t.formProps.columns}}),t._l(t.tableInfo,(function(e,o){return r("tr",{key:o},t._l(e,(function(e){return r("sd-form-item-td",t._b({key:e.name,attrs:{colspan:2*e.columns-(null===e.label?0:1),"keep-hidden-cell":t.formProps.columns!==e.columns}},"sd-form-item-td",e,false))})),1)})),t.formProps.debugMode?r("tr",[r("td",{attrs:{colspan:2*t.formProps.columns}},[r(t.SdHiddenFields,{tag:"component",attrs:{fields:t.fields}})],1)]):t._e()],2)};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdTableLayoutForm",components:components,props:{fields:{type:Array,required:true},formProps:{type:Object,required:true}},data(){return{}},computed:{tableInfo(){return runtimeUtil.getTableInfo(this.fields,this.formProps)},themeId(){return this.formProps.theme||"sd-default"}},created(){runtimeUtil.loadTheme(this.themeId);this.SdHiddenFields=asyncComponent((()=>import(/* webpackChunkName: "src-hidden-fields" */"./sd-hidden-fields.vue")))},destroyed(){runtimeUtil.unloadTheme(this.themeId)},methods:{},render:_render,staticRenderFns:staticRenderFns};</script>

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