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
509509 var _this$delta = this . delta ,
510510 paddingTop = _this$delta . paddingTop ,
511511 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.
512523
513524 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 ;
522526 }
523527
524528 return h ( this . rtag , {
@@ -531,17 +535,7 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterat
531535 'on' : {
532536 '&scroll' : dbc ? _debounce ( this . onScroll . bind ( this ) , dbc ) : this . onScroll
533537 }
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 ] ) ;
545539 }
546540 } ) ;
547541} ) ;
You can’t perform that action at this time.
0 commit comments