Pagination: fix a potential exception with new deps

This commit is contained in:
Leopoldthecoder
2018-03-08 12:23:04 +08:00
committed by 杨奕
parent 09cc5be758
commit b3062de0d2

View File

@@ -74,6 +74,8 @@ export default {
const rightWrapper = <div class="el-pagination__rightwrapper"></div>;
let haveRightWrapper = false;
template.children = template.children || [];
rightWrapper.children = rightWrapper.children || [];
components.forEach(compo => {
if (compo === '->') {
haveRightWrapper = true;