We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在项目中用到了redux。结果发现数据变了,但是cell没有跟随数据变化,一直是第一次绘制出来的,后来在您的源代码中修改了代码就可以了,代码如下: componentWillReceiveProps (nextProps) { let sortable = nextProps.sortable if (sortable !== this.props.sortable) { this.setState({ sortable, }) } const dataSource = nextProps.dataSource; if(dataSource && (dataSource !== this.props.dataSource)){ this.setState({dataSource:dataSource}); } } 此问题困扰了我两天,麻烦还请您看看有什么问题,我是这样修改后就可以正确显示了。如果没有问题您可以修改下
componentWillReceiveProps (nextProps) { let sortable = nextProps.sortable if (sortable !== this.props.sortable) { this.setState({ sortable, }) } const dataSource = nextProps.dataSource; if(dataSource && (dataSource !== this.props.dataSource)){ this.setState({dataSource:dataSource}); } }
The text was updated successfully, but these errors were encountered:
您好,感谢您提出的问题,会尽快予以修正
Sorry, something went wrong.
又发现一个类似问题就是containerHeight属性也需要随着变化,否则行数增加了也只能显示出第一行
No branches or pull requests
在项目中用到了redux。结果发现数据变了,但是cell没有跟随数据变化,一直是第一次绘制出来的,后来在您的源代码中修改了代码就可以了,代码如下:
componentWillReceiveProps (nextProps) { let sortable = nextProps.sortable if (sortable !== this.props.sortable) { this.setState({ sortable, }) } const dataSource = nextProps.dataSource; if(dataSource && (dataSource !== this.props.dataSource)){ this.setState({dataSource:dataSource}); } }
此问题困扰了我两天,麻烦还请您看看有什么问题,我是这样修改后就可以正确显示了。如果没有问题您可以修改下
The text was updated successfully, but these errors were encountered: