Compare commits

..
4 Commits
Author SHA1 Message Date
Benjy Cui 18ddbb796c bump 5.2.0 2016-10-31 11:24:55 +08:00
Benjy Cui 051fef6603 feat: make clickable area larger, ref: #160 2016-10-31 11:23:41 +08:00
Benjy Cui b325daef48 bump 5.1.3 2016-10-21 16:44:58 +08:00
Benjy Cui db47c3d27d chore: improve UX, close: #160 2016-10-21 16:44:32 +08:00
4 changed files with 23 additions and 9 deletions
+20 -7
View File
@@ -23,13 +23,19 @@
.@{prefixClass} {
position: relative;
height: 4px;
height: 14px;
padding: 5px 0;
width: 100%;
border-radius: @border-radius-base;
background-color: #e9e9e9;
.borderBox();
&-rail {
position: absolute;
width: 100%;
background-color: #e9e9e9;
height: 4px;
}
&-track {
position: absolute;
left: 0;
@@ -62,7 +68,7 @@
&-mark {
position: absolute;
top: 10px;
top: 18px;
left: 0;
width: 100%;
font-size: 12px;
@@ -130,23 +136,30 @@
}
.@{prefixClass}-vertical {
width: 4px;
width: 14px;
height: 100%;
padding: 0 5px;
.@{prefixClass} {
&-rail {
height: 100%;
width: 4px;
}
&-track {
left: 5px;
bottom: 0;
width: 4px;
}
&-handle {
position: absolute;
margin-left: -5px;
margin-bottom: -7px;
}
&-mark {
top: 0;
left: 10px;
left: 18px;
height: 100%;
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "rc-slider",
"version": "5.1.2",
"version": "5.2.0",
"description": "slider ui component for react",
"keywords": [
"react",
+1 -1
View File
@@ -18,7 +18,7 @@ const Marks = ({ className, vertical, marks, included, upperBound, lowerBound, m
const bottomStyle = {
// height: markWidth + '%',
marginBottom: '-200%',
marginBottom: '-50%',
bottom: `${(point - min) / range * 100}%`,
};
+1
View File
@@ -518,6 +518,7 @@ class Slider extends React.Component {
onTouchStart={disabled ? noop : this.onTouchStart.bind(this)}
onMouseDown={disabled ? noop : this.onMouseDown.bind(this)}
>
<div className={`${prefixCls}-rail`} />
{tracks}
<Steps prefixCls={prefixCls} vertical = {vertical} marks={marks} dots={dots} step={step}
included={isIncluded} lowerBound={bounds[0]}