// 组件工厂 import getSimpleComponentHtml from './simpleComponentHtmlFactory' import getContainerComponentHtml from './containerComponentHtmlFactory' export default function getComponentHtml(formJson, component, parent, isSomeSpanUnequal24) { let formItemHtml = '' if (component.FComponentType && component.FComponentType === 'oneText') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'datePicker') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'select') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'dialog') { formItemHtml = getContainerComponentHtml(formJson, component) } else if (component.FComponentType && component.FComponentType === 'multiText') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'radio') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'checkbox') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'dateRange') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'timePicker') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'timeRange') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'inputNumber') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'upload') { formItemHtml = getSimpleComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'row') { formItemHtml = getContainerComponentHtml(formJson, component, parent, isSomeSpanUnequal24) } else if (component.FComponentType && component.FComponentType === 'tabs') { formItemHtml = getContainerComponentHtml(formJson, component) } else if (component.FComponentType && component.FComponentType === 'table') { formItemHtml = getContainerComponentHtml(formJson, component) } return formItemHtml }