From dbcba0e2a92704c99daffc1dbf299abf4da3ad60 Mon Sep 17 00:00:00 2001 From: Momentry Studio Date: Mon, 15 Jun 2026 00:24:24 +0800 Subject: [PATCH] feat: VideoPlayer loading state --- src/components/VideoPlayer.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index 267e5e3..9e0aac9 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -3,7 +3,12 @@
-
-
+
@@ -201,4 +206,7 @@ onUnmounted(() => { cursor: pointer; font-size: 0.85rem; transition: background 0.15s; } .seg-btn:hover { background: #374151; } +.video-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #9ca3af; } +.loading-spinner { width: 40px; height: 40px; border: 4px solid #374151; border-top-color: #4f46e5; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px; } +@keyframes spin { to { transform: rotate(360deg); } }