Pagination: fix a potential exception with new deps

pull/10064/head
Leopoldthecoder 2018-03-08 12:23:04 +08:00 committed by 杨奕
parent 09cc5be758
commit b3062de0d2
1 changed files with 2 additions and 0 deletions

View File

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