@@ -89,7 +89,7 @@ function (_React$Component) {
89
89
( 0 , _scrollIntoView . default ) ( e . target , _this . getListViewBody ( ) ) ;
90
90
}
91
91
92
- if ( onItemClick ) onItemClick ( item ) ;
92
+ if ( onItemClick ) onItemClick ( item , e ) ;
93
93
} ) ;
94
94
( 0 , _defineProperty2 . default ) ( ( 0 , _assertThisInitialized2 . default ) ( ( 0 , _assertThisInitialized2 . default ) ( _this ) ) , "onItemGroupClick" , function ( item , e ) {
95
95
var onItemGroupClick = _this . props . onItemGroupClick ;
@@ -98,7 +98,7 @@ function (_React$Component) {
98
98
( 0 , _scrollIntoView . default ) ( e . target , _this . getListViewBody ( ) ) ;
99
99
}
100
100
101
- if ( onItemGroupClick ) onItemGroupClick ( item ) ;
101
+ if ( onItemGroupClick ) onItemGroupClick ( item , e ) ;
102
102
} ) ;
103
103
( 0 , _defineProperty2 . default ) ( ( 0 , _assertThisInitialized2 . default ) ( ( 0 , _assertThisInitialized2 . default ) ( _this ) ) , "onItemSelect" , function ( item , el ) {
104
104
var valueField = _this . props . valueField ;
@@ -109,7 +109,6 @@ function (_React$Component) {
109
109
var _this$props = _this . props ,
110
110
multiple = _this$props . multiple ,
111
111
onChange = _this$props . onChange ,
112
- labelInValue = _this$props . labelInValue ,
113
112
valueField = _this$props . valueField ;
114
113
var selectedValue = _this . state . selectedValue ;
115
114
if ( ! multiple ) return ;
@@ -514,11 +513,11 @@ function (_React$Component) {
514
513
ref : this . saveListViewHeader ,
515
514
className : "" . concat ( prefixCls , "-header" ) ,
516
515
style : headerStyle
517
- } , renderHeader ( ) ) : null , this . renderMenu ( ) , renderFooter ? _react . default . createElement ( FooterWrapperComponent , {
516
+ } , renderHeader ( this . props ) ) : null , this . renderMenu ( ) , renderFooter ? _react . default . createElement ( FooterWrapperComponent , {
518
517
ref : this . saveListViewFooter ,
519
518
className : "" . concat ( prefixCls , "-footer" ) ,
520
519
style : footerStyle
521
- } , renderFooter ( ) ) : null ) ;
520
+ } , renderFooter ( this . props ) ) : null ) ;
522
521
}
523
522
} ] , [ {
524
523
key : "getDerivedStateFromProps" ,
@@ -546,27 +545,27 @@ function (_React$Component) {
546
545
547
546
exports . default = ListBox ;
548
547
( 0 , _defineProperty2 . default ) ( ListBox , "propTypes" , {
548
+ prefixCls : _propTypes . default . string ,
549
549
className : _propTypes . default . string ,
550
550
style : _propTypes . default . object ,
551
- headerStyle : _propTypes . default . object ,
552
- footerStyle : _propTypes . default . object ,
553
- bodyStyle : _propTypes . default . object ,
554
- prefixCls : _propTypes . default . string ,
551
+ width : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number ] ) ,
552
+ height : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number ] ) ,
553
+ tabIndex : _propTypes . default . number ,
554
+ multiple : _propTypes . default . bool ,
555
+ defaultValue : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number , _propTypes . default . array ] ) ,
556
+ value : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number , _propTypes . default . array ] ) ,
557
+ disabled : _propTypes . default . bool ,
558
+ autoFocus : _propTypes . default . bool ,
555
559
valueField : _propTypes . default . string ,
556
560
labelField : _propTypes . default . string ,
557
561
childrenField : _propTypes . default . string ,
562
+ headerStyle : _propTypes . default . object ,
563
+ footerStyle : _propTypes . default . object ,
564
+ bodyStyle : _propTypes . default . object ,
558
565
items : _propTypes . default . array ,
559
566
itemsMap : _propTypes . default . object ,
560
- defaultValue : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number , _propTypes . default . array ] ) ,
561
- value : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number , _propTypes . default . array ] ) ,
562
567
emptyLabel : _propTypes . default . any ,
563
- multiple : _propTypes . default . bool ,
564
- disabled : _propTypes . default . bool ,
565
- autoFocus : _propTypes . default . bool ,
566
- width : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number ] ) ,
567
- height : _propTypes . default . oneOfType ( [ _propTypes . default . string , _propTypes . default . number ] ) ,
568
568
labelInValue : _propTypes . default . bool ,
569
- tabIndex : _propTypes . default . number ,
570
569
enableDownUpSelect : _propTypes . default . bool ,
571
570
fixListBodyHeightOnIE : _propTypes . default . bool ,
572
571
onItemClick : _propTypes . default . func ,
0 commit comments