mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-16 11:44:01 +08:00
Pagination: fix slot (#1846)
This commit is contained in:
@@ -55,7 +55,7 @@ export default {
|
||||
pager: <pager currentPage={ this.internalCurrentPage } pageCount={ this.internalPageCount } on-change={ this.handleCurrentChange }></pager>,
|
||||
next: <next></next>,
|
||||
sizes: <sizes pageSizes={ this.pageSizes }></sizes>,
|
||||
slot: <slot></slot>,
|
||||
slot: <my-slot></my-slot>,
|
||||
total: <total></total>
|
||||
};
|
||||
const components = layout.split(',').map((item) => item.trim());
|
||||
@@ -87,6 +87,15 @@ export default {
|
||||
},
|
||||
|
||||
components: {
|
||||
MySlot: {
|
||||
render(h) {
|
||||
return (
|
||||
this.$parent.$slots.default
|
||||
? this.$parent.$slots.default[0]
|
||||
: ''
|
||||
);
|
||||
}
|
||||
},
|
||||
Prev: {
|
||||
render(h) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user