oeeCommonListTab.js
758 Bytes
import React from 'react';
import { connect } from 'dva';
import OeeCommonListTabComponent from '../../../oee/common/oeeCommonListTab';
function OeeCommonList({
dispatch, app, content, sModelsId, onSaveCurrentState, formRoute, sModelsType,
}) {
const CommonListTabComponentProps = {
app,
content,
dispatch,
onAddPane: getAddPane, /* 增加标签 */
sModelsId,
onSaveCurrentState,
formRoute,
sModelsType,
};
function getAddPane(pane) {
/* 增加标签 */
dispatch({ type: 'app/addPane', payload: { pane } });
}
return (
<OeeCommonListTabComponent {...CommonListTabComponentProps} style={{ height: '100%' }} />
);
}
export default connect(({ app, content }) =>
({ app, content }))(OeeCommonList);