mirror of
https://github.com/wassname/slider.git
synced 2026-09-10 12:38:09 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18ddbb796c | ||
|
|
051fef6603 | ||
|
|
b325daef48 | ||
|
|
db47c3d27d |
+20
-7
@@ -23,13 +23,19 @@
|
|||||||
|
|
||||||
.@{prefixClass} {
|
.@{prefixClass} {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 4px;
|
height: 14px;
|
||||||
|
padding: 5px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
background-color: #e9e9e9;
|
|
||||||
|
|
||||||
.borderBox();
|
.borderBox();
|
||||||
|
|
||||||
|
&-rail {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #e9e9e9;
|
||||||
|
height: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
&-track {
|
&-track {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@@ -62,7 +68,7 @@
|
|||||||
|
|
||||||
&-mark {
|
&-mark {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 18px;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@@ -130,23 +136,30 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.@{prefixClass}-vertical {
|
.@{prefixClass}-vertical {
|
||||||
width: 4px;
|
width: 14px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
padding: 0 5px;
|
||||||
|
|
||||||
.@{prefixClass} {
|
.@{prefixClass} {
|
||||||
|
&-rail {
|
||||||
|
height: 100%;
|
||||||
|
width: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
&-track {
|
&-track {
|
||||||
|
left: 5px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 4px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-handle {
|
&-handle {
|
||||||
position: absolute;
|
|
||||||
margin-left: -5px;
|
margin-left: -5px;
|
||||||
margin-bottom: -7px;
|
margin-bottom: -7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-mark {
|
&-mark {
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 10px;
|
left: 18px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rc-slider",
|
"name": "rc-slider",
|
||||||
"version": "5.1.2",
|
"version": "5.2.0",
|
||||||
"description": "slider ui component for react",
|
"description": "slider ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|||||||
+1
-1
@@ -18,7 +18,7 @@ const Marks = ({ className, vertical, marks, included, upperBound, lowerBound, m
|
|||||||
|
|
||||||
const bottomStyle = {
|
const bottomStyle = {
|
||||||
// height: markWidth + '%',
|
// height: markWidth + '%',
|
||||||
marginBottom: '-200%',
|
marginBottom: '-50%',
|
||||||
bottom: `${(point - min) / range * 100}%`,
|
bottom: `${(point - min) / range * 100}%`,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -518,6 +518,7 @@ class Slider extends React.Component {
|
|||||||
onTouchStart={disabled ? noop : this.onTouchStart.bind(this)}
|
onTouchStart={disabled ? noop : this.onTouchStart.bind(this)}
|
||||||
onMouseDown={disabled ? noop : this.onMouseDown.bind(this)}
|
onMouseDown={disabled ? noop : this.onMouseDown.bind(this)}
|
||||||
>
|
>
|
||||||
|
<div className={`${prefixCls}-rail`} />
|
||||||
{tracks}
|
{tracks}
|
||||||
<Steps prefixCls={prefixCls} vertical = {vertical} marks={marks} dots={dots} step={step}
|
<Steps prefixCls={prefixCls} vertical = {vertical} marks={marks} dots={dots} step={step}
|
||||||
included={isIncluded} lowerBound={bounds[0]}
|
included={isIncluded} lowerBound={bounds[0]}
|
||||||
|
|||||||
Reference in New Issue
Block a user