src/templates/tableshare/editable/index.jsx
@@ -1,4 +1,5 @@ import React, {Component} from 'react' import { is, fromJS } from 'immutable' import { Table, Input, Button, Popconfirm, Form, Icon } from 'antd' import Utils from '@/utils/utils.js' import './index.scss' @@ -211,6 +212,11 @@ UNSAFE_componentWillReceiveProps (nextProps) { if (this.props.type !== nextProps.type) { this.resetColumn(nextProps.type) } else if (!is(fromJS(this.props.data), fromJS(nextProps.data))) { this.setState({ dataSource: nextProps.data, count: nextProps.data.length }) } }