king
2020-12-21 4f2e4e84fd2cdca1407ac06c1b44319518be39b9
src/menu/components/table/normal-table/columns/index.jsx
@@ -2,7 +2,7 @@
import PropTypes from 'prop-types'
import { is, fromJS } from 'immutable'
import { DndProvider, DragSource, DropTarget } from 'react-dnd'
import { Table, Form, Popover, Icon, Modal, message } from 'antd'
import { Table, Popover, Icon, Modal, message } from 'antd'
import asyncComponent from '@/utils/asyncComponent'
import asyncIconComponent from '@/utils/asyncIconComponent'
@@ -117,7 +117,7 @@
  }))(HeaderCol),
)
class EditableCell extends Component {
class EditableColumnCell extends Component {
  updateCard = (vals, action) => {
    const { column } = this.props
    this.props.upComponent({...column, elements: vals}, action)
@@ -166,7 +166,7 @@
  }
}
class EditTable extends Component {
class NormalTableColumns extends Component {
  static propTpyes = {
    config: PropTypes.object,       // 配置信息
    updatecolumn: PropTypes.func    // 数据变化
@@ -395,7 +395,7 @@
        cell: DragableHeaderCol
      },
      body: {
        cell: EditableCell
        cell: EditableColumnCell
      }
    }
@@ -476,4 +476,4 @@
  }
}
export default Form.create()(EditTable)
export default NormalTableColumns