mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
fix: sliderProps typeScript define (#27033)
* fix: sliderProps typeScript define * update rc-slider * update * update
This commit is contained in:
parent
df8c53d145
commit
b173b5b8f5
@ -42,8 +42,6 @@ export interface SliderBaseProps {
|
||||
className?: string;
|
||||
id?: string;
|
||||
style?: React.CSSProperties;
|
||||
handleStyle?: React.CSSProperties;
|
||||
trackStyle?: React.CSSProperties;
|
||||
tooltipVisible?: boolean;
|
||||
tooltipPlacement?: TooltipPlacement;
|
||||
getTooltipPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
|
||||
@ -56,6 +54,8 @@ export interface SliderSingleProps extends SliderBaseProps {
|
||||
defaultValue?: number;
|
||||
onChange?: (value: number) => void;
|
||||
onAfterChange?: (value: number) => void;
|
||||
handleStyle?: React.CSSProperties;
|
||||
trackStyle?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export interface SliderRangeProps extends SliderBaseProps {
|
||||
@ -64,6 +64,8 @@ export interface SliderRangeProps extends SliderBaseProps {
|
||||
defaultValue?: [number, number];
|
||||
onChange?: (value: [number, number]) => void;
|
||||
onAfterChange?: (value: [number, number]) => void;
|
||||
handleStyle?: React.CSSProperties[];
|
||||
trackStyle?: React.CSSProperties[];
|
||||
}
|
||||
|
||||
export type Visibles = { [index: number]: boolean };
|
||||
|
@ -137,7 +137,7 @@
|
||||
"rc-rate": "~2.8.2",
|
||||
"rc-resize-observer": "^0.2.3",
|
||||
"rc-select": "~11.4.0",
|
||||
"rc-slider": "~9.5.1",
|
||||
"rc-slider": "~9.5.2",
|
||||
"rc-steps": "~4.1.0",
|
||||
"rc-switch": "~3.2.0",
|
||||
"rc-table": "~7.9.2",
|
||||
|
Loading…
Reference in New Issue
Block a user