jinlin
2023-11-03 35435e8b1995e6775c82b86652381e07e3faff54
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
}