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>;
|
||||
let haveRightWrapper = false;
|
||||
|
||||
template.children = template.children || [];
|
||||
rightWrapper.children = rightWrapper.children || [];
|
||||
components.forEach(compo => {
|
||||
if (compo === '->') {
|
||||
haveRightWrapper = true;
|
||||
|
|
Loading…
Reference in New Issue