You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
568 B
17 lines
568 B
import React from 'react';
|
|
import { Link } from 'dva/router';
|
|
import PageHeader from '../components/PageHeader';
|
|
import GridContent from './GridContent';
|
|
import styles from './PageHeaderLayout.less';
|
|
|
|
export default ({ children, wrapperClassName, top, ...restProps }) => (
|
|
<div style={{ margin: '-24px -24px 0' }} className={wrapperClassName}>
|
|
{top}
|
|
<PageHeader key="pageheader" {...restProps} linkElement={Link} />
|
|
{children ? (
|
|
<div className={styles.content}>
|
|
<GridContent>{children}</GridContent>
|
|
</div>
|
|
) : null}
|
|
</div>
|
|
);
|
|
|