Skip to content

Commit 651e936

Browse files
committed
task/169: [Task] Pagination: fix a potential exception with about vue template
1 parent 9ff9dea commit 651e936

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/v-pagination/src/pagination.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ export default{
7979
'jumper': <jumper onJumpPageHandler={this.jumpPageHandler}></jumper>
8080
}
8181

82+
// https://github.com/ElemeFE/element/issues/10033
83+
// https://github.com/ElemeFE/element/issues/9587
84+
template.children = template.children || [];
85+
8286
this.layout.forEach(item => {
8387
template.children.push(comps[item]);
8488
})

0 commit comments

Comments
 (0)