| | |
| | | }) |
| | | } |
| | | |
| | | getComponents = () => { |
| | | const { config } = this.props |
| | | getComponents = (components) => { |
| | | const { mainSearch, data } = this.state |
| | | |
| | | if (!config || !config.components || config.components.length === 0) return (<Empty description={false} />) |
| | | |
| | | return config.components.map(item => { |
| | | return components.map(item => { |
| | | let style = null |
| | | |
| | | if (item.style && item.style.clear === 'left') { |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { config } = this.props |
| | | |
| | | if (!config || !config.components || config.components.length === 0) return (<Empty description={false} />) |
| | | |
| | | return ( |
| | | <Row className="component-wrap" gutter={8}>{this.getComponents()}</Row> |
| | | <Row className="component-wrap" id={'anchor' + config.uuid} gutter={8}>{this.getComponents(config.components)}</Row> |
| | | ) |
| | | } |
| | | } |