diff --git a/src/layout/components/Header/RecycleModal.vue b/src/layout/components/Header/RecycleModal.vue index 35b2854..b8bc412 100644 --- a/src/layout/components/Header/RecycleModal.vue +++ b/src/layout/components/Header/RecycleModal.vue @@ -43,6 +43,7 @@ const timeOptions = [{ // label: '降序', // value: 'desc', // }] + const timeLabel = computed(() => { const item = timeOptions.find((option) => { return option.value === timeRange.value @@ -223,7 +224,18 @@ function upHandler(event: MouseEvent) { } const gridHeight = computed(() => { - return viewMode.value !== 'masonry' ? '157px' : '' + // return viewMode.value !== 'masonry' ? '157px' : '' + let height = ""; + if (viewMode.value === "masonry") { + height = ""; + } else if (viewMode.value === "horizontalVersion") { + height = "145px"; + } else if (viewMode.value === "verticalVersion") { + height = "300px"; + } else if (viewMode.value === "3:4") { + height = "240px"; + } + return height; }) function addListeners() { @@ -515,8 +527,13 @@ async function refreshHandler(filtersearchId?: any) {