commonListLeft.js 750 Bytes
/**
 * @Date:   2019-05-20T16:45:00+08:00
 * @Last modified time: 2019-06-26T18:40:44+08:00
 */

import React from 'react';
import { connect } from 'umi';
// import CommonListLeft from '../../components/Common/CommonListLeft';
import CommonListLeft from '@/components/Common/CommonListLeft';

function commonList({
  dispatch, app, content,
}) {
  const commonListProps = {
    app,
    content,
    dispatch,
    onAddPane: getAddPane, /* 增加标签6767 */
  };
  function getAddPane(pane) {
    /* 增加标签 */
    dispatch({ type: 'app/addPane', payload: { pane } });
  }
  return (
    <CommonListLeft {...commonListProps} style={{ height: '100%' }} />
  );
}

export default connect(({ app, content }) =>
  ({ app, content }))(commonList);