@@ -35,10 +35,9 @@ watch(
3535)
3636
3737const replyContent = computed (() => {
38- const targetsContent = props .reply .targets .map ((t ) => t .contentPreview )
39- const content =
40- markdownToText (props .reply .contentMarkdown ) + targetsContent .join (' ' )
41- return content .slice (0 , 20 )
38+ const targetsContent = props .reply .targets .map ((t ) => t .replyContentMarkdown )
39+ const content = props .reply .contentMarkdown + targetsContent .join (' ' )
40+ return markdownToText (content .slice (0 , 20 ))
4241})
4342 </script >
4443
@@ -47,15 +46,19 @@ const replyContent = computed(() => {
4746 class =" outline-primary kun-reply flex justify-between gap-3 outline-offset-2"
4847 :id =" `${reply.floor}.${replyContent}`"
4948 >
50- <TopicDetailUser :user =" reply .user " />
51-
5249 <KunCard
5350 :is-transparent =" false "
5451 :is-hoverable =" false "
5552 class-name="w-full"
5653 content-class="gap-3"
5754 >
58- <TopicDetailUserMobile :user =" reply .user " />
55+ <TopicDetailUser
56+ :user =" reply .user "
57+ :created =" reply .created "
58+ :edited =" reply .edited "
59+ :topic-id =" reply .topicId "
60+ :floor =" reply .floor "
61+ />
5962
6063 <div
6164 v-if =" reply.targets && reply.targets.length > 0"
@@ -93,7 +96,7 @@ const replyContent = computed(() => {
9396 color="default"
9497 underline="none"
9598 :to =" ` /topic/${reply .topicId }#k${reply .floor } ` "
96- class-name="text-default-500 font-bold"
99+ class-name="text-default-400 font-bold"
97100 >
98101 #{{ reply.floor }}
99102 </KunLink >
@@ -103,11 +106,20 @@ const replyContent = computed(() => {
103106
104107 <TopicComment :reply-id =" reply .id " :comments-data =" comments " />
105108
106- <LazyTopicCommentPanel
107- v-if =" isShowPanel && reply .id === storeReplyId "
108- :reply-id =" reply .id "
109- @get-comment =" (newComment ) => comments .push (newComment ) "
110- />
109+ <Transition
110+ enter-active-class="transition-all duration-300 ease-out"
111+ enter-from-class="opacity-0 max-h-0"
112+ enter-to-class="opacity-100 max-h-96"
113+ leave-active-class="transition-all duration-300 ease-in"
114+ leave-from-class="opacity-100 max-h-96"
115+ leave-to-class="opacity-0 max-h-0"
116+ >
117+ <LazyTopicCommentPanel
118+ v-if =" isShowPanel && reply .id === storeReplyId "
119+ :reply-id =" reply .id "
120+ @get-comment =" (newComment ) => comments .push (newComment ) "
121+ />
122+ </Transition >
111123 </KunCard >
112124 </div >
113125</template >
0 commit comments