From 6fad9ead9e0284c93c117ff2bc2056110dca9966 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 3 Dec 2021 22:37:38 +0800 Subject: [PATCH] fix: slider tipFormatter error #4954 --- components/slider/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/slider/index.tsx b/components/slider/index.tsx index da442a732..d4508233d 100644 --- a/components/slider/index.tsx +++ b/components/slider/index.tsx @@ -56,7 +56,7 @@ export const sliderProps = () => ({ vertical: { type: Boolean, default: undefined }, tipFormatter: { type: [Function, Object] as PropType<((value?: number) => any) | null>, - default: defaultTipFormatter, + default: () => defaultTipFormatter, }, tooltipVisible: { type: Boolean, default: undefined }, tooltipPlacement: { type: String as PropType },