mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
update count render, ref #983
This commit is contained in:
parent
e044041305
commit
6f20df5d5b
@ -37,6 +37,9 @@ class AntScrollNumber extends React.Component {
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if ('count' in nextProps) {
|
||||
if (this.state.count === nextProps.count) {
|
||||
return;
|
||||
}
|
||||
this.lastCount = this.state.count;
|
||||
// 复原数字初始位置
|
||||
this.setState({
|
||||
|
Loading…
Reference in New Issue
Block a user