mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 19:19:26 +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];
|
export type SliderValue = number | [number, number];
|
||||||
|
|
||||||
interface HandleGeneratorInfo {
|
interface HandleGeneratorInfo {
|
||||||
value: number;
|
value?: number;
|
||||||
dragging: boolean;
|
dragging: boolean;
|
||||||
index: number;
|
index: number;
|
||||||
rest: any[];
|
rest: any[];
|
||||||
@ -48,7 +48,7 @@ export interface SliderProps {
|
|||||||
vertical?: boolean;
|
vertical?: boolean;
|
||||||
onChange?: (value: SliderValue) => void;
|
onChange?: (value: SliderValue) => void;
|
||||||
onAfterChange?: (value: SliderValue) => void;
|
onAfterChange?: (value: SliderValue) => void;
|
||||||
tipFormatter?: null | ((value: number) => React.ReactNode);
|
tipFormatter?: null | ((value?: number) => React.ReactNode);
|
||||||
className?: string;
|
className?: string;
|
||||||
id?: string;
|
id?: string;
|
||||||
style?: React.CSSProperties;
|
style?: React.CSSProperties;
|
||||||
|
Loading…
Reference in New Issue
Block a user