weaver_trunk_cli/pc4mobx/hrm/components/group/Tab.js

40 lines
634 B
JavaScript
Raw Normal View History

2023-03-14 09:11:54 +08:00
import {
observer
} from 'mobx-react';
import {
WeaTab
} from 'ecCom';
@observer
2024-12-11 15:32:14 +08:00
export default class Tab extends React.Component {
2023-03-14 09:11:54 +08:00
constructor(props) {
super(props);
}
render() {
const {
store
} = this.props, {
TAB,
tab,
2024-12-11 15:32:14 +08:00
tabDatas,
2023-03-14 09:11:54 +08:00
searchsBaseValue,
2024-12-11 15:32:14 +08:00
searchType,
tabButtons,
2023-03-14 09:11:54 +08:00
} = store, {
form
} = tab;
return (
2024-12-11 15:32:14 +08:00
<WeaTab ecId={`${this && this.props && this.props.ecId || ''}_WeaTab@jcn4su`}
2023-03-14 09:11:54 +08:00
{...TAB}
{...tab}
2024-12-11 15:32:14 +08:00
datas={tabDatas}
buttons={tabButtons}
searchType={searchType}
2023-03-14 09:11:54 +08:00
searchsBaseValue={searchsBaseValue}
2024-12-11 15:32:14 +08:00
searchsAd={<div>{form.render()}</div>}
2023-03-14 09:11:54 +08:00
/>
);
}
}