Repository: ant-design/ant-design-mobile (ts)

Issue:
slider拖动轴无法滑动到最大值
### Version of antd-mobile

5.24.1

### Operating system and its version

_No response_

### Browser and its version

_No response_

### Sandbox to reproduce

_No response_

### What happened?

在官方网站https://mobile.ant.design/zh/components/slider/ 也可以复现，无法滑动到最大值

### Relevant log output

_No response_

Pull request description:
fix(Slider): points should contain max
close #5750 

Patch:
diff --git a/src/components/slider/slider.tsx b/src/components/slider/slider.tsx
index 81349eff4..2f89891e4 100644
--- a/src/components/slider/slider.tsx
+++ b/src/components/slider/slider.tsx
@@ -109,7 +109,7 @@ export const Slider: FC<SliderProps> = p => {
         .sort((a, b) => a - b)
     } else {
       const points: number[] = []
-      for (let i = Big(min); i.lt(max); i = i.plus(step)) {
+      for (let i = Big(min); i.lte(max); i = i.plus(step)) {
         points.push(i.toNumber())
       }
       return points


Test patch:
diff --git a/src/components/slider/tests/slider.test.tsx b/src/components/slider/tests/slider.test.tsx
index 80b5dfc89..5cc70cb70 100644
--- a/src/components/slider/tests/slider.test.tsx
+++ b/src/components/slider/tests/slider.test.tsx
@@ -178,6 +178,13 @@ describe('Slider', () => {
     expect($$(`.${classPrefix}-fill`)[0]).toHaveStyle('width: 60%')
   })
 
+  test('slide to max should be work', () => {
+    const onAfterChange = jest.fn()
+    render(<Slider onAfterChange={onAfterChange} />)
+    drag(screen.getByRole('slider'), 100)
+    expect(onAfterChange).toBeCalledWith(100)
+  })
+
   describe('step is a decimal', () => {
     beforeAll(() => {
       Object.defineProperty(HTMLElement.prototype, 'offsetWidth', {