mirror of
https://github.com/wassname/slider.git
synced 2026-09-09 11:35:22 +08:00
put marks in correct order so one can style it
This commit is contained in:
+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