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() { > -->
@@ -401,8 +403,9 @@ function sortHandler() { width: 100%; overflow: hidden; ::v-deep(img) { - height: 100%; width: 100%; + height: 100%; + object-fit: cover; } } From 8543258c89ae412e9e8558510e44f24585b7cfb6 Mon Sep 17 00:00:00 2001 From: lizijiee <562949697@qq.com> Date: Fri, 22 Mar 2024 00:30:44 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/aside/comp/Upload.vue | 51 ++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/src/views/home/aside/comp/Upload.vue b/src/views/home/aside/comp/Upload.vue index 7c4970f..f723701 100644 --- a/src/views/home/aside/comp/Upload.vue +++ b/src/views/home/aside/comp/Upload.vue @@ -1,12 +1,11 @@