Pagination: fix slot (#1846)

This commit is contained in:
杨奕
2016-12-20 11:20:57 +08:00
committed by baiyaaaaa
parent 4fa158eb32
commit ead186153f
4 changed files with 36 additions and 3 deletions

View File

@@ -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 (