mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Add style prop CommonApiProps
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
This package contains type definitions for rc-slider (https://github.com/react-component/slider).
|
||||
|
||||
Additional Details
|
||||
* Last updated: Tue, 24 Oct 2017
|
||||
* Last updated: Fri, 15 Dec 2017
|
||||
* Dependencies: react
|
||||
* Global values: none
|
||||
|
||||
|
||||
6
types/rc-slider/index.d.ts
vendored
6
types/rc-slider/index.d.ts
vendored
@@ -3,6 +3,7 @@
|
||||
// Definitions by: Marcinkus Mantas <https://github.com/mantasmarcinkus>
|
||||
// Alexander Mattoni <https://github.com/mattoni>
|
||||
// Austin Turner <https://github.com/paustint>
|
||||
// Jacob Froman <https://github.com/j-fro>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -91,6 +92,11 @@ export interface CommonApiProps {
|
||||
*/
|
||||
tipFormatter?: ((value: any) => any | undefined) | null;
|
||||
|
||||
/**
|
||||
* The style used for the background and container. (both for slider(Object) and range(Array of Object), the array will be used for mutli handle follow element order)
|
||||
*/
|
||||
style?: React.CSSProperties[] | React.CSSProperties;
|
||||
|
||||
/**
|
||||
* The style used for handle. (both for slider(Object) and range(Array of Object), the array will be used for mutli handle follow element order)
|
||||
*/
|
||||
|
||||
@@ -35,6 +35,7 @@ ReactDOM.render(
|
||||
onAfterChange={() => { }}
|
||||
defaultValue={0.1}
|
||||
value={0.1}
|
||||
style={{backgroundColor: 'plum'}}
|
||||
dotStyle={{backgroundColor: 'antiquewhite'}}
|
||||
activeDotStyle={{backgroundColor: 'antiquewhite'}}
|
||||
/>,
|
||||
|
||||
Reference in New Issue
Block a user