From 197c79221915783ae2a4d82c42bb260709e5ab69 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Mon, 27 Oct 2025 00:12:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BA=8B=E4=BB=B6=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=80=E4=BD=8E=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Community/components/EventListSection.js | 46 +++++++++++-------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/src/views/Community/components/EventListSection.js b/src/views/Community/components/EventListSection.js index eb2339d3..9a17759e 100644 --- a/src/views/Community/components/EventListSection.js +++ b/src/views/Community/components/EventListSection.js @@ -3,6 +3,7 @@ import React from 'react'; import { + Box, Center, VStack, Spinner, @@ -27,38 +28,47 @@ const EventListSection = ({ onEventClick, onViewDetail }) => { + // ✅ 最小高度,避免加载后高度突变 + const minHeight = '600px'; + // Loading 状态 if (loading) { return ( -
- - - 正在加载最新事件... - -
+ +
+ + + 正在加载最新事件... + +
+
); } // Empty 状态 if (!events || events.length === 0) { return ( -
- - 暂无事件数据 - -
+ +
+ + 暂无事件数据 + +
+
); } // List 状态 return ( - + + + ); };