update 优化列表分页器位置

This commit is contained in:
2021-05-27 21:17:26 +08:00
parent c023f86f6e
commit 85063864a0
3 changed files with 22 additions and 6 deletions

View File

@@ -25,4 +25,7 @@
}
}
}
>.ant-pagination {
margin: @padding-md 0;
}
}

View File

@@ -125,6 +125,10 @@
}
}
}
.ant-table-pagination {
float: none;
}
}
.yo-table-actions {

View File

@@ -99,12 +99,21 @@ export default {
</a-button-group>
</div>
</div>
<a-list {...{ props, on, scopedSlots: { ...this.$scopedSlots } }}>
{Object.keys(this.$slots).map((name) => (
<template slot={name}>{this.$slots[name]}</template>
))}
</a-list>
<a-pagination size="small" {... { props: this.pagination }} onChange={this.onListChange} onShowSizeChange={this.onListChange} />
<div class="yo-list">
<a-list {...{ props, on, scopedSlots: { ...this.$scopedSlots } }}>
{Object.keys(this.$slots).map((name) => (
<template slot={name}>{this.$slots[name]}</template>
))}
</a-list>
{
!!this.data && !!this.data.length && <a-pagination
size="small"
{... { props: this.pagination }}
onChange={this.onListChange}
onShowSizeChange={this.onListChange}
/>
}
</div>
</section>
)
},