king
2024-01-05 148f6930874cb0a07bd7279e4b39fa708bd720eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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