...
|
...
|
@@ -24,23 +24,26 @@ |
|
|
{{parentComment.content}}
|
|
|
</CommentPlaceholder>
|
|
|
<div class="reply-main" v-if="replayShowList.length">
|
|
|
<p class="reply-item" v-for="(reply, replyIndex) in replayShowList" :key="replyIndex">
|
|
|
<CommentPlaceholder
|
|
|
tag="p"
|
|
|
class="reply-item"
|
|
|
v-for="(reply, replyIndex) in replayShowList"
|
|
|
:key="replyIndex"
|
|
|
:dest-id="reply.id"
|
|
|
:add-type="1"
|
|
|
:user="reply.userName"
|
|
|
:column-type="columnType"
|
|
|
@on-comment="() => onReply({destId: parentComment.id})">
|
|
|
<span class="reply-user">
|
|
|
{{reply.userName}}
|
|
|
</span>
|
|
|
<span v-if="reply.parentUserName">
|
|
|
回复<em class="reply-to-user">@{{reply.parentUserName}}</em>
|
|
|
</span>:
|
|
|
<CommentPlaceholder
|
|
|
tag="span"
|
|
|
:dest-id="reply.id"
|
|
|
:add-type="1"
|
|
|
:user="reply.userName"
|
|
|
:column-type="columnType"
|
|
|
@on-comment="onReply">
|
|
|
<span>
|
|
|
{{reply.content}}
|
|
|
</CommentPlaceholder>
|
|
|
</p>
|
|
|
</span>
|
|
|
</CommentPlaceholder>
|
|
|
<p class="reply-more" v-if="moreReplyNum > 0" @click="onShowMore">
|
|
|
{{replyMoreText}}
|
|
|
<i class="iconfont icon-right" v-if="!isShowAllReply"></i>
|
...
|
...
|
@@ -176,7 +179,6 @@ export default { |
|
|
|
|
|
.reply-item {
|
|
|
margin-bottom: 20px;
|
|
|
display: flex;
|
|
|
|
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
...
|
...
|
|