Shell.js 448 Bytes
Newer Older
徐立's avatar
徐立 committed
1 2 3 4 5 6 7 8 9 10 11
/**
 * 钟是志
 * 2019年1月10日
 * 一个方块就是一个Shell用于组件外层
 */

import React, { Component } from 'react';
import { Row, Col } from 'antd';
import styles from './index.less';

export default class Index extends Component {
12 13 14 15 16 17 18 19
	render() {
		const { children, styleShell = {} } = this.props;
		return (
			<div className={styles.shell} style={styleShell}>
				<Row className={styles.row}>{children}</Row>
			</div>
		);
	}
徐立's avatar
徐立 committed
20
}