Skip to content

Commit 6fad9ea

Browse files
committed
fix: slider tipFormatter error #4954
1 parent 5265440 commit 6fad9ea

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
@@ -56,7 +56,7 @@ export const sliderProps = () => ({
5656
vertical: { type: Boolean, default: undefined },
5757
tipFormatter: {
5858
type: [Function, Object] as PropType<((value?: number) => any) | null>,
59-
default: defaultTipFormatter,
59+
default: () => defaultTipFormatter,
6060
},
6161
tooltipVisible: { type: Boolean, default: undefined },
6262
tooltipPlacement: { type: String as PropType<TooltipPlacement> },

0 commit comments

Comments
 (0)