2019-05-26 09:14:23 +08:00

32 lines
704 B
JavaScript

import './css/VBoxLayout.css';
import classNames from 'classnames/bind';
import PropTypes from 'prop-types';
/**
* 竖直布局
* @author tengge / https://github.com/tengge1
*/
class VBoxLayout extends React.Component {
render() {
const { className, style, children, ...others } = this.props;
return <div
className={classNames('VBoxLayout', className)}
style={style}
{...others}>{children}</div>;
}
}
VBoxLayout.propTypes = {
className: PropTypes.string,
style: PropTypes.object,
children: PropTypes.node,
};
VBoxLayout.defaultProps = {
className: null,
style: null,
children: null,
};
export default VBoxLayout;