From ea7d671ad03ed843a4d44bb7223a310c2d54e53f Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Thu, 21 Mar 2024 21:48:39 +0800
Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=AB=96?=
=?UTF-8?q?=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/config/home.ts | 4 ++++
src/views/home/content/Content.vue | 7 +++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/config/home.ts b/src/config/home.ts
index 1ddb665..5ef6e55 100644
--- a/src/config/home.ts
+++ b/src/config/home.ts
@@ -30,6 +30,10 @@ export const viewOptions = [
label: '平铺',
value: 'masonry',
},
+ {
+ label: '竖版',
+ value: 'verticalVersion',
+ },
{
label: '3:4',
value: '3:4',
diff --git a/src/views/home/content/Content.vue b/src/views/home/content/Content.vue
index 9b6ba34..e420cca 100644
--- a/src/views/home/content/Content.vue
+++ b/src/views/home/content/Content.vue
@@ -166,6 +166,8 @@ const gridHeight = computed(() => {
height =''
}else if(viewMode.value ==='horizontalVersion'){
height ='145px'
+ }else if(viewMode.value ==='verticalVersion'){
+ height ='320px'
}else if(viewMode.value ==='3:4'){
height ='240px'
}
@@ -307,7 +309,7 @@ function sortHandler() {
> -->