From a834a9f83e5c9ff99214e1d2879313af8472ddf7 Mon Sep 17 00:00:00 2001 From: jljsj Date: Fri, 20 Nov 2015 15:09:28 +0800 Subject: [PATCH] update badge anim demo --- components/badge/demo/change.md | 6 +++--- components/badge/index.jsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/badge/demo/change.md b/components/badge/demo/change.md index 1d6f75e706..4ce034bdab 100644 --- a/components/badge/demo/change.md +++ b/components/badge/demo/change.md @@ -13,16 +13,16 @@ const ButtonGroup = Button.Group; const Test = React.createClass({ getInitialState() { return { - count: 691, + count: 5, show: true, }; }, increase() { - const count = this.state.count + 114; + const count = this.state.count + 1; this.setState({ count }); }, decline() { - let count = this.state.count - 121; + let count = this.state.count - 1; if (count < 0) { count = 0; } diff --git a/components/badge/index.jsx b/components/badge/index.jsx index 7d31a37a0c..0057221ed8 100644 --- a/components/badge/index.jsx +++ b/components/badge/index.jsx @@ -11,7 +11,7 @@ class AntBadge extends React.Component { let { count, prefixCls } = this.props; const dot = this.props.dot; - //count = count >= 100 ? '99+' : count; + count = count >= 100 ? '99+' : count; // dot mode don't need count if (dot) {