fix: Slider tipFormatter types (#4954)

* Update index.tsx

* Update index.tsx

* Update index.tsx

Co-authored-by: tangjinzhou <415800467@qq.com>
pull/4977/head
ludd 2021-12-02 21:42:48 +08:00 committed by GitHub
parent 79ae8006a8
commit c07e3f0831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export const sliderProps = () => ({
disabled: { type: Boolean, default: undefined },
vertical: { type: Boolean, default: undefined },
tipFormatter: {
type: Function as PropType<(value?: number) => any>,
type: [Function, Object] as PropType<((value?: number) => any) | null>,
default: defaultTipFormatter,
},
tooltipVisible: { type: Boolean, default: undefined },