Skip to content

Commit 986fe92

Browse files
committed
Build
1 parent d106a4d commit 986fe92

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

dist/index.js

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)