diff --git a/components/slider/demo/input-number.md b/components/slider/demo/input-number.md
index d5f3407458..cd9d8c30a7 100644
--- a/components/slider/demo/input-number.md
+++ b/components/slider/demo/input-number.md
@@ -9,7 +9,7 @@
````jsx
import { Slider, InputNumber } from 'antd';
-const Test = React.createClass({
+const IntegerStep = React.createClass({
getInitialState() {
return {
inputValue: 1
@@ -35,5 +35,34 @@ const Test = React.createClass({
}
});
-ReactDOM.render(, document.getElementById('components-slider-demo-input-number'));
+const DecimalStep = React.createClass({
+ getInitialState() {
+ return {
+ inputValue: 0
+ };
+ },
+ onChange(value) {
+ this.setState({
+ inputValue: value
+ });
+ },
+ render() {
+ return (
+
+ );
+ }
+});
+
+ReactDOM.render(
+
+
+
, document.getElementById('components-slider-demo-input-number'));
````
diff --git a/package.json b/package.json
index f77ad129b1..c93028f047 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
"rc-queue-anim": "~0.11.2",
"rc-radio": "~2.0.0",
"rc-select": "~5.1.2",
- "rc-slider": "~3.1.0",
+ "rc-slider": "~3.1.2",
"rc-steps": "~1.4.1",
"rc-switch": "~1.3.1",
"rc-table": "~3.6.1",