commit
9124d7d802
@ -465,8 +465,9 @@
|
|||||||
:border="false"
|
:border="false"
|
||||||
:style="{
|
:style="{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
'max-height': clientHeight - 25 + 'px',
|
maxHeight: clientHeight - 25 + 'px',
|
||||||
rowGap: '8px',
|
minHeight: gridMinHeight + 'px',
|
||||||
|
rowGap: '10px',
|
||||||
overflow: 'auto',
|
overflow: 'auto',
|
||||||
'box-shadow':
|
'box-shadow':
|
||||||
fileListScrollTop > 0
|
fileListScrollTop > 0
|
||||||
@ -1069,6 +1070,7 @@ export default {
|
|||||||
gridColumnNum: -1,
|
gridColumnNum: -1,
|
||||||
gridPaddingRight: 0,
|
gridPaddingRight: 0,
|
||||||
gridItemWidth: 125,
|
gridItemWidth: 125,
|
||||||
|
gridMinHeight: 125,
|
||||||
allChecked: false,
|
allChecked: false,
|
||||||
summaries: '',
|
summaries: '',
|
||||||
shareDialogVisible: false,
|
shareDialogVisible: false,
|
||||||
@ -1566,6 +1568,12 @@ export default {
|
|||||||
let gridRowNum = Math.round(
|
let gridRowNum = Math.round(
|
||||||
this.clientHeight / (clientWidth / this.gridColumnNum)
|
this.clientHeight / (clientWidth / this.gridColumnNum)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (this.finished) {
|
||||||
|
let actualRows = Math.ceil(this.fileList.length / this.gridColumnNum)
|
||||||
|
this.gridMinHeight = actualRows * this.gridItemWidth + (actualRows - 1) * 10
|
||||||
|
}
|
||||||
|
|
||||||
const lastPageSize = this.pagination.pageSize
|
const lastPageSize = this.pagination.pageSize
|
||||||
const thisPageSize = gridRowNum * this.gridColumnNum + this.gridColumnNum
|
const thisPageSize = gridRowNum * this.gridColumnNum + this.gridColumnNum
|
||||||
if (thisPageSize !== lastPageSize) {
|
if (thisPageSize !== lastPageSize) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user