mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fixed typedef of Slider value (#24652)
This commit is contained in:
parent
d8482546ed
commit
4347eda0fe
@ -19,7 +19,7 @@ export interface SliderMarks {
|
||||
export type SliderValue = number | [number, number];
|
||||
|
||||
interface HandleGeneratorInfo {
|
||||
value: number;
|
||||
value?: number;
|
||||
dragging: boolean;
|
||||
index: number;
|
||||
rest: any[];
|
||||
@ -48,7 +48,7 @@ export interface SliderProps {
|
||||
vertical?: boolean;
|
||||
onChange?: (value: SliderValue) => void;
|
||||
onAfterChange?: (value: SliderValue) => void;
|
||||
tipFormatter?: null | ((value: number) => React.ReactNode);
|
||||
tipFormatter?: null | ((value?: number) => React.ReactNode);
|
||||
className?: string;
|
||||
id?: string;
|
||||
style?: React.CSSProperties;
|
||||
|
Loading…
Reference in New Issue
Block a user