mirror of
https://github.com/wassname/slider.git
synced 2026-09-11 12:42:49 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
806cb06d76 | ||
|
|
73b9953084 |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "rc-slider",
|
"name": "rc-slider",
|
||||||
"version": "3.5.0",
|
"version": "3.5.1",
|
||||||
"description": "slider ui component for react",
|
"description": "slider ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|||||||
+5
-2
@@ -16,8 +16,11 @@ const Marks = ({className, marks, included, upperBound, lowerBound, max, min}) =
|
|||||||
[className + '-text-active']: isActived,
|
[className + '-text-active']: isActived,
|
||||||
});
|
});
|
||||||
|
|
||||||
const style = { width: markWidth + '%' };
|
const style = {
|
||||||
style.left = (point - min) / range * 100 - markWidth / 2 + '%';
|
width: markWidth + '%',
|
||||||
|
marginLeft: -markWidth / 2 + '%',
|
||||||
|
};
|
||||||
|
style.left = (point - min) / range * 100 + '%';
|
||||||
|
|
||||||
const markPoint = marks[point];
|
const markPoint = marks[point];
|
||||||
const markPointIsObject = typeof markPoint === 'object' &&
|
const markPointIsObject = typeof markPoint === 'object' &&
|
||||||
|
|||||||
Reference in New Issue
Block a user