fix: sliderProps typeScript define (#27033)

* fix: sliderProps typeScript define

* update rc-slider

* update

* update
This commit is contained in:
xrk 2020-10-09 09:37:26 +08:00 committed by GitHub
parent df8c53d145
commit b173b5b8f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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 };

View File

@ -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",