fix issue 14663 - slot in ElPagination is not updating

pull/14711/head
Hao Li 2019-03-14 14:26:18 +08:00
parent b7ee84f39a
commit 88c7d3e34f
1 changed files with 1 additions and 10 deletions

View File

@ -77,7 +77,7 @@ export default {
pager: <pager currentPage={ this.internalCurrentPage } pageCount={ this.internalPageCount } pagerCount={ this.pagerCount } on-change={ this.handleCurrentChange } disabled={ this.disabled }></pager>, pager: <pager currentPage={ this.internalCurrentPage } pageCount={ this.internalPageCount } pagerCount={ this.pagerCount } on-change={ this.handleCurrentChange } disabled={ this.disabled }></pager>,
next: <next></next>, next: <next></next>,
sizes: <sizes pageSizes={ this.pageSizes }></sizes>, sizes: <sizes pageSizes={ this.pageSizes }></sizes>,
slot: <my-slot></my-slot>, slot: <slot>{ this.$slots.default ? this.$slots.default : '' }</slot>,
total: <total></total> total: <total></total>
}; };
const components = layout.split(',').map((item) => item.trim()); const components = layout.split(',').map((item) => item.trim());
@ -107,15 +107,6 @@ export default {
}, },
components: { components: {
MySlot: {
render(h) {
return (
this.$parent.$slots.default
? this.$parent.$slots.default[0]
: ''
);
}
},
Prev: { Prev: {
render(h) { render(h) {
return ( return (