From e4b9214840c238201fdf91eca7c5371147c1cfc9 Mon Sep 17 00:00:00 2001
From: landaiqing <3517283258@qq.com>
Date: Tue, 24 Sep 2024 21:38:48 +0800
Subject: [PATCH] :zap: updated comment
---
components.d.ts | 1 +
src/components/CommentReply/CommentReply.vue | 455 ++++++++++---------
src/components/CommentReply/index.scss | 6 +
src/types/comment.d.ts | 2 +-
4 files changed, 254 insertions(+), 210 deletions(-)
diff --git a/components.d.ts b/components.d.ts
index a49fd00..798c8c1 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -45,6 +45,7 @@ declare module 'vue' {
DeleteOutlined: typeof import('@ant-design/icons-vue')['DeleteOutlined']
DynamicTitle: typeof import('./src/components/DynamicTitle/DynamicTitle.vue')['default']
EffectsCard: typeof import('./src/components/EffectsCard/EffectsCard.vue')['default']
+ EyeOutlined: typeof import('@ant-design/icons-vue')['EyeOutlined']
ForgetPage: typeof import('./src/views/Forget/ForgetPage.vue')['default']
GithubOutlined: typeof import('@ant-design/icons-vue')['GithubOutlined']
LandingPage: typeof import('./src/views/Landing/LandingPage.vue')['default']
diff --git a/src/components/CommentReply/CommentReply.vue b/src/components/CommentReply/CommentReply.vue
index ce817cb..ea25e4c 100644
--- a/src/components/CommentReply/CommentReply.vue
+++ b/src/components/CommentReply/CommentReply.vue
@@ -122,7 +122,11 @@
-
+
+
+
+
+
@@ -139,7 +143,9 @@
{{ item.dislikes }}
- {
+ handleShowReplyComment(item.id);
+ replyListThrottled(item.id)}" type="text" size="small"
:icon="h(MessageOutlined)"
class="reply-action-btn">
{{ item.reply_count }}
@@ -289,209 +295,220 @@
-
-
-
-
-
-
-
-
- {{ child.nickname }}
- @{{ child.reply_username }}
- Lv.5
-
-
-
-
- {{ child.location }}
-
- {{ formatTimeAgo(child.created_time) }}
-
+ v-if="showReplyComment && showReplyComment === item.id">
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {{ child.nickname }}
+ @{{ child.reply_username }}
+ Lv.5
+
-
-
-
-
-
- {{ child.likes }}
-
-
-
-
- {{ child.dislikes }}
-
-
-
- {{ t('comment.reply') }}
-
-
-
-
-
- {{ child.operating_system }}
-
-
- {{ child.browser }}
-
-
-
-
-
-
-
-
- {{ t('comment.report') }}
-
-
- {{ t('comment.copy') }}
-
-
- {{ t('comment.delete') }}
-
-
-
-
+
+
+ {{ child.location }}
+ {{ formatTimeAgo(child.created_time) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -502,10 +519,11 @@
-