thêm FormSearch trong map
This commit is contained in:
@@ -290,12 +290,13 @@ export default function Slider({
|
||||
{Object.entries(marks).map(([key, label]) => {
|
||||
const val = Number(key);
|
||||
const pos = getPositionFromValue(val);
|
||||
const leftPos = Math.max(0, Math.min(pos - 10, width - 40));
|
||||
return (
|
||||
<Text
|
||||
key={key}
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: pos - 10,
|
||||
left: leftPos,
|
||||
fontSize: 12,
|
||||
color: "#666",
|
||||
textAlign: "center",
|
||||
|
||||
Reference in New Issue
Block a user