update 优化列表分页器位置
This commit is contained in:
@@ -25,4 +25,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
>.ant-pagination {
|
||||||
|
margin: @padding-md 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,6 +125,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-table-pagination {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.yo-table-actions {
|
.yo-table-actions {
|
||||||
|
|||||||
@@ -99,12 +99,21 @@ export default {
|
|||||||
</a-button-group>
|
</a-button-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="yo-list">
|
||||||
<a-list {...{ props, on, scopedSlots: { ...this.$scopedSlots } }}>
|
<a-list {...{ props, on, scopedSlots: { ...this.$scopedSlots } }}>
|
||||||
{Object.keys(this.$slots).map((name) => (
|
{Object.keys(this.$slots).map((name) => (
|
||||||
<template slot={name}>{this.$slots[name]}</template>
|
<template slot={name}>{this.$slots[name]}</template>
|
||||||
))}
|
))}
|
||||||
</a-list>
|
</a-list>
|
||||||
<a-pagination size="small" {... { props: this.pagination }} onChange={this.onListChange} onShowSizeChange={this.onListChange} />
|
{
|
||||||
|
!!this.data && !!this.data.length && <a-pagination
|
||||||
|
size="small"
|
||||||
|
{... { props: this.pagination }}
|
||||||
|
onChange={this.onListChange}
|
||||||
|
onShowSizeChange={this.onListChange}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user