File tree Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Expand file tree Collapse file tree 3 files changed +22
-18
lines changed Original file line number Diff line number Diff line change 8
8
:key =" comment.id"
9
9
>
10
10
<template #header >
11
- <div class =" card-header" >
11
+ <div class =" card-header" id = " comment.comment_order " >
12
12
<!-- todo add isAuthor label -->
13
- <span >
14
- {{ comment.comment_order}}楼 <b >{{comment.author}}</b > @<span >{{comment.created_time}} </span >
13
+ <span >
14
+ {{ comment.comment_order}}楼 <b >{{comment.author}}</b > @<span >{{comment.created_time}} </span >
15
15
</span >
16
16
17
+
17
18
<el-button
18
19
type =" primary"
19
20
text
109
110
if (comment !== undefined ) {
110
111
let content = ' '
111
112
this .commentForm .replied_to = comment .comment_order
112
- content = " > 回复 " + comment .comment_order + " 楼 @" + comment .author + " \n "
113
+ content = " > 回复 " + comment .comment_order + " 楼 @" + comment .author
113
114
if (quoted) {
114
- content = " <div class='quote-reply' > 引用 " + comment .comment_order + " 楼 @" + comment .author + " \n "
115
+ content = " > 引用 " + comment .comment_order + " 楼 @" + comment .author + " \n \n"
115
116
116
- // content = content + ">" + comment.content.split("\n").join("\n>")
117
- content = content + " " + comment .content + " </div>\n\n "
117
+ content = content + " <div class='quote-reply'>" + comment .mdcontent + " </div>"
118
118
}
119
119
120
- this .commentForm .content = content + " \n\n\n "
120
+ this .commentForm .content = content + " \n\n "
121
121
}
122
122
this .$refs .commentEditor .textAreaFocus ()
123
123
},
167
167
.card-header {
168
168
font-size : 1.5ch ;
169
169
}
170
- p {
171
- margin-top : 5px ;
172
- margin-bottom : 5px ;
173
- }
170
+
174
171
.mavon-edtior-custom-comment {
175
172
width : 100% ;
176
173
min-height : 200px ;
177
174
}
178
175
179
176
.quote-reply {
180
- background-color : #8f8f87 ;
177
+ background-color : #ccccc9 ;
181
178
padding-left : 20px ;
182
179
}
183
180
184
181
182
+ blockquote {
183
+ padding :0 1em ;
184
+ color : black ;
185
+ border-left : 0.25em solid ;
186
+ }
185
187
186
188
.comment-status {
187
189
text-align : right ;
Original file line number Diff line number Diff line change 24
24
<div class =" article-desc" >
25
25
<span >
26
26
@{{articleDetail.created_time }} {{ articleDetail.author }},views:{{articleDetail.views_count}} likes:{{articleDetail.likes_count}} comments:0
27
- <el-button icon =" DeleteFilled" type = " text" />
27
+ <el-button icon =" DeleteFilled" text />
28
28
<router-link
29
29
:to =" '/article/edit/'+ articleDetail.id"
30
30
><el-button
31
31
icon =" EditPen"
32
- type =" text" />
32
+ text
33
+ />
33
34
</router-link >
34
35
</span >
35
36
</div >
75
76
},
76
77
77
78
created () {
78
- this .articleId = this .$route .params && this .$route .params .id
79
+ this .articleId = this .$route .params && Number ( this .$route .params .id )
79
80
this .fetchData (this .articleId )
80
81
// Why need to make a copy of this.$route here?
81
82
// Because if you enter this page and quickly switch tag, may be in the execution of the setTagsViewTitle function, this.$route is no longer pointing to the current page
Original file line number Diff line number Diff line change 15
15
<div class =" article-desc" >
16
16
<span >
17
17
@{{article.created_time }} {{ article.author }}, views:{{article.views_count}} likes:{{article.likes_count}}
7F96
comments:{{article.comments_count}}
18
- <el-button icon =" DeleteFilled" type = " text" />
18
+ <el-button icon =" DeleteFilled" text />
19
19
<router-link
20
20
:to =" '/article/edit/'+ article.id"
21
21
class =" article-title"
22
22
><el-button
23
23
icon =" EditPen"
24
- type =" text" />
24
+ text
25
+ />
25
26
</router-link >
26
27
</span >
27
28
You can’t perform that action at this time.
0 commit comments