jinlin
2024-02-01 2df883fcbed176f83d8d144fd007e7f72fcb54d6
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
}