// 容器型组件工厂
|
import getDialogHtml from '../dialog'
|
import getRowHtml from '../row'
|
import getTabsHtml from '../tabs'
|
import getTableHtml from '../table'
|
|
export default function getContainerComponentHtml(formJson, component, parent, isSomeSpanUnequal24) {
|
let html = ''
|
|
if (component.FComponentType && component.FComponentType === 'dialog') {
|
html = getDialogHtml(formJson, component)
|
} else if (component.FComponentType && component.FComponentType === 'row') {
|
html = getRowHtml(formJson, component, parent, isSomeSpanUnequal24)
|
} else if (component.FComponentType && component.FComponentType === 'tabs') {
|
html = getTabsHtml(formJson, component)
|
} else if (component.FComponentType && component.FComponentType === 'table') {
|
html = getTableHtml(formJson, component)
|
}
|
|
return html
|
}
|