mirror of
https://github.com/wassname/slider.git
synced 2026-10-28 13:30:39 +08:00
put marks in correct order so one can style it
This commit is contained in:
1 parent
2cb0dbce6f
commit
613a2ae213
1 file changed
+1
-1
+1
-1
@@ -8,7 +8,7 @@ const Marks = ({className, marks, included, upperBound, lowerBound, max, min}) =
|
||||
const markWidth = unit * 0.9;
|
||||
|
||||
const range = max - min;
|
||||
const elements = marksKeys.map(parseFloat).map((point) => {
|
||||
const elements = marksKeys.map(parseFloat).sort((a, b) => a - b).map((point) => {
|
||||
const isActived = (!included && point === upperBound) ||
|
||||
(included && point <= upperBound && point >= lowerBound);
|
||||
const markClassName = classNames({
|
||||
|
||||
Reference in new issue
Block a user