From 40f2f0b2de62aaa85340f1bf50be436a42a0da33 Mon Sep 17 00:00:00 2001 From: landaiqing <3517283258@qq.com> Date: Wed, 2 Oct 2024 01:08:29 +0800 Subject: [PATCH] :art: update comment --- .../src/CommentInput/CommentInput.vue | 36 +++++++++------- .../CommentReply/src/CommentInput/index.scss | 7 +++- .../src/CommentList/CommentList.vue | 2 +- .../CommentReply/src/CommentList/index.scss | 4 ++ .../src/ReplyInput/ReplyInput.vue | 32 +++++++++------ .../src/ReplyReplyInput/ReplyReply.vue | 41 +++++++++++-------- src/directives/v-lazy-load.ts | 26 ++++++++++++ src/main.ts | 3 ++ 8 files changed, 105 insertions(+), 46 deletions(-) create mode 100644 src/directives/v-lazy-load.ts diff --git a/src/components/CommentReply/src/CommentInput/CommentInput.vue b/src/components/CommentReply/src/CommentInput/CommentInput.vue index 35a4daa..67a4fd5 100644 --- a/src/components/CommentReply/src/CommentInput/CommentInput.vue +++ b/src/components/CommentReply/src/CommentInput/CommentInput.vue @@ -2,7 +2,7 @@
').replace(/\s/g, ' '); - const regex = /\[((1[0-6][0-6]|[1-9]?[0-9])\.gif)\]/g; // 匹配 [1.gif] 的字符串 - const contentWithEmoji = content.replace(regex, (match, p1) => { - if (emojiType.value === "qq") { - return `
').replace(/\s/g, ' '); const regex = /\[((1[0-6][0-6]|[1-9]?[0-9])\.gif)\]/g; // 匹配 [1.gif] 的字符串 - const contentWithEmoji = content.replace(regex, (match, p1) => { - if (emojiType.value === "qq") { - return `