File tree Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Original file line number Diff line number Diff line change @@ -509,16 +509,20 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
509
509
var _this$delta = this . delta ,
510
510
paddingTop = _this$delta . paddingTop ,
511
511
paddingBottom = _this$delta . paddingBottom ;
512
+ var renderList = h ( this . wtag , {
513
+ 'style' : {
514
+ 'display' : 'block' ,
515
+ 'padding-top' : paddingTop + 'px' ,
516
+ 'padding-bottom' : paddingBottom + 'px'
517
+ } ,
518
+ 'class' : this . wclass ,
519
+ 'attrs' : {
520
+ 'role' : 'group'
521
+ }
522
+ } , list ) ; // page mode just render list, no wraper.
512
523
513
524
if ( this . pagemode ) {
514
- return h ( this . wtag , {
515
- 'style' : {
516
- 'display' : 'block' ,
517
- 'padding-top' : paddingTop + 'px' ,
518
- 'padding-bottom' : paddingBottom + 'px'
519
- } ,
520
- 'class' : this . wclass
521
- } , list ) ;
525
+ return renderList ;
522
526
}
523
527
524
528
return h ( this . rtag , {
@@ -531,17 +535,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
531
535
'on' : {
532
536
'&scroll' : dbc ? _debounce ( this . onScroll . bind ( this ) , dbc ) : this . onScroll
533
537
}
534
- } , [ h ( this . wtag , {
535
- 'style' : {
536
- 'display' : 'block' ,
537
- 'padding-top' : paddingTop + 'px' ,
538
- 'padding-bottom' : paddingBottom + 'px'
539
- } ,
540
- 'class' : this . wclass ,
541
- 'attrs' : {
542
- 'role' : 'group'
543
- }
544
- } , list ) ] ) ;
538
+ } , [ renderList ] ) ;
545
539
}
546
540
} ) ;
547
541
} ) ;
You can’t perform that action at this time.
0 commit comments