Skip to content

Conversation

@superwf
Copy link

@superwf superwf commented Dec 12, 2016

some times the anime should not play
such as when pagination, no item added or removed,
prev page items dispear, next page items show
the anime will make an confuse like the prev page items were removed
and the next page items were added

some times the anime should not play
such as when pagination, no item added or removed,
prev page items dispear, next page items show
the anime will make an confuse like the prev page items were removed
and the next page items were added
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 444166f on superwf:master into ** on react-component:master**.

@jljsj33
Copy link
Member

jljsj33 commented Dec 12, 2016

不要动画时可以直接替换标签。。。。
table 动画里是这样处理的。。。https://motion.ant.design/exhibition/demo/table-enter-leave;

getBodyWrapper = (body) => {
    // 切换分页去除动画;
    if (this.currentPage !== this.newPage) {
      this.currentPage = this.newPage;
      return body;
    }
    return (<TweenOneGroup
      component="tbody"
      className={body.props.className}
      enter={this.enterAnim}
      leave={this.leaveAnim}
      appear={false}
    >
      {body.props.children}
    </TweenOneGroup>);
  }

@jljsj33
Copy link
Member

jljsj33 commented Dec 12, 2016

额。。好吧,,这个好像没 appear....

@superwf
Copy link
Author

superwf commented Dec 14, 2016

恩是没有appear,加个呗

@jljsj33
Copy link
Member

jljsj33 commented Dec 20, 2016

@superwf 可发PR??参考 animate

@superwf
Copy link
Author

superwf commented Dec 21, 2016

恩,我看看弄弄

参照animation, 修改了appear的检测点, 使onEnd在重新加载数据时能被调用
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 3c37aa0 on superwf:master into ** on react-component:master**.

@jljsj33
Copy link
Member

jljsj33 commented Dec 21, 2016

额。。。。

@jljsj33
Copy link
Member

jljsj33 commented Dec 21, 2016

0.13.0

@jljsj33 jljsj33 closed this Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants