commit
25d9cb96c5
@ -1569,9 +1569,12 @@ export default {
|
|||||||
this.clientHeight / (clientWidth / this.gridColumnNum)
|
this.clientHeight / (clientWidth / this.gridColumnNum)
|
||||||
)
|
)
|
||||||
|
|
||||||
if (this.finished) {
|
if (this.finished && this.pagination.pageIndex === 1) {
|
||||||
let actualRows = Math.ceil(this.fileList.length / this.gridColumnNum)
|
const actualRows = Math.ceil(this.fileList.length / this.gridColumnNum)
|
||||||
this.gridMinHeight = actualRows * this.gridItemWidth + (actualRows - 1) * 10
|
const gridMinHeight = actualRows * this.gridItemWidth + (actualRows - 1) * 10
|
||||||
|
if (gridMinHeight < this.clientHeight) {
|
||||||
|
this.gridMinHeight = gridMinHeight
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const lastPageSize = this.pagination.pageSize
|
const lastPageSize = this.pagination.pageSize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user