From 64f611791055ff8f322129c9853a238dab96878a Mon Sep 17 00:00:00 2001 From: ssoda01 <1443898356@qq.com> Date: Thu, 29 Feb 2024 14:51:14 +0800 Subject: [PATCH] feat(search): add search shortcuts, highlight search box and search results feat(card): adjust card style prevents text too long feat(search): modify search shortcut key --- src/components/card.vue | 42 ++++++++++----- src/components/textHighlight.vue | 75 ++++++++++++++++++++++++++ src/views/Home.vue | 90 +++++++++++++++++++++++++++++--- 3 files changed, 185 insertions(+), 22 deletions(-) create mode 100644 src/components/textHighlight.vue diff --git a/src/components/card.vue b/src/components/card.vue index e22a09a37..d02bd1edb 100644 --- a/src/components/card.vue +++ b/src/components/card.vue @@ -15,24 +15,33 @@ -
-

- +
+

+ 直播中 - + 没播 - {{uname}} - + + + +

+

+ 未收录 - + {{mid}}

{{title}} -

{{sign}}

+
@@ -46,15 +55,21 @@ + + \ No newline at end of file diff --git a/src/views/Home.vue b/src/views/Home.vue index c23dec654..51e53d4d0 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,6 +1,13 @@