weaver_trunk_cli/pc4mobx/hrm/public/coms/Top.js

36 lines
695 B
JavaScript

import {
observer
} from 'mobx-react';
import {
WeaTop,
WeaRightMenu
} from 'ecCom';
@observer
export default class Top extends React.Component {
render() {
const {
store,
loading,
title,
} = this.props, {
staticTopProps,
topButtons,
dropMenuDatas
} = store;
return (
<WeaTop ecId={`${this && this.props && this.props.ecId || ''}_WeaTop@6n6nf1`}
{...staticTopProps}
title={title}
buttons={topButtons}
dropMenuDatas={dropMenuDatas}
loading={loading}
>
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@7efogb`} datas={dropMenuDatas}>
{this.props.children}
</WeaRightMenu>
</WeaTop>
);
}
}