|
|
|
|
@ -60,7 +60,7 @@ const layout = debounce(() => {
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
if (_masonry !== null)
|
|
|
|
|
(_masonry as any).destroy()
|
|
|
|
|
(_masonry as any).addItems()
|
|
|
|
|
|
|
|
|
|
_masonry = new Masonry(masonryRef.value as any, {
|
|
|
|
|
itemSelector: '.grid-item',
|
|
|
|
|
@ -161,7 +161,15 @@ async function loadMore() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const gridHeight = computed(() => {
|
|
|
|
|
return viewMode.value !== 'masonry' ? '145px' : ''
|
|
|
|
|
let height = ""
|
|
|
|
|
if(viewMode.value ==='masonry'){
|
|
|
|
|
height =''
|
|
|
|
|
}else if(viewMode.value ==='horizontalVersion'){
|
|
|
|
|
height ='145px'
|
|
|
|
|
}else if(viewMode.value ==='3:4'){
|
|
|
|
|
height ='240px'
|
|
|
|
|
}
|
|
|
|
|
return height
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
async function oneCheck() {
|
|
|
|
|
@ -299,7 +307,7 @@ function sortHandler() {
|
|
|
|
|
> -->
|
|
|
|
|
<n-image
|
|
|
|
|
class="img" :img-props="{ onClick: hideDownload }"
|
|
|
|
|
:class="{ 'img-fit': viewMode !== 'masonry' }" :preview-src="item.imgUrl" :src="item.thumburl"
|
|
|
|
|
:class="{ 'img-fit': viewMode === 'horizontalVersion', 'img-full': viewMode === '3:4' }" :preview-src="item.imgUrl" :src="item.thumburl"
|
|
|
|
|
/>
|
|
|
|
|
<div class="percent">
|
|
|
|
|
<SvgIcon size="42" name="tag" />
|
|
|
|
|
@ -389,6 +397,14 @@ function sortHandler() {
|
|
|
|
|
width: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
.img-full {
|
|
|
|
|
width: 100%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
::v-deep(img) {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info {
|
|
|
|
|
display: flex;
|
|
|
|
|
|