mirror of https://github.com/ElemeFE/element
Pagination: fix a potential exception with new deps
parent
09cc5be758
commit
b3062de0d2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue