Skip to content

Commit c07e3f0

Browse files
Ludiditangjinzhou
andauthored
fix: Slider tipFormatter types (#4954)
* Update index.tsx * Update index.tsx * Update index.tsx Co-authored-by: tangjinzhou <[email protected]>
1 parent 79ae800 commit c07e3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/slider/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const sliderProps = () => ({
5555
disabled: { type: Boolean, default: undefined },
5656
vertical: { type: Boolean, default: undefined },
5757
tipFormatter: {
58-
type: Function as PropType<(value?: number) => any>,
58+
type: [Function, Object] as PropType<((value?: number) => any) | null>,
5959
default: defaultTipFormatter,
6060
},
6161
tooltipVisible: { type: Boolean, default: undefined },

0 commit comments

Comments
 (0)