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

36 lines
695 B
JavaScript
Raw Normal View History

2023-03-14 09:11:54 +08:00
import {
observer
} from 'mobx-react';
import {
WeaTop,
WeaRightMenu
} from 'ecCom';
@observer
export default class Top extends React.Component {
render() {
const {
store,
loading,
2024-12-11 15:32:14 +08:00
title,
} = this.props, {
staticTopProps,
topButtons,
2023-03-14 09:11:54 +08:00
dropMenuDatas
} = store;
return (
2024-12-11 15:32:14 +08:00
<WeaTop ecId={`${this && this.props && this.props.ecId || ''}_WeaTop@6n6nf1`}
{...staticTopProps}
2023-03-14 09:11:54 +08:00
title={title}
2024-12-11 15:32:14 +08:00
buttons={topButtons}
2023-03-14 09:11:54 +08:00
dropMenuDatas={dropMenuDatas}
loading={loading}
>
2024-12-11 15:32:14 +08:00
<WeaRightMenu ecId={`${this && this.props && this.props.ecId || ''}_WeaRightMenu@7efogb`} datas={dropMenuDatas}>
2023-03-14 09:11:54 +08:00
{this.props.children}
</WeaRightMenu>
</WeaTop>
);
}
}