king
2023-08-16 7e46c386be5c2cfc20af3936d26839ad3fce44b0
src/components/tabview/index.jsx
@@ -1,6 +1,4 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import { fromJS } from 'immutable'
import {Tabs, BackTop, notification} from 'antd'
import { RedoOutlined, CloseOutlined } from '@ant-design/icons'
@@ -24,10 +22,6 @@
moment.locale('zh-cn')
class TabViews extends Component {
  static propTpyes = {
    collapse: PropTypes.bool
  }
  state = {
    activeId: '',
    tabviews: [],
@@ -245,7 +239,7 @@
    const { tabviews, activeId } = this.state
    return (
      <section id="mk-tabgroup-wrap" className={'mk-tabview-wrap' + (this.props.collapse ? ' collapsed' : '')}>
      <section id="mk-tabgroup-wrap" className="mk-tabview-wrap">
        <div className="content-header">
          {tabviews.length > 0 &&
            <Tabs activeKey={activeId}>
@@ -284,14 +278,4 @@
  }
}
const mapStateToProps = (state) => {
  return {
    collapse: state.collapse,
  }
}
const mapDispatchToProps = (dispatch) => {
  return {}
}
export default connect(mapStateToProps, mapDispatchToProps)(TabViews)
export default TabViews