@@ -48,18 +48,16 @@ const IconSlider = React.createClass({
},
});
-ReactDOM.render(
-
-, mountNode);
+ReactDOM.render(
, mountNode);
````
````css
-.iconWrapper {
+.icon-wrapper {
position: relative;
padding: 0px 30px;
}
-.iconWrapper .anticon {
+.icon-wrapper .anticon {
position: absolute;
top: -3px;
width: 16px;
@@ -69,11 +67,11 @@ ReactDOM.render(
color: #ccc;
}
-.iconWrapper .anticon:first-child {
+.icon-wrapper .anticon:first-child {
left: 0;
}
-.iconWrapper .anticon:last-child {
+.icon-wrapper .anticon:last-child {
right: 0;
}
diff --git a/components/slider/demo/input-number.md b/components/slider/demo/input-number.md
index 85c3a85ef..76e5adc21 100644
--- a/components/slider/demo/input-number.md
+++ b/components/slider/demo/input-number.md
@@ -1,8 +1,8 @@
---
order: 1
-title:
+title:
zh-CN: 带输入框的滑块
- en-US: Slider with input field
+ en-US: Slider with InputNumber
---
## zh-CN
@@ -34,7 +34,7 @@ const IntegerStep = React.createClass({
-
@@ -61,7 +61,7 @@ const DecimalStep = React.createClass({
-
@@ -70,8 +70,11 @@ const DecimalStep = React.createClass({
},
});
-ReactDOM.render(
-
-
-
, mountNode);
+ReactDOM.render(
+
+
+
+
,
+ mountNode
+);
````
diff --git a/components/slider/demo/mark.md b/components/slider/demo/mark.md
index 197d20262..f0f14d091 100644
--- a/components/slider/demo/mark.md
+++ b/components/slider/demo/mark.md
@@ -1,7 +1,7 @@
---
order: 3
-title:
- zh-CN: 分段式滑块
+title:
+ zh-CN: 带标签的滑块
en-US: Graduated slider
---
@@ -33,15 +33,16 @@ const marks = {
ReactDOM.render(
-
`included=true`
+
included=true
-
`included=false`
+
included=false
-
`marks && step`
+
marks && step
-
`step=null`
+
step=null
-
-, mountNode);
+
,
+ mountNode
+);
````
diff --git a/components/slider/demo/tip-formatter.md b/components/slider/demo/tip-formatter.md
index 8fac16fa7..fba9817d2 100644
--- a/components/slider/demo/tip-formatter.md
+++ b/components/slider/demo/tip-formatter.md
@@ -20,8 +20,11 @@ function formatter(value) {
return `${value}%`;
}
-ReactDOM.render(