wente
2024-03-13 ec16a5a4bf2520dab317ddbe46171246b096d1ad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 容器型组件工厂
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
}