import React, {Component} from 'react'
|
import PropTypes from 'prop-types'
|
|
import asyncComponent from '@/utils/asyncComponent'
|
import './index.scss'
|
|
const TabTransfer = asyncComponent(() => import('@/tabviews/custom/components/share/tabtransfer'))
|
|
class NormalGroup extends Component {
|
static propTpyes = {
|
config: PropTypes.object, // 组件配置信息
|
}
|
|
state = {}
|
|
render() {
|
const { config } = this.props
|
|
if (config.components.length === 0) return (<div style={config.style}></div>)
|
|
return (
|
<div className={'normal-group-wrap ' + (config.setting.layout || '')} id={'anchor' + config.uuid} style={config.style}>
|
{config.setting && config.setting.title ? <div className="group-header" style={config.headerStyle}>
|
<span className="title">{config.setting.title}</span>
|
</div> : null}
|
<TabTransfer config={config}/>
|
{/* <Row className="component-wrap">{this.getComponents()}</Row> */}
|
</div>
|
)
|
}
|
}
|
|
export default NormalGroup
|