11import React from 'react' ;
2- import PropTypes from 'prop-types' ;
32import addEventListener from 'rc-util/lib/Dom/addEventListener' ;
43import classNames from 'classnames' ;
54import warning from 'warning' ;
@@ -13,37 +12,6 @@ function noop() {}
1312export default function createSlider ( Component ) {
1413 return class ComponentEnhancer extends Component {
1514 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- } ;
4715
4816 static defaultProps = {
4917 ...Component . defaultProps ,
0 commit comments