This commit is contained in:
2021-05-28 19:17:48 +08:00
5 changed files with 37 additions and 16 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>
)
},