1
1
import React from 'react' ;
2
- import PropTypes from 'prop-types' ;
3
2
import addEventListener from 'rc-util/lib/Dom/addEventListener' ;
4
3
import classNames from 'classnames' ;
5
4
import warning from 'warning' ;
@@ -13,37 +12,6 @@ function noop() {}
13
12
export default function createSlider ( Component ) {
14
13
return class ComponentEnhancer extends Component {
15
14
static displayName = `ComponentEnhancer(${ Component . displayName } )` ;
16
- static propTypes = {
17
- ...Component . propTypes ,
18
- min : PropTypes . number ,
19
- max : PropTypes . number ,
20
- startPoint : PropTypes . number ,
21
- step : PropTypes . number ,
22
- marks : PropTypes . object ,
23
- included : PropTypes . bool ,
24
- className : PropTypes . string ,
25
- prefixCls : PropTypes . string ,
26
- disabled : PropTypes . bool ,
27
- children : PropTypes . any ,
28
- onBeforeChange : PropTypes . func ,
29
- onChange : PropTypes . func ,
30
- onAfterChange : PropTypes . func ,
31
- handle : PropTypes . func ,
32
- dots : PropTypes . bool ,
33
- vertical : PropTypes . bool ,
34
- style : PropTypes . object ,
35
- reverse : PropTypes . bool ,
36
- minimumTrackStyle : PropTypes . object , // just for compatibility, will be deperecate
37
- maximumTrackStyle : PropTypes . object , // just for compatibility, will be deperecate
38
- handleStyle : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . arrayOf ( PropTypes . object ) ] ) ,
39
- trackStyle : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . arrayOf ( PropTypes . object ) ] ) ,
40
- railStyle : PropTypes . object ,
41
- dotStyle : PropTypes . object ,
42
- activeDotStyle : PropTypes . object ,
43
- autoFocus : PropTypes . bool ,
44
- onFocus : PropTypes . func ,
45
- onBlur : PropTypes . func ,
46
- } ;
47
15
48
16
static defaultProps = {
49
17
...Component . defaultProps ,
0 commit comments